nuxt-typed-router 3.6.5 → 3.7.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.
- package/README.md +12 -10
- package/dist/module.d.mts +1 -1
- package/dist/module.d.ts +1 -1
- package/dist/module.json +2 -2
- package/dist/module.mjs +1 -1
- package/dist/types.d.mts +1 -17
- package/dist/types.d.ts +1 -17
- package/package.json +33 -33
package/README.md
CHANGED
|
@@ -37,37 +37,39 @@
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
## Documentation
|
|
41
41
|
|
|
42
42
|
[](https://nuxt-typed-router.vercel.app/)
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
## Play with it
|
|
45
45
|
[](https://stackblitz.com/edit/github-7e4xvw?file=store/testRouter.ts)
|
|
46
46
|
|
|
47
47
|
Demo repo 🧪 : [nuxt-typed-router-demo](https://github.com/victorgarciaesgi/nuxt-typed-router-demo)
|
|
48
48
|
|
|
49
|
-
## Cool video about it from LearnVue!
|
|
50
49
|
|
|
51
|
-
|
|
50
|
+
## Used by
|
|
52
51
|
|
|
52
|
+
<a href='https://malt.fr'><img width="200" src="https://upload.wikimedia.org/wikipedia/commons/thumb/4/41/Logo_Malt.svg/1200px-Logo_Malt.svg.png" alt="Malt logo"/></a>
|
|
53
53
|
|
|
54
|
-
<br/>
|
|
55
54
|
|
|
56
|
-
|
|
55
|
+
## Cool video about it from LearnVue
|
|
57
56
|
|
|
58
|
-
|
|
57
|
+
[](https://www.youtube.com/watch?v=jiYoAiFb71Y&t)
|
|
59
58
|
|
|
60
59
|
|
|
61
|
-
|
|
60
|
+
## Compatibility:
|
|
61
|
+
|
|
62
|
+
- Nuxt 3
|
|
63
|
+
|
|
62
64
|
|
|
63
|
-
|
|
65
|
+
## Install
|
|
64
66
|
|
|
65
67
|
```bash
|
|
66
68
|
npx nuxi@latest module add typed-router
|
|
67
69
|
```
|
|
68
70
|
|
|
69
71
|
|
|
70
|
-
|
|
72
|
+
## Configuration
|
|
71
73
|
Register the module in the `nuxt.config.ts`, done!
|
|
72
74
|
|
|
73
75
|
```ts
|
package/dist/module.d.mts
CHANGED
|
@@ -79,6 +79,6 @@ interface StrictParamsOptions {
|
|
|
79
79
|
strictRouteLocation?: boolean;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
|
|
82
|
+
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
83
83
|
|
|
84
84
|
export { type ModuleOptions, _default as default };
|
package/dist/module.d.ts
CHANGED
|
@@ -79,6 +79,6 @@ interface StrictParamsOptions {
|
|
|
79
79
|
strictRouteLocation?: boolean;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
|
|
82
|
+
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
83
83
|
|
|
84
84
|
export { type ModuleOptions, _default as default };
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -170,7 +170,7 @@ function createRoutesNamedLocationsResolvedExport(routesParams) {
|
|
|
170
170
|
export type RoutesNamedLocationsResolved =
|
|
171
171
|
{
|
|
172
172
|
name: RoutesNamesList;
|
|
173
|
-
params:
|
|
173
|
+
params: RoutesParamsRecord[keyof RoutesParamsRecord];
|
|
174
174
|
} ${routesParams.length ? `& (
|
|
175
175
|
${routesParams.map(
|
|
176
176
|
({ name, params }) => `{name: "${name}" ${params.length ? `, params: {
|
package/dist/types.d.mts
CHANGED
|
@@ -1,17 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import type { ModuleOptions } from './module.js'
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
declare module '@nuxt/schema' {
|
|
7
|
-
interface NuxtConfig { ['nuxtTypedRouter']?: Partial<ModuleOptions> }
|
|
8
|
-
interface NuxtOptions { ['nuxtTypedRouter']?: ModuleOptions }
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
declare module 'nuxt/schema' {
|
|
12
|
-
interface NuxtConfig { ['nuxtTypedRouter']?: Partial<ModuleOptions> }
|
|
13
|
-
interface NuxtOptions { ['nuxtTypedRouter']?: ModuleOptions }
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
export type { ModuleOptions, default } from './module.js'
|
|
1
|
+
export { type ModuleOptions, default } from './module.js'
|
package/dist/types.d.ts
CHANGED
|
@@ -1,17 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import type { ModuleOptions } from './module'
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
declare module '@nuxt/schema' {
|
|
7
|
-
interface NuxtConfig { ['nuxtTypedRouter']?: Partial<ModuleOptions> }
|
|
8
|
-
interface NuxtOptions { ['nuxtTypedRouter']?: ModuleOptions }
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
declare module 'nuxt/schema' {
|
|
12
|
-
interface NuxtConfig { ['nuxtTypedRouter']?: Partial<ModuleOptions> }
|
|
13
|
-
interface NuxtOptions { ['nuxtTypedRouter']?: ModuleOptions }
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
export type { ModuleOptions, default } from './module'
|
|
1
|
+
export { type ModuleOptions, default } from './module'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-typed-router",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.1",
|
|
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.
|
|
66
|
+
"@nuxt/kit": "^3.14.1592",
|
|
67
67
|
"chalk": "5.3.0",
|
|
68
68
|
"defu": "6.1.4",
|
|
69
69
|
"lodash-es": "4.17.21",
|
|
70
|
-
"log-symbols": "
|
|
70
|
+
"log-symbols": "7.0.0",
|
|
71
71
|
"mkdirp": "3.0.1",
|
|
72
|
-
"nanoid": "5.0.
|
|
72
|
+
"nanoid": "5.0.9",
|
|
73
73
|
"pathe": "1.1.2",
|
|
74
|
-
"prettier": "3.
|
|
74
|
+
"prettier": "3.4.1"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
|
-
"@intlify/core-base": "
|
|
78
|
-
"@intlify/message-compiler": "
|
|
79
|
-
"@intlify/shared": "
|
|
77
|
+
"@intlify/core-base": "~10.0.4",
|
|
78
|
+
"@intlify/message-compiler": "~10.0.4",
|
|
79
|
+
"@intlify/shared": "~10.0.4",
|
|
80
80
|
"@intlify/vue-i18n-bridge": "1.1.0",
|
|
81
81
|
"@intlify/vue-router-bridge": "1.1.0",
|
|
82
|
-
"@nuxt/content": "2.
|
|
83
|
-
"@nuxt/devtools": "1.
|
|
84
|
-
"@nuxt/module-builder": "0.
|
|
85
|
-
"@nuxt/schema": "3.
|
|
86
|
-
"@nuxt/test-utils": "3.
|
|
87
|
-
"@nuxt/types": "2.
|
|
82
|
+
"@nuxt/content": "2.13.4",
|
|
83
|
+
"@nuxt/devtools": "1.6.1",
|
|
84
|
+
"@nuxt/module-builder": "0.8.4",
|
|
85
|
+
"@nuxt/schema": "3.14.1592",
|
|
86
|
+
"@nuxt/test-utils": "3.14.4",
|
|
87
|
+
"@nuxt/types": "2.18.1",
|
|
88
88
|
"@nuxtjs/eslint-config-typescript": "12.1.0",
|
|
89
|
-
"@nuxtjs/i18n": "
|
|
89
|
+
"@nuxtjs/i18n": "9.1.0",
|
|
90
90
|
"@nuxtjs/web-vitals": "0.2.7",
|
|
91
|
-
"@playwright/test": "1.
|
|
91
|
+
"@playwright/test": "1.49.0",
|
|
92
92
|
"@types/lodash-es": "4.17.12",
|
|
93
|
-
"@types/node": "
|
|
94
|
-
"@typescript-eslint/eslint-plugin": "
|
|
95
|
-
"@typescript-eslint/parser": "
|
|
93
|
+
"@types/node": "22.10.0",
|
|
94
|
+
"@typescript-eslint/eslint-plugin": "8.16.0",
|
|
95
|
+
"@typescript-eslint/parser": "8.16.0",
|
|
96
96
|
"@vue/test-utils": "2.4.6",
|
|
97
|
-
"bumpp": "9.
|
|
98
|
-
"changelogithub": "0.13.
|
|
97
|
+
"bumpp": "9.8.1",
|
|
98
|
+
"changelogithub": "0.13.11",
|
|
99
99
|
"cross-env": "7.0.3",
|
|
100
|
-
"eslint": "9.
|
|
100
|
+
"eslint": "9.15.0",
|
|
101
101
|
"eslint-config-prettier": "9.1.0",
|
|
102
|
-
"eslint-plugin-vue": "9.
|
|
103
|
-
"nuxt": "3.
|
|
102
|
+
"eslint-plugin-vue": "9.31.0",
|
|
103
|
+
"nuxt": "3.14.1592",
|
|
104
104
|
"nuxt-seo-kit": "1.3.13",
|
|
105
|
-
"playwright": "1.
|
|
106
|
-
"tsd": "0.31.
|
|
107
|
-
"typescript": "5.
|
|
108
|
-
"vitest": "1.6
|
|
109
|
-
"vue": "3.
|
|
105
|
+
"playwright": "1.49.0",
|
|
106
|
+
"tsd": "0.31.2",
|
|
107
|
+
"typescript": "5.6.2",
|
|
108
|
+
"vitest": "2.1.6",
|
|
109
|
+
"vue": "3.5.13",
|
|
110
110
|
"vue-eslint-parser": "9.4.3",
|
|
111
|
-
"vue-i18n": "
|
|
112
|
-
"vue-router": "4.
|
|
113
|
-
"vue-tsc": "2.
|
|
111
|
+
"vue-i18n": "~10.0.4",
|
|
112
|
+
"vue-router": "4.5.0",
|
|
113
|
+
"vue-tsc": "2.1.10"
|
|
114
114
|
}
|
|
115
|
-
}
|
|
115
|
+
}
|