|
1 |
| -# vue-router [](https://www.npmjs.com/package/vue-router) [](https://github.com/vuejs/router/actions/workflows/test.yml) [](https://codecov.io/gh/vuejs/router) |
| 1 | +# @skirtle/vue-router-perf |
2 | 2 |
|
3 |
| -> - This is the repository for Vue Router 4 (for Vue 3) |
4 |
| -> - For Vue Router 3 (for Vue 2) see [vuejs/vue-router](https://github.com/vuejs/vue-router). |
| 3 | +This is a fork of [Vue Router](https://github.com/vuejs/router) with improved performance. |
5 | 4 |
|
6 |
| -<h2 align="center">Supporting Vue Router</h2> |
| 5 | +The [`perf-releases`](https://github.com/skirtles-code/vue-router/tree/perf-releases) branch is used to make releases to the npm package `@skirtle/vue-router-perf`. |
7 | 6 |
|
8 |
| -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: |
| 7 | +The package `@skirtle/vue-router-perf` is intended to be a drop-in replacement for `vue-router`. It includes performance improvements that aren't yet available in the official package. |
9 | 8 |
|
10 |
| -- [Become a Sponsor on GitHub](https://github.com/sponsors/posva) |
11 |
| -- [One-time donation via PayPal](https://paypal.me/posva) |
12 |
| - |
13 |
| -<!--sponsors start--> |
14 |
| - |
15 |
| -<h4 align="center">Silver Sponsors</h4> |
16 |
| -<p align="center"> |
17 |
| - <a href="https://route4me.com" target="_blank" rel="noopener noreferrer"> |
18 |
| - <picture> |
19 |
| - <source srcset="https://posva-sponsors.pages.dev/logos/route4me.png" media="(prefers-color-scheme: dark)" height="42px" alt="Route Optimizer and Route Planner Software" /> |
20 |
| - <img src="https://posva-sponsors.pages.dev/logos/route4me.png" height="42px" alt="Route Optimizer and Route Planner Software" /> |
21 |
| - </picture> |
22 |
| - </a> |
23 |
| - <a href="https://www.prefect.io/" target="_blank" rel="noopener noreferrer"> |
24 |
| - <picture> |
25 |
| - <source srcset="https://posva-sponsors.pages.dev/logos/prefectlogo-dark.svg" media="(prefers-color-scheme: dark)" height="42px" alt="Prefect" /> |
26 |
| - <img src="https://posva-sponsors.pages.dev/logos/prefectlogo-light.svg" height="42px" alt="Prefect" /> |
27 |
| - </picture> |
28 |
| - </a> |
29 |
| - <a href="https://www.vuemastery.com/" target="_blank" rel="noopener noreferrer"> |
30 |
| - <picture> |
31 |
| - <source srcset="https://posva-sponsors.pages.dev/logos/vuemastery-dark.png" media="(prefers-color-scheme: dark)" height="42px" alt="VueMastery" /> |
32 |
| - <img src="https://posva-sponsors.pages.dev/logos/vuemastery-light.svg" height="42px" alt="VueMastery" /> |
33 |
| - </picture> |
34 |
| - </a> |
35 |
| -</p> |
36 |
| - |
37 |
| -<h4 align="center">Bronze Sponsors</h4> |
38 |
| -<p align="center"> |
39 |
| - <a href="https://storyblok.com" target="_blank" rel="noopener noreferrer"> |
40 |
| - <picture> |
41 |
| - <source srcset="https://posva-sponsors.pages.dev/logos/storyblok.png" media="(prefers-color-scheme: dark)" height="26px" alt="Storyblok" /> |
42 |
| - <img src="https://posva-sponsors.pages.dev/logos/storyblok.png" height="26px" alt="Storyblok" /> |
43 |
| - </picture> |
44 |
| - </a> |
45 |
| - <a href="https://ui.nuxt.com/pro" target="_blank" rel="noopener noreferrer"> |
46 |
| - <picture> |
47 |
| - <source srcset="https://posva-sponsors.pages.dev/logos/nuxt-dark.svg" media="(prefers-color-scheme: dark)" height="26px" alt="Nuxt UI Pro Templates" /> |
48 |
| - <img src="https://posva-sponsors.pages.dev/logos/nuxt-light.svg" height="26px" alt="Nuxt UI Pro Templates" /> |
49 |
| - </picture> |
50 |
| - </a> |
51 |
| - <a href="https://www.vuejs.de" target="_blank" rel="noopener noreferrer"> |
52 |
| - <picture> |
53 |
| - <source srcset="https://avatars.githubusercontent.com/u/4183726?u=6b50a8ea16de29d2982f43c5640b1db9299ebcd1&v=4" media="(prefers-color-scheme: dark)" height="26px" alt="Antony Konstantinidis" /> |
54 |
| - <img src="https://avatars.githubusercontent.com/u/4183726?u=6b50a8ea16de29d2982f43c5640b1db9299ebcd1&v=4" height="26px" alt="Antony Konstantinidis" /> |
55 |
| - </picture> |
56 |
| - </a> |
57 |
| - <a href="https://stormier.ninja" target="_blank" rel="noopener noreferrer"> |
58 |
| - <picture> |
59 |
| - <source srcset="https://avatars.githubusercontent.com/u/2486424?u=7b0c73ae5d090ce53bf59473094e9606fe082c59&v=4" media="(prefers-color-scheme: dark)" height="26px" alt="Stanislas Ormières" /> |
60 |
| - <img src="https://avatars.githubusercontent.com/u/2486424?u=7b0c73ae5d090ce53bf59473094e9606fe082c59&v=4" height="26px" alt="Stanislas Ormières" /> |
61 |
| - </picture> |
62 |
| - </a> |
63 |
| -</p> |
64 |
| - |
65 |
| -<!--sponsors end--> |
66 |
| - |
67 |
| ---- |
68 |
| - |
69 |
| -Get started with the [documentation](https://router.vuejs.org). |
70 |
| - |
71 |
| -## Quickstart |
72 |
| - |
73 |
| -- Via CDN: `<script src="https://unpkg.com/vue-router@4"></script>` |
74 |
| -- In-browser playground on [CodeSandbox](https://codesandbox.io/s/vue-router-4-reproduction-hb9lh) |
75 |
| -- Add it to an existing Vue Project: |
76 |
| - |
77 |
| - ```bash |
78 |
| - npm install vue-router@4 |
79 |
| - ``` |
80 |
| - |
81 |
| -## Changes from Vue Router 3 |
82 |
| - |
83 |
| -Please consult the [Migration Guide](https://router.vuejs.org/guide/migration/). |
84 |
| - |
85 |
| -## Contributing |
86 |
| - |
87 |
| -See [Contributing Guide](https://github.com/vuejs/router/blob/main/.github/contributing.md). |
88 |
| - |
89 |
| -## Special Thanks |
90 |
| - |
91 |
| -<a href="https://www.browserstack.com"> |
92 |
| - <img src="https://github.com/vuejs/vue-router/raw/dev/assets/browserstack-logo-600x315.png" height="80" title="BrowserStack Logo" alt="BrowserStack Logo" /> |
93 |
| -</a> |
94 |
| - |
95 |
| -Special thanks to [BrowserStack](https://www.browserstack.com) for letting the maintainers use their service to debug browser specific issues. |
| 9 | +It should be much faster for applications with large numbers of routes. The performance improvements affect both the creation of the router and the resolving of routes. |
0 commit comments