react-i18next 13.0.0 → 13.0.2

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,11 @@
1
+ ### 13.0.2
2
+
3
+ - export icu.macro [1652](https://github.com/i18next/react-i18next/issues/1652)
4
+
5
+ ### 13.0.1
6
+
7
+ - types: Fix performance issue in Trans component [1646](https://github.com/i18next/react-i18next/pull/1646)
8
+
1
9
  ### 13.0.0
2
10
 
3
11
  - Update types to support t function redesign [1615](https://github.com/i18next/react-i18next/pull/1615)
@@ -1,12 +1,4 @@
1
- import type {
2
- i18n,
3
- ParseKeys,
4
- Namespace,
5
- TypeOptions,
6
- TOptions,
7
- TFunction,
8
- KeyPrefix,
9
- } from 'i18next';
1
+ import type { i18n, ParseKeys, Namespace, TypeOptions, TOptions, TFunction } from 'i18next';
10
2
  import * as React from 'react';
11
3
 
12
4
  type _DefaultNamespace = TypeOptions['defaultNS'];
@@ -38,6 +30,6 @@ export function Trans<
38
30
  Key extends ParseKeys<Ns, TOpt, KPrefix>,
39
31
  Ns extends Namespace = _DefaultNamespace,
40
32
  TOpt extends TOptions = {},
41
- KPrefix extends KeyPrefix<Ns> = undefined,
33
+ KPrefix = undefined,
42
34
  E = React.HTMLProps<HTMLDivElement>,
43
35
  >(props: TransProps<Key, Ns, TOpt, KPrefix, E>): React.ReactElement;
@@ -1 +1 @@
1
- {"type":"module","version":"13.0.0"}
1
+ {"type":"module","version":"13.0.2"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-i18next",
3
- "version": "13.0.0",
3
+ "version": "13.0.2",
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",
@@ -39,6 +39,10 @@
39
39
  "import": "./dist/es/initReactI18next.js",
40
40
  "require": "./dist/commonjs/initReactI18next.js",
41
41
  "default": "./dist/es/initReactI18next.js"
42
+ },
43
+ "./icu.macro": {
44
+ "types": "./icu.macro.d.ts",
45
+ "default": "./icu.macro.js"
42
46
  }
43
47
  },
44
48
  "homepage": "https://github.com/i18next/react-i18next",
@@ -89,7 +93,7 @@
89
93
  "eslint-plugin-react": "^7.32.2",
90
94
  "eslint-plugin-testing-library": "^5.11.0",
91
95
  "husky": "^3.0.3",
92
- "i18next": "^23.0.1",
96
+ "i18next": "^23.2.3",
93
97
  "jest": "^24.8.0",
94
98
  "jest-cli": "^24.8.4",
95
99
  "lint-staged": "^8.1.3",
@@ -106,7 +110,7 @@
106
110
  "yargs": "^17.7.2"
107
111
  },
108
112
  "peerDependencies": {
109
- "i18next": ">= 23.0.1",
113
+ "i18next": ">= 23.2.3",
110
114
  "react": ">= 16.8.0"
111
115
  },
112
116
  "peerDependenciesMeta": {