Releases: googleapis/nodejs-firestore
Releases · googleapis/nodejs-firestore
@google-cloud/firestore v0.14.0
Added
- (#173) Added new
{ mergeFields: ...[] }option for.set()calls that allows specifying the subset of fields you wish to merge.
Fixed
- (#175, #188) All Protobuf files are now loaded from
google-proto-files, which resolves a known issue for missing files such asgoogle/api/annotations.proto.
Changed
@google-cloud/firestore v0.13.1
@google-cloud/firestore v0.13.0
Fixes
- (#146) Improving error message for multiple conflicting fields
Updated dependencies
With this release this package started using gRPC v1.9.1.
@google-cloud/firestore v0.12.0
- [added] Public API types support equality checks via
isEqual(#140) - [added] Support for reading multiple documents at once in transactions via Transaction.getAll() (#125)
- [added] Added type exports to all public classes to support
instanceofchecks (#123) - [changed]
set({}, {merge:true})is now allowed (#144) - [changed] Document paths can be specified as strings in the
Query.where(FieldPath.documentId(), ..., ...)API (#136) - [changed] Better error messages for users that mix types from
@google-cloud/firestoreandfirebase-admin(#137)
@google-cloud/firestore v0.11.2
- [fixed] Transactions that are retried return the result from the latest retry attempt (#110, #111)
- [fixed] Accept DocumentReferences with newlines (#114)
- [fixed] Addresses issue for nested updates with field transforms that causes missing field data (#119, firebase/firebase-admin-node#191)
- [changed] Using indirect GRPC dependency from google-gax to reduce duplication (#113)
@google-cloud/firestore v0.11.1
@google-cloud/firestore v0.11.0
- [added] Query API accepts DocumentSnapshots for
startAt(),startAfter(),endAt()andendBefore()(#100) - [changed]
DocumentSnapshot.data()returnsundefinedfor non-existing Documents. AddedQueryDocumentSnapshottype that always returns document data for use in the Query API.
(#95 ). - [fixed] Allow patch releases of GRPC dependency which reduces the size of
node_modules(#92, #96). - [changed] Improved error messages for
.doc()and.collection()when called with invalid paths (#90)
@google-cloud/firestore v0.10.2
@google-cloud/firestore v0.10.1
- [changed]
onSnapshotstreams are retried more aggressively (#82, firebase/firebase-admin-node#119). - [changed] Optimized request stream for document updates that just contain Server Timestamps (#74).
- [fixed]
DocumentReference.add()now enforces that the document doesn't yet exist (#73). - [fixed] Reverted GRPC Version to address "Stream Removed" error on Google Cloud Functions (grpc/grpc-node#130)
@google-cloud/firestore v0.10.0
- Added retry logic to handle network failures for
onSnapshot(#70, firebase/firebase-admin-node#119) - Added input validation:
update()rejects input that contains duplicate field definitions such asa.banda(#57)- DocumentReferences passed to
startAt(),startAfter(),endAt(),endAfter()need to be part of the query result set (#60) update()validates that object keys are proper field path strings (#65)update()andset()with{merge:true}no longer accept empty updates (#69)FieldPath()rejects empty field names (#69)
- Added Typescript Typings for getCollections() (#52, #62)
set()with{merge:true}supports field removal viaFirestore.FieldValue.delete()(#69)
Refer to the nodejs-firestore API reference documentation for details.