Skip to content

Commit a88d06e

Browse files
committed
build: bundle 3.4.9
1 parent 63c749c commit a88d06e

6 files changed

+48
-48
lines changed

Diff for: dist/vue-router.common.js

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-router v3.4.8
2+
* vue-router v3.4.9
33
* (c) 2020 Evan You
44
* @license MIT
55
*/
@@ -1367,6 +1367,14 @@ function addRouteRecord (
13671367
path || name
13681368
)) + " cannot be a " + "string id. Use an actual component instead."
13691369
);
1370+
1371+
warn(
1372+
// eslint-disable-next-line no-control-regex
1373+
!/[^\u0000-\u007F]+/.test(path),
1374+
"Route with path \"" + path + "\" contains unencoded characters, make sure " +
1375+
"your path is correctly encoded before passing it to the router. Use " +
1376+
"encodeURI to encode static segments of your path."
1377+
);
13701378
}
13711379

13721380
var pathToRegexpOptions =
@@ -1672,14 +1680,6 @@ function matchRoute (
16721680
path,
16731681
params
16741682
) {
1675-
try {
1676-
path = decodeURI(path);
1677-
} catch (err) {
1678-
if (process.env.NODE_ENV !== 'production') {
1679-
warn(false, ("Error decoding \"" + path + "\". Leaving it intact."));
1680-
}
1681-
}
1682-
16831683
var m = path.match(regex);
16841684

16851685
if (!m) {
@@ -1692,7 +1692,7 @@ function matchRoute (
16921692
var key = regex.keys[i - 1];
16931693
if (key) {
16941694
// Fix #1994: using * with props: true generates a param named 0
1695-
params[key.name || 'pathMatch'] = m[i];
1695+
params[key.name || 'pathMatch'] = typeof m[i] === 'string' ? decode(m[i]) : m[i];
16961696
}
16971697
}
16981698

@@ -3057,7 +3057,7 @@ function createHref (base, fullPath, mode) {
30573057
}
30583058

30593059
VueRouter.install = install;
3060-
VueRouter.version = '3.4.8';
3060+
VueRouter.version = '3.4.9';
30613061
VueRouter.isNavigationFailure = isNavigationFailure;
30623062
VueRouter.NavigationFailureType = NavigationFailureType;
30633063

Diff for: dist/vue-router.esm.browser.js

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-router v3.4.8
2+
* vue-router v3.4.9
33
* (c) 2020 Evan You
44
* @license MIT
55
*/
@@ -1348,6 +1348,14 @@ function addRouteRecord (
13481348
path || name
13491349
)} cannot be a ` + `string id. Use an actual component instead.`
13501350
);
1351+
1352+
warn(
1353+
// eslint-disable-next-line no-control-regex
1354+
!/[^\u0000-\u007F]+/.test(path),
1355+
`Route with path "${path}" contains unencoded characters, make sure ` +
1356+
`your path is correctly encoded before passing it to the router. Use ` +
1357+
`encodeURI to encode static segments of your path.`
1358+
);
13511359
}
13521360

13531361
const pathToRegexpOptions =
@@ -1649,14 +1657,6 @@ function matchRoute (
16491657
path,
16501658
params
16511659
) {
1652-
try {
1653-
path = decodeURI(path);
1654-
} catch (err) {
1655-
{
1656-
warn(false, `Error decoding "${path}". Leaving it intact.`);
1657-
}
1658-
}
1659-
16601660
const m = path.match(regex);
16611661

16621662
if (!m) {
@@ -1669,7 +1669,7 @@ function matchRoute (
16691669
const key = regex.keys[i - 1];
16701670
if (key) {
16711671
// Fix #1994: using * with props: true generates a param named 0
1672-
params[key.name || 'pathMatch'] = m[i];
1672+
params[key.name || 'pathMatch'] = typeof m[i] === 'string' ? decode(m[i]) : m[i];
16731673
}
16741674
}
16751675

@@ -3023,7 +3023,7 @@ function createHref (base, fullPath, mode) {
30233023
}
30243024

30253025
VueRouter.install = install;
3026-
VueRouter.version = '3.4.8';
3026+
VueRouter.version = '3.4.9';
30273027
VueRouter.isNavigationFailure = isNavigationFailure;
30283028
VueRouter.NavigationFailureType = NavigationFailureType;
30293029

Diff for: 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.

Diff for: dist/vue-router.esm.js

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-router v3.4.8
2+
* vue-router v3.4.9
33
* (c) 2020 Evan You
44
* @license MIT
55
*/
@@ -1365,6 +1365,14 @@ function addRouteRecord (
13651365
path || name
13661366
)) + " cannot be a " + "string id. Use an actual component instead."
13671367
);
1368+
1369+
warn(
1370+
// eslint-disable-next-line no-control-regex
1371+
!/[^\u0000-\u007F]+/.test(path),
1372+
"Route with path \"" + path + "\" contains unencoded characters, make sure " +
1373+
"your path is correctly encoded before passing it to the router. Use " +
1374+
"encodeURI to encode static segments of your path."
1375+
);
13681376
}
13691377

13701378
var pathToRegexpOptions =
@@ -1670,14 +1678,6 @@ function matchRoute (
16701678
path,
16711679
params
16721680
) {
1673-
try {
1674-
path = decodeURI(path);
1675-
} catch (err) {
1676-
if (process.env.NODE_ENV !== 'production') {
1677-
warn(false, ("Error decoding \"" + path + "\". Leaving it intact."));
1678-
}
1679-
}
1680-
16811681
var m = path.match(regex);
16821682

16831683
if (!m) {
@@ -1690,7 +1690,7 @@ function matchRoute (
16901690
var key = regex.keys[i - 1];
16911691
if (key) {
16921692
// Fix #1994: using * with props: true generates a param named 0
1693-
params[key.name || 'pathMatch'] = m[i];
1693+
params[key.name || 'pathMatch'] = typeof m[i] === 'string' ? decode(m[i]) : m[i];
16941694
}
16951695
}
16961696

@@ -3055,7 +3055,7 @@ function createHref (base, fullPath, mode) {
30553055
}
30563056

30573057
VueRouter.install = install;
3058-
VueRouter.version = '3.4.8';
3058+
VueRouter.version = '3.4.9';
30593059
VueRouter.isNavigationFailure = isNavigationFailure;
30603060
VueRouter.NavigationFailureType = NavigationFailureType;
30613061

Diff for: dist/vue-router.js

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-router v3.4.8
2+
* vue-router v3.4.9
33
* (c) 2020 Evan You
44
* @license MIT
55
*/
@@ -1371,6 +1371,14 @@
13711371
path || name
13721372
)) + " cannot be a " + "string id. Use an actual component instead."
13731373
);
1374+
1375+
warn(
1376+
// eslint-disable-next-line no-control-regex
1377+
!/[^\u0000-\u007F]+/.test(path),
1378+
"Route with path \"" + path + "\" contains unencoded characters, make sure " +
1379+
"your path is correctly encoded before passing it to the router. Use " +
1380+
"encodeURI to encode static segments of your path."
1381+
);
13741382
}
13751383

13761384
var pathToRegexpOptions =
@@ -1676,14 +1684,6 @@
16761684
path,
16771685
params
16781686
) {
1679-
try {
1680-
path = decodeURI(path);
1681-
} catch (err) {
1682-
{
1683-
warn(false, ("Error decoding \"" + path + "\". Leaving it intact."));
1684-
}
1685-
}
1686-
16871687
var m = path.match(regex);
16881688

16891689
if (!m) {
@@ -1696,7 +1696,7 @@
16961696
var key = regex.keys[i - 1];
16971697
if (key) {
16981698
// Fix #1994: using * with props: true generates a param named 0
1699-
params[key.name || 'pathMatch'] = m[i];
1699+
params[key.name || 'pathMatch'] = typeof m[i] === 'string' ? decode(m[i]) : m[i];
17001700
}
17011701
}
17021702

@@ -3061,7 +3061,7 @@
30613061
}
30623062

30633063
VueRouter.install = install;
3064-
VueRouter.version = '3.4.8';
3064+
VueRouter.version = '3.4.9';
30653065
VueRouter.isNavigationFailure = isNavigationFailure;
30663066
VueRouter.NavigationFailureType = NavigationFailureType;
30673067

Diff for: 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)