firebase-tools-with-isolate 15.13.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/README.md +17 -17
- package/lib/api.js +2 -6
- package/lib/apphosting/constants.js +1 -1
- package/lib/command.js +7 -0
- 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 +59 -1
- package/lib/deploy/functions/prepareFunctionsUpload.js +25 -9
- package/lib/deploy/functions/release/fabricator.js +59 -46
- package/lib/deploy/functions/release/index.js +5 -0
- 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/runtimes/supported/index.js +0 -4
- package/lib/deploy/functions/services/ailogic.js +17 -5
- package/lib/deploy/functions/services/dataconnect.js +1 -1
- package/lib/deploy/functions/services/index.js +2 -2
- package/lib/deploy/functions/validate.js +7 -1
- package/lib/emulator/constants.js +1 -1
- package/lib/emulator/controller.js +13 -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/downloadableEmulators.js +1 -0
- package/lib/emulator/extensionsEmulator.js +1 -2
- package/lib/emulator/functionsEmulator.js +20 -6
- package/lib/emulator/functionsRuntimeWorker.js +1 -1
- 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 +11 -6
- package/lib/frameworks/next/constants.js +2 -1
- package/lib/frameworks/next/index.js +3 -2
- package/lib/frameworks/next/utils.js +50 -12
- package/lib/functions/events/v2.js +10 -1
- package/lib/gcp/ailogic.js +13 -9
- 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/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.publish.tsbuildinfo +1 -1
- package/package.json +19 -6
- package/schema/firebase-config.json +3 -0
- 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-with-isolate",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.15.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",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"lint:changed-files": "ts-node ./scripts/lint-changed-files.ts",
|
|
23
23
|
"lint:other": "prettier --check '**/*.{md,yaml,yml}'",
|
|
24
24
|
"lint:quiet": "npm run lint:ts -- --quiet && npm run lint:other",
|
|
25
|
-
"lint:ts": "eslint --config .eslintrc.js --ext .ts,.js .",
|
|
25
|
+
"lint:ts": "eslint --cache --config .eslintrc.js --ext .ts,.js .",
|
|
26
26
|
"mocha:fast": "mocha 'src/**/*.spec.{ts,js}'",
|
|
27
27
|
"mocha": "nyc --reporter=html mocha 'src/**/*.spec.{ts,js}'",
|
|
28
28
|
"prepare": "npm run clean && npm run build:publish",
|
|
@@ -128,6 +128,7 @@
|
|
|
128
128
|
"cross-spawn": "^7.0.5",
|
|
129
129
|
"csv-parse": "^5.0.4",
|
|
130
130
|
"deep-equal-in-any-order": "^2.0.6",
|
|
131
|
+
"detect-monorepo": "^1.1.0",
|
|
131
132
|
"exegesis": "^4.2.0",
|
|
132
133
|
"exegesis-express": "^4.0.0",
|
|
133
134
|
"express": "^4.16.4",
|
|
@@ -139,13 +140,13 @@
|
|
|
139
140
|
"glob": "^10.5.0",
|
|
140
141
|
"google-auth-library": "^9.11.0",
|
|
141
142
|
"ignore": "^7.0.4",
|
|
142
|
-
"isolate-package": "
|
|
143
|
+
"isolate-package": "1.31.0",
|
|
143
144
|
"js-yaml": "^3.14.2",
|
|
144
145
|
"jsonwebtoken": "^9.0.2",
|
|
145
146
|
"leven": "^3.1.0",
|
|
146
147
|
"libsodium-wrappers": "^0.7.10",
|
|
147
148
|
"lodash": "^4.18.0",
|
|
148
|
-
"lsofi": "
|
|
149
|
+
"lsofi": "^2.0.0",
|
|
149
150
|
"marked": "^13.0.2",
|
|
150
151
|
"marked-terminal": "^7.0.0",
|
|
151
152
|
"mime": "^2.5.2",
|
|
@@ -177,7 +178,7 @@
|
|
|
177
178
|
"winston": "^3.0.0",
|
|
178
179
|
"winston-transport": "^4.4.0",
|
|
179
180
|
"ws": "^7.5.10",
|
|
180
|
-
"yaml": "^2.
|
|
181
|
+
"yaml": "^2.8.3",
|
|
181
182
|
"zod": "^3.24.3",
|
|
182
183
|
"zod-to-json-schema": "^3.24.5"
|
|
183
184
|
},
|
|
@@ -277,6 +278,18 @@
|
|
|
277
278
|
"whatwg-url": "^14.0.0"
|
|
278
279
|
},
|
|
279
280
|
"hono": "^4.11.4",
|
|
280
|
-
"@tootallnate/once": "^3.0.1"
|
|
281
|
+
"@tootallnate/once": "^3.0.1",
|
|
282
|
+
"protobufjs": "^7.4.0",
|
|
283
|
+
"serialize-javascript": "^7.0.5",
|
|
284
|
+
"diff": "^8.0.4",
|
|
285
|
+
"underscore": "^1.13.8",
|
|
286
|
+
"brace-expansion": "^1.1.14",
|
|
287
|
+
"@grpc/grpc-js": "^1.14.3",
|
|
288
|
+
"rollup": "^3.30.0",
|
|
289
|
+
"picomatch": "^2.3.2",
|
|
290
|
+
"qs": "^6.14.2",
|
|
291
|
+
"tar": "^7.5.11",
|
|
292
|
+
"basic-ftp": "^5.2.2",
|
|
293
|
+
"@babel/traverse": "^7.23.2"
|
|
281
294
|
}
|
|
282
295
|
}
|
|
@@ -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
|
-
}
|