Skip to content

Widen peer dependency range to include React 17 #814

@billyjanitsch

Description

@billyjanitsch

Summary of proposed feature

React 17 was released recently with minimal breaking changes. next-auth currently supports only ^16.13.1:

next-auth/package.json

Lines 57 to 60 in 5126f4e

"peerDependencies": {
"react": "^16.13.1",
"react-dom": "^16.13.1"
},

Could this be widened to ^16.13.1 || ^17.0.0?

Purpose of proposed feature

Allows apps using React 17 to also use next-auth without peer dependency warnings.

Detail about proposed feature
n/a

Potential problems
There are subtle differences between React 16 and React 17, so it's worth reviewing to see if any of them might affect the library's functionality.

Describe any alternatives you've considered
You could alternatively release a new major version of next-auth that peer-depends only on React ^17.0.0, but since the changes are minimal, you may not want to deprecate support for React 16 going forward.

Additional context
n/a

Please indicate if you are willing and able to help implement the proposed feature.
Yes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions