firebase-tools 10.1.5 → 10.2.2

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 (134) hide show
  1. package/lib/api.js +1 -0
  2. package/lib/apiv2.js +3 -0
  3. package/lib/appdistribution/options-parser-util.js +1 -1
  4. package/lib/auth.js +62 -25
  5. package/lib/command.js +1 -1
  6. package/lib/commands/apps-android-sha-create.js +2 -2
  7. package/lib/commands/apps-sdkconfig.js +1 -1
  8. package/lib/commands/auth-import.js +1 -1
  9. package/lib/commands/database-rules-list.js +2 -2
  10. package/lib/commands/emulators-start.js +1 -1
  11. package/lib/commands/ext-configure.js +1 -0
  12. package/lib/commands/ext-dev-init.js +49 -49
  13. package/lib/commands/ext-export.js +12 -2
  14. package/lib/commands/ext-install.js +104 -103
  15. package/lib/commands/ext-uninstall.js +9 -8
  16. package/lib/commands/ext-update.js +10 -9
  17. package/lib/commands/functions-config-clone.js +1 -1
  18. package/lib/commands/functions-config-export.js +1 -1
  19. package/lib/commands/functions-secrets-access.js +17 -0
  20. package/lib/commands/functions-secrets-destroy.js +40 -0
  21. package/lib/commands/functions-secrets-get.js +21 -0
  22. package/lib/commands/functions-secrets-prune.js +50 -0
  23. package/lib/commands/functions-secrets-set.js +46 -0
  24. package/lib/commands/hosting-clone.js +3 -3
  25. package/lib/commands/index.js +7 -3
  26. package/lib/commands/login.js +1 -1
  27. package/lib/commands/remoteconfig-get.js +1 -1
  28. package/lib/deploy/extensions/deploymentSummary.js +3 -3
  29. package/lib/deploy/extensions/params.js +3 -0
  30. package/lib/deploy/extensions/planner.js +2 -1
  31. package/lib/deploy/extensions/tasks.js +1 -1
  32. package/lib/deploy/functions/backend.js +20 -5
  33. package/lib/deploy/functions/checkIam.js +1 -1
  34. package/lib/deploy/functions/containerCleaner.js +3 -3
  35. package/lib/deploy/functions/ensure.js +112 -0
  36. package/lib/deploy/functions/ensureCloudBuildEnabled.js +0 -49
  37. package/lib/deploy/functions/functionsDeployHelper.js +2 -2
  38. package/lib/deploy/functions/prepare.js +15 -20
  39. package/lib/deploy/functions/pricing.js +1 -1
  40. package/lib/deploy/functions/prompts.js +2 -2
  41. package/lib/deploy/functions/release/fabricator.js +3 -3
  42. package/lib/deploy/functions/release/index.js +1 -1
  43. package/lib/deploy/functions/release/planner.js +11 -8
  44. package/lib/deploy/functions/release/reporter.js +3 -0
  45. package/lib/deploy/functions/runtimes/discovery/index.js +6 -6
  46. package/lib/deploy/functions/runtimes/discovery/parsing.js +1 -1
  47. package/lib/deploy/functions/runtimes/discovery/v1alpha1.js +17 -11
  48. package/lib/deploy/functions/runtimes/golang/index.js +2 -2
  49. package/lib/deploy/functions/runtimes/node/index.js +26 -0
  50. package/lib/deploy/functions/runtimes/node/parseRuntimeAndValidateSDK.js +2 -2
  51. package/lib/deploy/functions/runtimes/node/parseTriggers.js +40 -7
  52. package/lib/deploy/functions/runtimes/node/versioning.js +2 -2
  53. package/lib/deploy/functions/validate.js +58 -3
  54. package/lib/deploy/hosting/client.js +9 -0
  55. package/lib/deploy/hosting/convertConfig.js +6 -0
  56. package/lib/deploy/hosting/deploy.js +2 -2
  57. package/lib/deploy/hosting/hashcache.js +21 -19
  58. package/lib/deploy/hosting/index.js +5 -5
  59. package/lib/deploy/hosting/prepare.js +25 -25
  60. package/lib/deploy/hosting/release.js +21 -24
  61. package/lib/deploy/hosting/uploader.js +5 -5
  62. package/lib/deploy/remoteconfig/functions.js +2 -2
  63. package/lib/emulator/auth/cloudFunctions.js +1 -1
  64. package/lib/emulator/auth/operations.js +1 -1
  65. package/lib/emulator/commandUtils.js +5 -1
  66. package/lib/emulator/constants.js +3 -0
  67. package/lib/emulator/controller.js +48 -18
  68. package/lib/emulator/download.js +18 -1
  69. package/lib/emulator/downloadableEmulators.js +30 -13
  70. package/lib/emulator/emulatorLogger.js +19 -1
  71. package/lib/emulator/extensions/validation.js +35 -0
  72. package/lib/emulator/extensionsEmulator.js +140 -0
  73. package/lib/emulator/functionsEmulator.js +175 -86
  74. package/lib/emulator/functionsEmulatorRuntime.js +108 -83
  75. package/lib/emulator/functionsEmulatorShared.js +51 -1
  76. package/lib/emulator/functionsEmulatorShell.js +1 -2
  77. package/lib/emulator/functionsEmulatorUtils.js +4 -4
  78. package/lib/emulator/functionsRuntimeWorker.js +3 -3
  79. package/lib/emulator/hub.js +4 -3
  80. package/lib/emulator/loggingEmulator.js +1 -1
  81. package/lib/emulator/pubsubEmulator.js +1 -1
  82. package/lib/emulator/registry.js +10 -2
  83. package/lib/emulator/storage/apis/firebase.js +31 -26
  84. package/lib/emulator/storage/apis/gcloud.js +7 -12
  85. package/lib/emulator/storage/files.js +36 -34
  86. package/lib/emulator/storage/index.js +2 -2
  87. package/lib/emulator/storage/metadata.js +2 -2
  88. package/lib/emulator/storage/rules/runtime.js +8 -7
  89. package/lib/emulator/types.js +3 -0
  90. package/lib/ensureApiEnabled.js +5 -1
  91. package/lib/error.js +1 -1
  92. package/lib/extensions/askUserForParam.js +2 -2
  93. package/lib/extensions/changelog.js +3 -1
  94. package/lib/extensions/checkProjectBilling.js +1 -1
  95. package/lib/extensions/diagnose.js +56 -0
  96. package/lib/extensions/displayExtensionInfo.js +1 -1
  97. package/lib/extensions/emulator/optionsHelper.js +24 -8
  98. package/lib/extensions/emulator/specHelper.js +10 -23
  99. package/lib/extensions/export.js +1 -51
  100. package/lib/extensions/extensionsApi.js +1 -1
  101. package/lib/extensions/extensionsHelper.js +23 -10
  102. package/lib/extensions/listExtensions.js +2 -0
  103. package/lib/extensions/manifest.js +48 -0
  104. package/lib/extensions/metricsUtils.js +4 -4
  105. package/lib/extensions/paramHelper.js +4 -4
  106. package/lib/extensions/refs.js +1 -1
  107. package/lib/extensions/secretsUtils.js +4 -4
  108. package/lib/functional.js +1 -1
  109. package/lib/functions/env.js +7 -8
  110. package/lib/functions/secrets.js +112 -0
  111. package/lib/gcp/cloudfunctions.js +24 -5
  112. package/lib/gcp/cloudfunctionsv2.js +18 -5
  113. package/lib/gcp/cloudtasks.js +1 -1
  114. package/lib/gcp/docker.js +2 -2
  115. package/lib/gcp/run.js +2 -2
  116. package/lib/gcp/secretManager.js +128 -46
  117. package/lib/gcp/storage.js +1 -0
  118. package/lib/hosting/api.js +1 -1
  119. package/lib/hosting/functionsProxy.js +15 -5
  120. package/lib/hosting/proxy.js +2 -2
  121. package/lib/init/features/account.js +1 -1
  122. package/lib/management/database.js +1 -1
  123. package/lib/previews.js +1 -1
  124. package/lib/responseToError.js +16 -7
  125. package/lib/serve/functions.js +2 -2
  126. package/lib/serve/hosting.js +1 -1
  127. package/lib/utils.js +7 -2
  128. package/npm-shrinkwrap.json +904 -412
  129. package/package.json +3 -3
  130. package/schema/firebase-config.json +32 -0
  131. package/templates/init/functions/javascript/package.lint.json +3 -3
  132. package/templates/init/functions/javascript/package.nolint.json +2 -2
  133. package/templates/init/functions/typescript/package.lint.json +7 -7
  134. package/templates/init/functions/typescript/package.nolint.json +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "firebase-tools",
