@i18n-micro/route-strategy 1.1.18 → 1.1.23

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,9 +1,9 @@
1
1
  import { Locale } from '@i18n-micro/types';
2
2
  import { NuxtPage } from '@nuxt/schema';
3
+ export { isInternalPath } from '@i18n-micro/utils/app-path';
3
4
  export declare const cloneArray: <T extends object>(array: T[]) => T[];
4
5
  export declare const isPageRedirectOnly: (page: NuxtPage) => boolean;
5
6
  export declare const buildRouteName: (baseName: string, localeCode: string, isCustom: boolean, prefix?: string) => string;
6
7
  export declare const buildRouteNameFromRoute: (name: string | null | undefined, routePath: string | null | undefined) => string;
7
8
  export declare const shouldAddLocalePrefix: (locale: string, defaultLocale: Locale, addLocalePrefix: boolean) => boolean;
8
9
  export declare const isLocaleDefault: (locale: string | Locale, defaultLocale: Locale) => boolean;
9
- export declare function isInternalPath(path: string, excludePatterns?: (string | RegExp | object)[]): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i18n-micro/route-strategy",
3
- "version": "1.1.18",
3
+ "version": "1.1.23",
4
4
  "description": "Locale-aware route generator for Nuxt i18n micro",
5
5
  "keywords": [
6
6
  "i18n",
@@ -62,15 +62,16 @@
62
62
  "access": "public"
63
63
  },
64
64
  "dependencies": {
65
- "@nuxt/schema": "^3.18.1 || ^4.0.0",
66
- "@i18n-micro/core": "^1.3.15",
67
- "@i18n-micro/types": "^1.2.12"
65
+ "@nuxt/schema": "^3.18.1 || ^4.5.2",
66
+ "@i18n-micro/core": "^1.3.16",
67
+ "@i18n-micro/types": "^1.2.13",
68
+ "@i18n-micro/utils": "^1.0.21"
68
69
  },
69
70
  "devDependencies": {
70
- "publint": "^0.3.17",
71
- "vite": "^7.3.6",
72
- "vite-plugin-dts": "^4.5.4",
73
- "vitest": "^4.1.10"
71
+ "publint": "^0.3.24",
72
+ "vite": "^8.2.2",
73
+ "vite-plugin-dts": "^5.1.0",
74
+ "vitest": "^4.1.11"
74
75
  },
75
76
  "engines": {
76
77
  "node": ">=18"