Skip to content

Commit b132984

Browse files
authored
FDC Emulator Update v1.8.1(#8216)
1 parent e8fc1ed commit b132984

File tree

3 files changed

+21
-14
lines changed

3 files changed

+21
-14
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- Fixed issue where `firebase init dataconnect` would crash on React-based web apps.
2+
- Updated the Firebase Data Connect local toolkit to v.1.8.1, which:
3+
- Fixed issue where users who are using a version lower than 11.3.0 of `firebase` get a "missing import" error.

src/emulator/downloadableEmulators.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,22 +57,22 @@ const EMULATOR_UPDATE_DETAILS: { [s in DownloadableEmulators]: EmulatorUpdateDet
5757
expectedChecksum: "a9025b3e53fdeafd2969ccb3ba1e1d38",
5858
},
5959
dataconnect:
60-
process.platform === "darwin"
60+
process.platform === "darwin" // macos
6161
? {
62-
version: "1.8.0",
62+
version: "1.8.1",
6363
expectedSize: 25469696,
64-
expectedChecksum: "d20a4240b4290a262caff3d0d3a85a4f",
64+
expectedChecksum: "dc8b5c38838ebe667e2e93c51c14578a",
6565
}
66-
: process.platform === "win32"
66+
: process.platform === "win32" // windows
6767
? {
68-
version: "1.8.0",
69-
expectedSize: 25903616,
70-
expectedChecksum: "dda0350259449493ecc5cc24187ce752",
68+
version: "1.8.1",
69+
expectedSize: 25904128,
70+
expectedChecksum: "4ba969a49ade413c3f68f5bb0287af22",
7171
}
7272
: {
73-
version: "1.8.0",
73+
version: "1.8.1", // linux
7474
expectedSize: 25383064,
75-
expectedChecksum: "54a19e336f4118854c4c2d4eeeccb506",
75+
expectedChecksum: "1117c1c3cc0fca725dd7a869c1d2e90f",
7676
},
7777
};
7878

src/init/features/dataconnect/sdk.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,23 +116,27 @@ async function askQuestions(setup: Setup, config: Config): Promise<SDKInfo> {
116116
);
117117
if (targetPlatform === Platform.WEB) {
118118
const unusedFrameworks = SUPPORTED_FRAMEWORKS.filter(
119-
(framework) => newConnectorYaml!.generate?.javascriptSdk![framework],
119+
(framework) => !newConnectorYaml!.generate?.javascriptSdk![framework],
120120
);
121121
if (unusedFrameworks.length > 0) {
122-
const additionalFrameworks: { features: (keyof SupportedFrameworks)[] } = await prompt(
122+
const additionalFrameworks: { fdcFrameworks: (keyof SupportedFrameworks)[] } = await prompt(
123123
setup,
124124
[
125125
{
126126
type: "checkbox",
127-
name: "features",
127+
name: "fdcFrameworks",
128128
message:
129129
"Which framework would you like to generate SDKs for? " +
130130
"Press Space to select features, then Enter to confirm your choices.",
131-
choices: unusedFrameworks,
131+
choices: unusedFrameworks.map((frameworkStr) => ({
132+
value: frameworkStr,
133+
name: frameworkStr,
134+
checked: false,
135+
})),
132136
},
133137
],
134138
);
135-
for (const framework of additionalFrameworks.features) {
139+
for (const framework of additionalFrameworks.fdcFrameworks) {
136140
newConnectorYaml!.generate!.javascriptSdk![framework] = true;
137141
}
138142
}

0 commit comments

Comments
 (0)