Repository navigation
fix(shared-notes): drop the table crash workaround, fixed upstream in BlockNote 0.53 - #25615
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (2)
Included review availability: Your plan includes up to 8 reviews per rolling hour; 7 remain after this review. WalkthroughBlockNote dependencies are upgraded to Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to The change updates the shared-notes editor dependencies and collaboration integration while removing an obsolete crash workaround and adding regression coverage; no actionable merge-blocking risk remains beyond normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
This pull request has conflicts ☹ |
✅ Automated tests have passed! |
What
Updates BlockNote from 0.51 to 0.53 in
bigbluebutton-html5andbbb-shared-notes-server, drops the local workaround added in #25076 now that theupstream bug is fixed, and adds a regression suite that would catch it coming back.
Changes
1. Drop the
bbbFixCursorAtOriginworkaround. #25076 patched a crash where clickingthe editor's left margin next to a leading table threw a position-out-of-range error and
took the client down. It was fixed upstream in TypeCellOS/BlockNote#2911 (issue #2748),
so the local patch is removed in favour of the upstream fix.
2. Migrate to
withCollaboration. This is the riskiest part of the PR and touchesthe whole collaboration path, so it deserves attention in review. In 0.53
collaborationis no longer a
BlockNoteEditorOptionsfield — it ships as an extension behind the@blocknote/core/yjssubpath. TheuseCreateBlockNoteoptions object is now wrapped inwithCollaboration(...). Behaviour is meant to be unchanged: same Hocuspocus provider,same awareness object, same remote-cursor rendering.
3. New dependencies (and one removal). 0.53 moved
y-prosemirror,yjs,y-protocolsand the@y/*packages from transitive dependencies of@blocknote/coreinto optional
peerDependencies. npm does not install optional peers, so anything theruntime actually loads has to be declared explicitly now:
y-prosemirror@^1.3.7@blocknote/core/dist/yjs.jsimports it at the top level. Without it the notes server crash-loops at boot withERR_MODULE_NOT_FOUND. Range matches the core's peer.yjs@^13.6.29^13.6.23, which sat below the core's^13.6.27peer floor — both tiers now declare the same range.y-protocols@^1.0.7@hocuspocus/server(y-protocols/awareness,y-protocols/sync), but until now it only survived in the tree because third parties declare it as a non-optional peer — the same fragility that brokey-prosemirrorhere. Already the range html5 uses, so both tiers stay on one protocol line. Resolved version is unchanged; the lock diff is just dropping"peer": true.Also removes
[email protected]frombbb-shared-notes-server, added by accident in #24519and imported nowhere (npm flags it as deprecated).
4. Regression coverage.
bigbluebutton-tests/playwright/sharednotes/blocknote/table.spec.tscovers the three interactions around a leading table that used to crash the client:
arrowing left out of the first cell, clicking the editor's left margin, and the alignment
control inside a cell. Each asserts no out-of-range error, no error screen, and an editor
that still accepts typing.
Testing
npm ci+ build on both tiers, notes server boots and serves.multi-user collaboration and remote cursors.
table.spec.tssuite passing.