nuxt-typed-router 2.3.0-beta.0 → 2.3.0

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
@@ -21,7 +21,7 @@
21
21
  - `NuxtLink` route autocomplete and params type-check
22
22
  - `useRouter`, `useRoute` and `navigateTo` route autocomplete and params type-check
23
23
  - Supports optional params and catchAll routes
24
- - Infer route params based on route name
24
+ - Out of the box `i18n` support
25
25
  - Supports routes extended by config and modules
26
26
 
27
27
  > ⚠️ Since `v2.1.x`, `useTypedRouter` and `useTypedRoute` are no longer exported.
@@ -94,6 +94,7 @@ export default defineNuxtConfig({
94
94
  - [ ] Add `path` autocomplete with TS string templates
95
95
  - [ ] Enforce strong params typing depending of origin route
96
96
  - [ ] Add support for `validate` in `definePageMeta`
97
+ - [ ] Add `strict` option to prevent path navigation
97
98
 
98
99
 
99
100
  ## Development
package/dist/module.json CHANGED
@@ -5,5 +5,5 @@
5
5
  "nuxt": "^3.0.0",
6
6
  "bridge": false
7
7
  },
8
- "version": "2.3.0-beta.0"
8
+ "version": "2.3.0"
9
9
  }
package/dist/module.mjs CHANGED
@@ -630,7 +630,7 @@ function createi18nRouterFile() {
630
630
  import type {TypedRouteLocationRawFromName, TypedRouteFromName} from './__router';
631
631
  import type {RoutesNamesList} from './__routes';
632
632
 
633
- export type I18nLocales = ${i18nLocales.map((loc) => `"${loc}"`).join("|")};
633
+ export type I18nLocales = ${i18nLocales.length ? i18nLocales.map((loc) => `"${loc}"`).join("|") : "string"};
634
634
 
635
635
  export type TypedToLocalePath = <T extends RoutesNamesList>(to: TypedRouteLocationRawFromName<T>, locale?: I18nLocales | undefined) => TypedRouteLocationRawFromName<T>;
636
636
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-typed-router",
3
- "version": "2.3.0-beta.0",
3
+ "version": "2.3.0",
4
4
  "description": "Provide autocompletion for pages route names generated by Nuxt router",
5
5
  "type": "module",
6
6
  "main": "./dist/module.cjs",
@@ -71,6 +71,7 @@
71
71
  "@nuxt/test-utils": "^3.1.1",
72
72
  "@nuxt/types": "^2.15.8",
73
73
  "@nuxtjs/eslint-config-typescript": "^12.0.0",
74
+ "@nuxtjs/web-vitals": "^0.2.2",
74
75
  "@nuxtjs/i18n": "8.0.0-beta.9",
75
76
  "@types/lodash-es": "^4.17.6",
76
77
  "@types/mkdirp": "^1.0.2",