firebase-tools 13.30.0 → 13.31.1

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 (51) hide show
  1. package/lib/apphosting/secrets/dialogs.js +2 -2
  2. package/lib/commands/appdistribution-groups-list.js +1 -1
  3. package/lib/commands/appdistribution-testers-list.js +4 -4
  4. package/lib/commands/apphosting-backends-list.js +1 -1
  5. package/lib/commands/apphosting-secrets-describe.js +1 -1
  6. package/lib/commands/apps-android-sha-list.js +1 -1
  7. package/lib/commands/apps-create.js +1 -104
  8. package/lib/commands/apps-init.js +94 -0
  9. package/lib/commands/apps-list.js +1 -1
  10. package/lib/commands/apps-sdkconfig.js +3 -3
  11. package/lib/commands/database-instances-list.js +1 -1
  12. package/lib/commands/dataconnect-services-list.js +1 -1
  13. package/lib/commands/emulators-start.js +1 -1
  14. package/lib/commands/experiments-list.js +1 -1
  15. package/lib/commands/ext-dev-list.js +1 -1
  16. package/lib/commands/ext-dev-usage.js +1 -1
  17. package/lib/commands/functions-list.js +1 -1
  18. package/lib/commands/hosting-channel-list.js +1 -1
  19. package/lib/commands/hosting-sites-get.js +1 -1
  20. package/lib/commands/hosting-sites-list.js +1 -1
  21. package/lib/commands/index.js +1 -0
  22. package/lib/commands/projects-list.js +1 -1
  23. package/lib/commands/remoteconfig-get.js +1 -1
  24. package/lib/commands/remoteconfig-versions-list.js +1 -1
  25. package/lib/crashlytics/buildToolsJarHelper.js +1 -1
  26. package/lib/dataconnect/build.js +6 -0
  27. package/lib/dataconnect/client.js +1 -1
  28. package/lib/dataconnect/dataplaneClient.js +1 -1
  29. package/lib/dataconnect/fileUtils.js +25 -2
  30. package/lib/dataconnect/graphqlError.js +5 -3
  31. package/lib/emulator/commandUtils.js +1 -1
  32. package/lib/emulator/dataconnectEmulator.js +4 -1
  33. package/lib/emulator/dataconnectToolkitController.js +5 -0
  34. package/lib/emulator/downloadableEmulators.js +9 -9
  35. package/lib/emulator/extensionsEmulator.js +2 -2
  36. package/lib/experiments.js +6 -0
  37. package/lib/extensions/change-log.js +1 -25
  38. package/lib/extensions/listExtensions.js +1 -1
  39. package/lib/firestore/pretty-print.js +1 -1
  40. package/lib/frameworks/angular/index.js +11 -6
  41. package/lib/functions/secrets.js +1 -1
  42. package/lib/gcp/cloudsql/interactive.js +1 -1
  43. package/lib/init/features/dataconnect/sdk.js +32 -3
  44. package/lib/init/features/genkit/index.js +9 -7
  45. package/lib/management/apps.js +314 -7
  46. package/lib/profileReport.js +1 -1
  47. package/lib/prompt.js +10 -2
  48. package/package.json +14 -5
  49. package/templates/genkit/firebase.0.9.0.template +1 -1
  50. package/templates/genkit/firebase.1.0.0.template +1 -1
  51. package/templates/setup/web.js +0 -5
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ProfileReport = exports.extractReadableIndex = exports.formatBytes = exports.formatNumber = exports.pathString = exports.extractJSON = void 0;
4
4
  const clc = require("colorette");
5
- const Table = require("cli-table");
5
+ const Table = require("cli-table3");
6
6
  const fs = require("fs");
7
7
  const _ = require("lodash");
8
8
  const readline = require("readline");
package/lib/prompt.js CHANGED
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.promptForDirectory = exports.confirm = exports.promptOnce = exports.prompt = void 0;
4
4
  const inquirer = require("inquirer");
5
+ const path = require("path");
5
6
  const fsutils_1 = require("./fsutils");
6
7
  const error_1 = require("./error");
7
8
  const logger_1 = require("./logger");
