Skip to content
New issue

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

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

Already on GitHub? # to your account

chore: bump i18next peer dependency #38

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

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.
@@ -54,13 +54,13 @@
"i18next-multiload-backend-adapter": "^1.0.0"
},
"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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants