-
Notifications
You must be signed in to change notification settings - Fork 27.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update swc #28946
Merged
Merged
Update swc #28946
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kdy1
requested review from
huozhi,
ijjk,
padmaia,
shuding,
styfle and
timneutkens
as code owners
September 9, 2021 06:40
This comment has been minimized.
This comment has been minimized.
timneutkens
approved these changes
Sep 9, 2021
Stats from current PRDefault Build (Decrease detected ✓)General Overall decrease ✓
Page Load Tests Overall decrease
|
vercel/next.js canary | kdy1/next.js swc-version | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 2.168 | 2.205 | |
/ avg req/sec | 1153.34 | 1133.87 | |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.135 | 1.19 | |
/error-in-render avg req/sec | 2202.46 | 2101.27 |
Client Bundles (main, webpack, commons) Overall increase ⚠️
vercel/next.js canary | kdy1/next.js swc-version | Change | |
---|---|---|---|
745.HASH.js gzip | 179 B | 179 B | ✓ |
framework-HASH.js gzip | 42.2 kB | 42.2 kB | ✓ |
main-HASH.js gzip | 26.6 kB | 26.6 kB | |
webpack-HASH.js gzip | 1.45 kB | 1.45 kB | ✓ |
Overall change | 70.4 kB | 70.4 kB |
Legacy Client Bundles (polyfills)
vercel/next.js canary | kdy1/next.js swc-version | Change | |
---|---|---|---|
polyfills-a4..dd70.js gzip | 31 kB | 31 kB | ✓ |
Overall change | 31 kB | 31 kB | ✓ |
Client Pages
vercel/next.js canary | kdy1/next.js swc-version | Change | |
---|---|---|---|
_app-HASH.js gzip | 979 B | 979 B | ✓ |
_error-HASH.js gzip | 194 B | 194 B | ✓ |
amp-HASH.js gzip | 312 B | 312 B | ✓ |
css-HASH.js gzip | 329 B | 329 B | ✓ |
dynamic-HASH.js gzip | 2.67 kB | 2.67 kB | ✓ |
head-HASH.js gzip | 351 B | 351 B | ✓ |
hooks-HASH.js gzip | 918 B | 918 B | ✓ |
image-HASH.js gzip | 4.14 kB | 4.14 kB | ✓ |
index-HASH.js gzip | 261 B | 261 B | ✓ |
link-HASH.js gzip | 1.66 kB | 1.66 kB | ✓ |
routerDirect..HASH.js gzip | 318 B | 318 B | ✓ |
script-HASH.js gzip | 387 B | 387 B | ✓ |
withRouter-HASH.js gzip | 320 B | 320 B | ✓ |
bb14e60e810b..30f.css gzip | 125 B | 125 B | ✓ |
Overall change | 13 kB | 13 kB | ✓ |
Client Build Manifests
vercel/next.js canary | kdy1/next.js swc-version | Change | |
---|---|---|---|
_buildManifest.js gzip | 492 B | 492 B | ✓ |
Overall change | 492 B | 492 B | ✓ |
Rendered Page Sizes Overall increase ⚠️
vercel/next.js canary | kdy1/next.js swc-version | Change | |
---|---|---|---|
index.html gzip | 540 B | 541 B | |
link.html gzip | 552 B | 553 B | |
withRouter.html gzip | 535 B | 534 B | -1 B |
Overall change | 1.63 kB | 1.63 kB |
Diffs
Diff for _buildManifest.js
@@ -10,14 +10,14 @@ self.__BUILD_MANIFEST = {
"static\u002Fchunks\u002Fpages\u002Fcss-d747126cbf11007733b6.js"
],
"/dynamic": [
- "static\u002Fchunks\u002Fpages\u002Fdynamic-31ec8b3d0e5d37bd30a4.js"
+ "static\u002Fchunks\u002Fpages\u002Fdynamic-00c9062b21fb8e37918d.js"
],
"/head": ["static\u002Fchunks\u002Fpages\u002Fhead-28fcf610d5156765f0fb.js"],
"/hooks": [
"static\u002Fchunks\u002Fpages\u002Fhooks-f6efb8a484d4a96e150c.js"
],
"/image": [
- "static\u002Fchunks\u002Fpages\u002Fimage-5cad511f441baa3021f5.js"
+ "static\u002Fchunks\u002Fpages\u002Fimage-66bbde17dc6c918bdc7c.js"
],
"/link": ["static\u002Fchunks\u002Fpages\u002Flink-8989a66c35e810b14a0a.js"],
"/routerDirect": [
Diff for dynamic-HASH.js
@@ -543,27 +543,27 @@
timedOut: false
};
var res = this._res,
- opts1 = this._opts;
+ opts = this._opts;
if (res.loading) {
- if (typeof opts1.delay === "number") {
- if (opts1.delay === 0) {
+ if (typeof opts.delay === "number") {
+ if (opts.delay === 0) {
this._state.pastDelay = true;
} else {
this._delay = setTimeout(function() {
_this._update({
pastDelay: true
});
- }, opts1.delay);
+ }, opts.delay);
}
}
- if (typeof opts1.timeout === "number") {
+ if (typeof opts.timeout === "number") {
this._timeout = setTimeout(function() {
_this._update({
timedOut: true
});
- }, opts1.timeout);
+ }, opts.timeout);
}
}
@@ -631,8 +631,8 @@
return LoadableSubscription;
})();
- function Loadable(opts1) {
- return createLoadableComponent(load, opts1);
+ function Loadable(opts) {
+ return createLoadableComponent(load, opts);
}
function flushInitializers(initializers, ids) {
Diff for image-HASH.js
@@ -16,7 +16,7 @@
__webpack_unused_export__ = {
value: true
};
- exports["default"] = Image1;
+ exports["default"] = Image;
var _react = _interopRequireDefault(__webpack_require__(7294));
@@ -367,7 +367,7 @@
}
}
- function Image1(_param) {
+ function Image(_param) {
var src = _param.src,
sizes = _param.sizes,
_param$unoptimized = _param.unoptimized,
Diff for main-HASH.js
@@ -3633,18 +3633,18 @@
};
}
- var Error1 = /*#__PURE__*/ (function(_react$default$Compon) {
- _inherits(Error1, _react$default$Compon);
+ var Error = /*#__PURE__*/ (function(_react$default$Compon) {
+ _inherits(Error, _react$default$Compon);
- var _super = _createSuper(Error1);
+ var _super = _createSuper(Error);
- function Error1() {
- _classCallCheck(this, Error1);
+ function Error() {
+ _classCallCheck(this, Error);
return _super.apply(this, arguments);
}
- _createClass(Error1, [
+ _createClass(Error, [
{
key: "render",
value: function render() {
@@ -3712,13 +3712,13 @@
}
]);
- return Error1;
+ return Error;
})(_react["default"].Component);
- Error1.displayName = "ErrorPage";
- Error1.getInitialProps = _getInitialProps;
- Error1.origGetInitialProps = _getInitialProps;
- exports["default"] = Error1;
+ Error.displayName = "ErrorPage";
+ Error.getInitialProps = _getInitialProps;
+ Error.origGetInitialProps = _getInitialProps;
+ exports["default"] = Error;
var styles = {
error: {
color: "#000",
@@ -4589,7 +4589,7 @@
return resolveAs
? [resolvedHref, interpolatedAs || resolvedHref]
: resolvedHref;
- } catch (_) {
+ } catch (_1) {
return resolveAs ? [urlAsString] : urlAsString;
}
}
@@ -4709,15 +4709,15 @@
}
var Router = /*#__PURE__*/ (function() {
- function Router(pathname1, query1, as1, _ref) {
+ function Router(pathname, query, as, _ref) {
var _this = this;
var initialProps = _ref.initialProps,
pageLoader = _ref.pageLoader,
App = _ref.App,
wrapApp = _ref.wrapApp,
- Component1 = _ref.Component,
- err1 = _ref.err,
+ Component = _ref.Component,
+ err = _ref.err,
subscription = _ref.subscription,
isFallback = _ref.isFallback,
locale = _ref.locale,
@@ -4768,7 +4768,7 @@
var forcedScroll;
var url = state.url,
- as1 = state.as,
+ as = state.as,
options = state.options,
idx = state.idx;
@@ -4781,13 +4781,13 @@
var _parseRelativeUrl2 = (0, _parseRelativeUrl).parseRelativeUrl(
url
),
- pathname1 = _parseRelativeUrl2.pathname; // Make sure we don't re-render on initial load,
+ pathname = _parseRelativeUrl2.pathname; // Make sure we don't re-render on initial load,
// can be caused by navigating back from an external site
if (
_this.isSsr &&
- as1 === _this.asPath &&
- pathname1 === _this.pathname
+ as === _this.asPath &&
+ pathname === _this.pathname
) {
return;
} // If the downstream application returns falsy, return.
@@ -4800,7 +4800,7 @@
_this.change(
"replaceState",
url,
- as1,
+ as,
Object.assign({}, options, {
shallow: options.shallow && _this._shallow,
locale: options.locale || _this.defaultLocale
@@ -4810,19 +4810,19 @@
}; // represents the current component key
this.route = (0, _normalizeTrailingSlash).removePathTrailingSlash(
- pathname1
+ pathname
); // set up the component cache (by route keys)
this.components = {}; // We should not keep the cache, if there's an error
// Otherwise, this cause issues when when going back and
// come again to the errored page.
- if (pathname1 !== "/_error") {
+ if (pathname !== "/_error") {
this.components[this.route] = {
- Component: Component1,
+ Component: Component,
initial: true,
props: initialProps,
- err: err1,
+ err: err,
__N_SSG: initialProps && initialProps.__N_SSG,
__N_SSP: initialProps && initialProps.__N_SSP
};
@@ -4836,15 +4836,15 @@
this.events = Router.events;
this.pageLoader = pageLoader;
- this.pathname = pathname1;
- this.query = query1; // if auto prerendered and dynamic route wait to update asPath
+ this.pathname = pathname;
+ this.query = query; // if auto prerendered and dynamic route wait to update asPath
// until after mount to prevent hydration mismatch
var autoExportDynamic =
- (0, _isDynamic).isDynamicRoute(pathname1) &&
+ (0, _isDynamic).isDynamicRoute(pathname) &&
self.__NEXT_DATA__.autoExport;
- this.asPath = autoExportDynamic ? pathname1 : as1;
+ this.asPath = autoExportDynamic ? pathname : as;
this.basePath = basePath;
this.sub = subscription;
this.clc = null;
@@ -4868,18 +4868,18 @@
if (true) {
// make sure "as" doesn't start with double slashes or else it can
// throw an error as it's considered invalid
- if (as1.substr(0, 2) !== "//") {
+ if (as.substr(0, 2) !== "//") {
// in order for `e.state` to work on the `onpopstate` event
// we have to register the initial route upon initialization
var options = {
locale: locale
};
- options._shouldResolveHref = as1 !== pathname1;
+ options._shouldResolveHref = as !== pathname;
this.changeState(
"replaceState",
(0, _utils).formatWithValidation({
- pathname: addBasePath(pathname1),
- query: query1
+ pathname: addBasePath(pathname),
+ query: query
}),
(0, _utils).getURL(),
options
@@ -4980,8 +4980,8 @@
cleanedAs,
localeChange,
parsed,
- pathname1,
- query1,
+ pathname,
+ query,
pages,
rewrites,
_yield$getClientBuild,
@@ -5178,8 +5178,8 @@
parsed = (0, _parseRelativeUrl).parseRelativeUrl(
url
);
- (pathname1 = parsed.pathname),
- (query1 = parsed.query); // The build manifest needs to be loaded before auto-static dynamic pages
+ (pathname = parsed.pathname),
+ (query = parsed.query); // The build manifest needs to be loaded before auto-static dynamic pages
// get their query parameters to allow ensuring they can be parsed properly
// when rewritten to
@@ -5221,26 +5221,26 @@
// point by either next/link or router.push/replace so strip the
// basePath from the pathname to match the pages dir 1-to-1
- pathname1 = pathname1
+ pathname = pathname
? (0,
_normalizeTrailingSlash).removePathTrailingSlash(
- delBasePath(pathname1)
+ delBasePath(pathname)
)
- : pathname1;
+ : pathname;
- if (shouldResolveHref && pathname1 !== "/_error") {
+ if (shouldResolveHref && pathname !== "/_error") {
options._shouldResolveHref = true;
if (false) {
} else {
parsed.pathname = resolveDynamicRoute(
- pathname1,
+ pathname,
pages
);
- if (parsed.pathname !== pathname1) {
- pathname1 = parsed.pathname;
- parsed.pathname = addBasePath(pathname1);
+ if (parsed.pathname !== pathname) {
+ pathname = parsed.pathname;
+ parsed.pathname = addBasePath(pathname);
url = (0, _utils).formatWithValidation(
parsed
);
@@ -5250,7 +5250,7 @@
route = (0,
_normalizeTrailingSlash).removePathTrailingSlash(
- pathname1
+ pathname
);
if (isLocalURL(as)) {
@@ -5298,7 +5298,7 @@
)(asPathname);
shouldInterpolate = route === asPathname;
interpolatedAs = shouldInterpolate
- ? interpolateAs(route, asPathname, query1)
+ ? interpolateAs(route, asPathname, query)
: {};
if (
@@ -5314,7 +5314,7 @@
missingParams = Object.keys(
routeRegex.groups
).filter(function(param) {
- return !query1[param];
+ return !query[param];
});
if (!(missingParams.length > 0)) {
@@ -5359,14 +5359,14 @@
Object.assign({}, _parsedAs, {
pathname: interpolatedAs.result,
query: omitParmsFromQuery(
- query1,
+ query,
interpolatedAs.params
)
})
);
} else {
// Merge params into `query`, overwriting any specified in search
- Object.assign(query1, routeMatch);
+ Object.assign(query, routeMatch);
}
case 77:
@@ -5379,8 +5379,8 @@
_context.next = 81;
return this.getRouteInfo(
route,
- pathname1,
- query1,
+ pathname,
+ query,
as,
resolvedAs,
routeProps
@@ -5467,7 +5467,7 @@
return this.getRouteInfo(
notFoundRoute,
notFoundRoute,
- query1,
+ query,
as,
resolvedAs,
{
@@ -5491,7 +5491,7 @@
if (
options._h &&
- pathname1 === "/_error" &&
+ pathname === "/_error" &&
((ref = self.__NEXT_DATA__.props) === null ||
ref === void 0
? void 0
@@ -5524,8 +5524,8 @@
_context.next = 116;
return this.set(
route,
- pathname1,
- query1,
+ pathname,
+ query,
cleanedAs,
routeInfo,
forcedScroll !== null && forcedScroll !== void 0
@@ -5641,7 +5641,7 @@
routeProps,
loadErrorFail
) {
- var Component1,
+ var Component,
styleSheets,
props,
_yield$this$fetchComp,
@@ -5691,7 +5691,7 @@
if (
!(
- typeof Component1 === "undefined" ||
+ typeof Component === "undefined" ||
typeof styleSheets === "undefined"
)
) {
@@ -5704,13 +5704,13 @@
case 10:
_yield$this$fetchComp = _context2.sent;
- Component1 = _yield$this$fetchComp.page;
+ Component = _yield$this$fetchComp.page;
styleSheets = _yield$this$fetchComp.styleSheets;
case 13:
routeInfo = {
props: props,
- Component: Component1,
+ Component: Component,
styleSheets: styleSheets,
err: err,
error: err
@@ -5723,7 +5723,7 @@
_context2.prev = 15;
_context2.next = 18;
- return this.getInitialProps(Component1, {
+ return this.getInitialProps(Component, {
err: err,
pathname: pathname,
query: query
@@ -5801,7 +5801,7 @@
var existingRouteInfo,
cachedRouteInfo,
routeInfo,
- Component1,
+ Component,
__N_SSG,
__N_SSP,
_require,
@@ -5867,7 +5867,7 @@
case 12:
routeInfo = _context3.t0;
- (Component1 = routeInfo.Component),
+ (Component = routeInfo.Component),
(__N_SSG = routeInfo.__N_SSG),
(__N_SSP = routeInfo.__N_SSP);
@@ -5890,7 +5890,7 @@
(isValidElementType =
_require.isValidElementType);
- if (isValidElementType(Component1)) {
+ if (isValidElementType(Component)) {
_context3.next = 18;
break;
}
@@ -5922,7 +5922,7 @@
: __N_SSP
? _this2._getServerData(dataHref)
: _this2.getInitialProps(
- Component1, // we provide AppTree later so this needs to be `any`
+ Component, // we provide AppTree later so this needs to be `any`
{
pathname: pathname,
query: query,
@@ -6078,7 +6078,7 @@
var asPath,
options,
parsed,
- pathname2,
+ pathname,
parsedAs,
localePathResult,
pages,
@@ -6105,7 +6105,7 @@
parsed = (0, _parseRelativeUrl).parseRelativeUrl(
url
);
- pathname2 = parsed.pathname;
+ pathname = parsed.pathname;
if (false) {
}
@@ -6149,8 +6149,8 @@
) {
// if this directly matches a page we need to update the href to
// allow the correct page chunk to be loaded
- pathname2 = rewritesResult.resolvedHref;
- parsed.pathname = pathname2;
+ pathname = rewritesResult.resolvedHref;
+ parsed.pathname = pathname;
url = (0, _utils).formatWithValidation(parsed);
}
@@ -6163,16 +6163,16 @@
pages
);
- if (parsed.pathname !== pathname2) {
- pathname2 = parsed.pathname;
- parsed.pathname = pathname2;
+ if (parsed.pathname !== pathname) {
+ pathname = parsed.pathname;
+ parsed.pathname = pathname;
url = (0, _utils).formatWithValidation(parsed);
}
case 21:
route = (0,
_normalizeTrailingSlash).removePathTrailingSlash(
- pathname2
+ pathname
); // Prefetch is not supported in development mode because it would trigger on-demand-entries
if (true) {
@@ -6308,9 +6308,9 @@
}
if (cancelled) {
- var err2 = new Error("Loading initial props cancelled");
- err2.cancelled = true;
- throw err2;
+ var err = new Error("Loading initial props cancelled");
+ err.cancelled = true;
+ throw err;
}
return data;
@@ -6355,21 +6355,21 @@
delete _this6.sdr[resourceKey];
return data;
})
- ["catch"](function(err2) {
+ ["catch"](function(err) {
delete _this6.sdr[resourceKey];
- throw err2;
+ throw err;
}));
}
},
{
key: "getInitialProps",
value: function getInitialProps(Component, ctx) {
- var App1 = this.components["/_app"].Component;
+ var App = this.components["/_app"].Component;
- var AppTree = this._wrapApp(App1);
+ var AppTree = this._wrapApp(App);
ctx.AppTree = AppTree;
- return (0, _utils).loadGetInitialProps(App1, {
+ return (0, _utils).loadGetInitialProps(App, {
AppTree: AppTree,
Component: Component,
router: this,
Diff for index.html
@@ -19,7 +19,7 @@
defer=""
></script>
<script
- src="/_next/static/chunks/main-a8927f490c0ef8e6d5be.js"
+ src="/_next/static/chunks/main-87fefa7d743deae800fa.js"
defer=""
></script>
<script
Diff for link.html
@@ -19,7 +19,7 @@
defer=""
></script>
<script
- src="/_next/static/chunks/main-a8927f490c0ef8e6d5be.js"
+ src="/_next/static/chunks/main-87fefa7d743deae800fa.js"
defer=""
></script>
<script
Diff for withRouter.html
@@ -19,7 +19,7 @@
defer=""
></script>
<script
- src="/_next/static/chunks/main-a8927f490c0ef8e6d5be.js"
+ src="/_next/static/chunks/main-87fefa7d743deae800fa.js"
defer=""
></script>
<script
Webpack 4 Mode (Increase detected ⚠️ )
General Overall decrease ✓
vercel/next.js canary | kdy1/next.js swc-version | Change | |
---|---|---|---|
buildDuration | 8.9s | 9.5s | |
buildDurationCached | 3.7s | 3.7s | -52ms |
nodeModulesSize | 48.2 MB | 47 MB | -1.2 MB |
Page Load Tests Overall increase ✓
vercel/next.js canary | kdy1/next.js swc-version | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 2.176 | 2.166 | -0.01 |
/ avg req/sec | 1148.89 | 1154.04 | +5.15 |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.17 | 1.159 | -0.01 |
/error-in-render avg req/sec | 2136.4 | 2156.38 | +19.98 |
Client Bundles (main, webpack, commons) Overall increase ⚠️
vercel/next.js canary | kdy1/next.js swc-version | Change | |
---|---|---|---|
16.HASH.js gzip | 186 B | 186 B | ✓ |
677f882d2ed8..HASH.js gzip | 14.1 kB | 14.1 kB | |
framework.HASH.js gzip | 41.9 kB | 41.9 kB | ✓ |
main-HASH.js gzip | 13.8 kB | 13.8 kB | ✓ |
webpack-HASH.js gzip | 1.19 kB | 1.19 kB | ✓ |
Overall change | 71.2 kB | 71.2 kB |
Legacy Client Bundles (polyfills)
vercel/next.js canary | kdy1/next.js swc-version | Change | |
---|---|---|---|
polyfills-a4..dd70.js gzip | 31 kB | 31 kB | ✓ |
Overall change | 31 kB | 31 kB | ✓ |
Client Pages
vercel/next.js canary | kdy1/next.js swc-version | Change | |
---|---|---|---|
_app-HASH.js gzip | 964 B | 964 B | ✓ |
_error-HASH.js gzip | 3.8 kB | 3.8 kB | ✓ |
amp-HASH.js gzip | 552 B | 552 B | ✓ |
css-HASH.js gzip | 333 B | 333 B | ✓ |
dynamic-HASH.js gzip | 2.87 kB | 2.87 kB | ✓ |
head-HASH.js gzip | 3.06 kB | 3.06 kB | ✓ |
hooks-HASH.js gzip | 924 B | 924 B | ✓ |
index-HASH.js gzip | 231 B | 231 B | ✓ |
link-HASH.js gzip | 1.64 kB | 1.64 kB | ✓ |
routerDirect..HASH.js gzip | 298 B | 298 B | ✓ |
script-HASH.js gzip | 3.03 kB | 3.03 kB | ✓ |
withRouter-HASH.js gzip | 295 B | 295 B | ✓ |
30809af5c834..565.css gzip | 125 B | 125 B | ✓ |
Overall change | 18.1 kB | 18.1 kB | ✓ |
Client Build Manifests
vercel/next.js canary | kdy1/next.js swc-version | Change | |
---|---|---|---|
_buildManifest.js gzip | 500 B | 500 B | ✓ |
Overall change | 500 B | 500 B | ✓ |
Rendered Page Sizes Overall increase ⚠️
vercel/next.js canary | kdy1/next.js swc-version | Change | |
---|---|---|---|
index.html gzip | 585 B | 585 B | ✓ |
link.html gzip | 597 B | 596 B | -1 B |
withRouter.html gzip | 577 B | 579 B | |
Overall change | 1.76 kB | 1.76 kB |
Diffs
Diff for _buildManifest.js
@@ -2,7 +2,7 @@ self.__BUILD_MANIFEST = {
__rewrites: { beforeFiles: [], afterFiles: [], fallback: [] },
"/": ["static\u002Fchunks\u002Fpages\u002Findex-b8f868a0fff56c820ae0.js"],
"/_error": [
- "static\u002Fchunks\u002Fpages\u002F_error-7c77670d2b26a13c0f41.js"
+ "static\u002Fchunks\u002Fpages\u002F_error-719425855cdd7323c10c.js"
],
"/amp": ["static\u002Fchunks\u002Fpages\u002Famp-4855291bfb1c5a551232.js"],
"/css": [
@@ -10,7 +10,7 @@ self.__BUILD_MANIFEST = {
"static\u002Fchunks\u002Fpages\u002Fcss-c95c4860f8f0d43ed2d2.js"
],
"/dynamic": [
- "static\u002Fchunks\u002Fpages\u002Fdynamic-67056ae68e50f2dbeb95.js"
+ "static\u002Fchunks\u002Fpages\u002Fdynamic-26df251c593703d166b6.js"
],
"/head": ["static\u002Fchunks\u002Fpages\u002Fhead-0aa0faef162b582deec7.js"],
"/hooks": [
Diff for _error-HASH.js
@@ -77,18 +77,18 @@ _N_E = (window["webpackJsonp_N_E"] = window["webpackJsonp_N_E"] || []).push([
};
}
- var Error1 = /*#__PURE__*/ (function(_react$default$Compon) {
- _inherits(Error1, _react$default$Compon);
+ var Error = /*#__PURE__*/ (function(_react$default$Compon) {
+ _inherits(Error, _react$default$Compon);
- var _super = _createSuper(Error1);
+ var _super = _createSuper(Error);
- function Error1() {
- _classCallCheck(this, Error1);
+ function Error() {
+ _classCallCheck(this, Error);
return _super.apply(this, arguments);
}
- _createClass(Error1, [
+ _createClass(Error, [
{
key: "render",
value: function render() {
@@ -156,13 +156,13 @@ _N_E = (window["webpackJsonp_N_E"] = window["webpackJsonp_N_E"] || []).push([
}
]);
- return Error1;
+ return Error;
})(_react["default"].Component);
- Error1.displayName = "ErrorPage";
- Error1.getInitialProps = _getInitialProps;
- Error1.origGetInitialProps = _getInitialProps;
- exports["default"] = Error1;
+ Error.displayName = "ErrorPage";
+ Error.getInitialProps = _getInitialProps;
+ Error.origGetInitialProps = _getInitialProps;
+ exports["default"] = Error;
var styles = {
error: {
color: "#000",
Diff for dynamic-HASH.js
@@ -341,27 +341,27 @@ _N_E = (window["webpackJsonp_N_E"] = window["webpackJsonp_N_E"] || []).push([
timedOut: false
};
var res = this._res,
- opts1 = this._opts;
+ opts = this._opts;
if (res.loading) {
- if (typeof opts1.delay === "number") {
- if (opts1.delay === 0) {
+ if (typeof opts.delay === "number") {
+ if (opts.delay === 0) {
this._state.pastDelay = true;
} else {
this._delay = setTimeout(function() {
_this._update({
pastDelay: true
});
- }, opts1.delay);
+ }, opts.delay);
}
}
- if (typeof opts1.timeout === "number") {
+ if (typeof opts.timeout === "number") {
this._timeout = setTimeout(function() {
_this._update({
timedOut: true
});
- }, opts1.timeout);
+ }, opts.timeout);
}
}
@@ -429,8 +429,8 @@ _N_E = (window["webpackJsonp_N_E"] = window["webpackJsonp_N_E"] || []).push([
return LoadableSubscription;
})();
- function Loadable(opts1) {
- return createLoadableComponent(load, opts1);
+ function Loadable(opts) {
+ return createLoadableComponent(load, opts);
}
function flushInitializers(initializers, ids) {
Diff for 677f882d2ed8..c4df.HASH.js
@@ -1523,7 +1523,7 @@
return resolveAs
? [resolvedHref, interpolatedAs || resolvedHref]
: resolvedHref;
- } catch (_) {
+ } catch (_1) {
return resolveAs ? [urlAsString] : urlAsString;
}
}
@@ -1642,15 +1642,15 @@
}
var Router = /*#__PURE__*/ (function() {
- function Router(pathname1, query1, as1, _ref) {
+ function Router(pathname, query, as, _ref) {
var _this = this;
var initialProps = _ref.initialProps,
pageLoader = _ref.pageLoader,
App = _ref.App,
wrapApp = _ref.wrapApp,
- Component1 = _ref.Component,
- err1 = _ref.err,
+ Component = _ref.Component,
+ err = _ref.err,
subscription = _ref.subscription,
isFallback = _ref.isFallback,
locale = _ref.locale,
@@ -1701,7 +1701,7 @@
var forcedScroll;
var url = state.url,
- as1 = state.as,
+ as = state.as,
options = state.options,
idx = state.idx;
@@ -1714,13 +1714,13 @@
var _parseRelativeUrl2 = (0, _parseRelativeUrl).parseRelativeUrl(
url
),
- pathname1 = _parseRelativeUrl2.pathname; // Make sure we don't re-render on initial load,
+ pathname = _parseRelativeUrl2.pathname; // Make sure we don't re-render on initial load,
// can be caused by navigating back from an external site
if (
_this.isSsr &&
- as1 === _this.asPath &&
- pathname1 === _this.pathname
+ as === _this.asPath &&
+ pathname === _this.pathname
) {
return;
} // If the downstream application returns falsy, return.
@@ -1733,7 +1733,7 @@
_this.change(
"replaceState",
url,
- as1,
+ as,
Object.assign({}, options, {
shallow: options.shallow && _this._shallow,
locale: options.locale || _this.defaultLocale
@@ -1743,19 +1743,19 @@
}; // represents the current component key
this.route = (0, _normalizeTrailingSlash).removePathTrailingSlash(
- pathname1
+ pathname
); // set up the component cache (by route keys)
this.components = {}; // We should not keep the cache, if there's an error
// Otherwise, this cause issues when when going back and
// come again to the errored page.
- if (pathname1 !== "/_error") {
+ if (pathname !== "/_error") {
this.components[this.route] = {
- Component: Component1,
+ Component: Component,
initial: true,
props: initialProps,
- err: err1,
+ err: err,
__N_SSG: initialProps && initialProps.__N_SSG,
__N_SSP: initialProps && initialProps.__N_SSP
};
@@ -1769,15 +1769,15 @@
this.events = Router.events;
this.pageLoader = pageLoader;
- this.pathname = pathname1;
- this.query = query1; // if auto prerendered and dynamic route wait to update asPath
+ this.pathname = pathname;
+ this.query = query; // if auto prerendered and dynamic route wait to update asPath
// until after mount to prevent hydration mismatch
var autoExportDynamic =
- (0, _isDynamic).isDynamicRoute(pathname1) &&
+ (0, _isDynamic).isDynamicRoute(pathname) &&
self.__NEXT_DATA__.autoExport;
- this.asPath = autoExportDynamic ? pathname1 : as1;
+ this.asPath = autoExportDynamic ? pathname : as;
this.basePath = basePath;
this.sub = subscription;
this.clc = null;
@@ -1801,18 +1801,18 @@
if (true) {
// make sure "as" doesn't start with double slashes or else it can
// throw an error as it's considered invalid
- if (as1.substr(0, 2) !== "//") {
+ if (as.substr(0, 2) !== "//") {
// in order for `e.state` to work on the `onpopstate` event
// we have to register the initial route upon initialization
var options = {
locale: locale
};
- options._shouldResolveHref = as1 !== pathname1;
+ options._shouldResolveHref = as !== pathname;
this.changeState(
"replaceState",
(0, _utils).formatWithValidation({
- pathname: addBasePath(pathname1),
- query: query1
+ pathname: addBasePath(pathname),
+ query: query
}),
(0, _utils).getURL(),
options
@@ -1913,8 +1913,8 @@
cleanedAs,
localeChange,
parsed,
- pathname1,
- query1,
+ pathname,
+ query,
pages,
rewrites,
_yield$getClientBuild,
@@ -2111,8 +2111,8 @@
parsed = (0, _parseRelativeUrl).parseRelativeUrl(
url
);
- (pathname1 = parsed.pathname),
- (query1 = parsed.query); // The build manifest needs to be loaded before auto-static dynamic pages
+ (pathname = parsed.pathname),
+ (query = parsed.query); // The build manifest needs to be loaded before auto-static dynamic pages
// get their query parameters to allow ensuring they can be parsed properly
// when rewritten to
@@ -2154,26 +2154,26 @@
// point by either next/link or router.push/replace so strip the
// basePath from the pathname to match the pages dir 1-to-1
- pathname1 = pathname1
+ pathname = pathname
? (0,
_normalizeTrailingSlash).removePathTrailingSlash(
- delBasePath(pathname1)
+ delBasePath(pathname)
)
- : pathname1;
+ : pathname;
- if (shouldResolveHref && pathname1 !== "/_error") {
+ if (shouldResolveHref && pathname !== "/_error") {
options._shouldResolveHref = true;
if (false) {
} else {
parsed.pathname = resolveDynamicRoute(
- pathname1,
+ pathname,
pages
);
- if (parsed.pathname !== pathname1) {
- pathname1 = parsed.pathname;
- parsed.pathname = addBasePath(pathname1);
+ if (parsed.pathname !== pathname) {
+ pathname = parsed.pathname;
+ parsed.pathname = addBasePath(pathname);
url = (0, _utils).formatWithValidation(
parsed
);
@@ -2183,7 +2183,7 @@
route = (0,
_normalizeTrailingSlash).removePathTrailingSlash(
- pathname1
+ pathname
);
if (isLocalURL(as)) {
@@ -2231,7 +2231,7 @@
)(asPathname);
shouldInterpolate = route === asPathname;
interpolatedAs = shouldInterpolate
- ? interpolateAs(route, asPathname, query1)
+ ? interpolateAs(route, asPathname, query)
: {};
if (
@@ -2247,7 +2247,7 @@
missingParams = Object.keys(
routeRegex.groups
).filter(function(param) {
- return !query1[param];
+ return !query[param];
});
if (!(missingParams.length > 0)) {
@@ -2292,14 +2292,14 @@
Object.assign({}, _parsedAs, {
pathname: interpolatedAs.result,
query: omitParmsFromQuery(
- query1,
+ query,
interpolatedAs.params
)
})
);
} else {
// Merge params into `query`, overwriting any specified in search
- Object.assign(query1, routeMatch);
+ Object.assign(query, routeMatch);
}
case 77:
@@ -2312,8 +2312,8 @@
_context.next = 81;
return this.getRouteInfo(
route,
- pathname1,
- query1,
+ pathname,
+ query,
as,
resolvedAs,
routeProps
@@ -2400,7 +2400,7 @@
return this.getRouteInfo(
notFoundRoute,
notFoundRoute,
- query1,
+ query,
as,
resolvedAs,
{
@@ -2424,7 +2424,7 @@
if (
options._h &&
- pathname1 === "/_error" &&
+ pathname === "/_error" &&
((ref = self.__NEXT_DATA__.props) === null ||
ref === void 0
? void 0
@@ -2457,8 +2457,8 @@
_context.next = 116;
return this.set(
route,
- pathname1,
- query1,
+ pathname,
+ query,
cleanedAs,
routeInfo,
forcedScroll !== null && forcedScroll !== void 0
@@ -2574,7 +2574,7 @@
routeProps,
loadErrorFail
) {
- var Component1,
+ var Component,
styleSheets,
props,
_yield$this$fetchComp,
@@ -2624,7 +2624,7 @@
if (
!(
- typeof Component1 === "undefined" ||
+ typeof Component === "undefined" ||
typeof styleSheets === "undefined"
)
) {
@@ -2637,13 +2637,13 @@
case 10:
_yield$this$fetchComp = _context2.sent;
- Component1 = _yield$this$fetchComp.page;
+ Component = _yield$this$fetchComp.page;
styleSheets = _yield$this$fetchComp.styleSheets;
case 13:
routeInfo = {
props: props,
- Component: Component1,
+ Component: Component,
styleSheets: styleSheets,
err: err,
error: err
@@ -2656,7 +2656,7 @@
_context2.prev = 15;
_context2.next = 18;
- return this.getInitialProps(Component1, {
+ return this.getInitialProps(Component, {
err: err,
pathname: pathname,
query: query
@@ -2734,7 +2734,7 @@
var existingRouteInfo,
cachedRouteInfo,
routeInfo,
- Component1,
+ Component,
__N_SSG,
__N_SSP,
_require,
@@ -2800,7 +2800,7 @@
case 12:
routeInfo = _context3.t0;
- (Component1 = routeInfo.Component),
+ (Component = routeInfo.Component),
(__N_SSG = routeInfo.__N_SSG),
(__N_SSP = routeInfo.__N_SSP);
@@ -2821,7 +2821,7 @@
(isValidElementType =
_require.isValidElementType);
- if (isValidElementType(Component1)) {
+ if (isValidElementType(Component)) {
_context3.next = 18;
break;
}
@@ -2853,7 +2853,7 @@
: __N_SSP
? _this2._getServerData(dataHref)
: _this2.getInitialProps(
- Component1, // we provide AppTree later so this needs to be `any`
+ Component, // we provide AppTree later so this needs to be `any`
{
pathname: pathname,
query: query,
@@ -3009,7 +3009,7 @@
var asPath,
options,
parsed,
- pathname2,
+ pathname,
parsedAs,
localePathResult,
pages,
@@ -3036,7 +3036,7 @@
parsed = (0, _parseRelativeUrl).parseRelativeUrl(
url
);
- pathname2 = parsed.pathname;
+ pathname = parsed.pathname;
if (false) {
}
@@ -3080,8 +3080,8 @@
) {
// if this directly matches a page we need to update the href to
// allow the correct page chunk to be loaded
- pathname2 = rewritesResult.resolvedHref;
- parsed.pathname = pathname2;
+ pathname = rewritesResult.resolvedHref;
+ parsed.pathname = pathname;
url = (0, _utils).formatWithValidation(parsed);
}
@@ -3094,16 +3094,16 @@
pages
);
- if (parsed.pathname !== pathname2) {
- pathname2 = parsed.pathname;
- parsed.pathname = pathname2;
+ if (parsed.pathname !== pathname) {
+ pathname = parsed.pathname;
+ parsed.pathname = pathname;
url = (0, _utils).formatWithValidation(parsed);
}
case 21:
route = (0,
_normalizeTrailingSlash).removePathTrailingSlash(
- pathname2
+ pathname
); // Prefetch is not supported in development mode because it would trigger on-demand-entries
if (true) {
@@ -3239,9 +3239,9 @@
}
if (cancelled) {
- var err2 = new Error("Loading initial props cancelled");
- err2.cancelled = true;
- throw err2;
+ var err = new Error("Loading initial props cancelled");
+ err.cancelled = true;
+ throw err;
}
return data;
@@ -3286,21 +3286,21 @@
delete _this6.sdr[resourceKey];
return data;
})
- ["catch"](function(err2) {
+ ["catch"](function(err) {
delete _this6.sdr[resourceKey];
- throw err2;
+ throw err;
}));
}
},
{
key: "getInitialProps",
value: function getInitialProps(Component, ctx) {
- var App1 = this.components["/_app"].Component;
+ var App = this.components["/_app"].Component;
- var AppTree = this._wrapApp(App1);
+ var AppTree = this._wrapApp(App);
ctx.AppTree = AppTree;
- return (0, _utils).loadGetInitialProps(App1, {
+ return (0, _utils).loadGetInitialProps(App, {
AppTree: AppTree,
Component: Component,
router: this,
Diff for main-HASH.js
@@ -77,18 +77,18 @@ _N_E = (window["webpackJsonp_N_E"] = window["webpackJsonp_N_E"] || []).push([
};
}
- var Error1 = /*#__PURE__*/ (function(_react$default$Compon) {
- _inherits(Error1, _react$default$Compon);
+ var Error = /*#__PURE__*/ (function(_react$default$Compon) {
+ _inherits(Error, _react$default$Compon);
- var _super = _createSuper(Error1);
+ var _super = _createSuper(Error);
- function Error1() {
- _classCallCheck(this, Error1);
+ function Error() {
+ _classCallCheck(this, Error);
return _super.apply(this, arguments);
}
- _createClass(Error1, [
+ _createClass(Error, [
{
key: "render",
value: function render() {
@@ -156,13 +156,13 @@ _N_E = (window["webpackJsonp_N_E"] = window["webpackJsonp_N_E"] || []).push([
}
]);
- return Error1;
+ return Error;
})(_react["default"].Component);
- Error1.displayName = "ErrorPage";
- Error1.getInitialProps = _getInitialProps;
- Error1.origGetInitialProps = _getInitialProps;
- exports["default"] = Error1;
+ Error.displayName = "ErrorPage";
+ Error.getInitialProps = _getInitialProps;
+ Error.origGetInitialProps = _getInitialProps;
+ exports["default"] = Error;
var styles = {
error: {
color: "#000",
Diff for index.html
@@ -19,11 +19,11 @@
defer=""
></script>
<script
- src="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.c612937c8a419d7aa025.js"
+ src="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.73e10c58e501d11f73de.js"
defer=""
></script>
<script
- src="/_next/static/chunks/main-917dd1341fc1a0854ca4.js"
+ src="/_next/static/chunks/main-f651119a924571edf1e8.js"
defer=""
></script>
<script
Diff for link.html
@@ -19,11 +19,11 @@
defer=""
></script>
<script
- src="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.c612937c8a419d7aa025.js"
+ src="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.73e10c58e501d11f73de.js"
defer=""
></script>
<script
- src="/_next/static/chunks/main-917dd1341fc1a0854ca4.js"
+ src="/_next/static/chunks/main-f651119a924571edf1e8.js"
defer=""
></script>
<script
Diff for withRouter.html
@@ -19,11 +19,11 @@
defer=""
></script>
<script
- src="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.c612937c8a419d7aa025.js"
+ src="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.73e10c58e501d11f73de.js"
defer=""
></script>
<script
- src="/_next/static/chunks/main-917dd1341fc1a0854ca4.js"
+ src="/_next/static/chunks/main-f651119a924571edf1e8.js"
defer=""
></script>
<script
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Bug
fixes #number
contributing.md
Feature
fixes #number
contributing.md
Documentation / Examples
I updated rust dependencies and node dependencies.