Skip to content

Conversation

matthewlipski
Copy link
Collaborator

This PR updates y-prosemirror to v1.3.0, which adds support for overlapping marks. While updating the package does fix the issue, it seems to be pretty much incompatible with clients running the older version. Clients running the new version can still view, resolve, react to, reply to, and delete existing comments, but trying to create a new thread doesn't work properly.

The mark is created correctly and the thread + comment are added to the thread store, but the block containing the mark are deleted immediately after. I spent some time looking into this but could not figure out where this deletion is happening.

Documents which only have clients on the new version work fine.

Copy link

vercel bot commented Mar 26, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
blocknote ✅ Ready (Inspect) Visit Preview Mar 26, 2025 2:30pm
blocknote-website ✅ Ready (Inspect) Visit Preview Mar 26, 2025 2:30pm

@nperez0111
Copy link
Contributor

Yea, in my testing this is working sort of how I'd expect it. Old comments are still preserved & work properly. Older clients seeing new comments are problematic. The good thing is that we just released commenting in general. So this won't really be of much concern for us. Unfortunately, I don't see a better way around this, while still preserving the ability to comment on the same text concurrently. So, an acceptable tradeoff to make.

@nperez0111 nperez0111 self-requested a review March 27, 2025 14:59
@matthewlipski matthewlipski merged commit c17b9cf into main Mar 27, 2025
7 checks passed
@matthewlipski matthewlipski deleted the comments-overlapping-marks branch March 27, 2025 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants