Releases: share/sharedb
Releases · share/sharedb
v1.3.2
#356 — fix presence resubscribe after destroy (@alecgibson)
v1.3.1
- #352 - Upgrade to async@2 (@ericyhwang)
v1.3.0
- #322 — Add Presence functionality (@gkubisa, @curran, @alecgibson)
- Warning - This current presence implementation may not scale to hundreds of subscribed clients on a given doc, as a new client subscribing to presence for a doc will request presence data from all other clients subscribed to presence on that doc.
- To enable presence handling for a server, pass
options.presence: true
to the ShareDB Backend constructor. - See
README
- Also see the presence example
v1.2.1
- #347 - Handshake immediately if socket is already open (@dead-horse)
- This only applies to the new handshake mechanism added in 1.2.0
v1.2.0
- #341 - Add basic handshake negotiation and stable op
src
for clients across reconnects (@alecgibson)- In sharedb <= 1.1.0, a client gets a new server-generated
connection.id
each time it reconnects to another server. This means each reconnection results in the client's ops having a newsrc
id andseq
numbers that begin anew from 1. - 1.2.0+ clients connecting to 1.2.0+ servers will now keep their first
connection.id
across reconnections. On server agents, this is available asagent.src
. The legacy server-generated id is still available asagent.clientId
. - This change is compatible both ways. Old clients can still connect to new servers. New clients can still connect to old servers, though if a a new client connects to an older server, it will change to the server-generated
connection.id
.
- In sharedb <= 1.1.0, a client gets a new server-generated
v1.1.0
- #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 readcontext.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
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
v1.0.0
🎉 [email protected] is here!
👉 See the upgrade guide for how to upgrade from the 1.x-beta releases:
https://github.com/share/sharedb/wiki/[email protected]
This is a summary of breaking changes from [email protected].*
to [email protected]
:
- #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.