Skip to content

Commit 6fcda18

Browse files
committed
build: bundle 3.3.3
1 parent 4d484bf commit 6fcda18

6 files changed

+74
-30
lines changed

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

+16-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-router v3.3.2
2+
* vue-router v3.3.3
33
* (c) 2020 Evan You
44
* @license MIT
55
*/
@@ -2027,7 +2027,9 @@ function createNavigationRedirectedError (from, to) {
20272027
from,
20282028
to,
20292029
NavigationFailureType.redirected,
2030-
("Redirected from \"" + (from.fullPath) + "\" to \"" + (stringifyRoute(to)) + "\" via a navigation guard.")
2030+
("Redirected when going from \"" + (from.fullPath) + "\" to \"" + (stringifyRoute(
2031+
to
2032+
)) + "\" via a navigation guard.")
20312033
)
20322034
}
20332035

@@ -2147,9 +2149,17 @@ History.prototype.transitionTo = function transitionTo (
21472149
}
21482150
if (err && !this$1.ready) {
21492151
this$1.ready = true;
2150-
this$1.readyErrorCbs.forEach(function (cb) {
2151-
cb(err);
2152-
});
2152+
// Initial redirection should still trigger the onReady onSuccess
2153+
// https://github.com/vuejs/vue-router/issues/3225
2154+
if (!isRouterError(err, NavigationFailureType.redirected)) {
2155+
this$1.readyErrorCbs.forEach(function (cb) {
2156+
cb(err);
2157+
});
2158+
} else {
2159+
this$1.readyCbs.forEach(function (cb) {
2160+
cb(route);
2161+
});
2162+
}
21532163
}
21542164
}
21552165
);
@@ -2996,7 +3006,7 @@ function createHref (base, fullPath, mode) {
29963006
}
29973007

29983008
VueRouter.install = install;
2999-
VueRouter.version = '3.3.2';
3009+
VueRouter.version = '3.3.3';
30003010

30013011
if (inBrowser && window.Vue) {
30023012
window.Vue.use(VueRouter);

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

+22-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-router v3.3.2
2+
* vue-router v3.3.3
33
* (c) 2020 Evan You
44
* @license MIT
55
*/
@@ -2000,7 +2000,9 @@ function createNavigationRedirectedError (from, to) {
20002000
from,
20012001
to,
20022002
NavigationFailureType.redirected,
2003-
`Redirected from "${from.fullPath}" to "${stringifyRoute(to)}" via a navigation guard.`
2003+
`Redirected when going from "${from.fullPath}" to "${stringifyRoute(
2004+
to
2005+
)}" via a navigation guard.`
20042006
)
20052007
}
20062008

@@ -2018,7 +2020,9 @@ function createNavigationCancelledError (from, to) {
20182020
from,
20192021
to,
20202022
NavigationFailureType.cancelled,
2021-
`Navigation cancelled from "${from.fullPath}" to "${to.fullPath}" with a new navigation.`
2023+
`Navigation cancelled from "${from.fullPath}" to "${
2024+
to.fullPath
2025+
}" with a new navigation.`
20222026
)
20232027
}
20242028

@@ -2027,7 +2031,9 @@ function createNavigationAbortedError (from, to) {
20272031
from,
20282032
to,
20292033
NavigationFailureType.aborted,
2030-
`Navigation aborted from "${from.fullPath}" to "${to.fullPath}" via a navigation guard.`
2034+
`Navigation aborted from "${from.fullPath}" to "${
2035+
to.fullPath
2036+
}" via a navigation guard.`
20312037
)
20322038
}
20332039

@@ -2139,9 +2145,17 @@ class History {
21392145
}
21402146
if (err && !this.ready) {
21412147
this.ready = true;
2142-
this.readyErrorCbs.forEach(cb => {
2143-
cb(err);
2144-
});
2148+
// Initial redirection should still trigger the onReady onSuccess
2149+
// https://github.com/vuejs/vue-router/issues/3225
2150+
if (!isRouterError(err, NavigationFailureType.redirected)) {
2151+
this.readyErrorCbs.forEach(cb => {
2152+
cb(err);
2153+
});
2154+
} else {
2155+
this.readyCbs.forEach(cb => {
2156+
cb(route);
2157+
});
2158+
}
21452159
}
21462160
}
21472161
);
@@ -2955,7 +2969,7 @@ function createHref (base, fullPath, mode) {
29552969
}
29562970

