Releases: IjzerenHein/firestorter
Releases · IjzerenHein/firestorter
v0.14.2
Fixed
- Fixed Document not triggering a reaction after calling
Document.update
with a field-path
Added
- Added debug statement to log
Document
snapshot updates
v0.14.1
Fixed
- Fixed schema violation in
Document.update/set
when using a dotted FieldPath. - Fixed schema violation in
Document.update/set
when deleting fields usingfirebase.firestore.FieldValue.delete()
.
v0.14.0
Added
- Added
Collection.minimizeUpdates
option 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 multipleonSnapshot
events. 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
- Fixed unnecessary re-start of real-time updates on
Collection
when the query changes.
v0.12.1
Changed
- Replaced
fetching
with theisLoading
property (better name + isLoading also causes realtime updates to become active, fixes #18) - Renamed
active
prop toisActive
(active still supported but shows deprecation warning)
Fixed
- Fixed
Collection.add
still writing to firestore when schema didn't validate (fixes #16)
Removed
- Removed obsolete firestore snapshot fields
Document.createTime
,Document.updateTime
andDocument.readTime
v0.11.1
Added
- 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.
Fixed
- Fixed
Document.update
throwing exception when schema was used.
MobX 4 support
- 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
v0.9.0
- Added ability to specify reactive-functions to the
ref
,path
andquery
property of Document & Collection - The
realtimeUpdating
property has been renamed tomode
(realtimeUpdating
has been deprecated and will be removed soon) - Added
Document.active
andCollection.active
property which indicates whether real-time updating is current active - Added
Document.set
operation - Added unit tests for Document & Collection (wip)
- Many documentation updates
- Minor fixes
v0.8.1
- Added support for document schemas, using superstruct
- Added support for custom Document classes
Breaking changes
A small change to the API was made because of the additions mentioned above. As well as so new features can be added more easily in the future.
This:
const collection = new Collection('artists', 'on')
is now:
const collection = new Collection('artists', {
realtimeUpdating: 'on'
});