Skip to content

Commit 56fd224

Browse files
committed
build: bundle 3.5.3
1 parent 3e3a07e commit 56fd224

6 files changed

+56
-24
lines changed

dist/vue-router.common.js

+13-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-router v3.5.2
2+
* vue-router v3.5.3
33
* (c) 2021 Evan You
44
* @license MIT
55
*/
@@ -14,7 +14,7 @@ function assert (condition, message) {
1414
}
1515

1616
function warn (condition, message) {
17-
if (process.env.NODE_ENV !== 'production' && !condition) {
17+
if (!condition) {
1818
typeof console !== 'undefined' && console.warn(("[vue-router] " + message));
1919
}
2020
}
@@ -520,7 +520,7 @@ function parsePath (path) {
520520
}
521521

522522
function cleanPath (path) {
523-
return path.replace(/\/\//g, '/')
523+
return path.replace(/\/+/g, '/')
524524
}
525525

526526
var isarray = Array.isArray || function (arr) {
@@ -2312,7 +2312,9 @@ History.prototype.confirmTransition = function confirmTransition (route, onCompl
23122312
cb(err);
23132313
});
23142314
} else {
2315-
warn(false, 'uncaught error during route navigation:');
2315+
if (process.env.NODE_ENV !== 'production') {
2316+
warn(false, 'uncaught error during route navigation:');
2317+
}
23162318
console.error(err);
23172319
}
23182320
}
@@ -2327,6 +2329,9 @@ History.prototype.confirmTransition = function confirmTransition (route, onCompl
23272329
route.matched[lastRouteIndex] === current.matched[lastCurrentIndex]
23282330
) {
23292331
this.ensureURL();
2332+
if (route.hash) {
2333+
handleScroll(this.router, current, route, false);
2334+
}
23302335
return abort(createNavigationDuplicatedError(current, route))
23312336
}
23322337

