Skip to content

Commit

Permalink
Release Emulator UI v1.6.5. (#4175)
Browse files Browse the repository at this point in the history
* Release Emulator UI v1.6.5.

* Add flag for emulatoruisnapshot.
  • Loading branch information
yuchenshi authored Feb 16, 2022
1 parent 02bcc04 commit e70ab30
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 13 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
- `firebase emulators:start --export-on-exit <dir>` now rejects overwriting the current directory or parents (#4127).
- Fixes broken functions:config:clone command (#4173).
- Fixes issue where `auth:import` would fail when reading a JSON file. (#4157)
- Fixes issue where custom claims added in Auth Emulator UI was not properly shown.
43 changes: 30 additions & 13 deletions src/emulator/downloadableEmulators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,19 +62,36 @@ export const DownloadDetails: { [s in DownloadableEmulators]: EmulatorDownloadDe
namePrefix: "cloud-storage-rules-emulator",
},
},
ui: {
version: "1.6.4",
downloadPath: path.join(CACHE_DIR, "ui-v1.6.4.zip"),
unzipDir: path.join(CACHE_DIR, "ui-v1.6.4"),
binaryPath: path.join(CACHE_DIR, "ui-v1.6.4", "server.bundle.js"),
opts: {
cacheDir: CACHE_DIR,
remoteUrl: "https://storage.googleapis.com/firebase-preview-drop/emulator/ui-v1.6.4.zip",
expectedSize: 3757300,
expectedChecksum: "20d4ee71e4ff7527b1843b6a8636142e",
namePrefix: "ui",
},
},
ui: previews.emulatoruisnapshot
? {
version: "SNAPSHOT",
downloadPath: path.join(CACHE_DIR, "ui-vSNAPSHOT.zip"),
unzipDir: path.join(CACHE_DIR, "ui-vSNAPSHOT"),
binaryPath: path.join(CACHE_DIR, "ui-vSNAPSHOT", "server.bundle.js"),
opts: {
cacheDir: CACHE_DIR,
remoteUrl:
"https://storage.googleapis.com/firebase-preview-drop/emulator/ui-vSNAPSHOT.zip",
expectedSize: -1,
expectedChecksum: "",
skipCache: true,
skipChecksumAndSize: true,
namePrefix: "ui",
},
}
: {
version: "1.6.5",
downloadPath: path.join(CACHE_DIR, "ui-v1.6.5.zip"),
unzipDir: path.join(CACHE_DIR, "ui-v1.6.5"),
binaryPath: path.join(CACHE_DIR, "ui-v1.6.5", "server.bundle.js"),
opts: {
cacheDir: CACHE_DIR,
remoteUrl: "https://storage.googleapis.com/firebase-preview-drop/emulator/ui-v1.6.5.zip",
expectedSize: 3816994,
expectedChecksum: "92dfff4b2ef8ab616e8a60cc93e0a00b",
namePrefix: "ui",
},
},
pubsub: {
downloadPath: path.join(CACHE_DIR, "pubsub-emulator-0.1.0.zip"),
version: "0.1.0",
Expand Down
2 changes: 2 additions & 0 deletions src/previews.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ interface PreviewFlags {
golang: boolean;
deletegcfartifacts: boolean;
artifactregistry: boolean;
emulatoruisnapshot: boolean;
}

export const previews: PreviewFlags = {
Expand All @@ -22,6 +23,7 @@ export const previews: PreviewFlags = {
golang: false,
deletegcfartifacts: false,
artifactregistry: false,
emulatoruisnapshot: false,

...(configstore.get("previews") as Partial<PreviewFlags>),
};
Expand Down

0 comments on commit e70ab30

Please sign in to comment.