Skip to content

Releases: IjzerenHein/firestorter

v0.14.2

12 Jul 12:26
Compare
Choose a tag to compare

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

11 Jul 20:30
Compare
Choose a tag to compare

Fixed

  • Fixed schema violation in Document.update/set when using a dotted FieldPath.
  • Fixed schema violation in Document.update/set when deleting fields using firebase.firestore.FieldValue.delete().

v0.14.0

17 Jun 10:42
Compare
Choose a tag to compare

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 multiple onSnapshot 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

11 Jun 21:35
Compare
Choose a tag to compare

Changed

  • Replaced fetching with the isLoading property (better name + isLoading also causes realtime updates to become active, fixes #18)
  • Renamed active prop to isActive (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 and Document.readTime

v0.11.1

11 Jun 21:36
Compare
Choose a tag to compare

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

27 Mar 18:42
Compare
Choose a tag to compare
  • 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

01 Jan 22:51
Compare
Choose a tag to compare
  • Added ability to specify reactive-functions to the ref, path and query property of Document & Collection
  • The realtimeUpdating property has been renamed to mode (realtimeUpdating has been deprecated and will be removed soon)
  • Added Document.active and Collection.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

29 Dec 15:57
Compare
Choose a tag to compare
  • 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'
});