New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

unplugin-vue-router

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unplugin-vue-router - npm Package Versions

13
8

0.10.2

Diff

Changelog

Source

0.10.2 (2024-07-30)

Bug Fixes

  • avoid nested loaders in setup (3aea904)
  • loaders: avoid double fetch on nested loaders (f15bedc)
posva
published 0.10.1 •

Changelog

Source

0.10.1 (2024-07-22)

Bug Fixes

Features

posva
published 0.10.0 •

Changelog

Source

0.10.0 (2024-06-21)

Bug Fixes

  • types: use native vue-router types (5c1b6c3)

Features

  • allow imported values in definePage (a113a2d), closes #317
  • handle hmr for pages (4925e7e), closes #292 #404
  • hmr: reload if cannot update (6044b94)
  • make definePage() globally available (7a57597)
  • support TS in definePage (4fbff23), closes #57 #238

Performance Improvements

BREAKING CHANGES

This version requires vue-router@4.4.0 or higher. The unplugin-vue-router/types no longer export all of the generic types from vue-router. Instead, import them directly from vue-router.

posva
published 0.9.1 •

Changelog

Source

0.9.1 (2024-06-07)

Bug Fixes

posva
published 0.9.0 •

Changelog

Source

0.9.0 (2024-05-28)

Bug Fixes

  • move extension handling outside of tree (85d8472), closes #400
  • remove wrong error log during HMR (c511082)
  • require explicit routes import to avoid cyclic imports (63788f6), closes #132

Code Refactoring

  • pkg: migrate package to type=module (f1e4ca5)

BREAKING CHANGES

  • createRouter() now requires the explicit router property to be set and imported:
import { createRouter, createWebHistory } from 'vue-router/auto'
+import { routes } from 'vue-router/auto-routes'

createRouter({
  history: createWebHistory(),
+  routes
})

This also means that runtime extendRoutes() option is not needed. It has been deprecated and will be removed in the next major release.

  • Tree and PrefixTree insert method expects a path without the file extension. They also expect the fullpath of the file as a second argument (it used to be optional). This aligns better with their responsibility as they shouldn't be trimming the extension like they used to.
// replace
tree.insert('file.vue')
// with
tree.insert('file', resolve('file.vue'))

This shouldn't affect most users as the Tree implementation is used internally to represent the folder structure.

  • pkg: The package is now of "type": "module". It shouldn't break anything for users but this is just in case, we all know how fragile this js ecosystem is sometimes...
posva
published 0.8.8 •

Changelog

Source

0.8.8 (2024-05-22)

Bug Fixes

  • watch all extensions not just root (74ac22b)
posva
published 0.8.7 •

Changelog

Source

0.8.7 (2024-05-20)

Bug Fixes

  • apply definePage in named pages (bd7d5b1), closes #383
  • correctly trim extensions from routesFolder (b8a9473), closes #274

Features

  • add an option to disable file watching (#387) (13f93fc)
  • add component alias to EditableTreeNode (fc8ae27)
posva
published 0.8.6 •

Changelog

Source

0.8.6 (2024-04-12)

Bug Fixes

  • data-loaders: tracked properties with an object in key (58aa516)
posva
published 0.8.5 •

Changelog

Source

0.8.5 (2024-03-14)

Bug Fixes

  • avoid invalid modules with definePage query (25bbec3), closes #338
posva
published 0.8.4 •

Changelog

Source

0.8.4 (2024-02-24)

This patch contains the necessary fixes to allow importing the data loaders. However, they cannot be imported from vue-router/auto nor from unplugin-vue-router/runtime. Instead, they should be imported from unplugin-vue-router/data-loaders/.... This is needed as some of the loaders depends on extra packages that not all users have installed. At the moment, there are two data loaders

Bug Fixes

  • allow untyped router with data loaders (51f7d55)
  • build: externalize libs (e55d735)
  • remove the need to install @pinia/colada (8d45669)
  • types: externalize uvr/types (ee9a2a3), closes #322
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc