Skip to content

Commit b35ae07

Browse files
committed
build: bundle 3.4.2
1 parent 7b3328d commit b35ae07

6 files changed

+20
-20
lines changed

dist/vue-router.common.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-router v3.4.1
2+
* vue-router v3.4.2
33
* (c) 2020 Evan You
44
* @license MIT
55
*/
@@ -217,7 +217,7 @@ function resolveQuery (
217217
return parsedQuery
218218
}
219219

220-
var castQueryParamValue = function (value) { return (value == null ? value : String(value)); };
220+
var castQueryParamValue = function (value) { return (value == null || typeof value === 'object' ? value : String(value)); };
221221

222222
function parseQuery (query) {
223223
var res = {};
@@ -980,7 +980,7 @@ function normalizeLocation (
980980
}
981981

982982
// relative params
983-
if (!next.path && next.params && current) {
983+
if (!next.path && (next.params || next.query || next.hash) && current) {
984984
next = extend({}, next);
985985
next._normalized = true;
986986
var params$1 = extend(extend({}, current.params), next.params);
@@ -3044,7 +3044,7 @@ function createHref (base, fullPath, mode) {
30443044
}
30453045

30463046
VueRouter.install = install;
3047-
VueRouter.version = '3.4.1';
3047+
VueRouter.version = '3.4.2';
30483048
VueRouter.isNavigationFailure = isNavigationFailure;
30493049
VueRouter.NavigationFailureType = NavigationFailureType;
30503050

dist/vue-router.esm.browser.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-router v3.4.1
2+
* vue-router v3.4.2
33
* (c) 2020 Evan You
44
* @license MIT
55
*/
@@ -209,7 +209,7 @@ function resolveQuery (
209209
return parsedQuery
210210
}
211211

212-
const castQueryParamValue = value => (value == null ? value : String(value));
212+
const castQueryParamValue = value => (value == null || typeof value === 'object' ? value : String(value));
213213

214214
function parseQuery (query) {
215215
const res = {};
@@ -965,7 +965,7 @@ function normalizeLocation (
965965
}
966966

967967
// relative params
968-
if (!next.path && next.params && current) {
968+
if (!next.path && (next.params || next.query || next.hash) && current) {
969969
next = extend({}, next);
970970
next._normalized = true;
971971
const params = extend(extend({}, current.params), next.params);
@@ -3010,7 +3010,7 @@ function createHref (base, fullPath, mode) {
30103010
}
30113011

30123012
VueRouter.install = install;
3013-
VueRouter.version = '3.4.1';
3013+
VueRouter.version = '3.4.2';
30143014
VueRouter.isNavigationFailure = isNavigationFailure;
30153015
VueRouter.NavigationFailureType = NavigationFailureType;
30163016

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-router v3.4.1
2+
* vue-router v3.4.2
33
* (c) 2020 Evan You
44
* @license MIT
55
*/
@@ -215,7 +215,7 @@ function resolveQuery (
215215
return parsedQuery
216216
}
217217

218-
var castQueryParamValue = function (value) { return (value == null ? value : String(value)); };
218+
var castQueryParamValue = function (value) { return (value == null || typeof value === 'object' ? value : String(value)); };
219219

220220
function parseQuery (query) {
221221
var res = {};
@@ -978,7 +978,7 @@ function normalizeLocation (
978978
}
979979

980980
// relative params
981-
if (!next.path && next.params && current) {
981+
if (!next.path && (next.params || next.query || next.hash) && current) {
982982
next = extend({}, next);
983983
next._normalized = true;
984984
var params$1 = extend(extend({}, current.params), next.params);
@@ -3042,7 +3042,7 @@ function createHref (base, fullPath, mode) {
30423042
}
30433043

30443044
VueRouter.install = install;
3045-
VueRouter.version = '3.4.1';
3045+
VueRouter.version = '3.4.2';
30463046
VueRouter.isNavigationFailure = isNavigationFailure;
30473047
VueRouter.NavigationFailureType = NavigationFailureType;
30483048

dist/vue-router.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-router v3.4.1
2+
* vue-router v3.4.2
33
* (c) 2020 Evan You
44
* @license MIT
55
*/
@@ -221,7 +221,7 @@
221221
return parsedQuery
222222
}
223223

224-
var castQueryParamValue = function (value) { return (value == null ? value : String(value)); };
224+
var castQueryParamValue = function (value) { return (value == null || typeof value === 'object' ? value : String(value)); };
225225

226226
function parseQuery (query) {
227227
var res = {};
@@ -984,7 +984,7 @@
984984
}
985985

986986
// relative params
987-
if (!next.path && next.params && current) {
987+
if (!next.path && (next.params || next.query || next.hash) && current) {
988988
next = extend({}, next);
989989
next._normalized = true;
990990
var params$1 = extend(extend({}, current.params), next.params);
@@ -3048,7 +3048,7 @@
30483048
}
30493049

30503050
VueRouter.install = install;
3051-
VueRouter.version = '3.4.1';
3051+
VueRouter.version = '3.4.2';
30523052
VueRouter.isNavigationFailure = isNavigationFailure;
30533053
VueRouter.NavigationFailureType = NavigationFailureType;
30543054

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)