Skip to content

Releases: share/sharedb

v1.0.0-beta.28

14 Nov 19:02
Compare
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
Compare
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
Compare
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
Compare
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
Compare
Choose a tag to compare

Note - This version has been unpublished from NPM

[email protected] 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

v1.0.0-beta.23

15 May 16:23
Compare
Choose a tag to compare

v1.0.0-beta.22

12 Apr 02:38
Compare
Choose a tag to compare
  • #222 - Make Connection#whenNothingPending always async (@gkubisa)
  • #283 - Clean up streams on "close" event, in addition to on "end" event (@curran)
    • This fixes #282, where Share wasn't closing the connection stream when using @teamwork/websocket-json-stream.

v1.0.0-beta.21

27 Mar 23:11
Compare
Choose a tag to compare
  • #278 - Add new "reply" middleware action (@ericyhwang)
    • The "reply" middleware is called just before the backend is about to send a non-error reply to a client.
    • It's the flip side of the existing "receive" middleware action.
    • The middleware function gets a context with these properties:
      • request
      • reply
      • action (always 'reply' for this middleware)
      • agent
      • backend

v1.0.0-beta.20

28 Feb 22:48
Compare
Choose a tag to compare
  • #273 - [fix] In Doc._clearInflightOp, clear inflightOp before calling callbacks (@ericyhwang)
    • Fixes #272, a double-callback issue during chained op submissions, where if the second op is invalid, the first op's callback gets called twice.

[UNPUBLISHED] v1.0.0-beta.19

14 Feb 22:46
Compare
Choose a tag to compare

This version was unpublished from NPM, at 2019-02-15, ~02:30 UTC.

It was causing issues in 'readSnapshots' middleware for queryPoll() calls. Single-document fetch and subscribe should not have been affected. See #269 for details.


  • #263 - For readSnapshots middleware, add request method and parameter info - @ericyhwang
    • When ShareDB invokes the readSnapshots middleware function, the first argument now contains new properties method and parameters.
    • These can be useful for logging and monitoring of the response sizes for snapshot read requests.