- support queries that use composite keys. Thank you alex0711!
- fixed
QueryDocumentSnapshot.data
's signature change introduced in firestore 1.0.4. Thank you lyledean1!
- migrate to null safety.
- Added documents metadata. Thank you zariweyo!
- migrate to Firestore 1.0.0. Thank you Jouby!
- migrate to Firestore 0.16.0.
- restored release notes for 0.4.7.
- fix null exception when using
collectionGroup
on documents with no value. Thank you rhisiart-cufflink!
- make
MockDocumentReference.snapshots()
fire on updates. Thank you gabeschine!
- fixed an issue with
runTransaction
. Thank you sensuikan1973!
Support the breaking changes of Firestore 0.14.0. Thank you for the great update sensuikan1973!
- support collection groups (
instance.collectionGroup
). Thank you sensuikan1973! - fixed collections so they can contain a subcollection and a document with the same ID. Thank you dumbbell!
- downgraded dependency to collection to satisfy flutter_driver requirements.
- support
FieldPath.documentId
inQuery.where
andorderBy
. Thank you nukotsuka! - continuously send notifications on queries, even for updates and deletions. Thank you gki!
- in
DocumentChange
, populateoldIndex
andnewIndex
. Thank you sensuikan1973! - implemented
QuerySnapshot.documentChanges
. Thank you feroult!
- support
FieldValue
and keys containing dots inCollectionReference.add
. Thank you nxcco! - DocumentSnapshots are made with a deep copy of the data. Thank you amatveyakin!
- support
FieldValue
andDateTime
in nested objects. - support null values in
Query.orderBy
. - updated the documentation on integration tests.
- support
whereIn
inCollectionReference.where
. DocumentSnapshot.data
now returns a deep copy.
Thank you anuragbhd for both improvements!
- updated docs.
- support
Query.startAfterDocument
. Thank you Hadii1! - support
arrayContains
inCollectionReference.where
. Thank you qwales1! - support
arrayContainsAny
inCollectionReference.where
. Thank you anuragbhd! - support document paths with slashes. Thank you suztomo!
- support Document and Collection's
parent
,path
,firebase
, andequals
methods. Thank you suztomo!
New features:
- support
Firestore.runTransaction
. - support
FieldValue.increment
,arrayUnion
, andarrayRemove
.
Adhering to Firebase specs:
Firestore.document
andcollection
check the number of segments.Query
executes only when callinggetDocuments
.- Updating a document doesn't affect previous
Snapshots
. - saves a deep copy when when saving data to a document.
- checks that data types are valid upon saving data.
All credits go to suztomo. Thank you!
CollectionReference.getDocuments
returns only documents that have been saved byCollectionReference.add
orDocumentReference.setData
orDocumentReference.updateData
.- make
CollectionReference.add
generate a randomdocumentId
. - support batch operations
updateData
anddelete
. - implemented
DocumentReference.path
. - implemented
DocumentSnapshot.reference
.
Thank you suztomo for contributing these improvements!
- fixed some lint error.
- support
CollectionReference.document()
. Thanks suztomo! - support nested documents. Thanks suztomo!
- support
FieldValue.serverTimestamp()
. Thanks suztomo! - breaking change: remove requirement to call
setupFieldValueFactory()
. They are now initialized automatically whenMockFirestoreInstance
is instantiated.
- support
FieldValue.delete()
again.
- fixed breakage due to
FieldValue.type
andFieldValue.value
being removed from the public API at cloud_firestore 0.10.0. - implemented chainable
Query.where
. Thank you qwales1! - dropped support for
FieldValue.delete()
.
- implemented
DocumentSnapshot.exists
. Thank you qwales1!
- implemented
MockDocumentReference.snapshots()
. Thank you dfdgsdfg and terry960302!
- upgraded cloud_firestore to ^0.13.0+1.
- cleaned up the public documentation to expose only
MockFirestoreInstance
.
- fixed code health related issues.
- added support for
isGreaterThanOrEqualTo
,isLessThan
,isLessThanOrEqualTo
inCollectionReference.where
. - implemented mock
DocumentReference.delete
.
- Fixed snapshots not firing several times.
- Implemented example unit tests based on Firestore's own example project.
- Initial version.