Skip to content

Releases: share/sharedb

v1.1.0

17 Dec 18:55

Choose a tag to compare

  • #331 - Add ability for "readSnapshots" middleware to reject reads of specific snapshots, mainly for bulk fetch/subscribe (@ericyhwang)
    • context.rejectSnapshotRead(snapshot: Snapshot, error: Error | string) - Reject a specific snapshot read
    • context.rejectSnapshotReadSilent(snapshot: Snapshot, errorMessage: string) - As above, but causes the ShareDB client to treat it as a silent rejection, not passing the error back to user code

v1.0.0-beta.31

20 Nov 21:51

Choose a tag to compare

This 1.0.0-beta release adds client forwards compatibility with the new error codes in the final 1.0.0 release.

See the upgrade guide for more details.

v1.0.0-beta.30

20 Nov 17:37

Choose a tag to compare

  • #327 - Fix previously inflight op getting mutated if client disconnects (@Calyhre)

v1.0.0

20 Nov 21:55

Choose a tag to compare

🎉 sharedb@1.0.0 is here!

👉 See the upgrade guide for how to upgrade from the 1.x-beta releases:
https://github.com/share/sharedb/wiki/Upgrading-to-sharedb@1.0.0-from-1.0.0-beta


This is a summary of breaking changes from sharedb@1.0.0-beta.* to sharedb@1.0.0:

  • #311 - Deprecated middleware actions have been removed (@alecgibson)
    • "doc", whose functionality has been subsumed by "readSnapshots"
    • "afterSubmit" and "after submit", which have been renamed to "afterWrite" with no changes to functionality
  • #309 - Error codes have changed from numbers to strings (@alecgibson)
    • A few overloaded codes have been fixed.
    • Some other codes have been consolidated.

v1.0.0-beta.29

14 Nov 22:55

Choose a tag to compare

  • #325 - Add error handlers in tests to try and find source of flakey test (@nateps)

v1.0.0-beta.28

14 Nov 19:02

Choose a tag to compare

  • #324 - Fix flakey test that failed with sharedb-mongo in Travis (@nateps)

v1.0.0-beta.27

08 Nov 23:15

Choose a tag to compare

No changes in sharedb code

  • Remove invalid assertion used in db tests: 18a038c

v1.0.0-beta.26

04 Nov 22:14

Choose a tag to compare

  • #323 - Revert to using a simple shallowCopy for ops (@nateps)
    • Previously, ops were copied by iterating over them in pubsub. This was changed in #316 to copy the specific properties expected on an op. This was an unintentional breaking change, because middleware could be adding additional fields to the top level of the op.

v1.0.0-beta.25

30 Oct 22:32

Choose a tag to compare

Externally-visible changes

  • #321 - Delay ops sent by query subscriptions until after polling is complete. ShareDB doesn't guarantee the sequence in which these op & query result updates will be received, but currently the code sends the ops as soon as they are received, then issues the query against the database. This change makes it so that ops are consistently ordered after diffs in results by delaying sending of ops until polling is complete.

Dev and documentation changes

  • #320 - Update dependencies in examples and bring corresponding example code up to date

v1.0.0-beta.24

29 Oct 00:25

Choose a tag to compare

Note - This version has been unpublished from NPM

sharedb@1.0.0-beta.24 was unpublished from NPM as of 2019-10-19 19:57:12 UTC. We thought there was a regression, but there was not. However, there was a minor (non API breaking) timing change, where ops emitted by a query subscription are now delayed for an extra event loop tick. The timing of subscriptions is not guaranteed, and this is not considered breaking.

All changes in this version are included in 1.0.0-beta.25.

Externally-visible changes

  • #215 - Allow options to be passed for fetch and getOps (@alecgibson)
    • Allows fetching of ops from the backend to get the metadata on them
  • #314 - Rename afterSubmit middleware hook to afterWrite (@alecgibson)
    • Continue to shim synonyms "afterSubmit" and "after submit" for backwards compatibility
  • #316 - Fix support for query subscriptions on projections with a filter not in the projection fields (@ericyhwang, @nateps)
  • #317 - Downgrade middleware stack dump from warn to info (@alecgibson)
  • #318 - Update dependencies & node versions in travis (@nateps)
    • deep-is => fast-deep-equal, since deep-is has some correctness bugs, is much slower, and isn't well maintained
    • expect.js => chai for assertions
    • instanbul => nyc for generating coverage reports
    • Update all dev-dependency versions to current
    • Add Node 12 & remove Node 6 from travis configuration to bring current with Node LTS versions

Dev and documentation changes