Skip to content

Commit c7ac21b

Browse files
authored
Merge branch 'dev' into fix-props-type
2 parents e1e549f + b7715dc commit c7ac21b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+2446
-1292
lines changed

.circleci/config.yml

+20-10
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: 2
33
defaults: &defaults
44
working_directory: ~/project/vue-router
55
docker:
6-
- image: vuejs/ci
6+
- image: circleci/node:lts-browsers
77

88
jobs:
99
install:
@@ -12,12 +12,12 @@ jobs:
1212
- checkout
1313
- restore_cache:
1414
keys:
15-
- v1-vue-{{ .Branch }}-{{ checksum "yarn.lock" }}
16-
- v1-vue-{{ .Branch }}-
17-
- v1-vue-
15+
- v1-vue-router-{{ .Branch }}-{{ checksum "yarn.lock" }}
16+
- v1-vue-router-{{ .Branch }}-
17+
- v1-vue-router-
1818
- run: yarn install
1919
- save_cache:
20-
key: v1-vue-{{ .Branch }}-{{ checksum "yarn.lock" }}
20+
key: v1-vue-router-{{ .Branch }}-{{ checksum "yarn.lock" }}
2121
paths:
2222
- node_modules/
2323
- persist_to_workspace:
@@ -30,16 +30,16 @@ jobs:
3030
steps:
3131
- attach_workspace:
3232
at: ~/project
33-
- run: npm run lint
34-
- run: npm run flow
35-
- run: npm run test:types
33+
- run: yarn run lint
34+
- run: yarn run flow
35+
- run: yarn run test:types
3636

3737
test-unit:
3838
<<: *defaults
3939
steps:
4040
- attach_workspace:
4141
at: ~/project
42-
- run: npm run test:unit
42+
- run: yarn run test:unit
4343
# add codecov once it is actually ran
4444
# - run:
4545
# name: report coverage stats for non-PRs
@@ -53,7 +53,14 @@ jobs:
5353
steps:
5454
- attach_workspace:
5555
at: ~/project
56-
- run: npm run test:e2e
56+
- run: yarn run test:e2e
57+
58+
test-e2e-bs-ie9:
59+
<<: *defaults
60+
steps:
61+
- attach_workspace:
62+
at: ~/project
63+
- run: yarn run test:e2e:ie9
5764

5865
workflows:
5966
version: 2
@@ -69,3 +76,6 @@ workflows:
6976
- test-e2e:
7077
requires:
7178
- install
79+
- test-e2e-bs-ie9:
80+
requires:
81+
- install

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,7 @@ docs/.vuepress/dist
1111
yarn-error.log
1212
.idea
1313
.vscode/settings.json
14+
.env
15+
selenium-server.log
16+
local.log
17+
browserstack.err

.prettierrc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"semi": false,
3+
"singleQuote": true,
4+
"printWidth": 80
5+
}

CHANGELOG.md

+18-22
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,43 @@
1-
## [3.0.6](https://github.com/vuejs/vue-router/compare/v3.0.3...v3.0.6) (2019-04-17)
2-
1+
## [3.0.7](https://github.com/vuejs/vue-router/compare/v3.0.6...v3.0.7) (2019-07-03)
32

43
### Bug Fixes
54

