Use Firestore in React with zero effort, using MobX 🤘
Fixed schema validation in
Document.setsometimes failed, when data document data contained arrays or sub-objects
Added ability to disable the Collection by returning
nullfrom a query function (this may break some things)
Added automatic removal of all documents from a Collection when it is disabled (when
refis cleared or query is set to
Made snapshot errors more verbose so simplify debugging
Fixed exception when calling
.update()on a document with a schema, that has not yet been fetched
lodash.isequalnot defined as a direct dependency
Added logging of
Fixed exception when fetching a Document which doesn’t exist and which has a schema defined
Added log-message when Document snapshot failed
Fixed schema validation error not using the
debugNamewhen specified to constructor
Added support for code-debugging and smaller bundles on react-native (
react-nativeentry in package.json)
Added support for specifying a specific firebase-app to use, instead of always using the default firebase app (
Added debug statement to log
Fixed Document not triggering a reaction after calling
Document.updatewith a field-path
Fixed schema violation in
Document.update/setwhen using a dotted FieldPath.
Fixed schema violation in
Document.update/setwhen deleting fields using FieldValue.delete().
Collection.minimizeUpdatesoption to prevent multiple updates when starting real-time updates on a Collection. This happens when some of the query results are loally cached, causing Firestore to fire multiple
onSnapshotevents. Enabling this option causes Firestorter to skip/debounce the first local snapshot, in favor of the full result received slightly later from the cloud.
Fixed unneccessary re-start of real-time updates on
Collectionwhen the query changes.
Removed obsolete firestore snapshot fields
isLoadingproperty (better name + isLoading also causes realtime updates to become active, fixes #18)
isActive(active still supported but shows deprecation warning)
Collection.addstill writing to firestore when schema didn't validate
Document.updatethrowing exception when schema was used.
Added new method for defining queries using an observed function (e.g.
col.query = (ref) => ref.orderBy('text', 'asc')). This is now the new recommended way for defining queries.
Added support for MobX 4 (for MobX 3.x, use 0.9.3 or lower)
Added donation link and sponsor acknowledgements
Added CHANGELOG.md & release-notes badge
Added code coverage
Added additional unit tests
Removed firebase as a peer dependency
Various updates to docs
Fixed Promise not rejected on
Collection.add, when invalid doc-data was specified
Added lots of unit tests
Path observations are now immediate
Added ability to specify reactive-functions to the ref, path and query property of Document & Collection
Collection.activeproperty which indicates whether real-time updating is current active
Added unit tests for Document & Collection (wip)
The realtimeUpdating property has been renamed to mode (realtimeUpdating has been deprecated and will be removed soon)
Many documentation updates