Breaking change
Sanity: @sanity/collaboration v0.5.0: Removes the SDK panel and Portable Text wrapper
What changed
- Version 0.5.0 removes the SDK panel and Portable Text wrapper.
- The SDK now exports only SDKCommentsProvider.
- The panel and Portable Text editor now come from @sanity/collaboration/ui.
- The removed exports and props no longer exist, so related code fails to build.
- SDKCommentsPanel, SDKPortableTextComments, and useSDKThreadCallbacks are removed.
- A reply whose parent isn't in the flat list isn't shown.
- With SDKCommentsProvider, a failed create is reported to onError and the composer clears.
- On CommentsProvider, a failed onCreate or onReply is reported to onError and then rejects.
Who it affects
- Apps that import SDKCommentsPanel, SDKPortableTextComments or useSDKThreadCallbacks from @sanity/collaboration/sdk, or that pass threads, threadProps or onThreadCreate to CommentsPanel.
What to do now
- Pass the document to SDKCommentsProvider and render CommentsPanel or PortableTextComments from @sanity/collaboration/ui inside it, then rename the listed props.
- Rename write props wherever they are passed.
- https://www.sanity.io/docs/llms.txt
Your users need to hear about your changes too
FoxPlug writes the changelog entry, the heads-up email draft and the social posts from what you ship.
Try it on your projectYour changelog, written for you
FoxPlug writes your changelog from your releases and commits in plain English and publishes it as a page and a feed your users can follow. The page above shows what that looks like for a product people really use.
Write my changelog See the changelog FoxPlug wrote from its own commits
Free to start. Pro is a month.
FoxPlug Pro
- A public changelog page and feed for each project
- Written from your releases and commits, in plain English your users read
- Connect GitHub and new releases become new entries