react-i18next 11.18.0 → 11.18.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.18.1
2
+
3
+ - types: allow iterable with objects as children [1531](https://github.com/i18next/react-i18next/pull/1531)
4
+
1
5
  ### 11.18.0
2
6
 
3
7
  - ability to add custom unescape function [1529](https://github.com/i18next/react-i18next/pull/1529)
package/README.md CHANGED
@@ -168,6 +168,9 @@ 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>
171
174
  </p>
172
175
 
173
176
  ---
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-i18next",
3
- "version": "11.18.0",
3
+ "version": "11.18.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",
package/ts4.1/index.d.ts CHANGED
@@ -102,9 +102,12 @@ declare module 'i18next' {
102
102
  type ObjectOrNever = TypeOptions['allowObjectInHTMLChildren'] extends true
103
103
  ? Record<string, unknown>
104
104
  : never;
105
+
106
+ type ReactI18NextChild = React.ReactNode | ObjectOrNever;
107
+
105
108
  declare module 'react' {
106
109
  interface HTMLAttributes<T> {
107
- children?: ReactNode | ObjectOrNever;
110
+ children?: ReactI18NextChild | Iterable<ReactI18NextChild>;
108
111
  }
109
112
  }
110
113