fix(collaboration): per-file Y.Map storage + server-side sync#2031
Draft
caio-pizzol wants to merge 6 commits intomainfrom
Draft
fix(collaboration): per-file Y.Map storage + server-side sync#2031caio-pizzol wants to merge 6 commits intomainfrom
caio-pizzol wants to merge 6 commits intomainfrom
Conversation
Remove the `excludeSyncedContent` flag from the public API. Files already synced via y-prosemirror XmlFragment (word/document.xml) are now always excluded from Y.Map storage during collaboration — no configuration needed.
8f54e2f to
c4a7c51
Compare
Without this, updateYdocDocxData only wrote files returned by
exportDocx({ getUpdatedDocs: true }) — which excludes static assets
like themes, fontTable, and docProps. Joining clients would read from
the incomplete docxFiles map and lose those files on export.
Now seeds docxFiles with ALL legacy entries before writing changed
files, and deletes the old meta.docx to free up space in the Y.Doc.
Update collaboration test suite to match the new per-file docxFilesMap format. Tests now verify: per-file writes, CRDT-synced file exclusion, docxReady flag, legacy migration with meta.docx deletion, and Y.Array/iterable normalization.
Rename collab-server.js → hocuspocus-server.js and liveblocks-proxy.js → liveblocks-server.js for consistency. Add dev:collab:hocuspocus and dev:collab:liveblocks scripts to both root and superdoc package.json. Remove standalone collab-server script.
Contributor
Via L3 deep analysis · critical risk |
… header/footer support
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.