Skip to content

Update react-radfish to support React 19#715

Open
thgaskell wants to merge 5 commits intomainfrom
chore/update-react-19
Open

Update react-radfish to support React 19#715
thgaskell wants to merge 5 commits intomainfrom
chore/update-react-19

Conversation

@thgaskell
Copy link
Contributor

Summary

  • Update react peer dependency to ^19.2.1 in @nmfs-radfish/react-radfish
  • Add focus-trap-react@^10.2.3 as direct dependency (required by @trussworks/react-uswds)
  • Update @trussworks/react-uswds to ^10.2.0
  • Update all templates and examples to use React 19
  • Add verify-build.sh script for local package verification

Context

This PR unblocks future work to resolve ci integrations, which will add test and build steps to the PR workflow. The build step currently fails on main due to a missing focus-trap-react transitive dependency from @trussworks/react-uswds.

Test plan

  • npm test --workspaces -- --run passes (69 tests)
  • npm run build --workspaces --if-present succeeds
  • Template builds with local file: package references (scripts/verify-build.sh)
  • Dev server starts successfully on localhost:3000

- Update peerDependencies react to ^19.2.1
- Add focus-trap-react dependency required by @trussworks/react-uswds
- Add explicit name field to root package.json
Script runs workspace tests, builds packages, then verifies the
template works with local file: references. Requires clean git
state and discards all changes on exit.
@thgaskell thgaskell requested a review from jaygiang February 4, 2026 21:28
- Update @tanstack/react-table from ^8.16.0 to ^8.21.0 to avoid
  nested React 18 dependency resolution
- Change react peerDependency from "^18.2.0 || ^19.2.1" to "^19.2.1"
  to prevent duplicate React versions causing runtime errors
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.

1 participant