@@ -2890,6 +2895,9 @@ var AbstractHistory = /*@__PURE__*/(function (History) {
28902895
var VueRouter = function VueRouter (options) {
28912896
if ( options === void 0 ) options = {};
28922897

2898+
if (process.env.NODE_ENV !== 'production') {
2899+
warn(this instanceof VueRouter, "Router must be called with the new operator.");
2900+
}
28932901
this.app = null;
28942902
this.apps = [];
28952903
this.options = options;
@@ -3134,7 +3142,7 @@ function createHref (base, fullPath, mode) {
31343142
}
31353143

31363144
VueRouter.install = install;
3137-
VueRouter.version = '3.5.2';
3145+
VueRouter.version = '3.5.3';
31383146
VueRouter.isNavigationFailure = isNavigationFailure;
31393147
VueRouter.NavigationFailureType = NavigationFailureType;
31403148
VueRouter.START_LOCATION = START;

dist/vue-router.esm.browser.js

+12-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-router v3.5.2
2+
* vue-router v3.5.3
33
* (c) 2021 Evan You
44
* @license MIT
55
*/
@@ -505,7 +505,7 @@ function parsePath (path) {
505505
}
506506

507507
function cleanPath (path) {
508-
return path.replace(/\/\//g, '/')
508+
return path.replace(/\/+/g, '/')
509509
}
510510

511511
var isarray = Array.isArray || function (arr) {
@@ -2307,7 +2307,9 @@ class History {
23072307
cb(err);
23082308
});
23092309
} else {
2310-
warn(false, 'uncaught error during route navigation:');
2310+
{
2311+
warn(false, 'uncaught error during route navigation:');
2312+
}
23112313
console.error(err);
23122314
}
23132315
}
@@ -2322,6 +2324,9 @@ class History {
23222324
route.matched[lastRouteIndex] === current.matched[lastCurrentIndex]
23232325
) {
23242326
this.ensureURL();
2327+
if (route.hash) {
2328+
handleScroll(this.router, current, route, false);
2329+
}
23252330
return abort(createNavigationDuplicatedError(current, route))
23262331
}
23272332

@@ -2866,6 +2871,9 @@ class VueRouter {
28662871

28672872

28682873
constructor (options = {}) {
2874+
{
2875+
warn(this instanceof VueRouter, `Router must be called with the new operator.`);
2876+
}
28692877
this.app = null;
28702878
this.apps = [];
28712879
this.options = options;
@@ -3100,7 +3108,7 @@ function createHref (base, fullPath, mode) {
31003108
}
31013109

31023110
VueRouter.install = install;
3103-
VueRouter.version = '3.5.2';
3111+
VueRouter.version = '3.5.3';
31043112
VueRouter.isNavigationFailure = isNavigationFailure;
31053113
VueRouter.NavigationFailureType = NavigationFailureType;
31063114
VueRouter.START_LOCATION = START;

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

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

dist/vue-router.esm.js

+13-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-router v3.5.2
2+
* vue-router v3.5.3
33
* (c) 2021 Evan You
44
* @license MIT
55
*/
@@ -12,7 +12,7 @@ function assert (condition, message) {
1212
}
1313

1414
function warn (condition, message) {
15-
if (process.env.NODE_ENV !== 'production' && !condition) {
15+
if (!condition) {
1616
typeof console !== 'undefined' && console.warn(("[vue-router] " + message));
1717
}
1818
}
@@ -518,7 +518,7 @@ function parsePath (path) {
518518
}
519519

520520
function cleanPath (path) {
521-
return path.replace(/\/\//g, '/')
521+
return path.replace(/\/+/g, '/')
522522
}
523523

524524
var isarray = Array.isArray || function (arr) {
@@ -2310,7 +2310,9 @@ History.prototype.confirmTransition = function confirmTransition (route, onCompl
23102310
cb(err);
23112311
});
23122312
} else {
2313-
warn(false, 'uncaught error during route navigation:');
2313+
if (process.env.NODE_ENV !== 'production') {
2314+
warn(false, 'uncaught error during route navigation:');
2315+
}
23142316
console.error(err);
23152317
}
23162318
}
@@ -2325,6 +2327,9 @@ History.prototype.confirmTransition = function confirmTransition (route, onCompl
23252327
route.matched[lastRouteIndex] === current.matched[lastCurrentIndex]
23262328
) {
23272329
this.ensureURL();
2330+
if (route.hash) {
2331+
handleScroll(this.router, current, route, false);
2332+
}
23282333
return abort(createNavigationDuplicatedError(current, route))
23292334
}
23302335

@@ -2888,6 +2893,9 @@ var AbstractHistory = /*@__PURE__*/(function (History) {
28882893
var VueRouter = function VueRouter (options) {
28892894
if ( options === void 0 ) options = {};
28902895

2896+
if (process.env.NODE_ENV !== 'production') {
2897+
warn(this instanceof VueRouter, "Router must be called with the new operator.");
2898+
}
28912899
this.app = null;
28922900
this.apps = [];
28932901
this.options = options;
@@ -3132,7 +3140,7 @@ function createHref (base, fullPath, mode) {
31323140
}
31333141

31343142
VueRouter.install = install;
3135-
VueRouter.version = '3.5.2';
3143+
VueRouter.version = '3.5.3';
31363144
VueRouter.isNavigationFailure = isNavigationFailure;
31373145
VueRouter.NavigationFailureType = NavigationFailureType;
31383146
VueRouter.START_LOCATION = START;

dist/vue-router.js

+12-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-router v3.5.2
2+
* vue-router v3.5.3
33
* (c) 2021 Evan You
44
* @license MIT
55
*/
@@ -524,7 +524,7 @@
524524
}
525525

526526
function cleanPath (path) {
527-
return path.replace(/\/\//g, '/')
527+
return path.replace(/\/+/g, '/')
528528
}
529529

530530
var isarray = Array.isArray || function (arr) {
@@ -2316,7 +2316,9 @@
23162316
cb(err);
23172317
});
23182318
} else {
2319-
warn(false, 'uncaught error during route navigation:');
2319+
{
2320+
warn(false, 'uncaught error during route navigation:');
2321+
}
23202322
console.error(err);
23212323
}
23222324
}
@@ -2331,6 +2333,9 @@
23312333
route.matched[lastRouteIndex] === current.matched[lastCurrentIndex]
23322334
) {
23332335
this.ensureURL();
2336+
if (route.hash) {
2337+
handleScroll(this.router, current, route, false);
2338+
}
23342339
return abort(createNavigationDuplicatedError(current, route))
23352340
}
23362341

@@ -2894,6 +2899,9 @@
28942899
var VueRouter = function VueRouter (options) {
28952900
if ( options === void 0 ) options = {};
28962901

2902+
{
2903+
warn(this instanceof VueRouter, "Router must be called with the new operator.");
2904+
}
28972905
this.app = null;
28982906
this.apps = [];
28992907
this.options = options;
@@ -3137,7 +3145,7 @@
31373145
}
31383146

31393147
VueRouter.install = install;
3140-
VueRouter.version = '3.5.2';
3148+
VueRouter.version = '3.5.3';
31413149
VueRouter.isNavigationFailure = isNavigationFailure;
31423150
VueRouter.NavigationFailureType = NavigationFailureType;
31433151
VueRouter.START_LOCATION = START;

dist/vue-router.min.js

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

0 commit comments

Comments
 (0)