y-utility icon indicating copy to clipboard operation
y-utility copied to clipboard

YMultiDocUndoManager is not compatible with yjs version above 13.6.12

Open furkan3ayraktar opened this issue 1 year ago • 3 comments

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

  • Browser [e.g. Chrome]
  • yjs v13.6.18
  • y-utility v0.1.4
  • [x] This issue is a blocker for my project.

furkan3ayraktar avatar Jun 18 '24 13:06 furkan3ayraktar

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

furkan3ayraktar avatar Jun 18 '24 13:06 furkan3ayraktar

Thanks! This is now fixed in the latest Yjs release ([email protected])

dmonad avatar Jun 18 '24 14:06 dmonad

Thank you 🙌

furkan3ayraktar avatar Jun 18 '24 14:06 furkan3ayraktar