Skip to content

chore: add React 19 to peerDependencies#11

Open
sanishkr wants to merge 1 commit intomasterfrom
chore/peer-deps-react-19
Open

chore: add React 19 to peerDependencies#11
sanishkr wants to merge 1 commit intomasterfrom
chore/peer-deps-react-19

Conversation

@sanishkr
Copy link
Owner

This updates package.json peerDependencies to allow React 19 (react and react-dom).

Why: frameworks like Next.js 16 already use React 19 and previously the package's peer range only allowed up to React 18 which caused install/build failures.

Verification steps I ran: npm ci && npm test (passes), npm run build (produces dist.js), and NODE_OPTIONS=--openssl-legacy-provider npm run umd (UMD build succeeds; webpack v4 + Node may require this workaround).

Recommendations: Consider upgrading to webpack 5 or adding a CI env var to set NODE_OPTIONS for UMD builds. Also optional: add `settings.react.version = "detect"` to .eslintrc.js to silence eslint-plugin-react warnings.

@FarhanAtAppyHigh
Copy link

Hi @sanishkr any updates on when are u planning to merge this PR!

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