react-i18next
Advanced tools
Comparing version 15.1.4 to 15.2.0
@@ -0,1 +1,8 @@ | ||
### 15.2.0 | ||
This version may be breaking if you still use React < v18 with TypeScript. | ||
For JS users this version is equal to v15.1.4 | ||
- 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) | ||
### 15.1.4 | ||
@@ -2,0 +9,0 @@ |
@@ -1,1 +0,1 @@ | ||
{"type":"module","version":"15.1.4"} | ||
{"type":"module","version":"15.2.0"} |
@@ -45,10 +45,2 @@ import type { $Subtract, $Tuple } from './helpers.js'; | ||
declare global { | ||
namespace JSX { | ||
interface IntrinsicAttributes { | ||
i18nIsDynamicList?: boolean; | ||
} | ||
} | ||
} | ||
type ObjectOrNever = TypeOptions['allowObjectInHTMLChildren'] extends true | ||
@@ -61,2 +53,8 @@ ? Record<string, unknown> | ||
declare module 'react' { | ||
namespace JSX { | ||
interface IntrinsicAttributes { | ||
i18nIsDynamicList?: boolean; | ||
} | ||
} | ||
interface HTMLAttributes<T> { | ||
@@ -149,3 +147,3 @@ // This union is inspired by the typings for React.ReactNode. We do this to fix "This JSX tag's 'children' prop | ||
C extends React.ComponentType<React.ComponentProps<any> & WithTranslationProps>, | ||
ResolvedProps = JSX.LibraryManagedAttributes< | ||
ResolvedProps = React.JSX.LibraryManagedAttributes< | ||
C, | ||
@@ -152,0 +150,0 @@ $Subtract<React.ComponentProps<C>, WithTranslationProps> |
{ | ||
"name": "react-i18next", | ||
"version": "15.1.4", | ||
"version": "15.2.0", | ||
"description": "Internationalization for react done right. Using the i18next i18n ecosystem.", | ||
@@ -5,0 +5,0 @@ "main": "dist/commonjs/index.js", |
324724
6128