]>
git.ipfire.org Git - thirdparty/vuejs/router.git/log
Eduardo San Martin Morote [Wed, 22 Apr 2020 12:13:50 +0000 (14:13 +0200)]
test: remove warning
Eduardo San Martin Morote [Wed, 22 Apr 2020 12:02:51 +0000 (14:02 +0200)]
refactor: rename files to camelCase
Austin Akers [Wed, 22 Apr 2020 11:56:29 +0000 (06:56 -0500)]
test: refactor guards context test (#177)
Eduardo San Martin Morote [Tue, 21 Apr 2020 19:10:11 +0000 (21:10 +0200)]
docs: add tsdoc for options
Eduardo San Martin Morote [Tue, 21 Apr 2020 16:33:57 +0000 (18:33 +0200)]
refactor(utils): move location utils to its file
Eduardo San Martin Morote [Tue, 21 Apr 2020 16:18:36 +0000 (18:18 +0200)]
fix(view): render slot with no match
Eduardo San Martin Morote [Tue, 21 Apr 2020 12:04:50 +0000 (14:04 +0200)]
chore: up vue
Eduardo San Martin Morote [Tue, 21 Apr 2020 12:01:35 +0000 (14:01 +0200)]
feat(router): add back,forward,go
Eduardo San Martin Morote [Tue, 21 Apr 2020 11:46:19 +0000 (13:46 +0200)]
fix(link): preserve the alias path
Eduardo San Martin Morote [Mon, 20 Apr 2020 21:32:24 +0000 (23:32 +0200)]
docs: add named views playground
Eduardo San Martin Morote [Mon, 20 Apr 2020 21:28:19 +0000 (23:28 +0200)]
docs: improve missing section
Eduardo San Martin Morote [Mon, 20 Apr 2020 21:28:00 +0000 (23:28 +0200)]
fix(guards): preserve navigation options when redirecting
Eduardo San Martin Morote [Mon, 20 Apr 2020 14:26:31 +0000 (16:26 +0200)]
fix(router): preserve navigation options with redirects
Eduardo San Martin Morote [Mon, 20 Apr 2020 13:03:21 +0000 (15:03 +0200)]
fix(html5): correctly preserve current history.state
Fix #180
Eduardo San Martin Morote [Mon, 20 Apr 2020 09:45:18 +0000 (11:45 +0200)]
ci: build release tags
dependabot-preview[bot] [Mon, 20 Apr 2020 09:19:16 +0000 (09:19 +0000)]
build(deps-dev): bump @types/webpack from 4.41.11 to 4.41.12
Bumps [@types/webpack](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/webpack) from 4.41.11 to 4.41.12.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/webpack)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
dependabot-preview[bot] [Mon, 20 Apr 2020 09:17:58 +0000 (09:17 +0000)]
build(deps-dev): bump jest from 25.3.0 to 25.4.0
Bumps [jest](https://github.com/facebook/jest) from 25.3.0 to 25.4.0.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v25.3.0...v25.4.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
dependabot-preview[bot] [Mon, 20 Apr 2020 09:13:10 +0000 (09:13 +0000)]
build(deps-dev): bump @rollup/plugin-replace from 2.3.1 to 2.3.2
Bumps [@rollup/plugin-replace](https://github.com/rollup/plugins) from 2.3.1 to 2.3.2.
- [Release notes](https://github.com/rollup/plugins/releases)
- [Commits](https://github.com/rollup/plugins/compare/replace-v2.3.1...replace-v2.3.2)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
dependabot-preview[bot] [Mon, 20 Apr 2020 09:14:00 +0000 (09:14 +0000)]
build(deps-dev): bump lint-staged from 10.1.3 to 10.1.6
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 10.1.3 to 10.1.6.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v10.1.3...v10.1.6)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
dependabot-preview[bot] [Mon, 20 Apr 2020 09:12:16 +0000 (09:12 +0000)]
build(deps-dev): bump ts-loader from 7.0.0 to 7.0.1
Bumps [ts-loader](https://github.com/TypeStrong/ts-loader) from 7.0.0 to 7.0.1.
- [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/v7.0.0...v7.0.1)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Eduardo San Martin Morote [Mon, 20 Apr 2020 08:17:57 +0000 (10:17 +0200)]
docs: add codesandbox link
Close #119
Eduardo San Martin Morote [Fri, 17 Apr 2020 18:40:23 +0000 (20:40 +0200)]
release: v4.0.0-alpha.7
Eduardo San Martin Morote [Fri, 17 Apr 2020 18:35:53 +0000 (20:35 +0200)]
docs: typo
Eduardo San Martin Morote [Fri, 17 Apr 2020 18:33:16 +0000 (20:33 +0200)]
feat: add `$route` and `$router` types
Eduardo San Martin Morote [Fri, 17 Apr 2020 18:29:27 +0000 (20:29 +0200)]
feat: add guards types
Eduardo San Martin Morote [Fri, 17 Apr 2020 17:51:23 +0000 (19:51 +0200)]
feat: refactor navigation to comply with vuejs/rfcs#150
BREAKING CHANGE: This follows the RFC at https://github.com/vuejs/rfcs/pull/150
Summary: `router.afterEach` and `router.onError` are now the global equivalent of
`router.push`/`router.replace` as well as navigation through the interface
(`history.go()`). A navigation only rejects if there was an unexpected error.
A navigation failure will still resolve the promise returned by `router.push`
and be exposed as the resolved value.
Eduardo San Martin Morote [Fri, 17 Apr 2020 09:42:48 +0000 (11:42 +0200)]
release: v4.0.0-alpha.6
Eduardo San Martin Morote [Fri, 17 Apr 2020 09:38:15 +0000 (11:38 +0200)]
types(router): mark history and currentRoute as readonly
Eduardo San Martin Morote [Fri, 17 Apr 2020 09:34:35 +0000 (11:34 +0200)]
refactor(router): merge createHref into resolve
BREAKING CHANGE: createHref is removed from the router. Instead, resolve
returns a location object with the corresponding `href` property
Eduardo San Martin Morote [Fri, 17 Apr 2020 09:10:59 +0000 (11:10 +0200)]
refactor: add mixin only on browser
Eduardo San Martin Morote [Fri, 17 Apr 2020 07:50:38 +0000 (09:50 +0200)]
chore: up deps
Eduardo San Martin Morote [Fri, 17 Apr 2020 07:45:09 +0000 (09:45 +0200)]
chore: up vue
Close #178,#179
Eduardo San Martin Morote [Thu, 16 Apr 2020 17:26:23 +0000 (19:26 +0200)]
build: temporarily add node@12 types
Eduardo San Martin Morote [Thu, 16 Apr 2020 14:40:47 +0000 (16:40 +0200)]
feat: add this.$route
Eduardo San Martin Morote [Thu, 16 Apr 2020 14:23:36 +0000 (16:23 +0200)]
chore: up vue deps
Eduardo San Martin Morote [Thu, 16 Apr 2020 14:19:13 +0000 (16:19 +0200)]
refactor(history): remove back/forward from private RouterHistory
They are redundant given `go(distance: number)` and they were always calling go
at the end
Eduardo San Martin Morote [Thu, 16 Apr 2020 13:59:24 +0000 (15:59 +0200)]
feat: add this.$router
Eduardo San Martin Morote [Thu, 16 Apr 2020 13:50:39 +0000 (15:50 +0200)]
docs: mention other breaking changes
Eduardo San Martin Morote [Thu, 16 Apr 2020 12:28:24 +0000 (14:28 +0200)]
refactor(view): replace useView with a prop
Following https://github.com/vuejs/rfcs/pull/153
Eduardo San Martin Morote [Wed, 15 Apr 2020 15:09:41 +0000 (17:09 +0200)]
ci: run firefox
Eduardo San Martin Morote [Wed, 15 Apr 2020 14:45:36 +0000 (16:45 +0200)]
fix(scroll): only apply on browser
Eduardo San Martin Morote [Wed, 15 Apr 2020 14:43:22 +0000 (16:43 +0200)]
feat(scroll): handle scroll on popstate
Eduardo San Martin Morote [Wed, 15 Apr 2020 14:38:51 +0000 (16:38 +0200)]
test: refactor e2e config
Eduardo San Martin Morote [Wed, 15 Apr 2020 14:37:57 +0000 (16:37 +0200)]
test: modify e2e tests to work on safari
Eduardo San Martin Morote [Wed, 15 Apr 2020 09:04:17 +0000 (11:04 +0200)]
ci: update chrome driver
Eduardo San Martin Morote [Wed, 15 Apr 2020 08:50:13 +0000 (10:50 +0200)]
ci: try fixing e2e
https://bugs.chromium.org/p/chromedriver/issues/detail?id=2473
Eduardo San Martin Morote [Wed, 15 Apr 2020 08:47:07 +0000 (10:47 +0200)]
Revert "test: only call browser.end on the last test"
This reverts commit
4b3ba8920d40cd4ac94bd8b1deb545b2ff550dcf .
Eduardo San Martin Morote [Wed, 15 Apr 2020 08:35:32 +0000 (10:35 +0200)]
test: only call browser.end on the last test
Eduardo San Martin Morote [Wed, 15 Apr 2020 08:18:20 +0000 (10:18 +0200)]
test: add transition test
Eduardo San Martin Morote [Wed, 15 Apr 2020 08:09:18 +0000 (10:09 +0200)]
test: remove headless from e2e for transitions
Eduardo San Martin Morote [Wed, 15 Apr 2020 08:08:37 +0000 (10:08 +0200)]
test: mock isBrowser in unit tests
Eduardo San Martin Morote [Wed, 15 Apr 2020 08:07:57 +0000 (10:07 +0200)]
build: add browser env to webpack builds
Eduardo San Martin Morote [Wed, 15 Apr 2020 08:07:27 +0000 (10:07 +0200)]
refactor: proper isBrowser
Eduardo San Martin Morote [Tue, 14 Apr 2020 09:19:10 +0000 (11:19 +0200)]
feat: merge meta fields
Eduardo San Martin Morote [Mon, 13 Apr 2020 14:50:12 +0000 (16:50 +0200)]
fix(history): allow hash history with no origin
Close #163
Eduardo San Martin Morote [Mon, 13 Apr 2020 14:20:00 +0000 (16:20 +0200)]
fix(history): allow base with / and base tag
Close #164
Eduardo San Martin Morote [Mon, 13 Apr 2020 11:33:45 +0000 (13:33 +0200)]
test: add find method to wrapper
dependabot-preview[bot] [Mon, 13 Apr 2020 09:03:55 +0000 (09:03 +0000)]
build(deps-dev): bump @microsoft/api-documenter from 7.7.17 to 7.7.18
Bumps [@microsoft/api-documenter](https://github.com/microsoft/rushstack) from 7.7.17 to 7.7.18.
- [Release notes](https://github.com/microsoft/rushstack/releases)
- [Commits](https://github.com/microsoft/rushstack/compare/@microsoft/api-documenter_v7.7.17...@microsoft/api-documenter_v7.7.18)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
dependabot-preview[bot] [Mon, 13 Apr 2020 09:00:29 +0000 (09:00 +0000)]
build(deps-dev): bump @rollup/plugin-alias from 3.0.1 to 3.1.0
Bumps [@rollup/plugin-alias](https://github.com/rollup/plugins) from 3.0.1 to 3.1.0.
- [Release notes](https://github.com/rollup/plugins/releases)
- [Commits](https://github.com/rollup/plugins/compare/alias-v3.0.1...alias-v3.1.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
dependabot-preview[bot] [Mon, 13 Apr 2020 08:58:54 +0000 (08:58 +0000)]
build(deps-dev): bump jest from 25.2.7 to 25.3.0
Bumps [jest](https://github.com/facebook/jest) from 25.2.7 to 25.3.0.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v25.2.7...v25.3.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
dependabot-preview[bot] [Mon, 13 Apr 2020 08:54:16 +0000 (08:54 +0000)]
build(deps-dev): bump css-loader from 3.4.2 to 3.5.2
Bumps [css-loader](https://github.com/webpack-contrib/css-loader) from 3.4.2 to 3.5.2.
- [Release notes](https://github.com/webpack-contrib/css-loader/releases)
- [Changelog](https://github.com/webpack-contrib/css-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/css-loader/compare/v3.4.2...v3.5.2)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
dependabot-preview[bot] [Mon, 13 Apr 2020 08:53:29 +0000 (08:53 +0000)]
build(deps-dev): bump @rollup/plugin-commonjs from 11.0.2 to 11.1.0
Bumps [@rollup/plugin-commonjs](https://github.com/rollup/plugins) from 11.0.2 to 11.1.0.
- [Release notes](https://github.com/rollup/plugins/releases)
- [Commits](https://github.com/rollup/plugins/compare/commonjs-v11.0.2...commonjs-v11.1.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
dependabot-preview[bot] [Mon, 13 Apr 2020 08:50:20 +0000 (08:50 +0000)]
build(deps-dev): bump @types/jsdom from 16.2.0 to 16.2.1
Bumps [@types/jsdom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jsdom) from 16.2.0 to 16.2.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jsdom)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
dependabot-preview[bot] [Mon, 13 Apr 2020 08:50:13 +0000 (08:50 +0000)]
build(deps-dev): bump lint-staged from 10.1.2 to 10.1.3
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 10.1.2 to 10.1.3.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v10.1.2...v10.1.3)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
dependabot-preview[bot] [Mon, 13 Apr 2020 08:49:41 +0000 (08:49 +0000)]
build(deps-dev): bump html-webpack-plugin from 4.0.4 to 4.2.0
Bumps [html-webpack-plugin](https://github.com/jantimon/html-webpack-plugin) from 4.0.4 to 4.2.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.0.4...v4.2.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
dependabot-preview[bot] [Mon, 13 Apr 2020 08:49:10 +0000 (08:49 +0000)]
build(deps-dev): bump @microsoft/api-extractor from 7.7.12 to 7.7.13
Bumps [@microsoft/api-extractor](https://github.com/microsoft/rushstack) from 7.7.12 to 7.7.13.
- [Release notes](https://github.com/microsoft/rushstack/releases)
- [Commits](https://github.com/microsoft/rushstack/compare/@microsoft/api-extractor_v7.7.12...@microsoft/api-extractor_v7.7.13)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
dependabot-preview[bot] [Mon, 13 Apr 2020 08:46:20 +0000 (08:46 +0000)]
build(deps-dev): bump @rollup/plugin-node-resolve from 7.1.1 to 7.1.3
Bumps [@rollup/plugin-node-resolve](https://github.com/rollup/plugins) from 7.1.1 to 7.1.3.
- [Release notes](https://github.com/rollup/plugins/releases)
- [Commits](https://github.com/rollup/plugins/compare/node-resolve-v7.1.1...node-resolve-v7.1.3)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Eduardo San Martin Morote [Thu, 9 Apr 2020 19:12:43 +0000 (21:12 +0200)]
refactor(link): directly inject the route
Eduardo San Martin Morote [Thu, 9 Apr 2020 18:51:45 +0000 (20:51 +0200)]
test: rename mount2
Eduardo San Martin Morote [Thu, 9 Apr 2020 18:50:52 +0000 (20:50 +0200)]
test: remove old mount helper
Eduardo San Martin Morote [Thu, 9 Apr 2020 18:50:12 +0000 (20:50 +0200)]
test: refactor mount function
Eduardo San Martin Morote [Thu, 9 Apr 2020 17:20:24 +0000 (19:20 +0200)]
refactor: use cleaner mount for tests
Eduardo San Martin Morote [Thu, 9 Apr 2020 13:32:41 +0000 (15:32 +0200)]
chore: add vm to playground for testing purposes
Eduardo San Martin Morote [Thu, 9 Apr 2020 13:32:26 +0000 (15:32 +0200)]
chore: up vue
Eduardo San Martin Morote [Wed, 8 Apr 2020 18:46:53 +0000 (20:46 +0200)]
test: extra import
Eduardo San Martin Morote [Wed, 8 Apr 2020 18:45:08 +0000 (20:45 +0200)]
test: remove outdated error
Eduardo San Martin Morote [Wed, 8 Apr 2020 16:13:59 +0000 (18:13 +0200)]
fix: revert history navigation if navigation is cancelled
Eduardo San Martin Morote [Wed, 8 Apr 2020 15:41:10 +0000 (17:41 +0200)]
feat(guards): support errors in navigation guards
Eduardo San Martin Morote [Wed, 8 Apr 2020 13:44:45 +0000 (15:44 +0200)]
test: rename test
Eduardo San Martin Morote [Wed, 8 Apr 2020 13:44:24 +0000 (15:44 +0200)]
refactor: group guards code
Eduardo San Martin Morote [Wed, 8 Apr 2020 12:14:38 +0000 (14:14 +0200)]
feat(router): hasRoute
Eduardo San Martin Morote [Wed, 8 Apr 2020 12:12:43 +0000 (14:12 +0200)]
test: group tests
Eduardo San Martin Morote [Wed, 8 Apr 2020 10:56:17 +0000 (12:56 +0200)]
build: fix script
Eduardo San Martin Morote [Wed, 8 Apr 2020 10:54:37 +0000 (12:54 +0200)]
release: v4.0.0-alpha.5
Eduardo San Martin Morote [Wed, 8 Apr 2020 10:45:55 +0000 (12:45 +0200)]
chore: consistent usage of yarn run
Eduardo San Martin Morote [Wed, 8 Apr 2020 10:43:27 +0000 (12:43 +0200)]
refactor: remove old comments
Eduardo San Martin Morote [Wed, 8 Apr 2020 10:36:59 +0000 (12:36 +0200)]
test(e2e): add hash test
Eduardo San Martin Morote [Wed, 8 Apr 2020 10:36:45 +0000 (12:36 +0200)]
refactor: test
Eduardo San Martin Morote [Wed, 8 Apr 2020 10:03:08 +0000 (12:03 +0200)]
fix(link): not active when matched is empty
Eduardo San Martin Morote [Wed, 8 Apr 2020 09:40:53 +0000 (11:40 +0200)]
chore: improve scrolling in playground
Eduardo San Martin Morote [Wed, 8 Apr 2020 09:04:39 +0000 (11:04 +0200)]
test: throws with invalid route locations
Eduardo San Martin Morote [Tue, 7 Apr 2020 13:32:08 +0000 (15:32 +0200)]
fix: ignore order of keys in query and params
Eduardo San Martin Morote [Tue, 7 Apr 2020 12:23:37 +0000 (14:23 +0200)]
test: test missing param error
Eduardo San Martin Morote [Tue, 7 Apr 2020 11:58:19 +0000 (13:58 +0200)]
test: update snapshots
Eduardo San Martin Morote [Tue, 7 Apr 2020 11:57:21 +0000 (13:57 +0200)]
test: refactor tests
Eduardo San Martin Morote [Tue, 7 Apr 2020 10:40:13 +0000 (12:40 +0200)]
feat: allow symbols as route record name
Eduardo San Martin Morote [Tue, 7 Apr 2020 10:19:46 +0000 (12:19 +0200)]
feat(link): allow `custom` prop
Eduardo San Martin Morote [Tue, 7 Apr 2020 10:19:30 +0000 (12:19 +0200)]
test(link): add absolute alias active tests
Eduardo San Martin Morote [Tue, 7 Apr 2020 10:00:15 +0000 (12:00 +0200)]
feat(link): activeClass and exactActiveClass props
Eduardo San Martin Morote [Tue, 7 Apr 2020 09:41:50 +0000 (11:41 +0200)]
refactor: remove vue-loader usage from e2e tests