i18next 25.10.7 → 25.10.8

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.
@@ -1 +1 @@
1
- {"type":"module","version":"25.10.7"}
1
+ {"type":"module","version":"25.10.8"}
package/jsr.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i18next/i18next",
3
- "version": "25.10.7",
3
+ "version": "25.10.8",
4
4
  "license": "MIT",
5
5
  "exports": "./src/index.js",
6
6
  "publish": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "i18next",
3
- "version": "25.10.7",
3
+ "version": "25.10.8",
4
4
  "description": "i18next internationalization framework",
5
5
  "main": "./dist/cjs/i18next.js",
6
6
  "module": "./dist/esm/i18next.js",
package/typescript/t.d.ts CHANGED
@@ -514,6 +514,16 @@ type DeepUnwrapPlural<T> =
514
514
  type NsArg<Ns extends Namespace> = Ns[number] | readonly Ns[number][];
515
515
 
516
516
  interface TFunctionSelector<Ns extends Namespace, KPrefix, Source> extends Branded<Ns> {
517
+ // ── Pre-computed key(s) from keyFromSelector ────────────────────────────────
518
+ // Accepts a branded `SelectorKey` (or array of them) produced by `keyFromSelector`.
519
+ // Return-type precision is traded for the flexibility of decoupled key creation.
520
+ // Placed first so that the more general selector overloads (below) are last —
521
+ // TypeScript's `Parameters<>` utility resolves against the last call signature.
522
+ <const Opts extends SelectorOptions<Ns[number]> = SelectorOptions<Ns[number]>>(
523
+ key: SelectorKey | SelectorKey[],
524
+ ...args: [options?: Opts & $Dictionary]
525
+ ): DefaultTReturn<Opts>;
526
+
517
527
  // ── Selector(s) with explicit `ns` ───────────────────────────────────────────
518
528
  <
519
529
  Target extends ConstrainTarget<Opts>,
@@ -593,14 +603,6 @@ interface TFunctionSelector<Ns extends Namespace, KPrefix, Source> extends Brand
593
603
  ? [options: Opts & { count: number } & InterpolationMap<DeepUnwrapPlural<ReturnType<Fn>>>]
594
604
  : [options?: Opts & InterpolationMap<ReturnType<Fn>>]
595
605
  ): SelectorReturn<ReturnType<Fn>, Opts>;
596
-
597
- // ── Pre-computed key(s) from keyFromSelector ────────────────────────────────
598
- // Accepts a branded `SelectorKey` (or array of them) produced by `keyFromSelector`.
599
- // Return-type precision is traded for the flexibility of decoupled key creation.
600
- <const Opts extends SelectorOptions<Ns[number]> = SelectorOptions<Ns[number]>>(
601
- key: SelectorKey | SelectorKey[],
602
- ...args: [options?: Opts & $Dictionary]
603
- ): DefaultTReturn<Opts>;
604
606
  }
605
607
 
606
608
  interface SelectorOptions<Ns = Namespace>