react-i18next 15.1.4 → 15.2.0
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 +7 -0
- package/dist/es/package.json +1 -1
- package/index.d.ts +7 -9
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
### 15.2.0
|
|
2
|
+
|
|
3
|
+
This version may be breaking if you still use React < v18 with TypeScript.
|
|
4
|
+
For JS users this version is equal to v15.1.4
|
|
5
|
+
|
|
6
|
+
- fix: Global JSX namespace is deprecated [1823](https://github.com/i18next/react-i18next/issues/1823) with [1822](https://github.com/i18next/react-i18next/pull/1822)
|
|
7
|
+
|
|
1
8
|
### 15.1.4
|
|
2
9
|
|
|
3
10
|
- Fix: warning each child should have a unique key [1820](https://github.com/i18next/react-i18next/pull/1820)
|
package/dist/es/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"type":"module","version":"15.
|
|
1
|
+
{"type":"module","version":"15.2.0"}
|
package/index.d.ts
CHANGED
|
@@ -42,14 +42,6 @@ declare module 'i18next' {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
declare global {
|
|
46
|
-
namespace JSX {
|
|
47
|
-
interface IntrinsicAttributes {
|
|
48
|
-
i18nIsDynamicList?: boolean;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
45
|
type ObjectOrNever = TypeOptions['allowObjectInHTMLChildren'] extends true
|
|
54
46
|
? Record<string, unknown>
|
|
55
47
|
: never;
|
|
@@ -57,6 +49,12 @@ type ObjectOrNever = TypeOptions['allowObjectInHTMLChildren'] extends true
|
|
|
57
49
|
type ReactI18NextChildren = React.ReactNode | ObjectOrNever;
|
|
58
50
|
|
|
59
51
|
declare module 'react' {
|
|
52
|
+
namespace JSX {
|
|
53
|
+
interface IntrinsicAttributes {
|
|
54
|
+
i18nIsDynamicList?: boolean;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
60
58
|
interface HTMLAttributes<T> {
|
|
61
59
|
// This union is inspired by the typings for React.ReactNode. We do this to fix "This JSX tag's 'children' prop
|
|
62
60
|
// expects a single child of type 'ReactI18NextChildren', but multiple children were provided":
|
|
@@ -144,7 +142,7 @@ export function withTranslation<
|
|
|
144
142
|
},
|
|
145
143
|
): <
|
|
146
144
|
C extends React.ComponentType<React.ComponentProps<any> & WithTranslationProps>,
|
|
147
|
-
ResolvedProps = JSX.LibraryManagedAttributes<
|
|
145
|
+
ResolvedProps = React.JSX.LibraryManagedAttributes<
|
|
148
146
|
C,
|
|
149
147
|
$Subtract<React.ComponentProps<C>, WithTranslationProps>
|
|
150
148
|
>,
|