nuxt-typed-router 3.6.1 → 3.6.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/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.2"
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,
@@ -958,7 +958,7 @@ function createi18nRouterFile() {
958
958
  to: TypedRouteLocationRawFromName<T, P>,
959
959
  locale?: I18nLocales | undefined
960
960
  ) : [T] extends [never] ? string : Required<
961
- (Omit<Exclude<RouteLocationRaw, string>, 'name' | 'params'> & TypedLocationAsRelativeRaw<T>)
961
+ (Omit<Exclude<RouteLocationRaw, string>, 'name' | 'params' | 'path'> & TypedLocationAsRelativeRaw<T>)
962
962
  >
963
963
  ${returnIfTrue(
964
964
  pathCheck && !router.strictToArgument,
@@ -1311,7 +1311,7 @@ export const helpers = {
1311
1311
  ): [T] extends [never]
1312
1312
  ? string
1313
1313
  : Required<
1314
- Omit<Exclude<RouteLocationRaw, string>, 'name' | 'params'> & TypedLocationAsRelativeRaw<T>
1314
+ Omit<Exclude<RouteLocationRaw, string>, 'name' | 'params' | 'path'> & TypedLocationAsRelativeRaw<T>
1315
1315
  > {
1316
1316
  return to as any;
1317
1317
  },
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.2",
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.1",
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.6",
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.10.2",
78
+ "@intlify/message-compiler": "9.10.2",
79
+ "@intlify/shared": "9.10.2",
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.1",
86
+ "@nuxt/test-utils": "3.12.0",
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.42.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.3",
94
+ "@typescript-eslint/eslint-plugin": "7.5.0",
95
+ "@typescript-eslint/parser": "7.5.0",
96
+ "@vue/test-utils": "2.4.5",
97
+ "bumpp": "9.4.0",
98
+ "changelogithub": "0.13.5",
99
99
  "cross-env": "7.0.3",
100
- "eslint": "8.56.0",
100
+ "eslint": "8.57.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.24.0",
103
+ "nuxt": "3.11.1",
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.42.1",
106
+ "tsd": "0.31.0",
107
+ "typescript": "5.4.3",
108
+ "vitest": "1.4.0",
109
+ "vue": "3.4.21",
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.10.2",
112
+ "vue-router": "4.3.0",
113
+ "vue-tsc": "2.0.7"
114
114
  }
115
115
  }