firebase-tools-with-isolate 15.31.0 → 15.33.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 (62) hide show
  1. package/lib/accountImporter.js +6 -3
  2. package/lib/api.js +3 -3
  3. package/lib/apphosting/secrets/index.js +7 -2
  4. package/lib/command.js +1 -1
  5. package/lib/commands/apps-create.js +34 -3
  6. package/lib/commands/auth-import.js +5 -6
  7. package/lib/commands/functions-kits-uninstall.js +43 -21
  8. package/lib/commands/functions-lifecycle-list.js +5 -6
  9. package/lib/commands/hosting-channel-deploy.js +3 -3
  10. package/lib/commands/hosting-clone.js +60 -29
  11. package/lib/commands/hosting-disable.js +5 -1
  12. package/lib/config.js +1 -0
  13. package/lib/crashlytics/alerts.js +122 -0
  14. package/lib/crashlytics/onboarding.js +71 -3
  15. package/lib/crashlytics/sourcemap.js +46 -11
  16. package/lib/crashlytics/types.js +6 -1
  17. package/lib/database/import.js +6 -7
  18. package/lib/deploy/functions/build.js +3 -0
  19. package/lib/deploy/functions/cel.js +89 -58
  20. package/lib/deploy/functions/functionsDeployHelper.js +10 -0
  21. package/lib/deploy/functions/params.js +7 -4
  22. package/lib/deploy/functions/prepare.js +25 -8
  23. package/lib/deploy/functions/release/fabricator.js +1 -5
  24. package/lib/deploy/functions/release/planner.js +3 -2
  25. package/lib/deploy/functions/validate.js +16 -0
  26. package/lib/deploy/hosting/prepare.js +1 -1
  27. package/lib/deploy/hosting/release.js +2 -2
  28. package/lib/emulator/auth/operations.js +8 -4
  29. package/lib/emulator/databaseEmulator.js +7 -3
  30. package/lib/emulator/downloadableEmulatorInfo.json +24 -24
  31. package/lib/emulator/emulatorLogger.js +2 -1
  32. package/lib/emulator/functionsEmulatorRuntime.js +2 -1
  33. package/lib/experiments.js +23 -6
  34. package/lib/extensions/warnings.js +48 -7
  35. package/lib/frameworks/next/constants.js +20 -12
  36. package/lib/frameworks/next/index.js +4 -25
  37. package/lib/frameworks/next/utils.js +28 -0
  38. package/lib/functions/env.js +4 -2
  39. package/lib/functions/kits/install.js +17 -1
  40. package/lib/gcp/artifactregistry.js +20 -0
  41. package/lib/gcp/cloudmonitoring.js +80 -3
  42. package/lib/gcp/cloudtasks.js +15 -1
  43. package/lib/gcp/cloudtrace.js +38 -0
  44. package/lib/gcp/resourceManager.js +1 -1
  45. package/lib/gcp/run.js +5 -0
  46. package/lib/gcp/runv2.js +32 -11
  47. package/lib/hosting/api.js +15 -15
  48. package/lib/hosting/runTags.js +1 -1
  49. package/lib/init/features/auth.js +46 -8
  50. package/lib/init/features/hosting/index.js +4 -2
  51. package/lib/management/apps.js +4 -2
  52. package/lib/management/projects.js +1 -1
  53. package/lib/mcp/tools/firestore/converter.js +2 -2
  54. package/lib/mcp/util.js +11 -10
  55. package/lib/profileReport.js +4 -4
  56. package/lib/scopes.js +1 -3
  57. package/lib/streamJson.js +37 -0
  58. package/lib/tsconfig.publish.tsbuildinfo +1 -1
  59. package/lib/utils.js +0 -15
  60. package/package.json +11 -10
  61. package/schema/firebase-config.json +41 -0
  62. package/lib/firestore/checkDatabaseType.js +0 -24
package/lib/utils.js CHANGED
@@ -56,7 +56,6 @@ exports.wrappedSafeLoad = wrappedSafeLoad;
56
56
  exports.generateId = generateId;
57
57
  exports.generatePassword = generatePassword;
58
58
  exports.readSecretValue = readSecretValue;
59
- exports.updateOrCreateGitignore = updateOrCreateGitignore;
60
59
  exports.promptForDirectory = promptForDirectory;
61
60
  exports.deepEqual = deepEqual;
62
61
  exports.newUniqueId = newUniqueId;
@@ -616,20 +615,6 @@ function readSecretValue(prompt, dataFile) {
616
615
  throw e;
617
616
  }
618
617
  }
