nuxt-typed-router 3.6.1 → 3.6.3

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/README.md CHANGED
@@ -63,11 +63,7 @@ Demo repo 🧪 : [nuxt-typed-router-demo](https://github.com/victorgarciaesgi/nu
63
63
  ### For Nuxt 3
64
64
 
65
65
  ```bash
66
- yarn add -D nuxt-typed-router
67
- # or
68
- npm install -D nuxt-typed-router
69
- # or
70
- pnpm install -D nuxt-typed-router
66
+ npx nuxi@latest module add typed-router
71
67
  ```
72
68
 
73
69
 
package/dist/module.json CHANGED
@@ -5,5 +5,5 @@
5
5
  "nuxt": "^3.0.0",
6
6
  "bridge": false
7
7
  },
8
- "version": "3.6.1"
8
+ "version": "3.6.3"
9
9
  }
package/dist/module.mjs CHANGED
@@ -390,7 +390,7 @@ function createTypedRouterFile() {
390
390
  * {@link RouteLocationRaw}
391
391
  * */
392
392
  export type TypedRouteLocationRaw<T extends string = string> =
393
- | (Omit<Exclude<RouteLocationRaw, string>, 'name' | 'params'> & RoutesNamedLocations)
393
+ | (Omit<Exclude<RouteLocationRaw, string>, 'name' | 'params' | 'path'> & RoutesNamedLocations)
394
394
  | Omit<RouteLocationPathRaw, 'path'>
395
395
  ${returnIfTrue(
396
396
  pathCheck && !strictOptions.router.strictRouteLocation,
@@ -404,7 +404,7 @@ function createTypedRouterFile() {
404
404
  * Alternative version of {@link TypedRouteLocationRaw} but with a name generic
405
405
  */
406
406
  export type TypedRouteLocationRawFromName<T extends RoutesNamesList, P extends string = string> =
407
- | (Omit<Exclude<RouteLocationRaw, string>, 'name' | 'params'> & TypedLocationAsRelativeRaw<T>)
407
+ | (Omit<Exclude<RouteLocationRaw, string>, 'name' | 'params' | 'path'> & TypedLocationAsRelativeRaw<T>)
408
408
  | Omit<RouteLocationPathRaw, 'path'>
409
409
  ${returnIfTrue(
410
410
  pathCheck && !strictOptions.router.strictRouteLocation,
@@ -606,7 +606,21 @@ function createTypedRouterDefinitionFile() {
606
606
  > & {
607
607
  $props: TypedNuxtLinkProps<T, P, E>;
608
608
  };
609
-
609
+
610
+ declare module '@vue/runtime-core' {
611
+ interface GlobalComponents {
612
+ NuxtLink: TypedNuxtLink;
613
+ ${returnIfTrue(i18n, ` NuxtLinkLocale: TypedNuxtLinkLocale;`)}
614
+ }
615
+ }
616
+
617
+ declare module '@vue/runtime-dom' {
618
+ interface GlobalComponents {
619
+ NuxtLink: TypedNuxtLink;
620
+ ${returnIfTrue(i18n, ` NuxtLinkLocale: TypedNuxtLinkLocale;`)}
621
+ }
622
+ }
623
+
610
624
  declare module 'vue' {
611
625
  interface GlobalComponents {
612
626
  NuxtLink: TypedNuxtLink;
@@ -958,7 +972,7 @@ function createi18nRouterFile() {
958
972
  to: TypedRouteLocationRawFromName<T, P>,
959
973
  locale?: I18nLocales | undefined
960
974
  ) : [T] extends [never] ? string : Required<
961
- (Omit<Exclude<RouteLocationRaw, string>, 'name' | 'params'> & TypedLocationAsRelativeRaw<T>)
975
+ (Omit<Exclude<RouteLocationRaw, string>, 'name' | 'params' | 'path'> & TypedLocationAsRelativeRaw<T>)
962
976
  >
963
977
  ${returnIfTrue(
964
978
  pathCheck && !router.strictToArgument,
@@ -1311,7 +1325,7 @@ export const helpers = {
1311
1325
  ): [T] extends [never]
1312
1326
  ? string
1313
1327
  : Required<
1314
- Omit<Exclude<RouteLocationRaw, string>, 'name' | 'params'> & TypedLocationAsRelativeRaw<T>
1328
+ Omit<Exclude<RouteLocationRaw, string>, 'name' | 'params' | 'path'> & TypedLocationAsRelativeRaw<T>
1315
1329
  > {
1316
1330
  return to as any;
1317
1331
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-typed-router",
3
- "version": "3.6.1",
3
+ "version": "3.6.3",
4
4
  "description": "Provide autocompletion for routes paths, names and params in Nuxt apps",
5
5
  "type": "module",
6
6
  "main": "./dist/module.cjs",
@@ -63,53 +63,53 @@
63
63
  "prettier": "^2.5.x || 3.x"
64
64
  },
65
65
  "dependencies": {
66
- "@nuxt/kit": "^3.10.2",
66
+ "@nuxt/kit": "^3.11.2",
67
67
  "chalk": "5.3.0",
68
68
  "defu": "6.1.4",
69
69
  "lodash-es": "4.17.21",
70
70
  "log-symbols": "6.0.0",
71
71
  "mkdirp": "3.0.1",
72
- "nanoid": "5.0.3",
73
- "pathe": "1.1.1",
74
- "prettier": "3.1.0"
72
+ "nanoid": "5.0.7",
73
+ "pathe": "1.1.2",
74
+ "prettier": "3.2.5"
75
75
  },
76
76
  "devDependencies": {
77
- "@intlify/core-base": "9.9.1",
78
- "@intlify/message-compiler": "9.9.1",
79
- "@intlify/shared": "9.9.1",
77
+ "@intlify/core-base": "9.12.1",
78
+ "@intlify/message-compiler": "9.12.1",
79
+ "@intlify/shared": "9.12.1",
80
80
  "@intlify/vue-i18n-bridge": "1.1.0",
81
81
  "@intlify/vue-router-bridge": "1.1.0",
82
- "@nuxt/content": "2.12.0",
83
- "@nuxt/devtools": "1.0.8",
82
+ "@nuxt/content": "2.12.1",
83
+ "@nuxt/devtools": "1.1.5",
84
84
  "@nuxt/module-builder": "0.5.5",
85
- "@nuxt/schema": "3.10.2",
86
- "@nuxt/test-utils": "3.11.0",
85
+ "@nuxt/schema": "3.11.2",
86
+ "@nuxt/test-utils": "3.12.1",
87
87
  "@nuxt/types": "2.17.3",
88
88
  "@nuxtjs/eslint-config-typescript": "12.1.0",
89
- "@nuxtjs/i18n": "8.1.1",
89
+ "@nuxtjs/i18n": "8.3.0",
90
90
  "@nuxtjs/web-vitals": "0.2.6",
91
- "@playwright/test": "1.41.2",
91
+ "@playwright/test": "1.43.1",
92
92
  "@types/lodash-es": "4.17.12",
93
- "@types/node": "20.11.19",
94
- "@typescript-eslint/eslint-plugin": "7.0.2",
95
- "@typescript-eslint/parser": "7.0.2",
96
- "@vue/test-utils": "2.4.4",
97
- "bumpp": "9.3.0",
98
- "changelogithub": "0.13.3",
93
+ "@types/node": "20.12.7",
94
+ "@typescript-eslint/eslint-plugin": "7.7.0",
95
+ "@typescript-eslint/parser": "7.7.0",
96
+ "@vue/test-utils": "2.4.5",
97
+ "bumpp": "9.4.0",
98
+ "changelogithub": "0.13.7",
99
99
  "cross-env": "7.0.3",
100
- "eslint": "8.56.0",
100
+ "eslint": "9.0.0",
101
101
  "eslint-config-prettier": "9.1.0",
102
- "eslint-plugin-vue": "9.21.1",
103
- "nuxt": "3.10.2",
102
+ "eslint-plugin-vue": "9.25.0",
103
+ "nuxt": "3.11.2",
104
104
  "nuxt-seo-kit": "1.3.13",
105
- "playwright": "1.41.2",
106
- "tsd": "0.30.5",
107
- "typescript": "5.3.3",
108
- "vitest": "1.3.1",
109
- "vue": "3.4.19",
105
+ "playwright": "1.43.1",
106
+ "tsd": "0.31.0",
107
+ "typescript": "5.4.5",
108
+ "vitest": "1.5.0",
109
+ "vue": "3.4.23",
110
110
  "vue-eslint-parser": "9.4.2",
111
- "vue-i18n": "9.9.1",
112
- "vue-router": "4.2.5",
113
- "vue-tsc": "1.8.27"
111
+ "vue-i18n": "9.12.1",
112
+ "vue-router": "4.3.1",
113
+ "vue-tsc": "2.0.13"
114
114
  }
115
115
  }