]>
git.ipfire.org Git - thirdparty/vuejs/router.git/log
dependabot-preview[bot] [Mon, 21 Sep 2020 20:51:14 +0000 (20:51 +0000)]
build(deps-dev): bump @microsoft/api-documenter from 7.8.49 to 7.8.53
Bumps [@microsoft/api-documenter](https://github.com/microsoft/rushstack) from 7.8.49 to 7.8.53.
- [Release notes](https://github.com/microsoft/rushstack/releases)
- [Commits](https://github.com/microsoft/rushstack/compare/@microsoft/api-documenter_v7.8.49...@microsoft/api-documenter_v7.8.53)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
dependabot-preview[bot] [Mon, 21 Sep 2020 20:40:45 +0000 (20:40 +0000)]
build(deps-dev): bump ts-loader from 8.0.3 to 8.0.4
Bumps [ts-loader](https://github.com/TypeStrong/ts-loader) from 8.0.3 to 8.0.4.
- [Release notes](https://github.com/TypeStrong/ts-loader/releases)
- [Changelog](https://github.com/TypeStrong/ts-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/ts-loader/compare/v8.0.3...8.0.4)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
dependabot-preview[bot] [Mon, 21 Sep 2020 20:29:48 +0000 (20:29 +0000)]
build(deps-dev): bump html-webpack-plugin from 4.4.1 to 4.5.0
Bumps [html-webpack-plugin](https://github.com/jantimon/html-webpack-plugin) from 4.4.1 to 4.5.0.
- [Release notes](https://github.com/jantimon/html-webpack-plugin/releases)
- [Changelog](https://github.com/jantimon/html-webpack-plugin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jantimon/html-webpack-plugin/compare/v4.4.1...v4.5.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
dependabot-preview[bot] [Mon, 21 Sep 2020 20:30:51 +0000 (20:30 +0000)]
build(deps-dev): bump @rollup/plugin-commonjs from 15.0.0 to 15.1.0
Bumps [@rollup/plugin-commonjs](https://github.com/rollup/plugins) from 15.0.0 to 15.1.0.
- [Release notes](https://github.com/rollup/plugins/releases)
- [Commits](https://github.com/rollup/plugins/compare/commonjs-v15.0.0...commonjs-v15.1.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
dependabot-preview[bot] [Mon, 21 Sep 2020 20:29:24 +0000 (20:29 +0000)]
build(deps-dev): bump rollup from 2.27.1 to 2.28.1
Bumps [rollup](https://github.com/rollup/rollup) from 2.27.1 to 2.28.1.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v2.27.1...v2.28.1)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
dependabot-preview[bot] [Mon, 21 Sep 2020 20:28:26 +0000 (20:28 +0000)]
build(deps-dev): bump webpack from 4.44.1 to 4.44.2
Bumps [webpack](https://github.com/webpack/webpack) from 4.44.1 to 4.44.2.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v4.44.1...v4.44.2)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
dependabot-preview[bot] [Mon, 21 Sep 2020 20:27:28 +0000 (20:27 +0000)]
build(deps-dev): bump typescript from 4.0.2 to 4.0.3
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.0.2 to 4.0.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.0.2...v4.0.3)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Eduardo San Martin Morote [Mon, 21 Sep 2020 08:32:22 +0000 (10:32 +0200)]
docs: fix named views
Eduardo San Martin Morote [Mon, 21 Sep 2020 07:29:52 +0000 (09:29 +0200)]
docs: add note about routes being required
HuangYi [Mon, 21 Sep 2020 07:24:34 +0000 (15:24 +0800)]
docs: typo (#478) [skip ci]
jc [Mon, 21 Sep 2020 07:19:10 +0000 (15:19 +0800)]
docs: format (#477) [skip ci]
Eduardo San Martin Morote [Sun, 20 Sep 2020 19:26:43 +0000 (21:26 +0200)]
docs: note about router-view slot
From #475
Shinigami [Sun, 20 Sep 2020 16:57:10 +0000 (18:57 +0200)]
fix(types): extend @vue/runtime-core module (#473)
`declare module 'vue'` seems only to work if there is no other additional plugin
Eduardo San Martin Morote [Sun, 20 Sep 2020 08:33:54 +0000 (10:33 +0200)]
release: v4.0.0-beta.11
Eduardo San Martin Morote [Sun, 20 Sep 2020 08:33:11 +0000 (10:33 +0200)]
chore: mark Vue 3 as peer dep
Eduardo San Martin Morote [Sun, 20 Sep 2020 08:27:28 +0000 (10:27 +0200)]
fix: use post flush in modal example
Eduardo San Martin Morote [Sun, 20 Sep 2020 08:04:12 +0000 (10:04 +0200)]
fix(guards): use post watcher for instances
fixes the context being wrong inside components guards
Eduardo San Martin Morote [Fri, 18 Sep 2020 11:49:07 +0000 (13:49 +0200)]
docs: more details about custom
Eduardo San Martin Morote [Fri, 18 Sep 2020 09:58:39 +0000 (11:58 +0200)]
release: v4.0.0-beta.10
Eduardo San Martin Morote [Fri, 18 Sep 2020 09:35:05 +0000 (11:35 +0200)]
docs: remove old link
Eduardo San Martin Morote [Fri, 18 Sep 2020 09:31:20 +0000 (11:31 +0200)]
docs: add thesemetrics
Eduardo San Martin Morote [Fri, 18 Sep 2020 09:22:02 +0000 (11:22 +0200)]
chore: update readme [skip ci]
Eduardo San Martin Morote [Fri, 18 Sep 2020 08:39:59 +0000 (10:39 +0200)]
build: adapt browser file name to match vue and vuex [skip ci]
Eduardo San Martin Morote [Fri, 18 Sep 2020 08:26:04 +0000 (10:26 +0200)]
docs: remove unused import [skip ci]
Eduardo San Martin Morote [Fri, 18 Sep 2020 08:24:28 +0000 (10:24 +0200)]
docs: fix broken links
Eduardo San Martin Morote [Fri, 18 Sep 2020 08:21:37 +0000 (10:21 +0200)]
docs: fix link
Eduardo San Martin Morote [Fri, 18 Sep 2020 08:17:36 +0000 (10:17 +0200)]
docs: reorder links
Eduardo San Martin Morote [Thu, 17 Sep 2020 22:40:10 +0000 (00:40 +0200)]
docs: fix ssr
Eduardo San Martin Morote [Thu, 17 Sep 2020 22:25:37 +0000 (00:25 +0200)]
chore: up deps
Eduardo San Martin Morote [Thu, 17 Sep 2020 22:00:28 +0000 (00:00 +0200)]
docs: upgrade vitepress
Eduardo San Martin Morote [Thu, 17 Sep 2020 19:17:35 +0000 (21:17 +0200)]
docs: add theme for ads for next vitepress
Eduardo San Martin Morote [Thu, 17 Sep 2020 18:43:54 +0000 (20:43 +0200)]
docs: add config for ads
Eduardo San Martin Morote [Tue, 15 Sep 2020 13:18:54 +0000 (15:18 +0200)]
docs: add carbonads
Eduardo San Martin Morote [Tue, 15 Sep 2020 13:17:29 +0000 (15:17 +0200)]
docs: fix links and add dynamic route matching
dependabot-preview[bot] [Mon, 14 Sep 2020 19:49:34 +0000 (19:49 +0000)]
build(deps-dev): bump @microsoft/api-documenter from 7.8.42 to 7.8.47
Bumps [@microsoft/api-documenter](https://github.com/microsoft/rushstack) from 7.8.42 to 7.8.47.
- [Release notes](https://github.com/microsoft/rushstack/releases)
- [Commits](https://github.com/microsoft/rushstack/compare/@microsoft/api-documenter_v7.8.42...@microsoft/api-documenter_v7.8.47)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
dependabot-preview[bot] [Mon, 14 Sep 2020 19:47:59 +0000 (19:47 +0000)]
build(deps-dev): bump nightwatch from 1.4.1 to 1.4.2
Bumps [nightwatch](https://github.com/nightwatchjs/nightwatch) from 1.4.1 to 1.4.2.
- [Release notes](https://github.com/nightwatchjs/nightwatch/releases)
- [Commits](https://github.com/nightwatchjs/nightwatch/compare/v1.4.1...v1.4.2)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Eduardo San Martin Morote [Mon, 14 Sep 2020 12:18:02 +0000 (14:18 +0200)]
docs: codesandbox links
Eduardo San Martin Morote [Mon, 14 Sep 2020 10:19:06 +0000 (12:19 +0200)]
docs(api): add route location normalized
Eduardo San Martin Morote [Mon, 14 Sep 2020 09:56:53 +0000 (11:56 +0200)]
docs(api): fix links
Eduardo San Martin Morote [Mon, 14 Sep 2020 09:06:24 +0000 (11:06 +0200)]
docs(api): more docs
Eduardo San Martin Morote [Fri, 11 Sep 2020 16:40:30 +0000 (18:40 +0200)]
chore: add sample go to playground
Eduardo San Martin Morote [Fri, 11 Sep 2020 16:23:02 +0000 (18:23 +0200)]
feat(router): remove partial Promise from router.go
BREAKING CHANGE: The `router.go()` methods doesn't return anything
(like in Vue 3) anymore. The existing implementation was wrong as it
would resolve the promise for the following navigation if `router.go()`
was called with something that wasn't possible e.g. `router.go(-20)`
right after entering the application would not do anything. Even worse,
the promise returned by that call would resolve **after the next
navigation**. There is no proper native API to implement this
promise-based api properly, but one can write a version that should work
in most scenarios by setting up multiple hooks right before calling
`router.go()`:
```js
export function go(delta) {
return new Promise((resolve, reject) => {
function popStateListener() {
clearTimeout(timeout)
}
window.addEventListener('popstate', popStateListener)
function clearHooks() {
removeAfterEach()
removeOnError()
window.removeEventListener('popstate', popStateListener)
}
// if the popstate event is not called, consider this a failure
const timeout = setTimeout(() => {
clearHooks()
reject(new Error('Failed to use router.go()'))
// It's unclear of what value would always work here
}, 10)
setImmediate
const removeAfterEach = router.afterEach((_to, _from, failure) => {
clearHooks()
resolve(failure)
})
const removeOnError = router.onError(err => {
clearHooks()
reject(err)
})
router.go(delta)
})
}
```
Eduardo San Martin Morote [Fri, 11 Sep 2020 16:15:45 +0000 (18:15 +0200)]
docs(api): navigation guard
Eduardo San Martin Morote [Fri, 11 Sep 2020 15:26:27 +0000 (17:26 +0200)]
docs(api): routerecord.props
dependabot-preview[bot] [Fri, 11 Sep 2020 15:10:18 +0000 (15:10 +0000)]
build(deps): [security] bump node-fetch from 2.6.0 to 2.6.1
Bumps [node-fetch](https://github.com/bitinn/node-fetch) from 2.6.0 to 2.6.1. **This update includes a security fix.**
- [Release notes](https://github.com/bitinn/node-fetch/releases)
- [Changelog](https://github.com/node-fetch/node-fetch/blob/master/docs/CHANGELOG.md)
- [Commits](https://github.com/bitinn/node-fetch/compare/v2.6.0...v2.6.1)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Eduardo San Martin Morote [Fri, 11 Sep 2020 15:04:38 +0000 (17:04 +0200)]
docs(api): formatted version of RouteRecordRaw
Eduardo San Martin Morote [Fri, 11 Sep 2020 13:24:37 +0000 (15:24 +0200)]
refactor(types): remove redundant type
Eduardo San Martin Morote [Fri, 11 Sep 2020 13:24:01 +0000 (15:24 +0200)]
fix(types): fix types for redirect records
Eduardo San Martin Morote [Fri, 11 Sep 2020 13:23:31 +0000 (15:23 +0200)]
test: fix typings
Eduardo San Martin Morote [Fri, 11 Sep 2020 11:32:34 +0000 (13:32 +0200)]
docs: hash encoding
Eduardo San Martin Morote [Fri, 11 Sep 2020 11:14:55 +0000 (13:14 +0200)]
refactor(matcher): better error message
Eduardo San Martin Morote [Fri, 11 Sep 2020 10:07:35 +0000 (12:07 +0200)]
fix(history): gracefully handle empty state
Close #366
Eduardo San Martin Morote [Fri, 11 Sep 2020 10:01:42 +0000 (12:01 +0200)]
feat(warn): point to scrollBehavior in message
Eduardo San Martin Morote [Fri, 11 Sep 2020 10:00:59 +0000 (12:00 +0200)]
test(e2e): fix interface rename
Eduardo San Martin Morote [Fri, 11 Sep 2020 09:39:06 +0000 (11:39 +0200)]
docs: add note about history.replaceState
Related to #366
Eduardo San Martin Morote [Thu, 10 Sep 2020 15:48:26 +0000 (17:48 +0200)]
docs: more types
Eduardo San Martin Morote [Thu, 10 Sep 2020 15:40:28 +0000 (17:40 +0200)]
fix(types): explicit types on navigate
Eduardo San Martin Morote [Thu, 10 Sep 2020 15:28:07 +0000 (17:28 +0200)]
docs: more ts doc
Eduardo San Martin Morote [Thu, 10 Sep 2020 15:24:30 +0000 (17:24 +0200)]
refactor(types): Rename ScrollBehavior to RouterScrollBehavior
BREAKING CHANGE: there is already an existing type named `ScrollBehavior`,
so we are renaming our type to avoid any confusions and allow the user
to use both types at the same type (which given what the existing
`ScrollBehavior` type is designed for, will likely happen).
Eduardo San Martin Morote [Thu, 10 Sep 2020 15:20:34 +0000 (17:20 +0200)]
chore: remove empty file
Eduardo San Martin Morote [Wed, 9 Sep 2020 12:43:03 +0000 (14:43 +0200)]
fix(types): better type for navigate
Eduardo San Martin Morote [Wed, 9 Sep 2020 12:29:23 +0000 (14:29 +0200)]
docs(api): fix links
Eduardo San Martin Morote [Wed, 9 Sep 2020 12:07:05 +0000 (14:07 +0200)]
docs: add route matching section
Eduardo San Martin Morote [Wed, 9 Sep 2020 12:06:49 +0000 (14:06 +0200)]
refactor: move computed above
Eduardo San Martin Morote [Tue, 8 Sep 2020 16:25:20 +0000 (18:25 +0200)]
docs(api): types
Eduardo San Martin Morote [Tue, 8 Sep 2020 16:11:31 +0000 (18:11 +0200)]
docs(api): add missing functions
Eduardo San Martin Morote [Tue, 8 Sep 2020 15:48:55 +0000 (17:48 +0200)]
docs(api): add history functions
Eduardo San Martin Morote [Tue, 8 Sep 2020 14:13:54 +0000 (16:13 +0200)]
docs(api): add router-view
Eduardo San Martin Morote [Tue, 8 Sep 2020 14:10:39 +0000 (16:10 +0200)]
docs(api): add router-link
Eduardo San Martin Morote [Tue, 8 Sep 2020 12:56:08 +0000 (14:56 +0200)]
docs(api): initial auto generated version of docs
still needs to be re organized, but it is a nice base using api-docs-gen :)
Eduardo San Martin Morote [Tue, 8 Sep 2020 12:55:14 +0000 (14:55 +0200)]
docs(api): adding docs to source code
Eduardo San Martin Morote [Tue, 8 Sep 2020 12:11:28 +0000 (14:11 +0200)]
docs: add missing isReady breaking change
Eduardo San Martin Morote [Tue, 8 Sep 2020 10:49:52 +0000 (12:49 +0200)]
docs: wip useLink
dependabot-preview[bot] [Mon, 7 Sep 2020 20:04:23 +0000 (20:04 +0000)]
build(deps-dev): bump rollup from 2.26.9 to 2.26.10
Bumps [rollup](https://github.com/rollup/rollup) from 2.26.9 to 2.26.10.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v2.26.9...v2.26.10)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
dependabot-preview[bot] [Mon, 7 Sep 2020 19:52:16 +0000 (19:52 +0000)]
build(deps-dev): bump nightwatch from 1.3.7 to 1.4.1
Bumps [nightwatch](https://github.com/nightwatchjs/nightwatch) from 1.3.7 to 1.4.1.
- [Release notes](https://github.com/nightwatchjs/nightwatch/releases)
- [Commits](https://github.com/nightwatchjs/nightwatch/compare/v1.3.7...v1.4.1)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
dependabot-preview[bot] [Mon, 7 Sep 2020 19:51:43 +0000 (19:51 +0000)]
build(deps-dev): bump rollup-plugin-terser from 7.0.1 to 7.0.2
Bumps [rollup-plugin-terser](https://github.com/TrySound/rollup-plugin-terser) from 7.0.1 to 7.0.2.
- [Release notes](https://github.com/TrySound/rollup-plugin-terser/releases)
- [Commits](https://github.com/TrySound/rollup-plugin-terser/compare/v7.0.1...v7.0.2)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
dependabot-preview[bot] [Mon, 7 Sep 2020 19:51:13 +0000 (19:51 +0000)]
build(deps-dev): bump @microsoft/api-documenter from 7.8.36 to 7.8.42
Bumps [@microsoft/api-documenter](https://github.com/microsoft/rushstack) from 7.8.36 to 7.8.42.
- [Release notes](https://github.com/microsoft/rushstack/releases)
- [Commits](https://github.com/microsoft/rushstack/compare/@microsoft/api-documenter_v7.8.36...@microsoft/api-documenter_v7.8.42)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
dependabot-preview[bot] [Mon, 7 Sep 2020 19:49:49 +0000 (19:49 +0000)]
build(deps-dev): bump size-limit and @size-limit/preset-small-lib
Bumps [size-limit](https://github.com/ai/size-limit) and [@size-limit/preset-small-lib](https://github.com/ai/size-limit). These dependencies needed to be updated together.
Updates `size-limit` from 4.5.7 to 4.6.0
- [Release notes](https://github.com/ai/size-limit/releases)
- [Changelog](https://github.com/ai/size-limit/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ai/size-limit/compare/4.5.7...4.6.0)
Updates `@size-limit/preset-small-lib` from 4.5.7 to 4.6.0
- [Release notes](https://github.com/ai/size-limit/releases)
- [Changelog](https://github.com/ai/size-limit/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ai/size-limit/compare/4.5.7...4.6.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
dependabot-preview[bot] [Sat, 5 Sep 2020 17:02:46 +0000 (17:02 +0000)]
build(deps): [security] bump http-proxy from 1.18.0 to 1.18.1
Bumps [http-proxy](https://github.com/http-party/node-http-proxy) from 1.18.0 to 1.18.1. **This update includes a security fix.**
- [Release notes](https://github.com/http-party/node-http-proxy/releases)
- [Changelog](https://github.com/http-party/node-http-proxy/blob/master/CHANGELOG.md)
- [Commits](https://github.com/http-party/node-http-proxy/compare/1.18.0...1.18.1)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Eduardo San Martin Morote [Sat, 5 Sep 2020 14:29:40 +0000 (16:29 +0200)]
docs: extending RouterLink
Eduardo San Martin Morote [Sat, 5 Sep 2020 14:29:25 +0000 (16:29 +0200)]
test: test about extending RouterLink
Eduardo San Martin Morote [Sat, 5 Sep 2020 12:37:16 +0000 (14:37 +0200)]
docs: normalize links
Eduardo San Martin Morote [Sat, 5 Sep 2020 12:36:58 +0000 (14:36 +0200)]
chore: add blank lines readme [skip ci]
Eduardo San Martin Morote [Sat, 5 Sep 2020 11:51:58 +0000 (13:51 +0200)]
docs: add composition api page
Eduardo San Martin Morote [Sat, 5 Sep 2020 10:54:20 +0000 (12:54 +0200)]
feat(types): allow extending meta fields (#407)
Eduardo San Martin Morote [Thu, 3 Sep 2020 16:11:28 +0000 (18:11 +0200)]
docs: migration guide [skip ci]
Eduardo San Martin Morote [Thu, 3 Sep 2020 14:03:01 +0000 (16:03 +0200)]
docs: migration guide wip
Eduardo San Martin Morote [Thu, 3 Sep 2020 09:21:32 +0000 (11:21 +0200)]
chore: up deps
Eduardo San Martin Morote [Wed, 2 Sep 2020 16:09:35 +0000 (18:09 +0200)]
docs: adapt watch usage [skip ci]
Eduardo San Martin Morote [Wed, 2 Sep 2020 16:01:14 +0000 (18:01 +0200)]
fix(warn): correctly warn against unused next
Eduardo San Martin Morote [Tue, 1 Sep 2020 17:53:17 +0000 (19:53 +0200)]
release: v4.0.0-beta.9
Eduardo San Martin Morote [Tue, 1 Sep 2020 17:51:17 +0000 (19:51 +0200)]
build: remove postinstall
Close #450
Eduardo San Martin Morote [Tue, 1 Sep 2020 16:46:10 +0000 (18:46 +0200)]
build: fix version in dist files [skip ci]
Eduardo San Martin Morote [Tue, 1 Sep 2020 16:44:24 +0000 (18:44 +0200)]
release: v4.0.0-beta.8
Eduardo San Martin Morote [Tue, 1 Sep 2020 16:05:04 +0000 (18:05 +0200)]
docs: add note about pathToRegexpOptions [skip ci]
Eduardo San Martin Morote [Tue, 1 Sep 2020 15:15:46 +0000 (17:15 +0200)]
fix(router-view): reuse saved instances in different records (#446)
BREAKING CHANGE: `onBeforeRouteLeave` and `onBeforeRouteUpdate` used to
have access to the component instance through `instance.proxy` but given
that:
1. It has been marked as `internal` (https://github.com/vuejs/vue-next/pull/1849)
2. When using `setup`, all variables are accessible on the scope (and
should be accessed that way because the code minimizes better)
It has been removed to prevent wrong usage and lighten Vue Router
Eduardo San Martin Morote [Tue, 1 Sep 2020 08:27:55 +0000 (10:27 +0200)]
test: add navigation type tests
Eduardo San Martin Morote [Tue, 1 Sep 2020 08:20:25 +0000 (10:20 +0200)]
chore: remove patreon
Eduardo San Martin Morote [Tue, 1 Sep 2020 08:19:26 +0000 (10:19 +0200)]
chore: todos
Eduardo San Martin Morote [Tue, 1 Sep 2020 08:00:23 +0000 (10:00 +0200)]
chore: up typescript