nuxt-typed-router 4.0.6 → 4.0.9

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/dist/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3.0.0 || >= 4.0.0"
6
6
  },
7
- "version": "4.0.6",
7
+ "version": "4.0.9",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
10
  "unbuild": "unknown"
package/dist/module.mjs CHANGED
@@ -1120,7 +1120,7 @@ function createPathsFiles({ routesPaths, routesList }) {
1120
1120
  const hasPrefixStrategy = i18n && i18nOptions?.strategy !== "no_prefix";
1121
1121
  const filteredRoutesPaths = routesPaths.filter((route) => !routesPaths.find((r) => `${route.path}/` === r.path)).map((route) => ({
1122
1122
  ...route,
1123
- path: route.path.replace(/\(\)/g, "")
1123
+ path: route.path.replace(/\(\)/g, "").replace(/\/\//g, "/")
1124
1124
  })).sort((a, b) => {
1125
1125
  const pathCountA = a.path.split("/");
1126
1126
  const pathCountB = b.path.split("/");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-typed-router",
3
- "version": "4.0.6",
3
+ "version": "4.0.9",
4
4
  "description": "Provide autocompletion for routes paths, names and params in Nuxt apps",
5
5
  "type": "module",
6
6
  "main": "./dist/module.mjs",
@@ -47,7 +47,7 @@
47
47
  "prettier": "^2.5.x || 3.x"
48
48
  },
49
49
  "dependencies": {
50
- "@nuxt/kit": "4.3.1",
50
+ "@nuxt/kit": "4.4.7",
51
51
  "better-sqlite3": "^12.6.2",
52
52
  "chalk": "5.6.2",
53
53
  "defu": "6.1.4",
@@ -67,8 +67,8 @@
67
67
  "@nuxt/content": "3.11.2",
68
68
  "@nuxt/devtools": "3.1.1",
69
69
  "@nuxt/module-builder": "1.0.2",
70
- "@nuxt/schema": "4.3.1",
71
- "@nuxt/test-utils": "4.0.0",
70
+ "@nuxt/schema": "4.4.7",
71
+ "@nuxt/test-utils": "4.0.3",
72
72
  "@nuxt/types": "2.18.1",
73
73
  "@nuxtjs/i18n": "10.2.3",
74
74
  "@nuxtjs/web-vitals": "0.2.7",
@@ -79,7 +79,7 @@
79
79
  "bumpp": "10.4.1",
80
80
  "changelogithub": "14.0.0",
81
81
  "cross-env": "10.1.0",
82
- "nuxt": "4.3.1",
82
+ "nuxt": "4.4.7",
83
83
  "nuxt-seo-kit": "1.3.13",
84
84
  "oxfmt": "0.31.0",
85
85
  "oxlint": "1.46.0",
@@ -87,10 +87,10 @@
87
87
  "taze": "^19.9.2",
88
88
  "tsd": "0.33.0",
89
89
  "typescript": "5.9.3",
90
- "vitest": "3.2.4",
90
+ "vitest": "4.1.8",
91
91
  "vue": "3.5.28",
92
92
  "vue-i18n": "11.2.8",
93
- "vue-router": "5.0.2",
93
+ "vue-router": "5.1.0",
94
94
  "vue-tsc": "3.2.4"
95
95
  },
96
96
  "scripts": {
@@ -104,7 +104,7 @@
104
104
  "test:types": "pnpm run typecheck && pnpm run test:vue",
105
105
  "test:vue": "vue-tsc -p test/fixtures/simple/tsconfig.json --noEmit && vue-tsc -p test/fixtures/complex/tsconfig.json --noEmit",
106
106
  "test": "pnpm run dev:prepare && pnpm run test:types && pnpm run test:fixtures && pnpm run test:build",
107
- "test:build": "nuxi build tests/fixtures/simple",
107
+ "test:build": "nuxi build test/fixtures/simple",
108
108
  "lint": "oxlint",
109
109
  "lint:fix": "oxlint --fix",
110
110
  "format:check": "oxfmt --check",