PropelAuth/react

Set peer dependencies to greater-than instead of specific major versions

Opened this issue · 0 comments

This package's peer dependencies specify React 16, 17, and 18 major versions:

  "peerDependencies": {
    "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
    "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
  },

Every time a new major version of React is released, the peer dependencies must be updated to include it. A more future-proof way to support newer versions is:

    "react": ">=16.8.0",

This may be frowned upon because "it hasn't been tested with React X.Y.Z". The choice should be up to the developer whether to use this with a newer version of React and report any issues. With the current setting, it won't install at all and no one can evaluate it with newer React versions.