]> git.ipfire.org Git - thirdparty/vuejs/router.git/log
thirdparty/vuejs/router.git
2 years agoDocs: Add Vue School free weekend banner (#1553)
Nico Devs [Thu, 15 Sep 2022 21:38:05 +0000 (18:38 -0300)] 
Docs: Add Vue School free weekend banner (#1553)

* docs(docs): Add Vue School free weekend banner

* docs(docs): Fix Vue School banner background for lanscape tablet viewport

2 years agofeat(types): improve link and view slots (#1544)
ZHAO Jinxiang [Fri, 2 Sep 2022 12:39:51 +0000 (05:39 -0700)] 
feat(types): improve link and view slots (#1544)

Co-authored-by: Eduardo San Martin Morote <posva@users.noreply.github.com>
2 years agodocs(docs): Fix link to Vue School banner to show Vue.js Forge offer (#1542)
Nico Devs [Wed, 31 Aug 2022 16:22:40 +0000 (13:22 -0300)] 
docs(docs): Fix link to Vue School banner to show Vue.js Forge offer (#1542)

2 years agodocs: code example on 'Fetching Before Navigation' with a better context (#1538)
Mauricio Matias C [Tue, 30 Aug 2022 15:01:40 +0000 (11:01 -0400)] 
docs: code example on 'Fetching Before Navigation' with a better context (#1538)

Co-authored-by: Eduardo San Martin Morote <posva@users.noreply.github.com>
2 years agoUpdate Vue School banner to show Vue.js Forge offer (#1537)
Nico Devs [Tue, 30 Aug 2022 07:10:47 +0000 (04:10 -0300)] 
Update Vue School banner to show Vue.js Forge offer (#1537)

2 years agodocs(introduction): update links on zh page from en (#1536) 1477/head
Mozi [Sat, 27 Aug 2022 09:05:59 +0000 (17:05 +0800)] 
docs(introduction): update links on zh page from en (#1536)

This is a patch related to the following commits:

bc122040833d9262b3e70bb4ef36af681062e1aa
9ce152c7cadb08c2c713d4a2b6510ec2085aadc4

2 years agorelease: vue-router@4.1.5 v4.1.5
Eduardo San Martin Morote [Fri, 26 Aug 2022 09:57:32 +0000 (11:57 +0200)] 
release: vue-router@4.1.5

2 years agofeat(warn): warn against removed params
Eduardo San Martin Morote [Fri, 26 Aug 2022 09:53:45 +0000 (11:53 +0200)] 
feat(warn): warn against removed params

See #1527

2 years agochore: wording in changelog [skip ci]
Eduardo San Martin Morote [Fri, 26 Aug 2022 09:24:59 +0000 (11:24 +0200)] 
chore: wording in changelog [skip ci]

2 years agochore: alternative in changelog [skip ci]
Eduardo San Martin Morote [Fri, 26 Aug 2022 09:19:37 +0000 (11:19 +0200)] 
chore: alternative in changelog [skip ci]

2 years agofeat(warn): better wording
Eduardo San Martin Morote [Thu, 25 Aug 2022 11:49:51 +0000 (13:49 +0200)] 
feat(warn): better wording

#1530

2 years agorelease: vue-router@4.1.4 v4.1.4
Eduardo San Martin Morote [Mon, 22 Aug 2022 13:28:49 +0000 (15:28 +0200)] 
release: vue-router@4.1.4

2 years agofix(build): remove devtools in cjs production
Eduardo San Martin Morote [Thu, 18 Aug 2022 07:47:20 +0000 (09:47 +0200)] 
fix(build): remove devtools in cjs production

Fix #1524

2 years agochore: note
Eduardo San Martin Morote [Thu, 18 Aug 2022 07:45:32 +0000 (09:45 +0200)] 
chore: note

2 years agoDocs: Add VF2 banner (#1520)
Nico Devs [Wed, 17 Aug 2022 11:19:19 +0000 (08:19 -0300)] 
Docs: Add VF2 banner (#1520)

2 years agofeat: pass state in guards and redirect
Eduardo San Martin Morote [Tue, 16 Aug 2022 15:11:55 +0000 (17:11 +0200)] 
feat: pass state in guards and redirect

Close #1472

2 years agorefactor(types): unused generic
Eduardo San Martin Morote [Tue, 16 Aug 2022 14:05:20 +0000 (16:05 +0200)] 
refactor(types): unused generic

2 years agochore: update dev script
Eduardo San Martin Morote [Tue, 16 Aug 2022 14:05:05 +0000 (16:05 +0200)] 
chore: update dev script

2 years agochore: playground improvements
Eduardo San Martin Morote [Tue, 16 Aug 2022 14:04:50 +0000 (16:04 +0200)] 
chore: playground improvements

2 years agofix(matcher): remove unused params
Eduardo San Martin Morote [Tue, 16 Aug 2022 13:56:04 +0000 (15:56 +0200)] 
fix(matcher): remove unused params

Fix #1497

NOTES: if you were relying on passing `params` that were not defined as
part of the `path`, eg: having a route defined as follows:

```js
{
  path: '/somewhere',
  name: 'somewhere'
}
```

And pushing with an _artificial_ param:

```js
router.push({ name: 'somewhere', params: { oops: 'gets removed' }})
```

This change will break your app. This behavior has worked in some
scenarios but has been **advised against** for years as it's an
antipattern in routing. You can still put the data in `query` or as an
actual param.

2 years agochore: up deps
Eduardo San Martin Morote [Tue, 16 Aug 2022 10:11:58 +0000 (12:11 +0200)] 
chore: up deps

2 years agofix(build): production mjs import
Eduardo San Martin Morote [Tue, 16 Aug 2022 10:04:49 +0000 (12:04 +0200)] 
fix(build): production mjs import

Fix #1516

2 years agodocs: improve Chinese translation (#1505)
RadiumAg [Mon, 8 Aug 2022 14:02:04 +0000 (22:02 +0800)] 
docs: improve Chinese translation (#1505)

Co-authored-by: edison <daiwei521@126.com>
2 years agodocs: improve Chinese translation (#1491)
Zing [Thu, 4 Aug 2022 14:04:41 +0000 (22:04 +0800)] 
docs: improve Chinese translation (#1491)

2 years agodocs: api gen
Eduardo San Martin Morote [Thu, 4 Aug 2022 12:17:34 +0000 (14:17 +0200)] 
docs: api gen

2 years agodocs: fix link to dynamic import docs (fix #1498) (#1500)
David Yunevich [Wed, 3 Aug 2022 20:09:01 +0000 (00:09 +0400)] 
docs: fix link to dynamic import docs (fix #1498) (#1500)

2 years agodocs(nested-routes): add note for named routes (#1496)
Schlömi [Wed, 3 Aug 2022 09:57:01 +0000 (11:57 +0200)] 
docs(nested-routes): add note for named routes (#1496)

Co-authored-by: Eduardo San Martin Morote <posva13@gmail.com>
2 years agochore: up some deps
Eduardo San Martin Morote [Wed, 3 Aug 2022 08:08:10 +0000 (10:08 +0200)] 
chore: up some deps

2 years agodocs: better format
Eduardo San Martin Morote [Wed, 3 Aug 2022 08:06:28 +0000 (10:06 +0200)] 
docs: better format

2 years agodocs: spelling fixes in doc blocks (#1495)
nandi95 [Wed, 3 Aug 2022 08:03:12 +0000 (09:03 +0100)] 
docs: spelling fixes in doc blocks (#1495)

2 years agodocs: missing letter l of null (#1492)
Levi [Tue, 2 Aug 2022 07:41:56 +0000 (15:41 +0800)] 
docs: missing letter l of null (#1492)

2 years agochore: typo [skip ci]
Eduardo San Martin Morote [Wed, 27 Jul 2022 12:08:58 +0000 (14:08 +0200)] 
chore: typo [skip ci]

2 years agorelease: vue-router@4.1.3 v4.1.3
Eduardo San Martin Morote [Wed, 27 Jul 2022 10:09:54 +0000 (12:09 +0200)] 
release: vue-router@4.1.3

2 years agofix: avoid restore on cancelled pop navigations
Eduardo San Martin Morote [Wed, 27 Jul 2022 10:06:33 +0000 (12:06 +0200)] 
fix: avoid restore on cancelled pop navigations

2 years agochore: up deps
Eduardo San Martin Morote [Wed, 27 Jul 2022 09:07:09 +0000 (11:07 +0200)] 
chore: up deps

2 years agoUpdate Vue School summer sale banner (#1487)
Nico Devs [Mon, 25 Jul 2022 16:14:31 +0000 (13:14 -0300)] 
Update Vue School summer sale banner (#1487)

2 years agodocs: the playground link (#1483)
Li Kui [Sat, 23 Jul 2022 12:44:49 +0000 (20:44 +0800)] 
docs: the playground link (#1483)

2 years agodocs: edit link not exist (#1484)
Li Kui [Sat, 23 Jul 2022 12:44:12 +0000 (20:44 +0800)] 
docs: edit link not exist (#1484)

* fix: edit link not exist

* Update config.ts

2 years agodocs: replace yarn with pnpm in contributing.md (#1482) [skip ci]
Reii [Fri, 22 Jul 2022 14:54:47 +0000 (22:54 +0800)] 
docs: replace yarn with pnpm in contributing.md (#1482) [skip ci]

2 years agodocs: Router-Example typo fix. (#1481)
NiceHwang [Fri, 22 Jul 2022 07:23:40 +0000 (16:23 +0900)] 
docs: Router-Example typo fix. (#1481)

Docs-API: Links with typos. `(#addroute-2)` → `(#addroute)`
Router-Ex: Works fine, but typo in alpha value in css color. `rgb` → `rgba`

2 years agostyle: code prettier (#1480)
Link [Thu, 21 Jul 2022 07:28:44 +0000 (15:28 +0800)] 
style: code prettier (#1480)

2 years agodocs: add a blank line (#1474)
Qiang [Wed, 20 Jul 2022 08:22:13 +0000 (16:22 +0800)] 
docs: add a blank line (#1474)

Add a line to make the document look more harmonious

2 years agochore: up api docs
Eduardo San Martin Morote [Tue, 19 Jul 2022 14:50:03 +0000 (16:50 +0200)] 
chore: up api docs

2 years agochore: minors updates
Eduardo San Martin Morote [Tue, 19 Jul 2022 14:46:09 +0000 (16:46 +0200)] 
chore: minors updates

2 years agorefactor: better type inference
Eduardo San Martin Morote [Tue, 19 Jul 2022 14:41:34 +0000 (16:41 +0200)] 
refactor: better type inference

2 years agofix(types): allow redirect with children
Eduardo San Martin Morote [Tue, 19 Jul 2022 13:19:36 +0000 (15:19 +0200)] 
fix(types): allow redirect with children

Fix #1476

2 years agofix(matcher): correctly resolve empty paths with optional params
Eduardo San Martin Morote [Tue, 19 Jul 2022 10:42:04 +0000 (12:42 +0200)] 
fix(matcher): correctly resolve empty paths with optional params

Fix #1475

2 years agotest: update types
Eduardo San Martin Morote [Tue, 19 Jul 2022 10:36:11 +0000 (12:36 +0200)] 
test: update types

2 years agochore: no type warn
Eduardo San Martin Morote [Mon, 18 Jul 2022 07:30:37 +0000 (09:30 +0200)] 
chore: no type warn

3 years agochore: up deps 1468/head
Eduardo San Martin Morote [Wed, 13 Jul 2022 08:50:47 +0000 (10:50 +0200)] 
chore: up deps

3 years agofix: allow overriding replace in guards
Eduardo San Martin Morote [Wed, 13 Jul 2022 08:50:36 +0000 (10:50 +0200)] 
fix: allow overriding replace in guards

Fix #1471

3 years agodocs: incorrect reference links (#1470)
NiceHwang [Wed, 13 Jul 2022 08:34:30 +0000 (17:34 +0900)] 
docs: incorrect reference links (#1470)

The content points to "optional params", but the link goes to "repeatable params".
Fixed links to point to "optional params".

3 years agorelease: vue-router@4.1.2 v4.1.2
Eduardo San Martin Morote [Mon, 11 Jul 2022 08:40:54 +0000 (10:40 +0200)] 
release: vue-router@4.1.2

3 years agofix: allow requiring in cjs context (#1465)
Daniel Roe [Mon, 11 Jul 2022 08:39:30 +0000 (09:39 +0100)] 
fix: allow requiring in cjs context (#1465)

3 years agodocs: update changelog link (#1464)
Xiangdong Zeng [Sat, 9 Jul 2022 11:49:15 +0000 (19:49 +0800)] 
docs: update changelog link (#1464)

3 years agofix: force relativse link in types exportcs
Eduardo San Martin Morote [Fri, 8 Jul 2022 15:36:36 +0000 (17:36 +0200)] 
fix: force relativse link in types exportcs

3 years agoci: skip bs in forks
Eduardo San Martin Morote [Fri, 8 Jul 2022 14:14:58 +0000 (16:14 +0200)] 
ci: skip bs in forks

3 years agofix(types): allow `symbol` type (#1460)
xunmi [Fri, 8 Jul 2022 13:36:58 +0000 (21:36 +0800)] 
fix(types): allow `symbol` type (#1460)

3 years agofeat(types): simplify props types
Eduardo San Martin Morote [Wed, 6 Jul 2022 13:24:56 +0000 (15:24 +0200)] 
feat(types): simplify props types

3 years agodocs: fix algolia id
Eduardo San Martin Morote [Wed, 6 Jul 2022 12:40:57 +0000 (14:40 +0200)] 
docs: fix algolia id

Close #1459

3 years agofix(types): adds ESM export of types (#1457)
Liz Fong-Jones [Tue, 5 Jul 2022 22:19:45 +0000 (15:19 -0700)] 
fix(types): adds ESM export of types (#1457)

3 years agochore: link to changelog
Eduardo San Martin Morote [Tue, 5 Jul 2022 16:49:45 +0000 (18:49 +0200)] 
chore: link to changelog

Close #1455

3 years agorelease: vue-router@4.1.1 v4.1.1
Eduardo San Martin Morote [Tue, 5 Jul 2022 14:57:06 +0000 (16:57 +0200)] 
release: vue-router@4.1.1

3 years agofix: remove browser export
Eduardo San Martin Morote [Tue, 5 Jul 2022 14:56:19 +0000 (16:56 +0200)] 
fix: remove browser export

Avoids vitest including different versions of vue-router depending on what imported it

3 years agofix(types): allow simpler type check of route records (#1453)
Eduardo San Martin Morote [Tue, 5 Jul 2022 07:57:52 +0000 (09:57 +0200)] 
fix(types): allow simpler type check of route records (#1453)

Fix #1452

3 years agofix(types): remove unnecessary readonly
Eduardo San Martin Morote [Tue, 5 Jul 2022 07:35:20 +0000 (09:35 +0200)] 
fix(types): remove unnecessary readonly

3 years agodocs: skip chrome download
Eduardo San Martin Morote [Mon, 4 Jul 2022 12:55:16 +0000 (14:55 +0200)] 
docs: skip chrome download

3 years agodocs: typo
Eduardo San Martin Morote [Mon, 4 Jul 2022 12:50:04 +0000 (14:50 +0200)] 
docs: typo

Close #1439

3 years agobuild: add skip git clean [skip ci]
Eduardo San Martin Morote [Mon, 4 Jul 2022 12:37:30 +0000 (14:37 +0200)] 
build: add skip git clean [skip ci]

3 years agorelease: vue-router@4.1.0 v4.1.0
Eduardo San Martin Morote [Mon, 4 Jul 2022 12:34:14 +0000 (14:34 +0200)] 
release: vue-router@4.1.0

3 years agobuild: correct tag name
Eduardo San Martin Morote [Mon, 4 Jul 2022 12:33:49 +0000 (14:33 +0200)] 
build: correct tag name

3 years agochore: play script
Eduardo San Martin Morote [Mon, 4 Jul 2022 12:28:04 +0000 (14:28 +0200)] 
chore: play script

3 years agodocs: fix link
Eduardo San Martin Morote [Thu, 30 Jun 2022 20:51:32 +0000 (22:51 +0200)] 
docs: fix link

Close #1451

3 years agobuild: fix line offset
Eduardo San Martin Morote [Wed, 29 Jun 2022 16:24:39 +0000 (18:24 +0200)] 
build: fix line offset

3 years agofeat(types): allow extending global types
Eduardo San Martin Morote [Wed, 29 Jun 2022 16:18:08 +0000 (18:18 +0200)] 
feat(types): allow extending global types

3 years agodocs: screenshot
Eduardo San Martin Morote [Wed, 29 Jun 2022 13:27:11 +0000 (15:27 +0200)] 
docs: screenshot

3 years agochore: remove unused files
Eduardo San Martin Morote [Wed, 29 Jun 2022 13:11:18 +0000 (15:11 +0200)] 
chore: remove unused files

3 years agodocs: update typed routes
Eduardo San Martin Morote [Wed, 29 Jun 2022 13:05:31 +0000 (15:05 +0200)] 
docs: update typed routes

3 years agorefactor: revert the complex types for path parsing
Eduardo San Martin Morote [Wed, 29 Jun 2022 12:41:11 +0000 (14:41 +0200)] 
refactor: revert the complex types for path parsing

Achieve it with a build plugin instead; https://github.com/posva/unplugin-vue-router
Types were too slow due to their recursive nature and relying on tuples
too much. A build-time type generation is not only reliable and fast but
also enable creating other patterns.

3 years agodocs: typed routes details for 4.1
Eduardo San Martin Morote [Fri, 17 Jun 2022 13:58:35 +0000 (15:58 +0200)] 
docs: typed routes details for 4.1

3 years agorefactor(types): avoid eager evaluation of routerlink
Eduardo San Martin Morote [Thu, 16 Jun 2022 08:57:27 +0000 (10:57 +0200)] 
refactor(types): avoid eager evaluation of routerlink

3 years agodocs: simplify RouterLink usage
Eduardo San Martin Morote [Thu, 16 Jun 2022 08:51:15 +0000 (10:51 +0200)] 
docs: simplify RouterLink usage

3 years agotypes: typed routes for RouterLink
Eduardo San Martin Morote [Thu, 16 Jun 2022 08:37:50 +0000 (10:37 +0200)] 
types: typed routes for RouterLink

3 years agofeat: add typed router link
Eduardo San Martin Morote [Wed, 15 Jun 2022 16:37:12 +0000 (18:37 +0200)] 
feat: add typed router link

3 years agodocs: add typed routes
Eduardo San Martin Morote [Wed, 15 Jun 2022 16:36:40 +0000 (18:36 +0200)] 
docs: add typed routes

3 years agotest: fix rename
Eduardo San Martin Morote [Wed, 15 Jun 2022 08:23:18 +0000 (10:23 +0200)] 
test: fix rename

3 years agochore: minor cleanup
Eduardo San Martin Morote [Tue, 14 Jun 2022 16:09:41 +0000 (18:09 +0200)] 
chore: minor cleanup

3 years agorefactor(types): prefix matcher types
Eduardo San Martin Morote [Tue, 14 Jun 2022 13:49:18 +0000 (15:49 +0200)] 
refactor(types): prefix matcher types

3 years agorefactor(types): move tests of types
Eduardo San Martin Morote [Tue, 14 Jun 2022 10:37:20 +0000 (12:37 +0200)] 
refactor(types): move tests of types

3 years agochore: build scripts
Eduardo San Martin Morote [Tue, 14 Jun 2022 10:23:48 +0000 (12:23 +0200)] 
chore: build scripts

3 years agorefactor(types): move utils types
Eduardo San Martin Morote [Tue, 14 Jun 2022 09:42:48 +0000 (11:42 +0200)] 
refactor(types): move utils types

3 years agochore: rename internal join path
Eduardo San Martin Morote [Tue, 14 Jun 2022 09:38:01 +0000 (11:38 +0200)] 
chore: rename internal join path

3 years agorefactor(types): remove old types
Eduardo San Martin Morote [Tue, 14 Jun 2022 09:37:44 +0000 (11:37 +0200)] 
refactor(types): remove old types

3 years agochore: add ts at root for vscode
Eduardo San Martin Morote [Tue, 14 Jun 2022 09:11:19 +0000 (11:11 +0200)] 
chore: add ts at root for vscode

3 years agorefactor(types): simplify param parsing
Eduardo San Martin Morote [Mon, 13 Jun 2022 16:44:16 +0000 (18:44 +0200)] 
refactor(types): simplify param parsing

3 years agoperf(types): reduce tuple amount for string paths
Eduardo San Martin Morote [Mon, 13 Jun 2022 10:32:27 +0000 (12:32 +0200)] 
perf(types): reduce tuple amount for string paths

3 years agochore: remove js files
Eduardo San Martin Morote [Mon, 13 Jun 2022 09:52:22 +0000 (11:52 +0200)] 
chore: remove js files

3 years agochore: refactor deps
Eduardo San Martin Morote [Mon, 13 Jun 2022 09:42:29 +0000 (11:42 +0200)] 
chore: refactor deps

3 years agorefactor: move playground
Eduardo San Martin Morote [Fri, 10 Jun 2022 16:49:04 +0000 (18:49 +0200)] 
refactor: move playground

3 years agochore: update lock
Eduardo San Martin Morote [Fri, 10 Jun 2022 14:59:28 +0000 (16:59 +0200)] 
chore: update lock