firebase-tools 15.18.0 → 15.19.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.
- package/lib/accountExporter.js +13 -6
- package/lib/accountImporter.js +18 -1
- package/lib/agentSkills.js +2 -1
- package/lib/api.js +1 -3
- package/lib/apphosting/constants.js +2 -1
- package/lib/apphosting/localbuilds.js +23 -66
- package/lib/apphosting/universalMakerInfo.json +4 -4
- package/lib/archiveFile.js +30 -0
- package/lib/command.js +7 -0
- package/lib/commands/crashlytics-sourcemap-upload.js +61 -0
- package/lib/commands/dataconnect-sql-shell.js +21 -3
- package/lib/commands/index.js +4 -0
- package/lib/crashlytics/sourcemap.js +270 -0
- package/lib/dataconnect/ensureApis.js +0 -13
- package/lib/deploy/apphosting/deploy.js +39 -23
- package/lib/deploy/apphosting/prepare.js +28 -6
- package/lib/deploy/apphosting/util.js +34 -21
- package/lib/deploy/functions/prepare.js +8 -10
- package/lib/deploy/functions/services/ailogic.js +4 -6
- package/lib/emulator/downloadableEmulatorInfo.json +31 -31
- package/lib/experiments.js +8 -3
- package/lib/firebase_studio/migrate.js +8 -0
- package/lib/gcp/cloudsql/connect.js +49 -25
- package/lib/gemini/fdcExperience.js +171 -26
- package/lib/init/features/dataconnect/index.js +49 -15
- package/lib/tsconfig.compile.tsbuildinfo +1 -1
- package/lib/tsconfig.publish.tsbuildinfo +1 -1
- package/lib/utils.js +48 -0
- package/package.json +19 -4
- package/templates/init/functions/dart/_gitignore +1 -9
- package/lib/dataconnect/cloudAICompanionTypes.js +0 -2
package/lib/utils.js
CHANGED
|
@@ -62,6 +62,7 @@ exports.newUniqueId = newUniqueId;
|
|
|
62
62
|
exports.commandExistsSync = commandExistsSync;
|
|
63
63
|
exports.resolveWithin = resolveWithin;
|
|
64
64
|
exports.toLowerSnakeCase = toLowerSnakeCase;
|
|
65
|
+
exports.murmurHashV3 = murmurHashV3;
|
|
65
66
|
const fs = require("fs-extra");
|
|
66
67
|
const tty = require("tty");
|
|
67
68
|
const path = require("node:path");
|
|
@@ -696,3 +697,50 @@ function toLowerSnakeCase(s) {
|
|
|
696
697
|
.replace(/[-\s]+/g, "_")
|
|
697
698
|
.toLowerCase();
|
|
698
699
|
}
|
|
700
|
+
function murmurHashV3(key, seed = 0) {
|
|
701
|
+
if (typeof key === "string") {
|
|
702
|
+
key = new TextEncoder().encode(key);
|
|
703
|
+
}
|
|
704
|
+
const remainder = key.length & 3;
|
|
705
|
+
const bytes = key.length - remainder;
|
|
706
|
+
const c1 = 3432918353;
|
|
707
|
+
const c2 = 461845907;
|
|
708
|
+
let h1 = seed;
|
|
709
|
+
let i = 0;
|
|
710
|
+
let k1 = 0;
|
|
711
|
+
while (i < bytes) {
|
|
712
|
+
k1 =
|
|
713
|
+
(key[i] & 255) |
|
|
714
|
+
((key[++i] & 255) << 8) |
|
|
715
|
+
((key[++i] & 255) << 16) |
|
|
716
|
+
((key[++i] & 255) << 24);
|
|
717
|
+
++i;
|
|
718
|
+
k1 = ((k1 & 65535) * c1 + ((((k1 >>> 16) * c1) & 65535) << 16)) & 4294967295;
|
|
719
|
+
k1 = (k1 << 15) | (k1 >>> 17);
|
|
720
|
+
k1 = ((k1 & 65535) * c2 + ((((k1 >>> 16) * c2) & 65535) << 16)) & 4294967295;
|
|
721
|
+
h1 ^= k1;
|
|
722
|
+
h1 = (h1 << 13) | (h1 >>> 19);
|
|
723
|
+
const h1b = ((h1 & 65535) * 5 + ((((h1 >>> 16) * 5) & 65535) << 16)) & 4294967295;
|
|
724
|
+
h1 = (h1b & 65535) + 27492 + ((((h1b >>> 16) + 58964) & 65535) << 16);
|
|
725
|
+
}
|
|
726
|
+
k1 = 0;
|
|
727
|
+
switch (remainder) {
|
|
728
|
+
case 3:
|
|
729
|
+
k1 ^= (key[i + 2] & 255) << 16;
|
|
730
|
+
case 2:
|
|
731
|
+
k1 ^= (key[i + 1] & 255) << 8;
|
|
732
|
+
case 1:
|
|
733
|
+
k1 ^= key[i] & 255;
|
|
734
|
+
k1 = ((k1 & 65535) * c1 + ((((k1 >>> 16) * c1) & 65535) << 16)) & 4294967295;
|
|
735
|
+
k1 = (k1 << 15) | (k1 >>> 17);
|
|
736
|
+
k1 = ((k1 & 65535) * c2 + ((((k1 >>> 16) * c2) & 65535) << 16)) & 4294967295;
|
|
737
|
+
h1 ^= k1;
|
|
738
|
+
}
|
|
739
|
+
h1 ^= key.length;
|
|
740
|
+
h1 ^= h1 >>> 16;
|
|
741
|
+
h1 = ((h1 & 65535) * 2246822507 + ((((h1 >>> 16) * 2246822507) & 65535) << 16)) & 4294967295;
|
|
742
|
+
h1 ^= h1 >>> 13;
|
|
743
|
+
h1 = ((h1 & 65535) * 3266489909 + ((((h1 >>> 16) * 3266489909) & 65535) << 16)) & 4294967295;
|
|
744
|
+
h1 ^= h1 >>> 16;
|
|
745
|
+
return h1 >>> 0;
|
|
746
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "firebase-tools",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.19.1",
|
|
4
4
|
"description": "Command-Line Interface for Firebase",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"mcpName": "io.github.firebase/firebase-mcp",
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
"triple-beam": "^1.3.0",
|
|
132
132
|
"universal-analytics": "^0.5.3",
|
|
133
133
|
"update-notifier-cjs": "^5.1.6",
|
|
134
|
-
"uuid": "^
|
|
134
|
+
"uuid": "^11.1.1",
|
|
135
135
|
"winston": "^3.0.0",
|
|
136
136
|
"winston-transport": "^4.4.0",
|
|
137
137
|
"ws": "^7.5.10",
|
|
@@ -157,9 +157,24 @@
|
|
|
157
157
|
"@grpc/grpc-js": "^1.14.3",
|
|
158
158
|
"rollup": "^3.30.0",
|
|
159
159
|
"picomatch": "^2.3.2",
|
|
160
|
-
"qs": "^6.
|
|
160
|
+
"qs": "^6.15.2",
|
|
161
161
|
"tar": "^7.5.11",
|
|
162
162
|
"basic-ftp": "^5.2.2",
|
|
163
|
-
"@babel/traverse": "^7.23.2"
|
|
163
|
+
"@babel/traverse": "^7.23.2",
|
|
164
|
+
"universal-analytics": {
|
|
165
|
+
"uuid": "^11.1.1"
|
|
166
|
+
},
|
|
167
|
+
"gaxios": {
|
|
168
|
+
"uuid": "^11.1.1"
|
|
169
|
+
},
|
|
170
|
+
"firebase-admin": {
|
|
171
|
+
"uuid": "^11.1.1"
|
|
172
|
+
},
|
|
173
|
+
"googleapis": {
|
|
174
|
+
"uuid": "^11.1.1"
|
|
175
|
+
},
|
|
176
|
+
"@google-cloud/cloud-sql-connector": {
|
|
177
|
+
"uuid": "^11.1.1"
|
|
178
|
+
}
|
|
164
179
|
}
|
|
165
180
|
}
|