react-i18next 16.6.6 → 17.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/amd/react-i18next.js +176 -172
- package/dist/amd/react-i18next.min.js +1 -1
- package/dist/commonjs/TransWithoutContext.js +3 -2
- package/dist/es/TransWithoutContext.js +3 -2
- package/dist/es/package.json +1 -1
- package/dist/umd/react-i18next.js +176 -172
- package/dist/umd/react-i18next.min.js +1 -1
- package/package.json +17 -17
- package/react-i18next.js +176 -172
- package/react-i18next.min.js +1 -1
- package/src/TransWithoutContext.js +5 -2
- package/vitest.workspace.typescript.mts +47 -48
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## 17.0.1
|
|
2
|
+
|
|
3
|
+
- chore: bump minimum i18next peer dependency to `>= 26.0.1` _(forgot to do it in last version)_
|
|
4
|
+
- fix: migrate test setup from removed legacy `interpolation.format` to `i18n.services.formatter.add()` (i18next v26)
|
|
5
|
+
|
|
6
|
+
## 17.0.0
|
|
7
|
+
|
|
8
|
+
### Potentially breaking changes
|
|
9
|
+
|
|
10
|
+
- fix: `transKeepBasicHtmlNodesFor` now correctly preserves HTML tag names when children contain interpolations or mixed content [230](https://github.com/i18next/i18next-cli/issues/230)
|
|
11
|
+
- Previously, `<strong>{{name}}</strong>` was incorrectly serialized as `<1>{{name}}</1>` — the tag name was only preserved for plain string children
|
|
12
|
+
- This bug existed since the feature was introduced and affects auto-generated keys (when no explicit `i18nKey` is provided)
|
|
13
|
+
- If you rely on auto-generated Trans keys containing indexed tags for kept HTML elements with interpolation children, you will need to update your translation files
|
|
14
|
+
|
|
15
|
+
### Other changes
|
|
16
|
+
|
|
17
|
+
- updated dev dependencies (vitest, rollup plugins, happy-dom, typescript, etc.)
|
|
18
|
+
|
|
1
19
|
### 16.6.6
|
|
2
20
|
|
|
3
21
|
- fix(peer-deps): bump i18next peer dependency to `>= 25.10.9` to match required type exports (`ConstrainTarget`, `ApplyTarget`, `GetSource`) used by `TransSelector` [1911](https://github.com/i18next/react-i18next/issues/1911)
|