react-i18next 15.7.0 → 15.7.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
+ ### 15.7.2
2
+
3
+ - update i18next dependency
4
+
5
+ ### 15.7.1
6
+
7
+ - Fix: \_EnableSelector type (for compatibility, enableSelector does not exist in TypeOptions) [1858](https://github.com/i18next/react-i18next/pull/1858)
8
+
1
9
  ### 15.7.0
2
10
 
3
11
  - add new selector API to improve TypeScript IDE performance [1852](https://github.com/i18next/react-i18next/pull/1852)
@@ -1 +1 @@
1
- {"type":"module","version":"15.7.0"}
1
+ {"type":"module","version":"15.7.2"}
package/index.d.ts CHANGED
@@ -67,7 +67,8 @@ type _DefaultNamespace = TypeOptions['defaultNS'];
67
67
 
68
68
  export function useSSR(initialI18nStore: Resource, initialLanguage: string): void;
69
69
 
70
- type _EnableSelector = TypeOptions['enableSelector'];
70
+ // If the version is earlier than i18next v25.4.0, enableSelector does not exist in TypeOptions, so a conditional type is used to maintain type compatibility.
71
+ type _EnableSelector = TypeOptions extends { enableSelector: infer U } ? U : false;
71
72
 
72
73
  export type UseTranslationOptions<KPrefix> = {
73
74
  i18n?: i18n;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-i18next",
3
- "version": "15.7.0",
3
+ "version": "15.7.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.mts",
@@ -68,7 +68,7 @@
68
68
  "html-parse-stringify": "^3.0.1"
69
69
  },
70
70
  "peerDependencies": {
71
- "i18next": ">= 23.2.3",
71
+ "i18next": ">= 25.4.1",
72
72
  "react": ">= 16.8.0",
73
73
  "typescript": "^5"
74
74
  },
@@ -123,7 +123,7 @@
123
123
  "eslint-plugin-testing-library": "^6.5.0",
124
124
  "happy-dom": "^14.12.3",
125
125
  "husky": "^9.1.7",
126
- "i18next": "^25.4.0",
126
+ "i18next": "^25.4.1",
127
127
  "lint-staged": "^15.5.2",
128
128
  "mkdirp": "^3.0.1",
129
129
  "prettier": "^3.6.2",