MCPcopy Index your code
hub / github.com/vuejs/vue-router

github.com/vuejs/vue-router @v3.6.5 sqlite

repository ↗ · DeepWiki ↗ · release v3.6.5 ↗
288 symbols 762 edges 116 files 1 documented · 0% 141 cross-repo links
README

vue-router Build Status

This is vue-router 3.0 which works only with Vue 2.0. - For the 1.x router see the 1.0 branch. - For Vue Router 4 (for Vue 3) see vuejs/router.

Supporting Vue Router

Vue Router is part of the Vue Ecosystem and is an MIT-licensed open source project with its ongoing development made possible entirely by the support of Sponsors. If you would like to become a sponsor, please consider:

Gold Sponsors

<a href="https://vuejobs.com/?utm_source=vuerouter&utm_campaign=sponsor" target="_blank" rel="noopener noreferrer">






  <img src="https://posva-sponsors.pages.dev/logos/vuejobs.svg" height="72px" alt="VueJobs" />

Silver Sponsors

<a href="https://www.vuemastery.com/" target="_blank" rel="noopener noreferrer">






  <img src="https://posva-sponsors.pages.dev/logos/vuemastery-light.svg" height="42px" alt="VueMastery" />

  <img src="https://posva-sponsors.pages.dev/logos/prefectlogo-light.svg" height="42px" alt="Prefect" />

Bronze Sponsors

<a href="https://stormier.ninja" target="_blank" rel="noopener noreferrer">






  <img src="https://avatars.githubusercontent.com/u/2486424?u=7b0c73ae5d090ce53bf59473094e9606fe082c59&v=4" height="26px" alt="Stanislas Ormières" />

  <img src="https://avatars.githubusercontent.com/u/4183726?u=6b50a8ea16de29d2982f43c5640b1db9299ebcd1&v=4" height="26px" alt="Antony Konstantinidis" />

  <img src="https://posva-sponsors.pages.dev/logos/storyblok.png" height="26px" alt="Storyblok" />

  <img src="https://posva-sponsors.pages.dev/logos/nuxt-light.svg" height="26px" alt="NuxtJS" />


Get started with the documentation, or play with the examples (see how to run them below).

Development Setup

# install deps
npm install

# build dist files
npm run build

# serve examples at localhost:8080
npm run dev

# lint & run all tests
npm test

# serve docs at localhost:8080
npm run docs

Releasing

  • yarn run release
  • Ensure tests are passing yarn run test
  • Build dist files VERSION=<the_version> yarn run build
  • Build changelog yarn run changelog
  • Commit dist files git add dist CHANGELOG.md && git commit -m "[build $VERSION]"
  • Publish a new version `npm version $VERSION --message "[release] $VERSION"
  • Push tags git push origin refs/tags/v$VERSION && git push
  • Publish to npm npm publish

Questions

For questions and support please use the Discord chat server or the official forum. The issue list of this repo is exclusively for bug reports and feature requests.

Issues

Please make sure to read the Issue Reporting Checklist before opening an issue. Issues not conforming to the guidelines may be closed immediately.

Contribution

Please make sure to read the Contributing Guide before making a pull request.

Changelog

Details changes for each release are documented in the CHANGELOG.md file.

Stay In Touch

  • For latest releases and announcements, follow on Twitter: @vuejs

License

MIT

Copyright (c) 2013-present Evan You

Special Thanks

BrowserStack Logo

Special thanks to BrowserStack for letting the maintainers use their service to debug browser specific issues.

Extension points exported contracts — how you extend this code

NavigationFailure (Interface)
(no doc)
types/router.d.ts
Vue (Interface)
(no doc)
types/vue.d.ts
RouterLinkOptions (Interface)
(no doc)
types/composables.d.ts
RouteMeta (Interface)
(no doc)
types/test/meta.ts
RouterOptions (Interface)
(no doc)
types/router.d.ts
ComponentOptions (Interface)
(no doc)
types/vue.d.ts
PathToRegexpOptions (Interface)
(no doc)
types/router.d.ts
_RouteConfigBase (Interface)
(no doc)
types/router.d.ts

Core symbols most depended-on inside this repo

push
called by 63
src/router.js
assertActiveLinks
called by 22
test/e2e/specs/active-links.js
warn
called by 22
src/util/warn.js
createRouteMap
called by 19
src/create-route-map.js
normalizeLocation
called by 19
src/util/location.js
beforeEach
called by 18
src/router.js
isIncludedRoute
called by 18
src/util/route.js
replace
called by 18
src/history/hash.js

Shape

Function 201
Method 54
Interface 18
Class 14
Enum 1

Languages

TypeScript100%

Modules by API surface

src/router.js25 symbols
src/history/base.js22 symbols
types/router.d.ts17 symbols
composables.mjs17 symbols
composables.js17 symbols
src/history/hash.js16 symbols
src/util/scroll.js11 symbols
src/history/html5.js11 symbols
src/create-matcher.js10 symbols
src/util/route.js9 symbols
src/util/errors.js8 symbols
src/history/abstract.js8 symbols

Dependencies from manifests, versioned

@rollup/plugin-commonjs17.0.0 · 1×
@rollup/plugin-node-resolve11.0.0 · 1×
@vuepress/plugin-pwa1.5.3 · 1×
@vuepress/theme-vue1.5.3 · 1×
axios0.21.1 · 1×
babel-core6.24.1 · 1×
babel-eslint10.0.2 · 1×
babel-loader7.1.3 · 1×
babel-plugin-syntax-dynamic-import6.18.0 · 1×
babel-preset-env1.6.1 · 1×
babel-preset-flow-vue1.0.0 · 1×
browserstack-local1.4.8 · 1×

For agents

$ claude mcp add vue-router \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact