yjs / y-utility

Utility features for Yjs
MIT License
61 stars 8 forks source link

YMultiDocUndoManager is not compatible with yjs version above 13.6.12 #8

Open furkan3ayraktar opened 2 weeks ago

furkan3ayraktar commented 2 weeks ago

Describe the bug YMultiDocUndoManager clears the entire undo stack instead of popping one when it's used together with yjs version 13.6.13 or any version above that.

To Reproduce Steps to reproduce the behavior:

  1. Install yjs version 13.6.13 or above
  2. Install y-utility
  3. Create a YDoc and instantiate a YMultiDocUndoManager
  4. Do some operations on the doc and try undoing.
  5. Observe that all operations are undoed instead of the last one

Expected behavior Only last operation is undoed instead of all operations.

Environment Information

furkan3ayraktar commented 2 weeks ago

Related to https://github.com/yjs/yjs/issues/645

dmonad commented 2 weeks ago

Thanks! This is now fixed in the latest Yjs release (Yjs@13.6.18)

furkan3ayraktar commented 2 weeks ago

Thank you 🙌