firebase-tools 10.7.0 → 10.8.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 (64) hide show
  1. package/lib/commands/ext-configure.js +26 -15
  2. package/lib/commands/ext-export.js +14 -5
  3. package/lib/commands/ext-install.js +31 -2
  4. package/lib/commands/ext-update.js +17 -10
  5. package/lib/commands/functions-delete.js +9 -2
  6. package/lib/commands/functions-secrets-set.js +1 -13
  7. package/lib/deploy/extensions/planner.js +12 -0
  8. package/lib/deploy/extensions/tasks.js +13 -0
  9. package/lib/deploy/functions/backend.js +67 -10
  10. package/lib/deploy/functions/build.js +28 -9
  11. package/lib/deploy/functions/checkIam.js +71 -56
  12. package/lib/deploy/functions/containerCleaner.js +8 -7
  13. package/lib/deploy/functions/deploy.js +49 -27
  14. package/lib/deploy/functions/functionsDeployHelper.js +48 -4
  15. package/lib/deploy/functions/prepare.js +125 -74
  16. package/lib/deploy/functions/pricing.js +2 -2
  17. package/lib/deploy/functions/release/executor.js +1 -1
  18. package/lib/deploy/functions/release/fabricator.js +94 -36
  19. package/lib/deploy/functions/release/index.js +16 -27
  20. package/lib/deploy/functions/release/planner.js +12 -7
  21. package/lib/deploy/functions/runtimes/discovery/v1alpha1.js +13 -1
  22. package/lib/deploy/functions/runtimes/golang/index.js +3 -0
  23. package/lib/deploy/functions/runtimes/node/index.js +7 -0
  24. package/lib/deploy/functions/runtimes/node/parseTriggers.js +108 -1
  25. package/lib/deploy/functions/services/storage.js +6 -12
  26. package/lib/deploy/functions/validate.js +58 -8
  27. package/lib/deploy/hosting/convertConfig.js +6 -4
  28. package/lib/emulator/auth/cloudFunctions.js +6 -2
  29. package/lib/emulator/auth/operations.js +0 -1
  30. package/lib/emulator/auth/server.js +8 -1
  31. package/lib/emulator/auth/state.js +27 -24
  32. package/lib/emulator/controller.js +12 -9
  33. package/lib/emulator/databaseEmulator.js +36 -3
  34. package/lib/emulator/downloadableEmulators.js +7 -7
  35. package/lib/emulator/extensionsEmulator.js +3 -0
  36. package/lib/emulator/functionsEmulator.js +11 -9
  37. package/lib/emulator/functionsEmulatorRuntime.js +1 -1
  38. package/lib/emulator/functionsEmulatorShared.js +5 -1
  39. package/lib/emulator/functionsEmulatorShell.js +2 -3
  40. package/lib/emulator/functionsEmulatorUtils.js +5 -1
  41. package/lib/emulator/pubsubEmulator.js +13 -9
  42. package/lib/emulator/storage/apis/firebase.js +26 -4
  43. package/lib/ensureApiEnabled.js +1 -1
  44. package/lib/extensions/askUserForEventsConfig.js +97 -0
  45. package/lib/extensions/export.js +7 -0
  46. package/lib/extensions/extensionsApi.js +47 -7
  47. package/lib/extensions/manifest.js +1 -1
  48. package/lib/extensions/paramHelper.js +2 -0
  49. package/lib/extensions/updateHelper.js +7 -1
  50. package/lib/extensions/warnings.js +11 -4
  51. package/lib/functions/projectConfig.js +13 -8
  52. package/lib/functionsShellCommandAction.js +1 -1
  53. package/lib/gcp/cloudfunctions.js +9 -2
  54. package/lib/gcp/cloudfunctionsv2.js +28 -10
  55. package/lib/gcp/serviceusage.js +24 -0
  56. package/lib/previews.js +1 -1
  57. package/lib/serve/functions.js +16 -19
  58. package/lib/throttler/throttler.js +2 -1
  59. package/npm-shrinkwrap.json +214 -527
  60. package/package.json +3 -3
  61. package/templates/extensions/typescript/package.lint.json +2 -1
  62. package/templates/extensions/typescript/package.nolint.json +2 -1
  63. package/templates/init/functions/typescript/package.lint.json +1 -0
  64. package/templates/init/functions/typescript/package.nolint.json +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "firebase-tools",
3
- "version": "10.7.0",
3
+ "version": "10.8.0",
4
4
  "description": "Command-Line Interface for Firebase",
5
5
  "main": "./lib/index.js",
6
6
  "bin": {
@@ -93,7 +93,7 @@
93
93
  "body-parser": "^1.19.0",
94
94
  "chokidar": "^3.0.2",
95
95
  "cjson": "^0.3.1",
96
- "cli-color": "^1.2.0",
96
+ "cli-color": "^2.0.2",
97
97
  "cli-table": "0.3.11",
98
98
  "commander": "^4.0.1",
99
99
  "configstore": "^5.0.1",
@@ -133,7 +133,7 @@
133
133
  "semver": "^5.7.1",
134
134
  "stream-chain": "^2.2.4",
135
135
  "stream-json": "^1.7.3",
136
- "superstatic": "^7.1.0",
136
+ "superstatic": "^8.0.0",
137
137
  "tar": "^6.1.11",
138
138
  "tcp-port-used": "^1.0.1",
139
139
  "tmp": "0.0.33",
@@ -2,7 +2,8 @@
2
2
  "name": "functions",
3
3
  "scripts": {
4
4
  "lint": "eslint \"src/**/*\"",
5
- "build": "tsc"
5
+ "build": "tsc",
6
+ "build:watch": "tsc --watch"
6
7
  },
7
8
  "main": "lib/index.js",
8
9
  "dependencies": {
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "functions",
3
3
  "scripts": {
4
- "build": "tsc"
4
+ "build": "tsc",
5
+ "build:watch": "tsc --watch"
5
6
  },
6
7
  "main": "lib/index.js",
7
8
  "dependencies": {
@@ -3,6 +3,7 @@
3
3
  "scripts": {
4
4
  "lint": "eslint --ext .js,.ts .",
5
5
  "build": "tsc",
6
+ "build:watch": "tsc --watch",
6
7
  "serve": "npm run build && firebase emulators:start --only functions",
7
8
  "shell": "npm run build && firebase functions:shell",
8
9
  "start": "npm run shell",
@@ -2,6 +2,7 @@
2
2
  "name": "functions",
3
3
  "scripts": {
4
4
  "build": "tsc",
5
+ "build:watch": "tsc --watch",
5
6
  "serve": "npm run build && firebase emulators:start --only functions",
6
7
  "shell": "npm run build && firebase functions:shell",
7
8
  "start": "npm run shell",