Skip to content

Reflect react peer dependency of the react-redux package #1677

@stevebeauge

Description

@stevebeauge

Hello,

React-redux declare peer dependency to react:

"react": "^16.14.0 || ^17.0.0",

{
 "peerDependencies": {
    "react": "^16.14.0 || ^17.0.0"
  }
}

Shouldn't this follow the react-redux peer dependency ?
Which is :

https://github.com/reduxjs/react-redux/blob/adade2069061e09eaa046b10389aee265048e034/package.json#L43

{
  "peerDependencies": {
    "react": "^16.8.3 || ^17 || ^18"
  }
}

As far as I understand the node dependencies, it should be the same.

The background of my question is related to a project where I'm stick to react 16.13.1 (A sharepoint framework project if it matters). This is an issue due to strict dependencies check policy,

The install process emits peer dependency warning, because the 16.14.0 isn't installed.
But actually, the code should work with 16.8.3, from the react-redux package, which is the actual dependent on react.

Am I right ?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions