@bleedingdev/modern-js-i18n-runtime-extensions 3.8.3-ultramodern.5 → 3.9.0-ultramodern.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.
@@ -1,3 +1,3 @@
1
- export * from './language-sync/controller';
2
- export * from './language-sync/react';
3
- export * from './localisedUrls/index';
1
+ export * from './language-sync/controller.js';
2
+ export * from './language-sync/react.js';
3
+ export * from './localisedUrls/index.js';
@@ -1,5 +1,5 @@
1
1
  import type React from 'react';
2
- import { type LanguageSyncFailure, type LanguageSyncPolicy } from './controller';
2
+ import { type LanguageSyncFailure, type LanguageSyncPolicy } from './controller.js';
3
3
  export interface LatestLanguageSyncOptions<TTarget extends object> {
4
4
  changeLanguage: (target: TTarget, language: string) => PromiseLike<unknown> | unknown;
5
5
  commitLanguage: (target: TTarget, language: string) => void;
@@ -1,4 +1,4 @@
1
- import type { LocalisedUrlsOption, ResolvedLocalisedUrlsConfig } from './types';
1
+ import type { LocalisedUrlsOption, ResolvedLocalisedUrlsConfig } from './types.js';
2
2
  /**
3
3
  * Localised URLs are strictly opt-in: only an explicit, non-empty map enables
4
4
  * route expansion and validation. `true`, `false`, an empty map and absence
@@ -1,9 +1,9 @@
1
- export { resolveLocalisedUrlsConfig } from './config';
2
- export { normalisePathname, normalisePathPattern } from './normalise';
3
- export { canonicalTargetPathname, localiseTargetPathname, stripLanguagePrefix, } from './pathname';
4
- export { buildPathFromPattern, matchPathPattern } from './patterns';
5
- export type { LocaleRedirectSkipRule } from './redirect';
6
- export { DEFAULT_LOCALE_REDIRECT_SKIP_RULES, isDefaultLocaleRedirectSkipPath, matchesPathPrefix, shouldSkipLocaleRedirect, } from './redirect';
7
- export { resolveCanonicalLocalisedPath, resolveLocalisedPath } from './resolve';
8
- export { applyLocalisedUrlsToRoutes, validateLocalisedUrls } from './routes';
9
- export type { LocalisedRoute, LocalisedUrlPathMap, LocalisedUrlsMap, LocalisedUrlsOption, ResolvedLocalisedUrlsConfig, } from './types';
1
+ export { resolveLocalisedUrlsConfig } from './config.js';
2
+ export { normalisePathname, normalisePathPattern } from './normalise.js';
3
+ export { canonicalTargetPathname, localiseTargetPathname, stripLanguagePrefix, } from './pathname.js';
4
+ export { buildPathFromPattern, matchPathPattern } from './patterns.js';
5
+ export type { LocaleRedirectSkipRule } from './redirect.js';
6
+ export { DEFAULT_LOCALE_REDIRECT_SKIP_RULES, isDefaultLocaleRedirectSkipPath, matchesPathPrefix, shouldSkipLocaleRedirect, } from './redirect.js';
7
+ export { resolveCanonicalLocalisedPath, resolveLocalisedPath } from './resolve.js';
8
+ export { applyLocalisedUrlsToRoutes, validateLocalisedUrls } from './routes.js';
9
+ export type { LocalisedRoute, LocalisedUrlPathMap, LocalisedUrlsMap, LocalisedUrlsOption, ResolvedLocalisedUrlsConfig, } from './types.js';
@@ -1,4 +1,4 @@
1
- import type { LocalisedUrlsOption } from './types';
1
+ import type { LocalisedUrlsOption } from './types.js';
2
2
  export declare const stripLanguagePrefix: (pathname: string, languages: string[]) => string;
3
3
  export declare const localiseTargetPathname: (pathname: string, language: string, languages: string[], localisedUrls?: LocalisedUrlsOption) => string;
4
4
  export declare const canonicalTargetPathname: (pathname: string, languages: string[], localisedUrls?: LocalisedUrlsOption) => string;
@@ -1,4 +1,4 @@
1
- import type { LocalisedUrlsMap } from './types';
1
+ import type { LocalisedUrlsMap } from './types.js';
2
2
  export declare const resolveLocalisedPath: (pathname: string, targetLanguage: string, languages: string[], localisedUrls: LocalisedUrlsMap) => string;
3
3
  /**
4
4
  * Reverse-map language-specific pathnames back to language-agnostic
@@ -1,3 +1,3 @@
1
- import type { LocalisedRoute, LocalisedUrlsMap } from './types';
1
+ import type { LocalisedRoute, LocalisedUrlsMap } from './types.js';
2
2
  export declare const validateLocalisedUrls: (routes: LocalisedRoute[], languages: string[], localisedUrls: LocalisedUrlsMap) => void;
3
3
  export declare const applyLocalisedUrlsToRoutes: (routes: LocalisedRoute[], languages: string[], localisedUrls: LocalisedUrlsMap) => LocalisedRoute[];
package/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "modern.js",
18
18
  "i18n"
19
19
  ],
20
- "version": "3.8.3-ultramodern.5",
20
+ "version": "3.9.0-ultramodern.1",
21
21
  "types": "./dist/types/index.d.ts",
22
22
  "main": "./dist/cjs/index.js",
23
23
  "module": "./dist/esm/index.mjs",
@@ -47,12 +47,12 @@
47
47
  "i18next-browser-languagedetector": "^8.2.1"
48
48
  },
49
49
  "peerDependencies": {
50
- "@modern-js/runtime": "3.8.3-ultramodern.5",
50
+ "@modern-js/runtime": "3.9.0-ultramodern.1",
51
51
  "react": "^19.2.8"
52
52
  },
53
53
  "devDependencies": {
54
- "@modern-js/runtime": "npm:@bleedingdev/modern-js-runtime@3.8.3-ultramodern.5",
55
- "@rslib/core": "0.23.2",
54
+ "@modern-js/runtime": "npm:@bleedingdev/modern-js-runtime@3.9.0-ultramodern.1",
55
+ "@rslib/core": "1.0.0",
56
56
  "@scripts/rstest-config": "2.66.0",
57
57
  "@types/node": "^26.2.0",
58
58
  "@typescript/native-preview": "7.0.0-dev.20260707.2",