Skip to content

Conversation

@ochafik
Copy link
Collaborator

@ochafik ochafik commented Dec 16, 2025

Summary

  • Move react and react-dom from dependencies to peerDependencies with support for React 17, 18, and 19
  • Mark react dependencies as optional in peerDependenciesMeta (only /react subpath needs them)
  • Keep react and react-dom in devDependencies for local development/testing

Fixes #163

Test plan

  • npm install succeeds
  • npm test passes (33 tests)
  • npm run build:all succeeds (all examples build)
  • Verify consumers can use React 17/18/19 with the package

🤖 Generated with Claude Code

Move react and react-dom from dependencies to peerDependencies with
support for React 17, 18, and 19. This allows consumers to use their
preferred React version instead of forcing v19.

- Added peerDependencies for react/react-dom (^17 || ^18 || ^19)
- Marked react dependencies as optional in peerDependenciesMeta
- Moved react/react-dom to devDependencies for local development
- React is already externalized in the build (build.bun.ts)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@pkg-pr-new
Copy link

pkg-pr-new bot commented Dec 16, 2025

Open in StackBlitz

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/ext-apps@164

commit: 5d6406d

Copy link
Member

@jonathanhefner jonathanhefner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Note that all examples will still require React 19, but that should be fine.

@ochafik ochafik merged commit 31e05d3 into main Dec 16, 2025
19 checks passed
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.

Support multiple React versions

3 participants