Skip to content

fix(react-doctor): migrate components to React 19 APIs#347

Open
bntvllnt wants to merge 1 commit into
mainfrom
fix/268-react19-migration
Open

fix(react-doctor): migrate components to React 19 APIs#347
bntvllnt wants to merge 1 commit into
mainfrom
fix/268-react19-migration

Conversation

@bntvllnt
Copy link
Copy Markdown
Collaborator

Summary

  • Migrates @vllnt/ui components from forwardRef to React 19 ref-as-prop functions.
  • Converts useContext call sites to React 19 use().
  • Raises @vllnt/ui React peer dependencies to >=19.0.0.
  • Regenerates registry component copies from the build output.
  • Note: the official React 19 codemod was attempted, but this environment is missing libsecret-1.so.0/keytar support, so an equivalent local jscodeshift transform plus manual fixes was used.

Validation

  • pnpm -F @vllnt/ui lint
  • pnpm -F @vllnt/ui exec tsc --noEmit --project tsconfig.build.json
  • pnpm -F @vllnt/ui-registry exec tsc --noEmit --project tsconfig.json
  • pnpm build
  • pnpm test:once: 216 files, 1215 tests passed
  • npx --yes react-doctor . --offline --json: no-react19-deprecated-apis=0
  • npx --yes react-doctor . --diff origin/main --annotations --fail-on error --offline
  • git diff --check

Closes #268

@bntvllnt bntvllnt added react-doctor Reported by react-doctor (codebase health) tech-debt Refactoring or cleanup labels May 13, 2026
@vercel
Copy link
Copy Markdown

vercel Bot commented May 13, 2026

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

Project Deployment Actions Updated (UTC)
storybook Ready Ready Preview, Comment May 13, 2026 1:36am
ui.vllnt.ai Ready Ready Preview, Comment May 13, 2026 1:36am

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

react-doctor Reported by react-doctor (codebase health) tech-debt Refactoring or cleanup

Projects

None yet

Development

Successfully merging this pull request may close these issues.

react-doctor: React 19 migration — no-react19-deprecated-apis (439 warnings)

1 participant