29572971
VueRouter.install = install;
2958-
VueRouter.version = '3.3.2';
2972+
VueRouter.version = '3.3.3';
29592973

29602974
if (inBrowser && window.Vue) {
29612975
window.Vue.use(VueRouter);

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

+16-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-router v3.3.2
2+
* vue-router v3.3.3
33
* (c) 2020 Evan You
44
* @license MIT
55
*/
@@ -2025,7 +2025,9 @@ function createNavigationRedirectedError (from, to) {
20252025
from,
20262026
to,
20272027
NavigationFailureType.redirected,
2028-
("Redirected from \"" + (from.fullPath) + "\" to \"" + (stringifyRoute(to)) + "\" via a navigation guard.")
2028+
("Redirected when going from \"" + (from.fullPath) + "\" to \"" + (stringifyRoute(
2029+
to
2030+
)) + "\" via a navigation guard.")
20292031
)
20302032
}
20312033

@@ -2145,9 +2147,17 @@ History.prototype.transitionTo = function transitionTo (
21452147
}
21462148
if (err && !this$1.ready) {
21472149
this$1.ready = true;
2148-
this$1.readyErrorCbs.forEach(function (cb) {
2149-
cb(err);
2150-
});
2150+
// Initial redirection should still trigger the onReady onSuccess
2151+
// https://github.com/vuejs/vue-router/issues/3225
2152+
if (!isRouterError(err, NavigationFailureType.redirected)) {
2153+
this$1.readyErrorCbs.forEach(function (cb) {
2154+
cb(err);
2155+
});
2156+
} else {
2157+
this$1.readyCbs.forEach(function (cb) {
2158+
cb(route);
2159+
});
2160+
}
21512161
}
21522162
}
21532163
);
@@ -2994,7 +3004,7 @@ function createHref (base, fullPath, mode) {
29943004
}
29953005

29963006
VueRouter.install = install;
2997-
VueRouter.version = '3.3.2';
3007+
VueRouter.version = '3.3.3';
29983008

29993009
if (inBrowser && window.Vue) {
30003010
window.Vue.use(VueRouter);

Diff for: dist/vue-router.js

+16-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-router v3.3.2
2+
* vue-router v3.3.3
33
* (c) 2020 Evan You
44
* @license MIT
55
*/
@@ -2031,7 +2031,9 @@
20312031
from,
20322032
to,
20332033
NavigationFailureType.redirected,
2034-
("Redirected from \"" + (from.fullPath) + "\" to \"" + (stringifyRoute(to)) + "\" via a navigation guard.")
2034+
("Redirected when going from \"" + (from.fullPath) + "\" to \"" + (stringifyRoute(
2035+
to
2036+
)) + "\" via a navigation guard.")
20352037
)
20362038
}
20372039

@@ -2151,9 +2153,17 @@
21512153
}
21522154
if (err && !this$1.ready) {
21532155
this$1.ready = true;
2154-
this$1.readyErrorCbs.forEach(function (cb) {
2155-
cb(err);
2156-
});
2156+
// Initial redirection should still trigger the onReady onSuccess
2157+
// https://github.com/vuejs/vue-router/issues/3225
2158+
if (!isRouterError(err, NavigationFailureType.redirected)) {
2159+
this$1.readyErrorCbs.forEach(function (cb) {
2160+
cb(err);
2161+
});
2162+
} else {
2163+
this$1.readyCbs.forEach(function (cb) {
2164+
cb(route);
2165+
});
2166+
}
21572167
}
21582168
}
21592169
);
@@ -3000,7 +3010,7 @@
30003010
}
30013011

30023012
VueRouter.install = install;
3003-
VueRouter.version = '3.3.2';
3013+
VueRouter.version = '3.3.3';
30043014

30053015
if (inBrowser && window.Vue) {
30063016
window.Vue.use(VueRouter);

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)