@@ -54,9 +55,16 @@ exports.confirm = confirm;
54
55
  async function promptForDirectory(args) {
55
56
  let dir = "";
56
57
  while (!dir) {
57
- const target = args.config.path(await promptOnce({
58
+ const promptPath = await promptOnce({
58
59
  message: args.message,
59
- }));
60
+ });
61
+ let target;
62
+ if (args.relativeTo) {
63
+ target = path.resolve(args.relativeTo, promptPath);
64
+ }
65
+ else {
66
+ target = args.config.path(promptPath);
67
+ }
60
68
  if ((0, fsutils_1.fileExistsSync)(target)) {
61
69
  logger_1.logger.error(`Expected a directory, but ${target} is a file. Please provide a path to a directory.`);
62
70
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "firebase-tools",
3
- "version": "13.30.0",
3
+ "version": "13.31.1",
4
4
  "description": "Command-Line Interface for Firebase",
5
5
  "main": "./lib/index.js",
6
6
  "bin": {
@@ -29,7 +29,7 @@
29
29
  ],
30
30
  "preferGlobal": true,
31
31
  "engines": {
32
- "node": ">=18.0.0 || >=20.0.0"
32
+ "node": ">=18.0.0 || >=20.0.0 || >=22.0.0"
33
33
  },
34
34
  "author": "Firebase (https://firebase.google.com/)",
35
35
  "license": "MIT",
@@ -71,7 +71,7 @@
71
71
  "body-parser": "^1.19.0",
72
72
  "chokidar": "^3.6.0",
73
73
  "cjson": "^0.3.1",
74
- "cli-table": "0.3.11",
74
+ "cli-table3": "0.6.5",
75
75
  "colorette": "^2.0.19",
76
76
  "commander": "^5.1.0",
77
77
  "configstore": "^5.0.1",
@@ -84,7 +84,7 @@
84
84
  "exegesis-express": "^4.0.0",
85
85
  "express": "^4.16.4",
86
86
  "filesize": "^6.1.0",
87
- "form-data": "^4.0.0",
87
+ "form-data": "^4.0.1",
88
88
  "fs-extra": "^10.1.0",
89
89
  "fuzzy": "^0.1.3",
90
90
  "gaxios": "^6.7.0",
@@ -116,7 +116,7 @@
116
116
  "sql-formatter": "^15.3.0",
117
117
  "stream-chain": "^2.2.4",
118
118
  "stream-json": "^1.7.3",
119
- "superstatic": "^9.1.0",
119
+ "superstatic": "^9.2.0",
120
120
  "tar": "^6.1.11",
121
121
  "tcp-port-used": "^1.0.2",
122
122
  "tmp": "^0.2.3",
@@ -128,5 +128,14 @@
128
128
  "winston-transport": "^4.4.0",
129
129
  "ws": "^7.5.10",
130
130
  "yaml": "^2.4.1"
131
+ },
132
+ "overrides": {
133
+ "@angular-devkit/core": {
134
+ "ajv-formats": "3.0.1",
135
+ "ajv": "^8.17.1"
136
+ },
137
+ "node-fetch": {
138
+ "whatwg-url": "^14.0.0"
139
+ }
131
140
  }
132
141
  }
@@ -19,7 +19,7 @@ export const menuSuggestionFlow = onFlow(
19
19
  ai,
20
20
  {
21
21
  name: "menuSuggestionFlow",
22
- inputSchema: z.string(),
22
+ inputSchema: z.string().describe("A restaurant theme").default("seafood"),
23
23
  outputSchema: z.string(),
24
24
  authPolicy: firebaseAuth((user) => {
25
25
  // By default, the firebaseAuth policy requires that all requests have an
@@ -24,7 +24,7 @@ $GENKIT_CONFIG_PLUGINS
24
24
  // Define a simple flow that prompts an LLM to generate menu suggestions.
25
25
  const menuSuggestionFlow = ai.defineFlow({
26
26
  name: "menuSuggestionFlow",
27
- inputSchema: z.string(),
27
+ inputSchema: z.string().describe("A restaurant theme").default("seafood"),
28
28
  outputSchema: z.string(),
29
29
  streamSchema: z.string(),
30
30
  }, async (subject, { sendChunk }) => {
@@ -1,5 +0,0 @@
1
- // Copy and paste this into your JavaScript code to initialize the Firebase SDK.
2
- // You will also need to load the Firebase SDK.
3
- // See https://firebase.google.com/docs/web/setup for more details.
4
-
5
- firebase.initializeApp({/*--CONFIG--*/});