619
- function updateOrCreateGitignore(dirPath, entries) {
620
- const gitignorePath = path.join(dirPath, ".gitignore");
621
- if (!fs.existsSync(gitignorePath)) {
622
- fs.writeFileSync(gitignorePath, entries.join("\n"));
623
- return;
624
- }
625
- let content = fs.readFileSync(gitignorePath, "utf-8");
626
- for (const entry of entries) {
627
- if (!content.includes(entry)) {
628
- content += `\n${entry}\n`;
629
- }
630
- }
631
- fs.writeFileSync(gitignorePath, content);
632
- }
633
618
  async function promptForDirectory(args) {
634
619
  let dir = "";
635
620
  while (!dir) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "firebase-tools-with-isolate",
3
- "version": "15.31.0",
3
+ "version": "15.33.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",
@@ -165,7 +165,7 @@
165
165
  "stream-chain": "^4.2.5",
166
166
  "stream-json": "^3.6.0",
167
167
  "superstatic": "^10.0.0",
168
- "tar": "^7.5.11",
168
+ "tar": "^7.5.21",
169
169
  "tcp-port-used": "^1.0.2",
170
170
  "tmp": "^0.2.3",
171
171
  "triple-beam": "^1.3.0",
@@ -242,7 +242,7 @@
242
242
  "googleapis": "^105.0.0",
243
243
  "mocha": "^11.7.1",
244
244
  "mock-fs": "5.2.0",
245
- "next": "^14.1.0",
245
+ "next": "15.5.24",
246
246
  "nock": "^13.0.5",
247
247
  "node-mocks-http": "^1.11.0",
248
248
  "nyc": "^15.1.0",
@@ -268,20 +268,21 @@
268
268
  "ajv-formats": "3.0.1",
269
269
  "ajv": "^8.17.1"
270
270
  },
271
- "hono": "^4.11.4",
271
+ "hono": "^4.13.5",
272
272
  "@tootallnate/once": "^3.0.1",
273
- "protobufjs": "^7.4.0",
273
+ "protobufjs": "^7.6.5",
274
274
  "serialize-javascript": "^7.0.5",
275
275
  "diff": "^8.0.4",
276
276
  "underscore": "^1.13.8",
277
- "brace-expansion": "^1.1.14",
278
- "@grpc/grpc-js": "^1.14.3",
277
+ "brace-expansion": "^1.1.18",
278
+ "@grpc/grpc-js": "^1.14.4",
279
279
  "rollup": "^3.30.0",
280
280
  "picomatch": "^2.3.2",
281
- "qs": "^6.15.2",
282
- "tar": "^7.5.11",
281
+ "qs": "^6.16.0",
282
+ "tar": "^7.5.21",
283
283
  "@opentelemetry/core": "^2.8.0",
284
- "basic-ftp": "^5.2.2",
284
+ "basic-ftp": "^5.3.1",
285
+ "re2": "1.24.0",
285
286
  "@babel/traverse": "^7.23.2",
286
287
  "universal-analytics": {
287
288
  "uuid": "^11.1.1"
@@ -1221,6 +1221,34 @@
1221
1221
  ],
1222
1222
  "type": "object"
1223
1223
  },
1224
+ "RunSingle": {
1225
+ "additionalProperties": false,
1226
+ "properties": {
1227
+ "ignore": {
1228
+ "items": {
1229
+ "type": "string"
1230
+ },
1231
+ "type": "array"
1232
+ },
1233
+ "localBuild": {
1234
+ "type": "boolean"
1235
+ },
1236
+ "region": {
1237
+ "type": "string"
1238
+ },
1239
+ "rootDir": {
1240
+ "type": "string"
1241
+ },
1242
+ "serviceId": {
1243
+ "type": "string"
1244
+ }
1245
+ },
1246
+ "required": [
1247
+ "region",
1248
+ "serviceId"
1249
+ ],
1250
+ "type": "object"
1251
+ },
1224
1252
  "StorageSingle": {
1225
1253
  "additionalProperties": false,
1226
1254
  "properties": {
@@ -2008,6 +2036,19 @@
2008
2036
  "remoteconfig": {
2009
2037
  "$ref": "#/definitions/RemoteConfigConfig"
2010
2038
  },
2039
+ "run": {
2040
+ "anyOf": [
2041
+ {
2042
+ "$ref": "#/definitions/RunSingle"
2043
+ },
2044
+ {
2045
+ "items": {
2046
+ "$ref": "#/definitions/RunSingle"
2047
+ },
2048
+ "type": "array"
2049
+ }
2050
+ ]
2051
+ },
2011
2052
  "storage": {
2012
2053
  "anyOf": [
2013
2054
  {
@@ -1,24 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.checkDatabaseType = checkDatabaseType;
4
- const api_1 = require("../api");
5
- const apiv2_1 = require("../apiv2");
6
- const logger_1 = require("../logger");
7
- const error_1 = require("../error");
8
- async function checkDatabaseType(projectId, databaseId = "(default)") {
9
- try {
10
- const client = new apiv2_1.Client({ urlPrefix: (0, api_1.firestoreOrigin)(), apiVersion: "v1" });
11
- const resp = await client.get(`/projects/${projectId}/databases/${databaseId}`);
12
- return resp.body.type;
13
- }
14
- catch (err) {
15
- logger_1.logger.debug("error getting database type: ", err);
16
- if (err instanceof error_1.FirebaseError) {
17
- if (err.status === 404) {
18
- logger_1.logger.info(`${databaseId} does not exist in project ${projectId}.`);
19
- return "DATABASE_DOES_NOT_EXIST";
20
- }
21
- }
22
- return undefined;
23
- }
24
- }