firebase-tools 10.9.0 → 11.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -9
- package/lib/commands/apps-sdkconfig.js +6 -2
- package/lib/commands/ext-configure.js +51 -120
- package/lib/commands/ext-dev-emulators-exec.js +11 -6
- package/lib/commands/ext-dev-emulators-start.js +10 -26
- package/lib/commands/ext-install.js +8 -197
- package/lib/commands/ext-uninstall.js +4 -93
- package/lib/commands/ext-update.js +62 -225
- package/lib/deploy/functions/runtimes/discovery/v1alpha1.js +8 -9
- package/lib/deploy/functions/runtimes/node/index.js +7 -3
- package/lib/emulator/commandUtils.js +1 -1
- package/lib/emulator/controller.js +2 -2
- package/lib/emulator/downloadableEmulators.js +6 -6
- package/lib/emulator/extensionsEmulator.js +7 -3
- package/lib/emulator/functionsEmulator.js +1 -2
- package/lib/emulator/portUtils.js +2 -0
- package/lib/emulator/storage/crc.js +3 -0
- package/lib/emulator/storage/rules/runtime.js +1 -1
- package/lib/extensions/extensionsHelper.js +4 -5
- package/lib/extensions/manifest.js +5 -11
- package/lib/firebaseConfigValidate.js +1 -1
- package/lib/frameworks/index.js +11 -1
- package/npm-shrinkwrap.json +628 -411
- package/package.json +15 -18
- package/schema/firebase-config.json +9 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.showPostDeprecationNotice = exports.readInstanceParam = exports.getInstanceRef = exports.getInstanceTarget = exports.instanceExists = exports.loadConfig = exports.removeFromManifest = exports.writeLocalSecrets = exports.writeToManifest = exports.ENV_DIRECTORY = void 0;
|
|
4
4
|
const clc = require("cli-color");
|
|
5
5
|
const path = require("path");
|
|
6
6
|
const refs = require("./refs");
|
|
@@ -181,16 +181,10 @@ function readParamsFile(projectDir, fileName) {
|
|
|
181
181
|
const params = (0, paramHelper_1.readEnvFile)(paramPath);
|
|
182
182
|
return params;
|
|
183
183
|
}
|
|
184
|
-
function
|
|
185
|
-
utils.
|
|
184
|
+
function showPostDeprecationNotice() {
|
|
185
|
+
utils.logLabeledBullet(extensionsHelper_1.logPrefix, "The behavior of ext:install, ext:update, ext:configure, and ext:uninstall has changed in firebase-tools@11.0.0. " +
|
|
186
186
|
"Instead of deploying extensions directly, " +
|
|
187
187
|
"changes to extension instances will be written to firebase.json and ./extensions/*.env. " +
|
|
188
|
-
`Then ${clc.bold("firebase deploy (--only extensions)")} will deploy the changes to your Firebase project.
|
|
189
|
-
`To access this behavior now, pass the ${clc.bold("--local")} flag.`);
|
|
188
|
+
`Then ${clc.bold("firebase deploy (--only extensions)")} will deploy the changes to your Firebase project. See https://firebase.google.com/docs/extensions/manifest for more details.`);
|
|
190
189
|
}
|
|
191
|
-
exports.
|
|
192
|
-
function showPreviewWarning() {
|
|
193
|
-
utils.logLabeledWarning(extensionsHelper_1.logPrefix, `See these changes in your Firebase Emulator by running "firebase emulators:start". ` +
|
|
194
|
-
`Run ${clc.bold("firebase deploy (--only extensions)")} to deploy the changes to your Firebase project. `);
|
|
195
|
-
}
|
|
196
|
-
exports.showPreviewWarning = showPreviewWarning;
|
|
190
|
+
exports.showPostDeprecationNotice = showPostDeprecationNotice;
|
|
@@ -8,7 +8,7 @@ const ajv = new Ajv();
|
|
|
8
8
|
let _VALIDATOR = undefined;
|
|
9
9
|
function getValidator() {
|
|
10
10
|
if (!_VALIDATOR) {
|
|
11
|
-
const schemaStr = fs.readFileSync(path.resolve(__dirname, "../schema/firebase-config.json"), "
|
|
11
|
+
const schemaStr = fs.readFileSync(path.resolve(__dirname, "../schema/firebase-config.json"), "utf-8");
|
|
12
12
|
const schema = JSON.parse(schemaStr);
|
|
13
13
|
_VALIDATOR = ajv.compile(schema);
|
|
14
14
|
}
|
package/lib/frameworks/index.js
CHANGED
|
@@ -88,7 +88,17 @@ const prepareFrameworks = async (targetNames, context, options) => {
|
|
|
88
88
|
firebaseProjectConfig = await (0, apps_1.getAppConfig)(appId, apps_1.AppPlatform.WEB);
|
|
89
89
|
}
|
|
90
90
|
else {
|
|
91
|
-
console.warn(`No Firebase app associated with site ${site}, unable to provide authenticated server context
|
|
91
|
+
console.warn(`No Firebase app associated with site ${site}, unable to provide authenticated server context.
|
|
92
|
+
You can link a Web app to a Hosting site here https://console.firebase.google.com/project/_/settings/general/web`);
|
|
93
|
+
if (!options.nonInteractive) {
|
|
94
|
+
const continueDeploy = await (0, prompt_1.promptOnce)({
|
|
95
|
+
type: "confirm",
|
|
96
|
+
default: true,
|
|
97
|
+
message: "Would you like to continue with the deploy?",
|
|
98
|
+
});
|
|
99
|
+
if (!continueDeploy)
|
|
100
|
+
(0, process_1.exit)(1);
|
|
101
|
+
}
|
|
92
102
|
}
|
|
93
103
|
}
|
|
94
104
|
}
|