feat(yhub): migrate versioning client to upstream yhub API - #2979
Open
nperez0111 wants to merge 1 commit into
Open
feat(yhub): migrate versioning client to upstream yhub API#2979nperez0111 wants to merge 1 commit into
nperez0111 wants to merge 1 commit into
Conversation
Update the YHub versioning endpoints to match the upstream yjs/yhub API (v0.3.0+), which introduced versioned URL paths and new response shapes.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
Caution Review failedAn error occurred during the review process. Please try again later. 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 |
@blocknote/ariakit
@blocknote/code-block
@blocknote/core
@blocknote/diagram-block
@blocknote/mantine
@blocknote/math-block
@blocknote/react
@blocknote/server-util
@blocknote/shadcn
@blocknote/xl-ai
@blocknote/xl-docx-exporter
@blocknote/xl-email-exporter
@blocknote/xl-multi-column
@blocknote/xl-odt-exporter
@blocknote/xl-pdf-exporter
commit: |
|
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.
Summary
Migrate the YHub versioning client and example to the upstream yjs/yhub API (v0.3.0+), which introduced versioned URL paths and new response shapes.
Rationale
The upstream yhub server has introduced breaking API changes (versioned URL paths, wrapped activity responses, renamed changeset fields). This PR updates the BlockNote client to match, so it works against the current upstream yhub.
Changes
/{endpoint}/{org}/{docId}→/{endpoint}/v1/{org}/{docId}(thebaseUrloption now includes the API prefix, e.g.https://yhub.example.com/api){ activity: [...] }wrapper (3 call sites)prevDoc/nextDocreplaced withydoc?userid=query param tobyfield in request body?from=query param (body-only)/api/ws/v1in the exampleImpact
Breaking change for
baseUrl— callers must now include the API prefix (e.g./api) in theirbaseUrl. The versioning example is updated accordingly.Testing
yhub.test.tspassChecklist