Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add support for i18next v24 #1093

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

Conversation

lazka
Copy link

@lazka lazka commented Dec 9, 2024

v24 no longer supports compatibilityJSON=v3 so skip the tests for it when running with i18next v24.

Fixes #1090

Why am I submitting this PR

See title

Does it fix an existing ticket?

Yes #1090

Checklist

  • only relevant code is changed (make a diff before you submit the PR)
  • tests are included and pass: yarn test (see details here)
  • documentation is changed or added

v24 no longer supports compatibilityJSON=v3 so skip the tests for i
when running with i18next v24.

Fixes i18next#1090
Copy link

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/[email protected] None 0 566 kB adrai, jamuhl

🚮 Removed packages: npm/[email protected]

View full report↗︎

@@ -36,7 +36,7 @@
"esbuild": "^0.23.0",
"fs-extra": "^11.2.0",
"gulp-sort": "^2.0.0",
"i18next": "^23.5.1",
"i18next": "^23.5.1 || ^24.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.

Would it make sense to stop supporting v23 entirely instead?
If so, since that would be a breaking change, would it make sense to also move i18next to a peerDependency? It would help upstream projects with their dependency management.

Copy link
Author

@lazka lazka Dec 16, 2024

Choose a reason for hiding this comment

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

Would it make sense to stop supporting v23 entirely instead?

Your call. I seemed easy enough to support both, and it would make my life easier as I have various packages using i18next that depend on this, so I could update things gradually. But I'd be happy to change things if wanted.

If so, since that would be a breaking change, would it make sense to also move i18next to a peerDependency? It would help upstream projects with their dependency management.

I don't quite understand how peerDependency could help as I've never worked with that. Note that i18next-parser is importing/using i18next directly (

this.i18next = i18next.createInstance()
) and is not plugin as noted here: https://docs.npmjs.com/cli/v10/configuring-npm/package-json#peerdependencies but maybe I'm missing something.

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.

Add support for i18next v24
2 participants