Skip to content

Update Firestore Emulator to v1.21.0#10427

Merged
ninjaAB-5 merged 2 commits into
mainfrom
rxg/emulator-release
Apr 28, 2026
Merged

Update Firestore Emulator to v1.21.0#10427
ninjaAB-5 merged 2 commits into
mainfrom
rxg/emulator-release

Conversation

@ninjaAB-5
Copy link
Copy Markdown
Contributor

@ninjaAB-5 ninjaAB-5 commented Apr 28, 2026

Description

This PR updates the Firestore Emulator to v1.21.0

Scenarios Tested

$ node lib/bin/firebase.js emulators:start --only firestore
⚠  Could not find config (firebase.json) so using defaults.
i  emulators: Starting emulators: firestore
⚠  firestore: Did not find a Cloud Firestore rules file specified in a firebase.json config file.
⚠  firestore: The emulator will default to allowing all reads and writes. Learn more about this option: https://firebase.google.com/docs/emulator-suite/install_and_configure#security_rules_configuration.
i  firestore: downloading cloud-firestore-emulator-v1.21.0.jar...
Progress: ======================================================================================================================================================================================> (100% of 139MB)
i  firestore: Firestore Emulator logging to firestore-debug.log
✔  firestore: Firestore Emulator was started in standard edition.
✔  firestore: Firestore Emulator UI websocket is running on 9150.
i  ui: downloading ui-v1.15.0.zip...
Progress: ========================================================================================================================================================================================> (100% of 4MB)

┌─────────────────────────────────────────────────────────────┐
│ ✔  All emulators ready! It is now safe to connect your app. │
│ i  View Emulator UI at http://127.0.0.1:4000/               │
└─────────────────────────────────────────────────────────────┘

┌───────────┬────────────────┬─────────────────────────────────┐
│ Emulator  │ Host:Port      │ View in Emulator UI             │
├───────────┼────────────────┼─────────────────────────────────┤
│ Firestore │ 127.0.0.1:8080 │ http://127.0.0.1:4000/firestore │
└───────────┴────────────────┴─────────────────────────────────┘
  Emulator Hub host: 127.0.0.1 port: 4400
  Other reserved ports: 4500, 9150

Issues? Report them at https://github.com/firebase/firebase-tools/issues and attach the *-debug.log files.

@ninjaAB-5 ninjaAB-5 requested review from harshyyy21 and joehan April 28, 2026 12:40
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the Firestore Emulator to version 1.21.0, adding support for subqueries and new stages, and allowing database-edition per-database. The CHANGELOG.md has been updated accordingly. However, there is an inconsistency in src/emulator/downloadableEmulatorInfo.json where the version field is set to 1.20.3 while the remoteUrl and downloadPathRelativeToCacheDir correctly point to 1.21.0. This version field should be updated to 1.21.0 for consistency.

Comment thread src/emulator/downloadableEmulatorInfo.json Outdated
@harshyyy21
Copy link
Copy Markdown
Contributor

Extreme nit, but I noticed that in the "Scenarios Tested" section in the description, there's no line indicating the version of the emulator being used. Is there a way we verify that?

See #10127 for reference, but what I was looking for was something like i firestore: downloading cloud-firestore-emulator-v1.20.4.jar....

@joehan
Copy link
Copy Markdown
Member

joehan commented Apr 28, 2026

Extreme nit, but I noticed that in the "Scenarios Tested" section in the description, there's no line indicating the version of the emulator being used. Is there a way we verify that?

See #10127 for reference, but what I was looking for was something like i firestore: downloading cloud-firestore-emulator-v1.20.4.jar....

That line is only shown the first time you run with a version (since we only download it once and cache). I'm unconcerned since the integration tests are passing on CI (and those would fail if there was a checksum or size mismatch), but if you want to get it again you can rm -rf ~/.cache/firebase/emulators

@ninjaAB-5
Copy link
Copy Markdown
Contributor Author

Extreme nit, but I noticed that in the "Scenarios Tested" section in the description, there's no line indicating the version of the emulator being used. Is there a way we verify that?
See #10127 for reference, but what I was looking for was something like i firestore: downloading cloud-firestore-emulator-v1.20.4.jar....

That line is only shown the first time you run with a version (since we only download it once and cache). I'm unconcerned since the integration tests are passing on CI (and those would fail if there was a checksum or size mismatch), but if you want to get it again you can rm -rf ~/.cache/firebase/emulators

That's a good catch! I did run this multiple times, the first time there's a version showed up so I didn't pay a lot of attention afterwards and just copied the output from a latter run... Cleaned the cache and updated the output in the description, thanks both!

@ninjaAB-5 ninjaAB-5 merged commit c4f26e6 into main Apr 28, 2026
47 checks passed
@ninjaAB-5 ninjaAB-5 deleted the rxg/emulator-release branch April 28, 2026 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants