Releases: dalenguyen/firestore-backup-restore
Releases · dalenguyen/firestore-backup-restore
Release list
v1.7.0
What's changed
Bug fixes
- #153
initializeFirebaseAppnow returns the correct named Firebase app when one already exists. Previously, calls with a customnameargument silently returned the default app's Firestore instance if any app was already initialized. - #136 Restored timestamps now preserve nanosecond precision.
makeTimereturnsFirestore.Timestampinstead ofDate. - #50, #83
dates,geos, andrefsimport options now correctly traverse arrays of objects at any depth. makeGeoPointno longer returnsnullfor coordinates equal to0(the falsy-coord bug).
New features
- #18 Restore writes are now batched (500 docs per commit) instead of one-at-a-time. 10k-doc restores drop from minutes to seconds.
- #19 New
clearCollectionimport option deletes target collections before restore. - #103 New
includeSubcollectionsexport option (default:true) — set tofalseto skip subcollection traversal. - #121
showLogs: truenow works on export (backup,backups,backupFromDoc). dryRunimport option — preview whatclearCollectionwould delete and how many docs would be written, without touching Firestore.
Internal
restoreServicerewritten from Promise constructor pattern toasync/await.traverseObjectsreplaced with a newapplyToPathhelper that uniformly handles nested objects and arrays.- Updated to firebase-admin v13, Vitest, Vite (already shipped via the modernization PRs).
Acknowledgments
Thanks to @eudanielhenrique for splitting the original mega-PR (#169) into three reviewable chunks and addressing review feedback on console.warn hot-path concerns, recursiveDelete atomicity, and the dryRun mode for clearCollection.
See CHANGELOG.md for the full history.
v1.6.0
[1.6.0] - 2025-02-14
- 💅 [Polish]
- Migrated build system to Vite
- Added dual ESM/CJS module support
- Improved minification using esbuild
- Removed manual minification process
- Fix #167
v1.5.0
[1.5.0] - 2025-01-01
- 💅 [Polish]
- update packages & github actions
- migrate from mocha to vitest
v1.5.0
[1.5.0] - 2025-01-01
- 💅 [Polish]
- update packages & github actions
- migrate from mocha to vitest
v1.5.0
[1.5.0] - 2025-01-01
- 💅 [Polish]
- update packages & github actions
- migrate from mocha to vitest
v1.4.0
[1.4.0] - 2023-07-30
- 💥 [Breaking Change]
- passing firestore as a parameter (#153)
- 💅 [Polish]
- update packages
v1.3.5
[1.3.5] - 2022-10-28
- 🐛 [Bug Fix]
- fix unable to get subCollection data if setting queryCollection in export options (thank @leoleelf)
v1.3.4
[1.3.4] - 2022-10-09
- 🐛 [Bug Fix]
- fix import link & use commonjs
v1.3.0
[1.3.0] - 2022-10-09
- 💅 [Polish]
- turn the package to use es module
- update packages
v1.2.1-1
[1.2.1] - 2022-08-24
- 💅 [Polish]
- update packages
- utilize pnpm instead of yarn