react-i18next 13.2.0 → 13.2.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
+ ### 13.2.1
2
+
3
+ - types: Allow iterable ReactI18NextChildren as children [1669](https://github.com/i18next/react-i18next/pull/1669)
4
+
1
5
  ### 13.2.0
2
6
 
3
7
  - Don't use defaults prop as default key [1664](https://github.com/i18next/react-i18next/pull/1664)
package/README.md CHANGED
@@ -168,9 +168,6 @@ This project follows the [all-contributors](https://github.com/kentcdodds/all-co
168
168
  <a href="https://locize.com/" target="_blank">
169
169
  <img src="https://raw.githubusercontent.com/i18next/i18next/master/assets/locize_sponsor_240.gif" width="240px">
170
170
  </a>
171
- <a href="https://localistars.com/" target="_blank">
172
- <img src="https://raw.githubusercontent.com/i18next/i18next/master/assets/localistars_sponsor_240.gif" width="240px">
173
- </a>
174
171
  </p>
175
172
 
176
173
  ---
@@ -1 +1 @@
1
- {"type":"module","version":"13.2.0"}
1
+ {"type":"module","version":"13.2.1"}
package/index.d.ts CHANGED
@@ -52,7 +52,10 @@ type ReactI18NextChildren = React.ReactNode | ObjectOrNever;
52
52
 
53
53
  declare module 'react' {
54
54
  interface HTMLAttributes<T> {
55
- children?: ReactI18NextChildren;
55
+ // This union is inspired by the typings for React.ReactNode. We do this to fix "This JSX tag's 'children' prop
56
+ // expects a single child of type 'ReactI18NextChildren', but multiple children were provided":
57
+ // https://github.com/DefinitelyTyped/DefinitelyTyped/blob/5a1e9f91ed0143adede394adb3f540e650455f71/types/react/index.d.ts#L268
58
+ children?: ReactI18NextChildren | Iterable<ReactI18NextChildren>;
56
59
  }
57
60
  }
58
61
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-i18next",
3
- "version": "13.2.0",
3
+ "version": "13.2.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",
@@ -75,6 +75,7 @@
75
75
  "@testing-library/jest-dom": "^5.16.5",
76
76
  "@testing-library/react": "^11.2.7",
77
77
  "@testing-library/react-hooks": "^3.4.2",
78
+ "@types/react": "^18.2.21",
78
79
  "all-contributors-cli": "^6.26.0",
79
80
  "babel-core": "^7.0.0-bridge.0",
80
81
  "babel-jest": "^24.8.0",