3
- "version": "10.1.5",
3
+ "version": "10.2.2",
4
4
  "description": "Command-Line Interface for Firebase",
5
5
  "main": "./lib/index.js",
6
6
  "bin": {
@@ -119,7 +119,7 @@
119
119
  "mime": "^2.5.2",
120
120
  "minimatch": "^3.0.4",
121
121
  "morgan": "^1.10.0",
122
- "node-fetch": "^2.6.1",
122
+ "node-fetch": "^2.6.7",
123
123
  "open": "^6.3.0",
124
124
  "ora": "^5.4.1",
125
125
  "portfinder": "^1.0.23",
@@ -172,7 +172,7 @@
172
172
  "@types/mocha": "^9.0.0",
173
173
  "@types/multer": "^1.4.3",
174
174
  "@types/node": "^12.20.39",
175
- "@types/node-fetch": "^2.5.7",
175
+ "@types/node-fetch": "^2.5.12",
176
176
  "@types/progress": "^2.0.3",
177
177
  "@types/puppeteer": "^5.4.2",
178
178
  "@types/request": "^2.48.1",
@@ -174,6 +174,11 @@
174
174
  },
175
175
  "type": "object"
176
176
  },
177
+ "extensions": {
178
+ "properties": {
179
+ },
180
+ "type": "object"
181
+ },
177
182
  "firestore": {
178
183
  "additionalProperties": false,
179
184
  "properties": {
@@ -622,6 +627,9 @@
622
627
  },
623
628
  "glob": {
624
629
  "type": "string"
630
+ },
631
+ "region": {
632
+ "type": "string"
625
633
  }
626
634
  },
