react-i18next 13.3.2 → 13.4.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,11 @@
1
+ ### 13.4.1
2
+
3
+ - types: use CustomInstanceExtenstions to extend reportNamespaces
4
+
5
+ ### 13.4.0
6
+
7
+ - fix: separate cjs and mjs typings
8
+
1
9
  ### 13.3.2
2
10
 
3
11
  - types: fix consider importing '\*.js'
@@ -0,0 +1 @@
1
+ export * from './TransWithoutContext.js';
@@ -1 +1 @@
1
- {"type":"module","version":"13.3.2"}
1
+ {"type":"module","version":"13.4.1"}
@@ -0,0 +1 @@
1
+ export * from './icu.macro.js';
package/index.d.mts ADDED
@@ -0,0 +1 @@
1
+ export * from './index.js';
package/index.d.ts CHANGED
@@ -34,7 +34,10 @@ export interface ReportNamespaces {
34
34
  }
35
35
 
36
36
  declare module 'i18next' {
37
- interface i18n {
37
+ // interface i18n {
38
+ // reportNamespaces: ReportNamespaces;
39
+ // }
40
+ interface CustomInstanceExtenstions {
38
41
  reportNamespaces: ReportNamespaces;
39
42
  }
40
43
  }
@@ -0,0 +1 @@
1
+ export * from './initReactI18next.js';
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "react-i18next",
3
- "version": "13.3.2",
3
+ "version": "13.4.1",
4
4
  "description": "Internationalization for react done right. Using the i18next i18n ecosystem.",
5
5
  "main": "dist/commonjs/index.js",
6
- "types": "./index.d.ts",
6
+ "types": "./index.d.mts",
7
7
  "jsnext:main": "dist/es/index.js",
8
8
  "module": "dist/es/index.js",
9
9
  "keywords": [
@@ -20,28 +20,40 @@
20
20
  "exports": {
21
21
  "./package.json": "./package.json",
22
22
  ".": {
23
- "types": "./index.d.ts",
23
+ "types": {
24
+ "require": "./index.d.ts",
25
+ "import": "./index.d.mts"
26
+ },
24
27
  "module": "./dist/es/index.js",
25
28
  "import": "./dist/es/index.js",
26
29
  "require": "./dist/commonjs/index.js",
27
30
  "default": "./dist/es/index.js"
28
31
  },
29
32
  "./TransWithoutContext": {
30
- "types": "./TransWithoutContext.d.ts",
33
+ "types": {
34
+ "require": "./TransWithoutContext.d.ts",
35
+ "import": "./TransWithoutContext.d.mts"
36
+ },
31
37
  "module": "./dist/es/TransWithoutContext.js",
32
38
  "import": "./dist/es/TransWithoutContext.js",
33
39
  "require": "./dist/commonjs/TransWithoutContext.js",
34
40
  "default": "./dist/es/TransWithoutContext.js"
35
41
  },
36
42
  "./initReactI18next": {
37
- "types": "./initReactI18next.d.ts",
43
+ "types": {
44
+ "require": "./initReactI18next.d.ts",
45
+ "import": "./initReactI18next.d.mts"
46
+ },
38
47
  "module": "./dist/es/initReactI18next.js",
39
48
  "import": "./dist/es/initReactI18next.js",
40
49
  "require": "./dist/commonjs/initReactI18next.js",
41
50
  "default": "./dist/es/initReactI18next.js"
42
51
  },
43
52
  "./icu.macro": {
44
- "types": "./icu.macro.d.ts",
53
+ "types": {
54
+ "require": "./icu.macro..d.ts",
55
+ "import": "./icu.macro..d.mts"
56
+ },
45
57
  "default": "./icu.macro.js"
46
58
  }
47
59
  },
@@ -94,7 +106,7 @@
94
106
  "eslint-plugin-react": "^7.32.2",
95
107
  "eslint-plugin-testing-library": "^5.11.0",
96
108
  "husky": "^8.0.3",
97
- "i18next": "^23.4.5",
109
+ "i18next": "^23.7.6",
98
110
  "jest": "^24.8.0",
99
111
  "jest-cli": "^24.8.4",
100
112
  "lint-staged": "^8.1.3",
@@ -107,7 +119,7 @@
107
119
  "rollup": "3.25.1",
108
120
  "sinon": "^7.2.3",
109
121
  "tslint": "^6.1.3",
110
- "typescript": "^5.1.3",
122
+ "typescript": "5.1.3",
111
123
  "yargs": "^17.7.2"
112
124
  },
113
125
  "peerDependencies": {