firebase-tools 15.14.0 → 15.15.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.
- package/lib/api.js +2 -6
- package/lib/command.js +23 -29
- package/lib/commands/dataconnect-compile.js +6 -6
- package/lib/commands/dataconnect-execute.js +1 -1
- package/lib/commands/dataconnect-sdk-generate.js +3 -3
- package/lib/commands/dataconnect-services-list.js +1 -1
- package/lib/commands/dataconnect-sql-diff.js +3 -3
- package/lib/commands/dataconnect-sql-grant.js +2 -2
- package/lib/commands/dataconnect-sql-migrate.js +4 -4
- package/lib/commands/dataconnect-sql-setup.js +2 -2
- package/lib/commands/dataconnect-sql-shell.js +4 -4
- package/lib/commands/ext-dev-usage.js +0 -2
- package/lib/commands/init.js +3 -3
- package/lib/commands/open.js +1 -1
- package/lib/commands/setup-emulators-dataconnect.js +1 -1
- package/lib/dataconnect/freeTrial.js +2 -2
- package/lib/dataconnect/load.js +2 -2
- package/lib/dataconnect/provisionCloudSql.js +3 -3
- package/lib/dataconnect/schemaMigration.js +11 -11
- package/lib/dataconnect/webhook.js +1 -1
- package/lib/deploy/functions/backend.js +1 -1
- package/lib/deploy/functions/build.js +3 -3
- package/lib/deploy/functions/deploy.js +5 -2
- package/lib/deploy/functions/prepare.js +53 -0
- package/lib/deploy/functions/release/fabricator.js +59 -46
- package/lib/deploy/functions/release/planner.js +1 -1
- package/lib/deploy/functions/runtimes/dart/index.js +3 -1
- package/lib/deploy/functions/runtimes/dart/triggerSupport.js +123 -0
- package/lib/deploy/functions/runtimes/index.js +1 -4
- package/lib/deploy/functions/services/ailogic.js +12 -1
- package/lib/deploy/functions/services/dataconnect.js +1 -1
- package/lib/emulator/constants.js +1 -1
- package/lib/emulator/controller.js +2 -2
- package/lib/emulator/dataconnectEmulator.js +14 -14
- package/lib/emulator/dataconnectToolkitController.js +2 -2
- package/lib/emulator/downloadableEmulatorInfo.json +31 -31
- package/lib/emulator/extensionsEmulator.js +1 -2
- package/lib/emulator/functionsEmulator.js +15 -0
- package/lib/emulator/hub.js +3 -3
- package/lib/emulator/hubExport.js +2 -2
- package/lib/emulator/initEmulators.js +1 -1
- package/lib/experiments.js +10 -5
- package/lib/gcp/ailogic.js +6 -3
- package/lib/gcp/runv2.js +9 -2
- package/lib/init/features/dataconnect/index.js +7 -7
- package/lib/init/features/dataconnect/resolver.js +2 -2
- package/lib/init/features/dataconnect/sdk.js +8 -8
- package/lib/init/features/functions/index.js +1 -1
- package/lib/mcp/index.js +0 -1
- package/lib/mcp/prompts/dataconnect/schema.js +6 -6
- package/lib/mcp/resources/guides/init_data_connect.js +2 -2
- package/lib/mcp/resources/guides/init_firestore.js +1 -1
- package/lib/mcp/tools/core/init.js +9 -9
- package/lib/mcp/tools/dataconnect/compile.js +5 -5
- package/lib/mcp/tools/dataconnect/execute.js +6 -6
- package/lib/mcp/tools/dataconnect/list_services.js +7 -7
- package/lib/mcp/util/dataconnect/content.js +19 -19
- package/lib/tsconfig.compile.tsbuildinfo +1 -1
- package/lib/tsconfig.publish.tsbuildinfo +1 -1
- package/package.json +16 -4
- package/templates/init/functions/dart/pubspec.yaml +6 -7
- package/templates/init/functions/dart/server.dart +3 -1
- package/lib/shortenUrl.js +0 -28
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "firebase-tools",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.15.0",
|
|
4
4
|
"description": "Command-Line Interface for Firebase",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"mcpName": "io.github.firebase/firebase-mcp",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"leven": "^3.1.0",
|
|
104
104
|
"libsodium-wrappers": "^0.7.10",
|
|
105
105
|
"lodash": "^4.18.0",
|
|
106
|
-
"lsofi": "
|
|
106
|
+
"lsofi": "^2.0.0",
|
|
107
107
|
"marked": "^13.0.2",
|
|
108
108
|
"marked-terminal": "^7.0.0",
|
|
109
109
|
"mime": "^2.5.2",
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
"winston": "^3.0.0",
|
|
136
136
|
"winston-transport": "^4.4.0",
|
|
137
137
|
"ws": "^7.5.10",
|
|
138
|
-
"yaml": "^2.
|
|
138
|
+
"yaml": "^2.8.3",
|
|
139
139
|
"zod": "^3.24.3",
|
|
140
140
|
"zod-to-json-schema": "^3.24.5"
|
|
141
141
|
},
|
|
@@ -148,6 +148,18 @@
|
|
|
148
148
|
"whatwg-url": "^14.0.0"
|
|
149
149
|
},
|
|
150
150
|
"hono": "^4.11.4",
|
|
151
|
-
"@tootallnate/once": "^3.0.1"
|
|
151
|
+
"@tootallnate/once": "^3.0.1",
|
|
152
|
+
"protobufjs": "^7.4.0",
|
|
153
|
+
"serialize-javascript": "^7.0.5",
|
|
154
|
+
"diff": "^8.0.4",
|
|
155
|
+
"underscore": "^1.13.8",
|
|
156
|
+
"brace-expansion": "^1.1.14",
|
|
157
|
+
"@grpc/grpc-js": "^1.14.3",
|
|
158
|
+
"rollup": "^3.30.0",
|
|
159
|
+
"picomatch": "^2.3.2",
|
|
160
|
+
"qs": "^6.14.2",
|
|
161
|
+
"tar": "^7.5.11",
|
|
162
|
+
"basic-ftp": "^5.2.2",
|
|
163
|
+
"@babel/traverse": "^7.23.2"
|
|
152
164
|
}
|
|
153
165
|
}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
name:
|
|
2
|
-
description: An app using
|
|
3
|
-
version:
|
|
1
|
+
name: my_function
|
|
2
|
+
description: An app using Dart with Cloud Functions for Firebase
|
|
3
|
+
version: 0.0.1
|
|
4
|
+
publish_to: none
|
|
4
5
|
|
|
5
6
|
environment:
|
|
6
|
-
sdk: ^3.
|
|
7
|
+
sdk: ^3.9.0
|
|
7
8
|
|
|
8
9
|
dependencies:
|
|
9
|
-
|
|
10
|
-
firebase_functions:
|
|
11
|
-
path: ../
|
|
10
|
+
firebase_functions: ^0.5.0
|
|
12
11
|
|
|
13
12
|
dev_dependencies:
|
|
14
13
|
build_runner: ^2.4.0
|
|
@@ -2,11 +2,13 @@ import 'package:firebase_functions/firebase_functions.dart';
|
|
|
2
2
|
|
|
3
3
|
void main(List<String> args) {
|
|
4
4
|
fireUp(args, (firebase) {
|
|
5
|
-
//
|
|
5
|
+
// https://firebase.google.com/docs/functions/http-events
|
|
6
6
|
firebase.https.onRequest(
|
|
7
7
|
name: 'helloWorld',
|
|
8
8
|
options: const HttpsOptions(
|
|
9
9
|
cors: Cors(['*']),
|
|
10
|
+
// Set maxInstances to control costs during unexpected traffic spikes.
|
|
11
|
+
// https://firebase.google.com/docs/functions/manage-functions#min-max-instances
|
|
10
12
|
maxInstances: Instances(10),
|
|
11
13
|
),
|
|
12
14
|
(request) async => Response(200, body: 'Hello from Dart Functions!'),
|
package/lib/shortenUrl.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.shortenUrl = shortenUrl;
|
|
4
|
-
const logger_1 = require("./logger");
|
|
5
|
-
const apiv2_1 = require("./apiv2");
|
|
6
|
-
const api_1 = require("./api");
|
|
7
|
-
const DYNAMIC_LINKS_PREFIX = "https://firebase.tools/l";
|
|
8
|
-
const apiClient = new apiv2_1.Client({
|
|
9
|
-
urlPrefix: (0, api_1.dynamicLinksOrigin)(),
|
|
10
|
-
auth: false,
|
|
11
|
-
apiVersion: "v1",
|
|
12
|
-
});
|
|
13
|
-
async function shortenUrl(url, guessable = false) {
|
|
14
|
-
try {
|
|
15
|
-
const response = await apiClient.post(`shortLinks?key=${(0, api_1.dynamicLinksKey)()}`, {
|
|
16
|
-
dynamicLinkInfo: {
|
|
17
|
-
link: url,
|
|
18
|
-
domainUriPrefix: DYNAMIC_LINKS_PREFIX,
|
|
19
|
-
},
|
|
20
|
-
suffix: { option: guessable ? "SHORT" : "UNGUESSABLE" },
|
|
21
|
-
});
|
|
22
|
-
return response.body.shortLink;
|
|
23
|
-
}
|
|
24
|
-
catch (e) {
|
|
25
|
-
logger_1.logger.debug("URL shortening failed, falling back to full URL. Error:", e.original || e);
|
|
26
|
-
return url;
|
|
27
|
-
}
|
|
28
|
-
}
|