Skip to content

Add v2 to v3 migration guide#2175

Draft
Copilot wants to merge 5 commits intomainfrom
copilot/update-v2-to-v3-guidelines
Draft

Add v2 to v3 migration guide#2175
Copilot wants to merge 5 commits intomainfrom
copilot/update-v2-to-v3-guidelines

Conversation

Copy link
Copy Markdown

Copilot AI commented Feb 18, 2026

Documents breaking changes and upgrade path from v2 to v3. Primary breaking change is refractor/react-refractor upgrade (addressing CVE-2024-53382) with API changes affecting direct consumers.

Changes

  • MIGRATION.md: Comprehensive upgrade guide covering:

    • Node.js requirement: >=14.0.0>=20.19.0 || >=22.12.0
    • refractor: 4.9.05.0.0, react-refractor: 2.2.04.0.0
    • API migration for direct react-refractor users (default → named exports, import path changes)
    • Step-by-step upgrade instructions
  • README.md: Added migration section linking to guide

Impact

Users of @sanity/ui Code component require no code changes. Direct react-refractor consumers need to update imports:

// Before
-import Refractor from 'react-refractor'
-import javascript from 'refractor/lang/javascript'
-Refractor.registerLanguage(javascript)

// After
+import {Refractor, registerLanguage} from 'react-refractor'
+import javascript from 'refractor/javascript'
+registerLanguage(javascript)

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@vercel
Copy link
Copy Markdown

vercel bot commented Feb 18, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sanity-ui-storybook Error Error Feb 18, 2026 2:46pm
sanity-ui-workshop Ready Ready Preview, Comment Feb 18, 2026 2:46pm

Request Review

Co-authored-by: bobinska-dev <72471533+bobinska-dev@users.noreply.github.com>
Copilot AI and others added 3 commits February 18, 2026 14:44
Co-authored-by: bobinska-dev <72471533+bobinska-dev@users.noreply.github.com>
Co-authored-by: bobinska-dev <72471533+bobinska-dev@users.noreply.github.com>
Co-authored-by: bobinska-dev <72471533+bobinska-dev@users.noreply.github.com>
Copilot AI changed the title [WIP] Update documentation for v2 to v3 package changes Add v2 to v3 migration guide Feb 18, 2026
Copilot AI requested a review from bobinska-dev February 18, 2026 14:46
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