Releases: share/sharedb
Releases · share/sharedb
v2.2.2
v2.2.1
- #525 - Only display "sendPresence" error deprecation if presence is enabled (@ericyhwang)
- [email protected] added a deprecation message for sending "sendPresence" middleware errors to clients, but it displayed the message even when presence was not enabled.
- This change reduces warning spam by only showing the deprecation warning when relevant.
v2.2.0
- #522 — add
receivePresence
middleware hook - #524 — deprecate sending
sendPresence
middleware errors to subscribers. The new behaviour will output errors to a new Backend error handler, which logs to console by default, and whose behaviour can be overridden by setting:
new Backend({errorHandler: (error, context) => {}});
To opt in to the new behaviour, set:
new Backend({doNotForwardSendPresenceErrorsToClient: true});
At the moment, this error handler will only handle thesesendPresence
middleware errors, but in the future may be expanded to handle other non-fatal ShareDB errors which are currently just logged.
v2.1.0
v2.0.0
v1.9.2
v1.9.1
- #498 — fix tests for downstream db drivers (@dwinrick-lever)
v1.9.0
- #496 — Improve historic op fetching with a breaking
json0
change