- 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.