firebase-tools 15.22.3 → 15.23.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 (49) hide show
  1. package/lib/accountExporter.js +1 -0
  2. package/lib/accountImporter.js +1 -0
  3. package/lib/apiv2.js +91 -32
  4. package/lib/apphosting/backend.js +11 -4
  5. package/lib/apphosting/localbuilds.js +50 -0
  6. package/lib/commands/functions-delete.js +5 -3
  7. package/lib/commands/functions-lifecycle-list.js +94 -0
  8. package/lib/commands/functions-lifecycle-run.js +29 -0
  9. package/lib/commands/index.js +3 -0
  10. package/lib/database/import.js +3 -3
  11. package/lib/dataconnect/webhook.js +1 -2
  12. package/lib/deploy/apphosting/prepare.js +100 -1
  13. package/lib/deploy/functions/backend.js +15 -1
  14. package/lib/deploy/functions/build.js +28 -0
  15. package/lib/deploy/functions/prepare.js +91 -2
  16. package/lib/deploy/functions/prompts.js +62 -0
  17. package/lib/deploy/functions/release/fabricator.js +79 -4
  18. package/lib/deploy/functions/release/index.js +42 -23
  19. package/lib/deploy/functions/release/lifecycle.js +113 -0
  20. package/lib/deploy/functions/release/planner.js +41 -5
  21. package/lib/deploy/functions/runtimes/discovery/index.js +4 -3
  22. package/lib/deploy/functions/runtimes/discovery/v1alpha1.js +50 -0
  23. package/lib/deploy/functions/runtimes/node/index.js +1 -2
  24. package/lib/deploy/functions/runtimes/python/index.js +1 -2
  25. package/lib/deploy/functions/validate.js +44 -1
  26. package/lib/deploy/hosting/uploader.js +2 -3
  27. package/lib/downloadUtils.js +3 -1
  28. package/lib/emulator/auth/operations.js +18 -8
  29. package/lib/emulator/downloadableEmulatorInfo.json +31 -31
  30. package/lib/emulator/storage/apis/gcloud.js +61 -0
  31. package/lib/emulator/storage/multipart.js +82 -2
  32. package/lib/emulator/taskQueue.js +3 -11
  33. package/lib/extensions/extensionsHelper.js +6 -4
  34. package/lib/firestore/api.js +3 -1
  35. package/lib/gcp/cloudtasks.js +4 -0
  36. package/lib/gcp/iam.js +68 -2
  37. package/lib/gcp/knownRoles.json +99 -0
  38. package/lib/gcp/resourceManager.js +42 -1
  39. package/lib/gemini/fdcExperience.js +2 -2
  40. package/lib/hosting/initMiddleware.js +1 -1
  41. package/lib/hosting/proxy.js +42 -20
  42. package/lib/management/apps.js +4 -2
  43. package/lib/profiler.js +1 -2
  44. package/lib/streamUtils.js +24 -0
  45. package/lib/track.js +1 -2
  46. package/lib/tsconfig.compile.tsbuildinfo +1 -1
  47. package/lib/tsconfig.publish.tsbuildinfo +1 -1
  48. package/lib/utils.js +4 -21
  49. 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",
3
- "version": "15.22.3",
3
+ "version": "15.23.0",
4
4
  "description": "Command-Line Interface for Firebase",
5
5
  "main": "./lib/index.js",
6
6
  "mcpName": "io.github.firebase/firebase-mcp",
@@ -127,6 +127,7 @@
127
127
  "triple-beam": "^1.3.0",
128
128
  "universal-analytics": "^0.5.3",
129
129
  "update-notifier-cjs": "^5.1.6",
130
+ "undici": "^6.19.0",
130
131
  "winston": "^3.0.0",
131
132
  "winston-transport": "^4.4.0",
132
133
  "ws": "^7.5.10",
@@ -138,9 +139,6 @@
138
139
  "ajv-formats": "3.0.1",
139
140
  "ajv": "^8.17.1"
140
141
  },
141
- "node-fetch": {
142
- "whatwg-url": "^14.0.0"
143
- },
144
142
  "hono": "^4.11.4",
145
143
  "@tootallnate/once": "^3.0.1",
146
144
  "protobufjs": "^7.4.0",