Repository navigation
Description
[REQUIRED] Environment info
firebase-tools: 15.37.0 (latest)
Platform: Linux (Ubuntu), Node 22.23, npm 10.9
[REQUIRED] Test case
A clean install of firebase-tools as a dependency, for example as a devDependency for the emulators:
mkdir fbprobe && cd fbprobe && npm init -y
npm i [email protected][REQUIRED] Steps to reproduce
Run the commands above and read the install output.
[REQUIRED] Expected behavior
No npm warn deprecated lines that originate from firebase-tools' own dependency tree.
[REQUIRED] Actual behavior
npm warn deprecated [email protected]: Use your platform's native DOMException instead
npm warn deprecated [email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm warn deprecated [email protected]: uuid@10 and below is no longer supported. ...
npm warn deprecated [email protected]: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, ...
Where they come from (npm explain):
| Deprecated package | Pulled in by |
|---|---|
[email protected] |
[email protected] (Auth emulator) |
[email protected] |
firebase-tools itself (^10.5.0), [email protected] (^10.3.10), [email protected] (^10.0.0), [email protected] (via @google-cloud/pubsub → google-gax@5 and gaxios@7) |
[email protected] |
[email protected] |
[email protected] |
[email protected] ← node-fetch@3 (tracked on the Google Cloud side as googleapis/google-cloud-node#9929 / #7666) |
Notes
json-ptr (the main point of this issue). This one has no fix on any path today:
json-ptris marked "no longer supported" on npm.exegesishasn't released since 4.3.0 (February 2025), and its json-ptr issue (Bump json-ptr to fix security vulnerability exegesis-js/exegesis#352) has been open since 2021.
The API surface is tiny. Across five files in exegesis/lib, exegesis calls only JsonPointer.decode, encodePointer and encodeUriFragmentIdentifier (8 call sites). All three are plain RFC 6901 helpers, so a small in-repo implementation, or a fork or vendored copy of exegesis, would remove it. As a downstream user we currently vendor [email protected] locally and point an npm overrides entry at it (file:) purely to silence the warning, which is not something every user should have to do.
glob@10 and #11529. Thanks for #11529; bumping the direct glob dependency to ^14 is the right fix for firebase-tools' own usage. One thing to be aware of: the overrides it adds to the root package.json only apply when installing inside this repo. The published tarball (npm pack [email protected] --dry-run) contains no npm-shrinkwrap.json, and npm ignores a dependency's overrides. So downstream installs would still get [email protected] through exegesis, archiver-utils and rimraf@5. Removing those needs dependency bumps: exegesis (or a replacement), archiver (whose archiver-utils still declares glob@^10), and @google-cloud/pubsub (whose google-gax@5 uses rimraf@5).
For what it's worth, we override every glob in our tree to 14.0.6 (including the copies under firebase-tools and exegesis). We checked each consumer's call sites (options used: cwd, dot, nodir, ignore, posix, follow, absolute, maxDepth, all unchanged in 14). Running those call paths on 10.5.0 and on 14.0.6 gave identical results, and the Firebase emulators work normally in our test suite.
Activity