Skip to content

chore: support React 19 (remove propTypes, update peerDependencies) #1178

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

bjornhansen
Copy link

Changes

Peer Dependency Update:

Updated react in peerDependencies in package.json to include React 19 (^16.11.0 || ^17 || ^18 || ^19).
This allows installation and use of this library with React 19, ensuring compatibility with the latest React ecosystem.

PropTypes Removal:

Removed propTypes usage from the Auth0Provider function component in auth0-provider.tsx.
React 19 no longer supports propTypes on function components; type safety is now enforced via TypeScript interfaces.

API Usage:

Usage of Auth0Provider and other APIs remains unchanged for consumers, except that runtime prop validation is now handled by TypeScript.

References

#1177
https://react.dev/blog/2024/04/25/react-19-upgrade-guide#new-deprecations

Testing

Manual Testing:

The package installs and works as expected with React 19.
Existing functionality was verified in a React 19 environment.

Automated Testing:

All existing unit and integration tests pass without errors.
No new tests were required, as this is a compatibility and maintenance update.

Checklist

@bjornhansen bjornhansen requested a review from a team as a code owner May 13, 2025 20:11
@subhankarmaiti
Copy link
Contributor

@bjornhansen React 19 support is being release in v5.0.0-beta.1

@bjornhansen
Copy link
Author

@subhankarmaiti Thanks for the prompt reply! I'll start using v5.

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