6-
* revert [#2713](https://github.com/vuejs/vue-router/issues/2713) ([#2723](https://github.com/vuejs/vue-router/issues/2723)) ([ec6eab7](https://github.com/vuejs/vue-router/commit/ec6eab7)), closes [#2719](https://github.com/vuejs/vue-router/issues/2719)
5+
- apps loaded from Windows file shares not mapped to network drives ([#2774](https://github.com/vuejs/vue-router/issues/2774)) ([c2c78a3](https://github.com/vuejs/vue-router/commit/c2c78a3))
6+
- make callback of next in beforeRouterEnter more consistent ([#2738](https://github.com/vuejs/vue-router/issues/2738)) ([8ac478f](https://github.com/vuejs/vue-router/commit/8ac478f)), closes [#2761](https://github.com/vuejs/vue-router/issues/2761) [#2728](https://github.com/vuejs/vue-router/issues/2728)
77

8+
## [3.0.6](https://github.com/vuejs/vue-router/compare/v3.0.5...v3.0.6) (2019-04-17)
89

9-
## [3.0.5](https://github.com/vuejs/vue-router/compare/v3.0.3...v3.0.5) (2019-04-15)
10+
### Bug Fixes
1011

12+
- revert [#2713](https://github.com/vuejs/vue-router/issues/2713) ([#2723](https://github.com/vuejs/vue-router/issues/2723)) ([ec6eab7](https://github.com/vuejs/vue-router/commit/ec6eab7)), closes [#2719](https://github.com/vuejs/vue-router/issues/2719)
1113

12-
### Bug Fixes
14+
## [3.0.5](https://github.com/vuejs/vue-router/compare/v3.0.4...v3.0.5) (2019-04-15)
1315

14-
* prevent memory leaks by removing app references ([#2706](https://github.com/vuejs/vue-router/issues/2706)) ([8056105](https://github.com/vuejs/vue-router/commit/8056105)), closes [#2639](https://github.com/vuejs/vue-router/issues/2639)
15-
* push before creating Vue instance ([#2713](https://github.com/vuejs/vue-router/issues/2713)) ([6974a6f](https://github.com/vuejs/vue-router/commit/6974a6f)), closes [#2712](https://github.com/vuejs/vue-router/issues/2712)
16-
* **router-view:** add condition to see whether the tree is inactive (fix [#2552](https://github.com/vuejs/vue-router/issues/2552)) ([#2592](https://github.com/vuejs/vue-router/issues/2592)) ([e6d8fd2](https://github.com/vuejs/vue-router/commit/e6d8fd2))
17-
* **router-view:** register instance in init hook ([c3abdf6](https://github.com/vuejs/vue-router/commit/c3abdf6)), closes [#2561](https://github.com/vuejs/vue-router/issues/2561) [#2689](https://github.com/vuejs/vue-router/issues/2689) [#2561](https://github.com/vuejs/vue-router/issues/2561) [#2561](https://github.com/vuejs/vue-router/issues/2561)
16+
### Bug Fixes
1817

18+
- push before creating Vue instance ([#2713](https://github.com/vuejs/vue-router/issues/2713)) ([6974a6f](https://github.com/vuejs/vue-router/commit/6974a6f)), closes [#2712](https://github.com/vuejs/vue-router/issues/2712)
19+
- **router-view:** add condition to see whether the tree is inactive (fix [#2552](https://github.com/vuejs/vue-router/issues/2552)) ([#2592](https://github.com/vuejs/vue-router/issues/2592)) ([e6d8fd2](https://github.com/vuejs/vue-router/commit/e6d8fd2))
20+
- **router-view:** register instance in init hook ([c3abdf6](https://github.com/vuejs/vue-router/commit/c3abdf6)), closes [#2561](https://github.com/vuejs/vue-router/issues/2561) [#2689](https://github.com/vuejs/vue-router/issues/2689) [#2561](https://github.com/vuejs/vue-router/issues/2561) [#2561](https://github.com/vuejs/vue-router/issues/2561)
1921

2022
## [3.0.4](https://github.com/vuejs/vue-router/compare/v3.0.3...v3.0.4) (2019-04-12)
2123

22-
2324
### Bug Fixes
2425

25-
* prevent memory leaks by removing app references ([#2706](https://github.com/vuejs/vue-router/issues/2706)) ([8056105](https://github.com/vuejs/vue-router/commit/8056105)), closes [#2639](https://github.com/vuejs/vue-router/issues/2639)
26-
* **hash:** prevent double decoding ([#2711](https://github.com/vuejs/vue-router/issues/2711)) ([a775fb1](https://github.com/vuejs/vue-router/commit/a775fb1)), closes [#2708](https://github.com/vuejs/vue-router/issues/2708)
27-
26+
- prevent memory leaks by removing app references ([#2706](https://github.com/vuejs/vue-router/issues/2706)) ([8056105](https://github.com/vuejs/vue-router/commit/8056105)), closes [#2639](https://github.com/vuejs/vue-router/issues/2639)
27+
- **hash:** prevent double decoding ([#2711](https://github.com/vuejs/vue-router/issues/2711)) ([a775fb1](https://github.com/vuejs/vue-router/commit/a775fb1)), closes [#2708](https://github.com/vuejs/vue-router/issues/2708)
2828

2929
### Features
3030

31-
* **esm build:** build ES modules for browser ([#2705](https://github.com/vuejs/vue-router/issues/2705)) ([627027f](https://github.com/vuejs/vue-router/commit/627027f))
32-
31+
- **esm build:** build ES modules for browser ([#2705](https://github.com/vuejs/vue-router/issues/2705)) ([627027f](https://github.com/vuejs/vue-router/commit/627027f))
3332

3433
## [3.0.3](https://github.com/vuejs/vue-router/compare/v3.0.2...v3.0.3) (2019-04-08)
3534

36-
3735
### Bug Fixes
3836

39-
* removes warning resolving asterisk routes ([e224637](https://github.com/vuejs/vue-router/commit/e224637)), closes [#2505](https://github.com/vuejs/vue-router/issues/2505) [#2505](https://github.com/vuejs/vue-router/issues/2505)
40-
* **normalizeLocation:** create a copy with named locations ([#2286](https://github.com/vuejs/vue-router/issues/2286)) ([53cce99](https://github.com/vuejs/vue-router/commit/53cce99)), closes [#2121](https://github.com/vuejs/vue-router/issues/2121)
41-
* **resolve:** use current location if not provided ([#2390](https://github.com/vuejs/vue-router/issues/2390)) ([7ff4de4](https://github.com/vuejs/vue-router/commit/7ff4de4)), closes [#2385](https://github.com/vuejs/vue-router/issues/2385)
42-
* **types:** allow null/undefined in query params ([ca30a75](https://github.com/vuejs/vue-router/commit/ca30a75)), closes [#2605](https://github.com/vuejs/vue-router/issues/2605)
43-
44-
37+
- removes warning resolving asterisk routes ([e224637](https://github.com/vuejs/vue-router/commit/e224637)), closes [#2505](https://github.com/vuejs/vue-router/issues/2505) [#2505](https://github.com/vuejs/vue-router/issues/2505)
38+
- **normalizeLocation:** create a copy with named locations ([#2286](https://github.com/vuejs/vue-router/issues/2286)) ([53cce99](https://github.com/vuejs/vue-router/commit/53cce99)), closes [#2121](https://github.com/vuejs/vue-router/issues/2121)
39+
- **resolve:** use current location if not provided ([#2390](https://github.com/vuejs/vue-router/issues/2390)) ([7ff4de4](https://github.com/vuejs/vue-router/commit/7ff4de4)), closes [#2385](https://github.com/vuejs/vue-router/issues/2385)
40+
- **types:** allow null/undefined in query params ([ca30a75](https://github.com/vuejs/vue-router/commit/ca30a75)), closes [#2605](https://github.com/vuejs/vue-router/issues/2605)
4541

4642
## [3.0.2](https://github.com/vuejs/vue-router/compare/v3.0.1...v3.0.2) (2018-11-23)
4743

dist/vue-router.common.js

+11-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-router v3.0.6
2+
* vue-router v3.0.7
33
* (c) 2019 Evan You
44
* @license MIT
55
*/
@@ -1389,10 +1389,8 @@ function createMatcher (
13891389
}
13901390
}
13911391

1392-
if (record) {
1393-
location.path = fillParams(record.path, location.params, ("named route \"" + name + "\""));
1394-
return _createRoute(record, location, redirectedFrom)
1395-
}
1392+
location.path = fillParams(record.path, location.params, ("named route \"" + name + "\""));
1393+
return _createRoute(record, location, redirectedFrom)
13961394
} else if (location.path) {
13971395
location.params = {};
13981396
for (var i = 0; i < pathList.length; i++) {
@@ -1547,7 +1545,12 @@ var positionStore = Object.create(null);
15471545
function setupScroll () {
15481546
// Fix for #1585 for Firefox
15491547
// Fix for #2195 Add optional third attribute to workaround a bug in safari https://bugs.webkit.org/show_bug.cgi?id=182678
1550-
window.history.replaceState({ key: getStateKey() }, '', window.location.href.replace(window.location.origin, ''));
1548+
// Fix for #2774 Support for apps loaded from Windows file shares not mapped to network drives: replaced location.origin with
1549+
// window.location.protocol + '//' + window.location.host
1550+
// location.host contains the port and location.hostname doesn't
1551+
var protocolAndPath = window.location.protocol + '//' + window.location.host;
1552+
var absolutePath = window.location.href.replace(protocolAndPath, '');
1553+
window.history.replaceState({ key: getStateKey() }, '', absolutePath);
15511554
window.addEventListener('popstate', function (e) {
15521555
saveScrollPosition();
15531556
if (e.state && e.state.key) {
@@ -2119,7 +2122,6 @@ function bindEnterGuard (
21192122
) {
21202123
return function routeEnterGuard (to, from, next) {
21212124
return guard(to, from, function (cb) {
2122-
next(cb);
21232125
if (typeof cb === 'function') {
21242126
cbs.push(function () {
21252127
// #750
@@ -2130,6 +2132,7 @@ function bindEnterGuard (
21302132
poll(cb, match.instances, key, isValid);
21312133
});
21322134
}
2135+
next(cb);
21332136
})
21342137
}
21352138
}
@@ -2664,7 +2667,7 @@ function createHref (base, fullPath, mode) {
26642667
}
26652668

26662669
VueRouter.install = install;
2667-
VueRouter.version = '3.0.6';
2670+
VueRouter.version = '3.0.7';
26682671

26692672
if (inBrowser && window.Vue) {
26702673
window.Vue.use(VueRouter);

dist/vue-router.esm.browser.js

+11-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-router v3.0.6
2+
* vue-router v3.0.7
33
* (c) 2019 Evan You
44
* @license MIT
55
*/
@@ -1364,10 +1364,8 @@ function createMatcher (
13641364
}
13651365
}
13661366

1367-
if (record) {
1368-
location.path = fillParams(record.path, location.params, `named route "${name}"`);
1369-
return _createRoute(record, location, redirectedFrom)
1370-
}
1367+
location.path = fillParams(record.path, location.params, `named route "${name}"`);
1368+
return _createRoute(record, location, redirectedFrom)
13711369
} else if (location.path) {
13721370
location.params = {};
13731371
for (let i = 0; i < pathList.length; i++) {
@@ -1519,7 +1517,12 @@ const positionStore = Object.create(null);
15191517
function setupScroll () {
15201518
// Fix for #1585 for Firefox
15211519
// Fix for #2195 Add optional third attribute to workaround a bug in safari https://bugs.webkit.org/show_bug.cgi?id=182678
1522-
window.history.replaceState({ key: getStateKey() }, '', window.location.href.replace(window.location.origin, ''));
1520+
// Fix for #2774 Support for apps loaded from Windows file shares not mapped to network drives: replaced location.origin with
1521+
// window.location.protocol + '//' + window.location.host
1522+
// location.host contains the port and location.hostname doesn't
1523+
const protocolAndPath = window.location.protocol + '//' + window.location.host;
1524+
const absolutePath = window.location.href.replace(protocolAndPath, '');
1525+
window.history.replaceState({ key: getStateKey() }, '', absolutePath);
15231526
window.addEventListener('popstate', e => {
15241527
saveScrollPosition();
15251528
if (e.state && e.state.key) {
@@ -2104,7 +2107,6 @@ function bindEnterGuard (
21042107
) {
21052108
return function routeEnterGuard (to, from, next) {
21062109
return guard(to, from, cb => {
2107-
next(cb);
21082110
if (typeof cb === 'function') {
21092111
cbs.push(() => {
21102112
// #750
@@ -2115,6 +2117,7 @@ function bindEnterGuard (
21152117
poll(cb, match.instances, key, isValid);
21162118
});
21172119
}
2120+
next(cb);
21182121
})
21192122
}
21202123
}
@@ -2622,7 +2625,7 @@ function createHref (base, fullPath, mode) {
26222625
}
26232626

26242627
VueRouter.install = install;
2625-
VueRouter.version = '3.0.6';
2628+
VueRouter.version = '3.0.7';
26262629

26272630
if (inBrowser && window.Vue) {
26282631
window.Vue.use(VueRouter);

dist/vue-router.esm.browser.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vue-router.esm.js

+11-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-router v3.0.6
2+
* vue-router v3.0.7
33
* (c) 2019 Evan You
44
* @license MIT
55
*/
@@ -1387,10 +1387,8 @@ function createMatcher (
13871387
}
13881388
}
13891389

1390-
if (record) {
1391-
location.path = fillParams(record.path, location.params, ("named route \"" + name + "\""));
1392-
return _createRoute(record, location, redirectedFrom)
1393-
}
1390+
location.path = fillParams(record.path, location.params, ("named route \"" + name + "\""));
1391+
return _createRoute(record, location, redirectedFrom)
13941392
} else if (location.path) {
13951393
location.params = {};
13961394
for (var i = 0; i < pathList.length; i++) {
@@ -1545,7 +1543,12 @@ var positionStore = Object.create(null);
15451543
function setupScroll () {
15461544
// Fix for #1585 for Firefox
15471545
// Fix for #2195 Add optional third attribute to workaround a bug in safari https://bugs.webkit.org/show_bug.cgi?id=182678
1548-
window.history.replaceState({ key: getStateKey() }, '', window.location.href.replace(window.location.origin, ''));
1546+
// Fix for #2774 Support for apps loaded from Windows file shares not mapped to network drives: replaced location.origin with
1547+
// window.location.protocol + '//' + window.location.host
1548+
// location.host contains the port and location.hostname doesn't
1549+
var protocolAndPath = window.location.protocol + '//' + window.location.host;
1550+
var absolutePath = window.location.href.replace(protocolAndPath, '');
1551+
window.history.replaceState({ key: getStateKey() }, '', absolutePath);
15491552
window.addEventListener('popstate', function (e) {
15501553
saveScrollPosition();
15511554
if (e.state && e.state.key) {
@@ -2117,7 +2120,6 @@ function bindEnterGuard (
21172120
) {
21182121
return function routeEnterGuard (to, from, next) {
21192122
return guard(to, from, function (cb) {
2120-
next(cb);
21212123
if (typeof cb === 'function') {
21222124
cbs.push(function () {
21232125
// #750
@@ -2128,6 +2130,7 @@ function bindEnterGuard (
21282130
poll(cb, match.instances, key, isValid);
21292131
});
21302132
}
2133+
next(cb);
21312134
})
21322135
}
21332136
}
@@ -2662,7 +2665,7 @@ function createHref (base, fullPath, mode) {
26622665
}
26632666

26642667
VueRouter.install = install;
2665-
VueRouter.version = '3.0.6';
2668+
VueRouter.version = '3.0.7';
26662669

26672670
if (inBrowser && window.Vue) {
26682671
window.Vue.use(VueRouter);

dist/vue-router.js

+11-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-router v3.0.6
2+
* vue-router v3.0.7
33
* (c) 2019 Evan You
44
* @license MIT
55
*/
@@ -1393,10 +1393,8 @@ function createMatcher (
13931393
}
13941394
}
13951395

1396-
if (record) {
1397-
location.path = fillParams(record.path, location.params, ("named route \"" + name + "\""));
1398-
return _createRoute(record, location, redirectedFrom)
1399-
}
1396+
location.path = fillParams(record.path, location.params, ("named route \"" + name + "\""));
1397+
return _createRoute(record, location, redirectedFrom)
14001398
} else if (location.path) {
14011399
location.params = {};
14021400
for (var i = 0; i < pathList.length; i++) {
@@ -1551,7 +1549,12 @@ var positionStore = Object.create(null);
15511549
function setupScroll () {
15521550
// Fix for #1585 for Firefox
15531551
// Fix for #2195 Add optional third attribute to workaround a bug in safari https://bugs.webkit.org/show_bug.cgi?id=182678
1554-
window.history.replaceState({ key: getStateKey() }, '', window.location.href.replace(window.location.origin, ''));
1552+
// Fix for #2774 Support for apps loaded from Windows file shares not mapped to network drives: replaced location.origin with
1553+
// window.location.protocol + '//' + window.location.host
1554+
// location.host contains the port and location.hostname doesn't
1555+
var protocolAndPath = window.location.protocol + '//' + window.location.host;
1556+
var absolutePath = window.location.href.replace(protocolAndPath, '');
1557+
window.history.replaceState({ key: getStateKey() }, '', absolutePath);
15551558
window.addEventListener('popstate', function (e) {
15561559
saveScrollPosition();
15571560
if (e.state && e.state.key) {
@@ -2123,7 +2126,6 @@ function bindEnterGuard (
21232126
) {
21242127
return function routeEnterGuard (to, from, next) {
21252128
return guard(to, from, function (cb) {
2126-
next(cb);
21272129
if (typeof cb === 'function') {
21282130
cbs.push(function () {
21292131
// #750
@@ -2134,6 +2136,7 @@ function bindEnterGuard (
21342136
poll(cb, match.instances, key, isValid);
21352137
});
21362138
}
2139+
next(cb);
21372140
})
21382141
}
21392142
}
@@ -2668,7 +2671,7 @@ function createHref (base, fullPath, mode) {
26682671
}
26692672

26702673
VueRouter.install = install;
2671-
VueRouter.version = '3.0.6';
2674+
VueRouter.version = '3.0.7';
26722675

26732676
if (inBrowser && window.Vue) {
26742677
window.Vue.use(VueRouter);

dist/vue-router.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)