627
635
  "required": [
@@ -696,6 +704,9 @@
696
704
  "function": {
697
705
  "type": "string"
698
706
  },
707
+ "region": {
708
+ "type": "string"
709
+ },
699
710
  "source": {
700
711
  "type": "string"
701
712
  }
@@ -774,6 +785,9 @@
774
785
  },
775
786
  "regex": {
776
787
  "type": "string"
788
+ },
789
+ "region": {
790
+ "type": "string"
777
791
  }
778
792
  },
779
793
  "required": [
@@ -1095,6 +1109,9 @@
1095
1109
  },
1096
1110
  "glob": {
1097
1111
  "type": "string"
1112
+ },
1113
+ "region": {
1114
+ "type": "string"
1098
1115
  }
1099
1116
  },
1100
1117
  "required": [
@@ -1169,6 +1186,9 @@
1169
1186
  "function": {
1170
1187
  "type": "string"
1171
1188
  },
1189
+ "region": {
1190
+ "type": "string"
1191
+ },
1172
1192
  "source": {
1173
1193
  "type": "string"
1174
1194
  }
@@ -1247,6 +1267,9 @@
1247
1267
  },
1248
1268
  "regex": {
1249
1269
  "type": "string"
1270
+ },
1271
+ "region": {
1272
+ "type": "string"
1250
1273
  }
1251
1274
  },
1252
1275
  "required": [
@@ -1568,6 +1591,9 @@
1568
1591
  },
1569
1592
  "glob": {
1570
1593
  "type": "string"
1594
+ },
1595
+ "region": {
1596
+ "type": "string"
1571
1597
  }
1572
1598
  },
1573
1599
  "required": [
@@ -1642,6 +1668,9 @@
1642
1668
  "function": {
1643
1669
  "type": "string"
1644
1670
  },
1671
+ "region": {
1672
+ "type": "string"
1673
+ },
1645
1674
  "source": {
1646
1675
  "type": "string"
1647
1676
  }
@@ -1720,6 +1749,9 @@
1720
1749
  },
1721
1750
  "regex": {
1722
1751
  "type": "string"
1752
+ },
1753
+ "region": {
1754
+ "type": "string"
1723
1755
  }
1724
1756
  },
1725
1757
  "required": [
@@ -14,11 +14,11 @@
14
14
  },
15
15
  "main": "index.js",
16
16
  "dependencies": {
17
- "firebase-admin": "^9.8.0",
18
- "firebase-functions": "^3.14.1"
17
+ "firebase-admin": "^10.0.2",
18
+ "firebase-functions": "^3.18.0"
19
19
  },
20
20
  "devDependencies": {
21
- "eslint": "^7.6.0",
21
+ "eslint": "^8.9.0",
22
22
  "eslint-config-google": "^0.14.0",
23
23
  "firebase-functions-test": "^0.2.0"
24
24
  },
@@ -13,8 +13,8 @@
13
13
  },
14
14
  "main": "index.js",
15
15
  "dependencies": {
16
- "firebase-admin": "^9.8.0",
17
- "firebase-functions": "^3.14.1"
16
+ "firebase-admin": "^10.0.2",
17
+ "firebase-functions": "^3.18.0"
18
18
  },
19
19
  "devDependencies": {
20
20
  "firebase-functions-test": "^0.2.0"
@@ -14,17 +14,17 @@
14
14
  },
15
15
  "main": "lib/index.js",
16
16
  "dependencies": {
17
- "firebase-admin": "^9.8.0",
18
- "firebase-functions": "^3.14.1"
17
+ "firebase-admin": "^10.0.2",
18
+ "firebase-functions": "^3.18.0"
19
19
  },
20
20
  "devDependencies": {
21
- "@typescript-eslint/eslint-plugin": "^3.9.1",
22
- "@typescript-eslint/parser": "^3.8.0",
23
- "eslint": "^7.6.0",
21
+ "@typescript-eslint/eslint-plugin": "^5.12.0",
22
+ "@typescript-eslint/parser": "^5.12.0",
23
+ "eslint": "^8.9.0",
24
24
  "eslint-config-google": "^0.14.0",
25
- "eslint-plugin-import": "^2.22.0",
25
+ "eslint-plugin-import": "^2.25.4",
26
26
  "firebase-functions-test": "^0.2.0",
27
- "typescript": "^3.8.0"
27
+ "typescript": "^4.5.4"
28
28
  },
29
29
  "private": true
30
30
  }
@@ -13,11 +13,11 @@
13
13
  },
14
14
  "main": "lib/index.js",
15
15
  "dependencies": {
16
- "firebase-admin": "^9.8.0",
17
- "firebase-functions": "^3.14.1"
16
+ "firebase-admin": "^10.0.2",
17
+ "firebase-functions": "^3.18.0"
18
18
  },
19
19
  "devDependencies": {
20
- "typescript": "^3.8.0",
20
+ "typescript": "^4.5.4",
21
21
  "firebase-functions-test": "^0.2.0"
22
22
  },
23
23
  "private": true