Skip to content

Conversation

@thgh
Copy link
Member

@thgh thgh commented May 5, 2022

This does not have any impact for dependents except for a warning on install.

What

How

Ticket

Ticket

Analytics

  • Added analytics
  • Documented analytics

Demo

This does not have any impact for dependents except for a warning on install.
},
"peerDependencies": {
"i18next": "^20.0.0",
"i18next": "^21.0.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this also requires giving the translations package a major bump, so we don't slip in a breaking change for users down stream

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good reflex! But as mentioned in the commit and PR:

This does not have any impact for dependents except for a warning on install.

Peer dependencies have 0 impact on the outcome (filewise) of npm/yarn. Only the output will show a yellow warning. Looking at existing projects, most are already using 21 so this would actually resolve this.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"i18next": "^21.0.0",
"i18next": "20 - 21",

is the best solution here I think. we've also used this in the eslint config: https://github.com/bothrs/eslint-config/blob/main/package.json#L83
notice also that peer dependencies never have a ^ or full version number like 21.0.0

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.

3 participants