Skip to content

Releases: victorgarciaesgi/nuxt-typed-router

v2.3.0

02 Feb 08:47
cf74035
Compare
Choose a tag to compare

馃帀 New features

i18n support (#48)

  • Autocomplete routes and locales on useLocalePath and useLocaleRoute.
  • Zero config!
  • Generate correct routes names for prefixed routes

Strict mode support (#64)

  • Added strict option to prevent passing string paths
  • Customizable behaviours for <NuxtLink/> and router

Misc

  • Small options refacto
  • Updated docs

v2.2.1

27 Jan 11:00
Compare
Choose a tag to compare
  • Fixed a type issue where types returned by useRoute(name) where wrong

v2.2.0

27 Jan 10:21
7e0c497
Compare
Choose a tag to compare

v2.2.0 update.

Features

  • Updated to Nuxt 3.1.1
  • Plugin generation is now using addPlugin and no longer added in your plugins folder

Fixs

  • Fixed some types issues

鈿狅笍 Breaking changes

Renamed some exported types to match vue-router ones

  • TypedRouteList -> RoutesNamesList
  • TypedNamedRoute -> TypedRouteFromName
  • TypedRouteParams -> RoutesParamsRecord
  • ResolvedTypedRouteNamedMapper -> RoutesNamedLocationsResolved

Misc

  • generators code refactor
  • Updated docs for "How to use"
  • Added more edge cases tests

v2.1.4

24 Jan 11:10
Compare
Choose a tag to compare
  • Fixed a bug where key were missing from navigateTo args

v2.1.3

24 Jan 08:50
Compare
Choose a tag to compare

New features

  • Support for navigateTo
  • Support for module-extended routes

Fixs

  • Fixed a bug with routes added by router config in nuxt.config.ts
  • Fixed a plugin registration bug

Misc

  • Added more e2e tests and unit tests

v2.1.2

20 Jan 17:16
Compare
Choose a tag to compare
  • Fixed utility types export
  • Added new section for utility types in doc

v2.1.1

19 Jan 17:55
Compare
Choose a tag to compare
  • Fixed an issue with pnpm install and prepare script

Thanks @tobychidi !

v2.1.0

18 Jan 17:45
Compare
Choose a tag to compare

Fast releases I know! But I managed to override useRouter and useRoute global typings.

  • useRoute and useRouter are now typed without importing anything
  • Fixed a bug where <nuxt-link/> types were not working if not importing from @typed-router
  • Support for "catchAll" routes like [...slug].vue
  • Support for optional params like [[bar]].vue
  • Updated docs
  • Added more robust e2e and unit tests

v2.0.3

17 Jan 14:43
Compare
Choose a tag to compare
  • Replaced srcDir with rootDir to target the correct .nuxt path #59

Thanks @Pierre-M !

v2.0.2

16 Jan 09:54
Compare
Choose a tag to compare
  • fixed url resolver and crash on node version > 19 #57
    Thanks to @thunfisch987 !