UNPKG

mobx-bonsai-yjs

Version:

Y.js two-way binding for mobx-bonsai

48 lines (27 loc) 1.96 kB
# Change Log ## mobx-bonsai 2.2.1 / mobx-bonsai-yjs 2.1.1 - Fixed Mobx 4/5 compatibility. ## mobx-bonsai 2.2.0 - `observer` is no longer used for nodes not under `onDeepChange` detection. - Added `setGlobalConfig({ checkCircularReferences: boolean })` option to enable/disable circular reference detection when attaching nodes. When enabled (opt-in), throws an error if a node would become an ancestor of itself. Disabled by default for performance reasons. - Optimized a bit snapshot invalidation. ## mobx-bonsai 2.1.1 - Fixed `onDeepInterceptedChange` so it supports returning the change to accept it or returning `null` to cancel it, like mobx `intercept` does. ## mobx-bonsai 2.1.0 - Reduced a bit memory usage per node. - Added `onDeepInterceptedChange` to handle changes -before- they happen. - Added `UndoManager`. (Note: If you are using the `Y.js` binding you should still use its own undo manager wherever possible). ## mobx-bonsai-yjs 2.1.0 - `yjsOrigin` parameter in `bindYjsToNode` now accepts either a `symbol` or a `() => symbol` function. When a function is provided, it will be called dynamically to retrieve the current origin symbol for each transaction, allowing for runtime origin symbol selection. ## mobx-bonsai 2.0.0 - Y.js bindings have been moved into a separate `mobx-bonsai-yjs` package. This solves issues when using the Y.js bindings on a ESM module environment. - Errors thrown by Y.js bindings will be now of type `MobxBonsaiYjsError` instead of `MobxBonsaiError`. ## mobx-bonsai 1.1.2 - Fix so that reassigning a same value won't invalidate an snapshot. ## mobx-bonsai 1.1.1 - Make Yjs dependency truly optional. ## mobx-bonsai 1.1.0 - Added an `extends` method to node types so that they can extend other node types. - `applyPlainObjectToYMap` / `applyPlainArrayToYArray` are no longer wrapped in mobx actions in case they want to track the original values. ## mobx-bonsai 1.0.0 - Initial public release.