- use
op batchinstead ofopevent for batching ops, to prevent conceptual atomic transactions such as object moving from being tear apart into string editing, causing rendering issue. - separate sharedb bundle tool from build script to a standalone package.json
- support
intervaloption inpingapi, andpingIntervaloption in ews constructor. - change minimal ping interval from 60s to 20s.
- watch for
Connectionerrors so caller can handle those errors.
- prevent calling
closeandsendwithout_ws - make
close-handlerwork only if event source =_ws - use
oninstead ofaddEventListenerforofflineevent
- due to untrustable
closeevent, we move close event handler to a standalone function, and call it from both close and offline event.
- fire
offlineevent when offline event received from window. - upgrade dependencies
- support
pingfunction, which sendpingmessage to server every 60s by default if page is visible - fix bug:
status()should query status from_srcif this is a scoped ws.
- pass
opparameter from middlewaresubmitaction to access function for fine-grained access control
- fix bug: ws refresh causes ews losing event handlers.
- fix bug: pipe create new ews which depends on source ws, however source ws may update, may not ready yet, lead to unusable piped ews. additional tracing from root ews is added to update the whole ews pipe tree.
- upgrade dependencies
- wrap lderror in sharedb error format so we can't decode it back to a lderror object in client side.
- remove
idfromaccessfunction in readSnapshots for multi-snapsthos scenario - support
submithook for access checking - support metadata injection with
metadatacalled withcommithook. - refind document for
accessandmetadataparameters.
- support immediately reconnect option
- fire
closeevent in sharedb client when socket closed - document events in sharedb client
- fix bug: disconnect handler doesn't correctly clean up internal variables
- again add missing dependency
wsfor server side usage
- add missing dependencies for server side usage
- internal event listeners should be run before user event listeners
- fix bug:
_schemeincorrect set - fix bug:
_wsshould be cleared when socket closes.
- addEventListener with default
{}option if option is null.- without this,
wsversion > 8 may fail due to incorrectly initialization of option.
- without this,
- provide more information in error log
- init release