# Changelog [npm history][1] [1]: https://www.npmjs.com/package/@google-cloud/firestore?activeTab=versions ### [2.2.9](https://www.github.com/googleapis/nodejs-firestore/compare/v2.2.8...v2.2.9) (2019-08-30) ### Bug Fixes * retrying 13 INTERNAL RPC errors ([#742](https://www.github.com/googleapis/nodejs-firestore/issues/742)) ([431edcb](https://www.github.com/googleapis/nodejs-firestore/commit/431edcb)) ### [2.2.8](https://www.github.com/googleapis/nodejs-firestore/compare/v2.2.7...v2.2.8) (2019-08-22) ### Bug Fixes * serialization does not work with null objects ([#736](https://www.github.com/googleapis/nodejs-firestore/issues/736)) ([870d6a7](https://www.github.com/googleapis/nodejs-firestore/commit/870d6a7)) ### [2.2.7](https://www.github.com/googleapis/nodejs-firestore/compare/v2.2.6...v2.2.7) (2019-08-16) ### Bug Fixes * **deps:** use the latest extend ([#728](https://www.github.com/googleapis/nodejs-firestore/issues/728)) ([425bf3d](https://www.github.com/googleapis/nodejs-firestore/commit/425bf3d)) * add logging to client pool ([#733](https://www.github.com/googleapis/nodejs-firestore/issues/733)) ([a4efa09](https://www.github.com/googleapis/nodejs-firestore/commit/a4efa09)) ### [2.2.6](https://www.github.com/googleapis/nodejs-firestore/compare/v2.2.5...v2.2.6) (2019-08-02) ### Bug Fixes * allow calls with no request, add JSON proto ([#725](https://www.github.com/googleapis/nodejs-firestore/issues/725)) ([8b0624b](https://www.github.com/googleapis/nodejs-firestore/commit/8b0624b)) ### [2.2.5](https://www.github.com/googleapis/nodejs-firestore/compare/v2.2.4...v2.2.5) (2019-08-02) ### Bug Fixes * Better error for Collection Group Queries with documentId() cursors ([#720](https://www.github.com/googleapis/nodejs-firestore/issues/720)) ([169286d](https://www.github.com/googleapis/nodejs-firestore/commit/169286d)) ### [2.2.4](https://www.github.com/googleapis/nodejs-firestore/compare/v2.2.3...v2.2.4) (2019-07-08) ### Bug Fixes * Don't re-open streams on 'error' and 'end' ([#713](https://www.github.com/googleapis/nodejs-firestore/issues/713)) ([104a965](https://www.github.com/googleapis/nodejs-firestore/commit/104a965)) ### [2.2.3](https://www.github.com/googleapis/nodejs-firestore/compare/v2.2.2...v2.2.3) (2019-06-26) ### Bug Fixes * **docs:** link to reference docs section on googleapis.dev ([#701](https://www.github.com/googleapis/nodejs-firestore/issues/701)) ([d7c89a8](https://www.github.com/googleapis/nodejs-firestore/commit/d7c89a8)) * Relax validation of FIRESTORE_EMULATOR_HOST in settings() ([#703](https://www.github.com/googleapis/nodejs-firestore/issues/703)) ([daff9de](https://www.github.com/googleapis/nodejs-firestore/commit/daff9de)) ### [2.2.2](https://www.github.com/googleapis/nodejs-firestore/compare/v2.2.1...v2.2.2) (2019-06-25) ### Bug Fixes * Support non-ISO-8859-1 Collection Names in Queries ([fc6f839](https://www.github.com/googleapis/nodejs-firestore/commit/fc6f839)) * Unset servicePath when FIRESTORE_EMULATOR_HOST is set ([#696](https://www.github.com/googleapis/nodejs-firestore/issues/696)) ([5a19931](https://www.github.com/googleapis/nodejs-firestore/commit/5a19931)) * Use new stream rather than pipe ([#700](https://www.github.com/googleapis/nodejs-firestore/issues/700)) ([0370e03](https://www.github.com/googleapis/nodejs-firestore/commit/0370e03)) ### [2.2.1](https://www.github.com/googleapis/nodejs-firestore/compare/v2.2.0...v2.2.1) (2019-06-14) ### Bug Fixes * **docs:** move to new client docs URL ([#689](https://www.github.com/googleapis/nodejs-firestore/issues/689)) ([58acc46](https://www.github.com/googleapis/nodejs-firestore/commit/58acc46)) ## [2.2.0](https://www.github.com/googleapis/nodejs-firestore/compare/v2.1.1...v2.2.0) (2019-06-06) ### Bug Fixes * Split settings.host into servicePath and port ([#684](https://www.github.com/googleapis/nodejs-firestore/issues/684)) ([b2cbca5](https://www.github.com/googleapis/nodejs-firestore/commit/b2cbca5)) * Store large numbers as doubles ([#683](https://www.github.com/googleapis/nodejs-firestore/issues/683)) ([607b3c0](https://www.github.com/googleapis/nodejs-firestore/commit/607b3c0)) ### Features * support apiEndpoint override in client constructor ([368bc5c](https://www.github.com/googleapis/nodejs-firestore/commit/368bc5c)) * Support host, ssl and FIRESTORE_EMULATOR_HOST for endpoint configuration ([#680](https://www.github.com/googleapis/nodejs-firestore/issues/680)) ([d15f29d](https://www.github.com/googleapis/nodejs-firestore/commit/d15f29d)) ## [2.1.1](https://www.github.com/googleapis/nodejs-firestore/compare/v2.1.0...v2.1.1) (2019-05-30) ### Dependencies - deps: Pin @gprc/grpc-js to 0.4.0 ([#668](https://github.com/googleapis/nodejs-firestore/pull/668)) ### Internal / Testing Changes - build: remove verbose logging from test scripts ([#665](https://github.com/googleapis/nodejs-firestore/pull/665)) - build: ignore proto files in test coverage ([#664](https://github.com/googleapis/nodejs-firestore/pull/664)) ## [2.1.0](https://www.github.com/googleapis/nodejs-firestore/compare/v2.0.0...v2.1.0) (2019-05-28) ### Bug Fixes * Add overloads for doc() and doc(id:string) ([#662](https://www.github.com/googleapis/nodejs-firestore/issues/662)) ([cb189e9](https://www.github.com/googleapis/nodejs-firestore/commit/cb189e9)) * retry on abort and limit retry count to 10 ([#655](https://www.github.com/googleapis/nodejs-firestore/issues/655)) ([9e97656](https://www.github.com/googleapis/nodejs-firestore/commit/9e97656)) ### Features * Support listDocuments()/listCollections() via the Firestore Emulator ([#654](https://www.github.com/googleapis/nodejs-firestore/issues/654)) ([eaf5a4e](https://www.github.com/googleapis/nodejs-firestore/commit/eaf5a4e)) ## [2.0.0](https://www.github.com/googleapis/nodejs-firestore/compare/v1.3.0...v2.0.0) (2019-05-20) ### ⚠ BREAKING CHANGES * library now requires Node >= 8.13.0 * **deprecation:** remove legacy support for array arguments (#625) * **deprecation:** remove deprecated getCollections() (#624) * upgrade engines field to >=8.10.0 (#608) ### Bug Fixes * **deps:** update dependency google-gax to ^0.26.0 ([#606](https://www.github.com/googleapis/nodejs-firestore/issues/606)) ([a637a68](https://www.github.com/googleapis/nodejs-firestore/commit/a637a68)) * Fix client pooling for long-lived listens ([#614](https://www.github.com/googleapis/nodejs-firestore/issues/614)) ([479bc9c](https://www.github.com/googleapis/nodejs-firestore/commit/479bc9c)), closes [firebase/firebase-admin-node#499](https://www.github.com/googleapis/nodejs-firestore/issues/499) [#256](https://www.github.com/googleapis/nodejs-firestore/issues/256) * **deps:** update dependency google-gax to v1 ([#615](https://www.github.com/googleapis/nodejs-firestore/issues/615)) ([687a353](https://www.github.com/googleapis/nodejs-firestore/commit/687a353)) * run the generator ([#616](https://www.github.com/googleapis/nodejs-firestore/issues/616)) ([92b0add](https://www.github.com/googleapis/nodejs-firestore/commit/92b0add)) * **docs:** revert jsdoc and pin to 3.5.5 ([#627](https://www.github.com/googleapis/nodejs-firestore/issues/627)) ([e22f9c6](https://www.github.com/googleapis/nodejs-firestore/commit/e22f9c6)) * Support more than 100 long-lived streams ([#623](https://www.github.com/googleapis/nodejs-firestore/issues/623)) ([9474e3f](https://www.github.com/googleapis/nodejs-firestore/commit/9474e3f)) ### Build System * upgrade engines field to >=8.10.0 ([#608](https://www.github.com/googleapis/nodejs-firestore/issues/608)) ([32485f4](https://www.github.com/googleapis/nodejs-firestore/commit/32485f4)) * upgrade engines field to >=8.13.0 ([#636](https://www.github.com/googleapis/nodejs-firestore/issues/636)) ([a5db7d8](https://www.github.com/googleapis/nodejs-firestore/commit/a5db7d8)) ### Code Refactoring * **deprecation:** remove deprecated getCollections() ([#624](https://www.github.com/googleapis/nodejs-firestore/issues/624)) ([43ac9c6](https://www.github.com/googleapis/nodejs-firestore/commit/43ac9c6)) * **deprecation:** remove legacy support for array arguments ([#625](https://www.github.com/googleapis/nodejs-firestore/issues/625)) ([54dd405](https://www.github.com/googleapis/nodejs-firestore/commit/54dd405)) ## v1.3.0 04-26-2019 16:54 PDT ### New Features - feature: Adding CollectionGroup queries ([#578](https://github.com/googleapis/nodejs-firestore/pull/578))([#595](https://github.com/googleapis/nodejs-firestore/pull/595)) ### Dependencies - chore(deps): update dependency nyc to v14 ([#600](https://github.com/googleapis/nodejs-firestore/pull/600)) - chore(deps): update dependency typescript to ~3.4.0 - docs: add .readme-metadata.json and generate new README.md ### Documentation - docs: Add example for Precondition ([#601](https://github.com/googleapis/nodejs-firestore/pull/601)) ## v1.2.0 03-21-2019 14:17 PDT ### New Features - feature: Release the V1 Admin API ([#590](https://github.com/googleapis/nodejs-firestore/pull/590)) The Firestore Node SDK now exposes the Firestore Admin API (via `v1.FirebaseAdminClient()`). ### Implementation Changes - deps/refactor: Removing @google-cloud/projectify ([#564](https://github.com/googleapis/nodejs-firestore/pull/564)) ### Dependencies - chore(deps): update dependency hard-rejection to v2 ### Documentation - fix(docs): add namespaces so docs are generated ([#591](https://github.com/googleapis/nodejs-firestore/pull/591)) - docs: fix typo in doc strings ([#585](https://github.com/googleapis/nodejs-firestore/pull/585)) ### Internal / Testing Changes - chore: publish to npm using wombat ([#586](https://github.com/googleapis/nodejs-firestore/pull/586)) - build: use per-repo publish token ([#582](https://github.com/googleapis/nodejs-firestore/pull/582)) - refactor: update json import paths ([#580](https://github.com/googleapis/nodejs-firestore/pull/580)) ## v1.1.0 03-10-2019 20:09 PDT ### New Features - feature: Added `FieldValue.increment()`, which can be used in `create()`, `update()` and `set(..., {merge:true})` to increment or decrement numeric field values safely without transactions ([#444](https://github.com/googleapis/nodejs-firestore/pull/444)) ### Implementation Changes - fix: Allow async functions ([#576](https://github.com/googleapis/nodejs-firestore/pull/576)) - fix: Don't call stream.end() on Watch ended by server ([#565](https://github.com/googleapis/nodejs-firestore/pull/565)) ### Internal / Testing Changes - refactor: async/await to test/order.ts ([#566](https://github.com/googleapis/nodejs-firestore/pull/566)) - build: Add docuploader credentials to node publish jobs ([#572](https://github.com/googleapis/nodejs-firestore/pull/572)) - build: update release config ([#570](https://github.com/googleapis/nodejs-firestore/pull/570)) - build: use node10 to run samples-test, system-test etc ([#571](https://github.com/googleapis/nodejs-firestore/pull/571)) ## v1.0.2 03-04-2019 13:32 PST ### Implementation Changes - fix: throw on invalid credentials ([#548](https://github.com/googleapis/nodejs-firestore/pull/548)) ### Dependencies - fix(deps): update dependency google-gax to ^0.25.0 ([#535](https://github.com/googleapis/nodejs-firestore/pull/535)) - chore(deps): update dependency mocha to v6 - chore(deps): update dependency duplexify to v4 ([#539](https://github.com/googleapis/nodejs-firestore/pull/539)) ### Documentation - docs: update comments on protos ([#559](https://github.com/googleapis/nodejs-firestore/pull/559)) - docs: update API doc comments ([#557](https://github.com/googleapis/nodejs-firestore/pull/557)) - docs: update links in contrib guide ([#550](https://github.com/googleapis/nodejs-firestore/pull/550)) - docs: add lint/fix example to contributing guide ([#541](https://github.com/googleapis/nodejs-firestore/pull/541)) - docs: fix example comments ([#540](https://github.com/googleapis/nodejs-firestore/pull/540)) - doc: show GA message in README.md ([#536](https://github.com/googleapis/nodejs-firestore/pull/536)) - Add note about Datastore mode ([#552](https://github.com/googleapis/nodejs-firestore/pull/552)) - chore: move CONTRIBUTING.md to root ([#543](https://github.com/googleapis/nodejs-firestore/pull/543)) - docs: update contributing path in README ([#544](https://github.com/googleapis/nodejs-firestore/pull/544)) ### Internal / Testing Changes - refactor(typescript): enable noImplicitAny ([#553](https://github.com/googleapis/nodejs-firestore/pull/553)) - chore: update array types ([#555](https://github.com/googleapis/nodejs-firestore/pull/555)) - Finish TypeScript Migration ([#512](https://github.com/googleapis/nodejs-firestore/pull/512)) - refactor: improve generated code style. ([#538](https://github.com/googleapis/nodejs-firestore/pull/538)) - Remove unhandled Promise rejection warning ([#556](https://github.com/googleapis/nodejs-firestore/pull/556)) - build: use linkinator for docs test ([#549](https://github.com/googleapis/nodejs-firestore/pull/549)) - build: create docs test npm scripts ([#547](https://github.com/googleapis/nodejs-firestore/pull/547)) - build: test using @grpc/grpc-js in CI ([#546](https://github.com/googleapis/nodejs-firestore/pull/546)) ## v1.0.1 01-29-2019 14:02 PST # Documentation - doc: update README.md to show this library as GA ([#532](https://github.com/googleapis/nodejs-firestore/pull/532)) - fix(samples): constructor doesn't need project or cred options ([#533](https://github.com/googleapis/nodejs-firestore/pull/533)) ## v1.0.0 01-29-2019 12:12 PST This is the Firestore Node.js Client Library GA release. ## v0.21.0 01-25-2019 12:21 PST This release brings in google-gax update to 0.24.0 which had its dependency google-auth-library updated to 3.0.0^ that swaps out axios in favour of gaxios and addresses an issue using the library behind a proxy (https://github.com/googleapis/nodejs-firestore/issues/493). ### Dependencies - chore(deps): update dependency ts-node to v8 ([#526](https://github.com/googleapis/nodejs-firestore/pull/526)) - fix(deps): update dependency google-gax to ^0.24.0 ([#529](https://github.com/googleapis/nodejs-firestore/pull/529)) ### Documentation - build: ignore googleapis.com in doc link check ([#527](https://github.com/googleapis/nodejs-firestore/pull/527)) - docs: fix import links in the jsdocs ([#524](https://github.com/googleapis/nodejs-firestore/pull/524)) ### Internal / Testing Changes - chore: update year in the license headers. ([#523](https://github.com/googleapis/nodejs-firestore/pull/523)) ## v0.20.0 01-16-2019 13:14 PST #### BREAKING: The `timestampsInSnapshots` default has changed to true. The `timestampsInSnapshots` setting is now enabled by default so timestamp fields read from a `DocumentSnapshot` will be returned as `Timestamp` objects instead of `Date`. Any code expecting to receive a `Date` object must be updated. #### DEPRECATED: `Firestore.v1beta1` replaced by `Firestore.v1` If you are currently using `Firestore.v1beta1.FirestoreClient`, you must switch to `Firestore.v1.FirestoreClient`. No other changes should be required as the API is 100% identical. ### Bug Fixes - fix: getAll function signature to allow array destructuring ([#515](https://github.com/googleapis/nodejs-firestore/pull/515)) - fix: update grpc retry config ([#464](https://github.com/googleapis/nodejs-firestore/pull/464)) ### New Features - feat: update to v1 protos ([#516](https://github.com/googleapis/nodejs-firestore/pull/516)) - feat: add additional field transform types ([#521](https://github.com/googleapis/nodejs-firestore/pull/521)) ### Dependencies - fix(deps): update dependency google-gax to ^0.23.0 ([#518](https://github.com/googleapis/nodejs-firestore/pull/518)) ### Documentation - fix(docs): remove unused long running operations types - docs: elaborate on QuerySnapshot.forEach ([#480](https://github.com/googleapis/nodejs-firestore/pull/480)) - docs: update doc writetime ([#475](https://github.com/googleapis/nodejs-firestore/pull/475)) - docs: Fix example for writeTime ([#474](https://github.com/googleapis/nodejs-firestore/pull/474)) - chore: update license file ([#473](https://github.com/googleapis/nodejs-firestore/pull/473)) - docs: update readme badges ([#470](https://github.com/googleapis/nodejs-firestore/pull/470)) ### Internal / Testing Changes - build: check broken links in generated docs ([#511](https://github.com/googleapis/nodejs-firestore/pull/511)) - chore(build): inject yoshi automation key ([#492](https://github.com/googleapis/nodejs-firestore/pull/492)) - chore: update nyc and eslint configs ([#491](https://github.com/googleapis/nodejs-firestore/pull/491)) - chore: fix publish.sh permission +x ([#489](https://github.com/googleapis/nodejs-firestore/pull/489)) - fix(build): fix Kokoro release script ([#488](https://github.com/googleapis/nodejs-firestore/pull/488)) - build: add Kokoro configs for autorelease ([#487](https://github.com/googleapis/nodejs-firestore/pull/487)) - chore: add synth.metadata ([#485](https://github.com/googleapis/nodejs-firestore/pull/485)) - chore: always nyc report before calling codecov ([#482](https://github.com/googleapis/nodejs-firestore/pull/482)) - chore: nyc ignore build/test by default ([#479](https://github.com/googleapis/nodejs-firestore/pull/479)) - chore(build): update the prettier config ([#476](https://github.com/googleapis/nodejs-firestore/pull/476)) - chore(deps): update dependency typescript to ~3.2.0 ([#467](https://github.com/googleapis/nodejs-firestore/pull/467)) - fix(build): fix system key decryption ([#468](https://github.com/googleapis/nodejs-firestore/pull/468)) - Adding array-contains to error message ([#465](https://github.com/googleapis/nodejs-firestore/pull/465)) ## v0.17.0 ### Implementation Changes - Regenerate library with synth.py customizations ([#345](https://github.com/googleapis/nodejs-firestore/pull/345)) - contains some documentation and internal timeout changes - Converting backoff.js to TypeScript ([#328](https://github.com/googleapis/nodejs-firestore/pull/328)) - Making .dotChanges a method ([#324](https://github.com/googleapis/nodejs-firestore/pull/324)) ### Dependencies - chore(deps): update dependency nyc to v13 ([#329](https://github.com/googleapis/nodejs-firestore/pull/329)) - fix(deps): update dependency google-gax to ^0.19.0 ([#325](https://github.com/googleapis/nodejs-firestore/pull/325)) ### Documentation - Fix DocumentReference.get() docs ([#332](https://github.com/googleapis/nodejs-firestore/pull/332)) ### Internal / Testing Changes - Retry npm install in CI ([#341](https://github.com/googleapis/nodejs-firestore/pull/341)) - make synth.py generate library to ./dev ([#337](https://github.com/googleapis/nodejs-firestore/pull/337)) - Revert "Re-generate library using /synth.py ([#331](https://github.com/googleapis/nodejs-firestore/pull/331))" ([#334](https://github.com/googleapis/nodejs-firestore/pull/334)) - Re-generate library using /synth.py ([#331](https://github.com/googleapis/nodejs-firestore/pull/331))