react-i18next 11.17.0 → 11.17.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 CHANGED
@@ -1,3 +1,7 @@
1
+ ### 11.17.1
2
+
3
+ - Stricter typescript type for Trans components prop [1516](https://github.com/i18next/react-i18next/pull/1516)
4
+
1
5
  ### 11.17.0
2
6
 
3
7
  - Add support for keyPrefix in withTranslation [1512](https://github.com/i18next/react-i18next/pull/1512)
package/index.d.ts CHANGED
@@ -34,7 +34,7 @@ export interface TransProps<E extends Element = HTMLDivElement>
34
34
  extends React.HTMLProps<E>,
35
35
  Partial<WithT> {
36
36
  children?: React.ReactNode;
37
- components?: readonly React.ReactNode[] | { readonly [tagName: string]: React.ReactNode };
37
+ components?: readonly React.ReactElement[] | { readonly [tagName: string]: React.ReactElement };
38
38
  count?: number;
39
39
  context?: string;
40
40
  defaults?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-i18next",
3
- "version": "11.17.0",
3
+ "version": "11.17.1",
4
4
  "description": "Internationalization for react done right. Using the i18next i18n ecosystem.",
5
5
  "main": "dist/commonjs/index.js",
6
6
  "types": "./index.d.ts",
@@ -117,9 +117,9 @@
117
117
  "test:watch": "cross-env BABEL_ENV=development jest --no-cache --watch",
118
118
  "test:coverage": "cross-env BABEL_ENV=development jest --no-cache --coverage",
119
119
  "test:lint": "eslint ./src ./test",
120
- "test:typescript": "tslint --project tsconfig.json '**/*.ts'",
121
- "test:typescript:noninterop": "tslint --project tsconfig.nonEsModuleInterop.json '**/*.ts'",
122
- "test:typescript:customtypes": "tslint --project ./test/typescript/custom-types/tsconfig.json '**/*.ts'",
120
+ "test:typescript": "tslint --project tsconfig.json '**/*.{ts,tsx}'",
121
+ "test:typescript:noninterop": "tslint --project tsconfig.nonEsModuleInterop.json '**/*.{ts,tsx}'",
122
+ "test:typescript:customtypes": "tslint --project ./test/typescript/custom-types/tsconfig.json '**/*.{ts,tsx}'",
123
123
  "contributors:add": "all-contributors add",
124
124
  "contributors:generate": "all-contributors generate",
125
125
  "prettier": "prettier --write \"{,**/}*.{ts,tsx,js,json,md}\""
package/ts4.1/index.d.ts CHANGED
@@ -264,7 +264,7 @@ export type TransProps<
264
264
  E = React.HTMLProps<HTMLDivElement>
265
265
  > = E & {
266
266
  children?: TransChild | TransChild[];
267
- components?: readonly React.ReactNode[] | { readonly [tagName: string]: React.ReactNode };
267
+ components?: readonly React.ReactElement[] | { readonly [tagName: string]: React.ReactElement };
268
268
  count?: number;
269
269
  context?: string;
270
270
  defaults?: string;