firebase-tools-with-isolate 15.22.4 → 15.24.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.
Files changed (61) hide show
  1. package/lib/apiv2.js +91 -32
  2. package/lib/apphosting/backend.js +11 -4
  3. package/lib/bin/cli.js +9 -2
  4. package/lib/bin/progressiveHelp.js +126 -0
  5. package/lib/checkValidTargetFilters.js +1 -1
  6. package/lib/command.js +0 -7
  7. package/lib/commands/dataconnect-execute.js +1 -1
  8. package/lib/commands/deploy.js +27 -64
  9. package/lib/commands/functions-delete.js +5 -3
  10. package/lib/commands/functions-lifecycle-list.js +94 -0
  11. package/lib/commands/functions-lifecycle-run.js +29 -0
  12. package/lib/commands/index.js +3 -0
  13. package/lib/database/import.js +3 -3
  14. package/lib/dataconnect/webhook.js +1 -2
  15. package/lib/deploy/apphosting/index.js +26 -1
  16. package/lib/deploy/auth/index.js +18 -1
  17. package/lib/deploy/database/index.js +16 -1
  18. package/lib/deploy/dataconnect/index.js +19 -1
  19. package/lib/deploy/extensions/index.js +9 -1
  20. package/lib/deploy/firestore/index.js +20 -1
  21. package/lib/deploy/functions/backend.js +9 -0
  22. package/lib/deploy/functions/build.js +3 -0
  23. package/lib/deploy/functions/index.js +33 -1
  24. package/lib/deploy/functions/params.js +23 -15
  25. package/lib/deploy/functions/prepare.js +96 -1
  26. package/lib/deploy/functions/prompts.js +81 -0
  27. package/lib/deploy/functions/release/fabricator.js +79 -4
  28. package/lib/deploy/functions/release/index.js +45 -23
  29. package/lib/deploy/functions/release/lifecycle.js +79 -53
  30. package/lib/deploy/functions/release/planner.js +43 -5
  31. package/lib/deploy/functions/runtimes/discovery/index.js +4 -3
  32. package/lib/deploy/functions/runtimes/discovery/v1alpha1.js +18 -1
  33. package/lib/deploy/functions/runtimes/node/index.js +1 -2
  34. package/lib/deploy/functions/runtimes/python/index.js +1 -2
  35. package/lib/deploy/hosting/index.js +30 -1
  36. package/lib/deploy/hosting/uploader.js +2 -3
  37. package/lib/deploy/index.js +68 -8
  38. package/lib/deploy/remoteconfig/index.js +9 -1
  39. package/lib/deploy/storage/index.js +16 -1
  40. package/lib/downloadUtils.js +3 -1
  41. package/lib/emulator/auth/operations.js +18 -8
  42. package/lib/emulator/downloadableEmulatorInfo.json +24 -24
  43. package/lib/emulator/storage/apis/gcloud.js +61 -0
  44. package/lib/emulator/storage/multipart.js +82 -2
  45. package/lib/emulator/taskQueue.js +3 -11
  46. package/lib/extensions/extensionsHelper.js +6 -4
  47. package/lib/frameworks/utils.js +50 -1
  48. package/lib/gcp/iam.js +68 -2
  49. package/lib/gcp/knownRoles.json +99 -0
  50. package/lib/gcp/resourceManager.js +42 -1
  51. package/lib/gemini/fdcExperience.js +2 -2
  52. package/lib/hosting/initMiddleware.js +1 -1
  53. package/lib/hosting/proxy.js +57 -23
  54. package/lib/index.js +0 -1
  55. package/lib/management/apps.js +4 -2
  56. package/lib/profiler.js +1 -2
  57. package/lib/streamUtils.js +24 -0
  58. package/lib/track.js +1 -2
  59. package/lib/tsconfig.publish.tsbuildinfo +1 -1
  60. package/lib/utils.js +4 -21
  61. package/package.json +2 -4
package/lib/utils.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.vscodeEnvVars = exports.envOverrides = exports.IS_WINDOWS = void 0;
3
+ exports.streamToString = exports.stringToStream = exports.vscodeEnvVars = exports.envOverrides = exports.IS_WINDOWS = void 0;
4
4
  exports.consoleUrl = consoleUrl;
5
5
  exports.getInheritedOption = getInheritedOption;
6
6
  exports.setVSCodeEnvVars = setVSCodeEnvVars;
@@ -20,8 +20,6 @@ exports.logLabeledError = logLabeledError;
20
20
  exports.reject = reject;
21
21
  exports.allSettled = allSettled;
22
22
  exports.explainStdin = explainStdin;
23
- exports.stringToStream = stringToStream;
24
- exports.streamToString = streamToString;
25
23
  exports.makeActiveProject = makeActiveProject;
26
24
  exports.endpoint = endpoint;
27
25
  exports.getFunctionsEventProvider = getFunctionsEventProvider;
@@ -78,7 +76,6 @@ const clc = require("colorette");
78
76
  const open = require("open");
79
77
  const ora = require("ora");
80
78
  const process = require("process");
81
- const stream_1 = require("stream");
82
79
  const assert_1 = require("assert");
83
80
  const portfinder_1 = require("portfinder");
84
81
  const configstore_1 = require("./configstore");
@@ -220,23 +217,9 @@ function explainStdin() {
220
217
  logger_1.logger.info(clc.bold("Note:"), "Reading STDIN. Type JSON data and then press Ctrl-D");
221
218
  }
222
219
  }
223
- function stringToStream(text) {
224
- if (!text) {
225
- return undefined;
226
- }
227
- const s = new stream_1.Readable();
228
- s.push(text);
229
- s.push(null);
230
- return s;
231
- }
232
- function streamToString(s) {
233
- return new Promise((resolve, reject) => {
234
- let b = "";
235
- s.on("error", reject);
236
- s.on("data", (d) => (b += `${d}`));
237
- s.once("end", () => resolve(b));
238
- });
239
- }
220
+ var streamUtils_1 = require("./streamUtils");
221
+ Object.defineProperty(exports, "stringToStream", { enumerable: true, get: function () { return streamUtils_1.stringToStream; } });
222
+ Object.defineProperty(exports, "streamToString", { enumerable: true, get: function () { return streamUtils_1.streamToString; } });
240
223
  function makeActiveProject(projectDir, newActive) {
241
224
  const activeProjects = configstore_1.configstore.get("activeProjects") || {};
242
225
  if (newActive) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "firebase-tools-with-isolate",
3
- "version": "15.22.4",
3
+ "version": "15.24.0",
4
4
  "description": "Command-Line Interface for Firebase with monorepo support",
5
5
  "main": "./lib/index.js",
6
6
  "mcpName": "io.github.firebase/firebase-mcp",
@@ -169,6 +169,7 @@
169
169
  "triple-beam": "^1.3.0",
170
170
  "universal-analytics": "^0.5.3",
171
171
  "update-notifier-cjs": "^5.1.6",
172
+ "undici": "^6.19.0",
172
173
  "winston": "^3.0.0",
173
174
  "winston-transport": "^4.4.0",
174
175
  "ws": "^7.5.10",
@@ -271,9 +272,6 @@
271
272
  "ajv-formats": "3.0.1",
272
273
  "ajv": "^8.17.1"
273
274
  },
274
- "node-fetch": {
275
- "whatwg-url": "^14.0.0"
276
- },
277
275
  "hono": "^4.11.4",
278
276
  "@tootallnate/once": "^3.0.1",
279
277
  "protobufjs": "^7.4.0",