Skip to content

Commit

Permalink
v10.2.1-canary.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Apr 30, 2021
1 parent c76170e commit 9c47ca2
Show file tree
Hide file tree
Showing 14 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
"registry": "https://registry.npmjs.org/"
}
},
"version": "10.2.1-canary.1"
"version": "10.2.1-canary.2"
}
2 changes: 1 addition & 1 deletion packages/create-next-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-next-app",
"version": "10.2.1-canary.1",
"version": "10.2.1-canary.2",
"keywords": [
"react",
"next",
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-config-next/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-config-next",
"version": "10.1.4-canary.15",
"version": "10.2.1-canary.2",
"description": "ESLint configuration used by NextJS.",
"main": "index.js",
"license": "MIT",
Expand All @@ -9,8 +9,8 @@
"directory": "packages/eslint-config-next"
},
"dependencies": {
"@rushstack/eslint-patch": "^1.0.6",
"@next/eslint-plugin-next": "^10.1.3",
"@rushstack/eslint-patch": "^1.0.6",
"@typescript-eslint/parser": "^4.20.0",
"eslint-import-resolver-node": "^0.3.4",
"eslint-plugin-import": "^2.22.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin-next/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/eslint-plugin-next",
"version": "10.2.1-canary.1",
"version": "10.2.1-canary.2",
"description": "ESLint plugin for NextJS.",
"main": "lib/index.js",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/next-bundle-analyzer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/bundle-analyzer",
"version": "10.2.1-canary.1",
"version": "10.2.1-canary.2",
"main": "index.js",
"license": "MIT",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/next-codemod/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/codemod",
"version": "10.2.1-canary.1",
"version": "10.2.1-canary.2",
"license": "MIT",
"dependencies": {
"chalk": "4.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/next-env/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/env",
"version": "10.2.1-canary.1",
"version": "10.2.1-canary.2",
"keywords": [
"react",
"next",
Expand Down
2 changes: 1 addition & 1 deletion packages/next-mdx/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/mdx",
"version": "10.2.1-canary.1",
"version": "10.2.1-canary.2",
"main": "index.js",
"license": "MIT",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/next-plugin-storybook/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/plugin-storybook",
"version": "10.2.1-canary.1",
"version": "10.2.1-canary.2",
"repository": {
"url": "vercel/next.js",
"directory": "packages/next-plugin-storybook"
Expand Down
2 changes: 1 addition & 1 deletion packages/next-polyfill-module/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/polyfill-module",
"version": "10.2.1-canary.1",
"version": "10.2.1-canary.2",
"description": "A standard library polyfill for ES Modules supporting browsers (Edge 16+, Firefox 60+, Chrome 61+, Safari 10.1+)",
"main": "dist/polyfill-module.js",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/next-polyfill-nomodule/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/polyfill-nomodule",
"version": "10.2.1-canary.1",
"version": "10.2.1-canary.2",
"description": "A polyfill for non-dead, nomodule browsers.",
"main": "dist/polyfill-nomodule.js",
"license": "MIT",
Expand Down
12 changes: 6 additions & 6 deletions packages/next/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "next",
"version": "10.2.1-canary.1",
"version": "10.2.1-canary.2",
"description": "The React Framework",
"main": "./dist/server/next.js",
"license": "MIT",
Expand Down Expand Up @@ -64,10 +64,10 @@
"dependencies": {
"@babel/runtime": "7.12.5",
"@hapi/accept": "5.0.1",
"@next/env": "10.2.1-canary.1",
"@next/polyfill-module": "10.2.1-canary.1",
"@next/react-dev-overlay": "10.2.1-canary.1",
"@next/react-refresh-utils": "10.2.1-canary.1",
"@next/env": "10.2.1-canary.2",
"@next/polyfill-module": "10.2.1-canary.2",
"@next/react-dev-overlay": "10.2.1-canary.2",
"@next/react-refresh-utils": "10.2.1-canary.2",
"@opentelemetry/api": "0.14.0",
"assert": "2.0.0",
"ast-types": "0.13.2",
Expand Down Expand Up @@ -151,7 +151,7 @@
"@babel/preset-typescript": "7.12.7",
"@babel/traverse": "^7.12.10",
"@babel/types": "7.12.12",
"@next/polyfill-nomodule": "10.2.1-canary.1",
"@next/polyfill-nomodule": "10.2.1-canary.2",
"@taskr/clear": "1.1.0",
"@taskr/esnext": "1.1.0",
"@taskr/watch": "1.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-dev-overlay/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/react-dev-overlay",
"version": "10.2.1-canary.1",
"version": "10.2.1-canary.2",
"description": "A development-only overlay for developing React applications.",
"repository": {
"url": "vercel/next.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-refresh-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/react-refresh-utils",
"version": "10.2.1-canary.1",
"version": "10.2.1-canary.2",
"description": "An experimental package providing utilities for React Refresh.",
"repository": {
"url": "vercel/next.js",
Expand Down

1 comment on commit 9c47ca2

@ijjk
Copy link
Member Author

@ijjk ijjk commented on 9c47ca2 Apr 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stats from current release

Default Server Mode (Increase detected ⚠️)
General Overall decrease ✓
vercel/next.js canary v10.2.0 vercel/next.js refs/heads/canary Change
buildDuration 17.3s 17s -280ms
buildDurationCached 5.5s 5s -506ms
nodeModulesSize 46.7 MB 46.6 MB -69.9 kB
Page Load Tests Overall increase ✓
vercel/next.js canary v10.2.0 vercel/next.js refs/heads/canary Change
/ failed reqs 0 0
/ total time (seconds) 2.847 2.971 ⚠️ +0.12
/ avg req/sec 878.03 841.56 ⚠️ -36.47
/error-in-render failed reqs 0 0
/error-in-render total time (seconds) 1.919 1.758 -0.16
/error-in-render avg req/sec 1302.72 1422.4 +119.68
Client Bundles (main, webpack, commons) Overall increase ⚠️
vercel/next.js canary v10.2.0 vercel/next.js refs/heads/canary Change
597-HASH.js gzip 13.2 kB 13.2 kB ⚠️ +9 B
778-HASH.js gzip 7.11 kB 7.12 kB ⚠️ +8 B
framework-HASH.js gzip 39.3 kB 39.3 kB
main-HASH.js gzip 151 B 151 B
webpack-HASH.js gzip 993 B 993 B
Overall change 60.7 kB 60.8 kB ⚠️ +17 B
Legacy Client Bundles (polyfills)
vercel/next.js canary v10.2.0 vercel/next.js refs/heads/canary Change
polyfills-HASH.js gzip 31.1 kB 31.1 kB
Overall change 31.1 kB 31.1 kB
Client Pages Overall decrease ✓
vercel/next.js canary v10.2.0 vercel/next.js refs/heads/canary Change
_app-HASH.js gzip 1.3 kB 1.3 kB
_error-HASH.js gzip 3.68 kB 3.68 kB
amp-HASH.js gzip 558 B 558 B
css-HASH.js gzip 363 B 363 B
hooks-HASH.js gzip 924 B 924 B
index-HASH.js gzip 243 B 243 B
link-HASH.js gzip 1.66 kB 1.66 kB -1 B
routerDirect..HASH.js gzip 336 B 336 B
withRouter-HASH.js gzip 334 B 334 B
99a142a5cfae..804.css gzip 125 B 125 B
Overall change 9.52 kB 9.52 kB -1 B
Client Build Manifests Overall increase ⚠️
vercel/next.js canary v10.2.0 vercel/next.js refs/heads/canary Change
_buildManifest.js gzip 390 B 395 B ⚠️ +5 B
Overall change 390 B 395 B ⚠️ +5 B
Rendered Page Sizes Overall decrease ✓
vercel/next.js canary v10.2.0 vercel/next.js refs/heads/canary Change
index.html gzip 610 B 607 B -3 B
link.html gzip 616 B 614 B -2 B
withRouter.html gzip 605 B 602 B -3 B
Overall change 1.83 kB 1.82 kB -8 B

Diffs

Diff for _buildManifest.js
@@ -12,7 +12,7 @@ self.__BUILD_MANIFEST = {
   "/hooks": [
     "static\u002Fchunks\u002Fpages\u002Fhooks-8c2e74bb2b6bffaebe37.js"
   ],
-  "/link": ["static\u002Fchunks\u002Fpages\u002Flink-dd34d9b14dfb3c040ade.js"],
+  "/link": ["static\u002Fchunks\u002Fpages\u002Flink-e010d772d10ae2f9a50c.js"],
   "/routerDirect": [
     "static\u002Fchunks\u002Fpages\u002FrouterDirect-86b413d0659e50665759.js"
   ],
Diff for link-HASH.js
@@ -102,7 +102,7 @@
 
         var p = props.prefetch !== false;
         var router = (0, _router2.useRouter)();
-        var pathname = (router && router.pathname) || "/";
+        var pathname = (router && router.asPath) || "/";
 
         var _react$default$useMem = _react["default"].useMemo(
             function() {
Diff for 597-HASH.js
@@ -1529,7 +1529,15 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
 
       function resolveHref(currentPath, href, resolveAs) {
         // we use a dummy base url for relative urls
-        var base = new URL(currentPath, "http://n");
+        var base;
+
+        try {
+          base = new URL(currentPath, "http://n");
+        } catch (_) {
+          // fallback to / for invalid asPath values e.g. //
+          base = new URL("/", "http://n");
+        }
+
         var urlAsString =
           typeof href === "string"
             ? href
@@ -1593,7 +1601,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
       function prepareUrlAs(router, url, as) {
         // If url and as provided as an object representation,
         // we'll format them into the string version here.
-        var _resolveHref = resolveHref(router.pathname, url, true),
+        var _resolveHref = resolveHref(router.asPath, url, true),
           _resolveHref2 = _slicedToArray(_resolveHref, 2),
           resolvedHref = _resolveHref2[0],
           resolvedAs = _resolveHref2[1];
@@ -1607,7 +1615,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
           ? resolvedHref
           : addBasePath(resolvedHref);
         var preparedAs = as
-          ? stripOrigin(resolveHref(router.pathname, as))
+          ? stripOrigin(resolveHref(router.asPath, as))
           : resolvedAs || resolvedHref;
         return {
           url: preparedUrl,
Diff for 778-HASH.js
@@ -402,7 +402,7 @@
         document.getElementById("__NEXT_DATA__").textContent
       );
       window.__NEXT_DATA__ = data;
-      var version = "10.2.0";
+      var version = "10.2.1-canary.2";
       exports.version = version;
 
       var looseToArray = function looseToArray(input) {
Diff for index.html
@@ -7,7 +7,7 @@
     <noscript data-n-css=""></noscript>
     <link
       rel="preload"
-      href="/_next/static/chunks/webpack-a0b887aeae387eafaefd.js"
+      href="/_next/static/chunks/webpack-06f549fe60c32356e0c0.js"
       as="script"
     />
     <link
@@ -17,12 +17,12 @@
     />
     <link
       rel="preload"
-      href="/_next/static/chunks/597-ae440a7286b9272ad989.js"
+      href="/_next/static/chunks/597-1b9c2a3fa8cca5953f4e.js"
       as="script"
     />
     <link
       rel="preload"
-      href="/_next/static/chunks/778-a5f10b1208c8ee2f08c3.js"
+      href="/_next/static/chunks/778-7689030f4cd652c7d7fe.js"
       as="script"
     />
     <link
@@ -58,7 +58,7 @@
       src="/_next/static/chunks/polyfills-8683bd742a84c1edd48c.js"
     ></script>
     <script
-      src="/_next/static/chunks/webpack-a0b887aeae387eafaefd.js"
+      src="/_next/static/chunks/webpack-06f549fe60c32356e0c0.js"
       async=""
     ></script>
     <script
@@ -66,11 +66,11 @@
       async=""
     ></script>
     <script
-      src="/_next/static/chunks/597-ae440a7286b9272ad989.js"
+      src="/_next/static/chunks/597-1b9c2a3fa8cca5953f4e.js"
       async=""
     ></script>
     <script
-      src="/_next/static/chunks/778-a5f10b1208c8ee2f08c3.js"
+      src="/_next/static/chunks/778-7689030f4cd652c7d7fe.js"
       async=""
     ></script>
     <script
Diff for link.html
@@ -7,7 +7,7 @@
     <noscript data-n-css=""></noscript>
     <link
       rel="preload"
-      href="/_next/static/chunks/webpack-a0b887aeae387eafaefd.js"
+      href="/_next/static/chunks/webpack-06f549fe60c32356e0c0.js"
       as="script"
     />
     <link
@@ -17,12 +17,12 @@
     />
     <link
       rel="preload"
-      href="/_next/static/chunks/597-ae440a7286b9272ad989.js"
+      href="/_next/static/chunks/597-1b9c2a3fa8cca5953f4e.js"
       as="script"
     />
     <link
       rel="preload"
-      href="/_next/static/chunks/778-a5f10b1208c8ee2f08c3.js"
+      href="/_next/static/chunks/778-7689030f4cd652c7d7fe.js"
       as="script"
     />
     <link
@@ -37,7 +37,7 @@
     />
     <link
       rel="preload"
-      href="/_next/static/chunks/pages/link-dd34d9b14dfb3c040ade.js"
+      href="/_next/static/chunks/pages/link-e010d772d10ae2f9a50c.js"
       as="script"
     />
   </head>
@@ -63,7 +63,7 @@
       src="/_next/static/chunks/polyfills-8683bd742a84c1edd48c.js"
     ></script>
     <script
-      src="/_next/static/chunks/webpack-a0b887aeae387eafaefd.js"
+      src="/_next/static/chunks/webpack-06f549fe60c32356e0c0.js"
       async=""
     ></script>
     <script
@@ -71,11 +71,11 @@
       async=""
     ></script>
     <script
-      src="/_next/static/chunks/597-ae440a7286b9272ad989.js"
+      src="/_next/static/chunks/597-1b9c2a3fa8cca5953f4e.js"
       async=""
     ></script>
     <script
-      src="/_next/static/chunks/778-a5f10b1208c8ee2f08c3.js"
+      src="/_next/static/chunks/778-7689030f4cd652c7d7fe.js"
       async=""
     ></script>
     <script
@@ -87,7 +87,7 @@
       async=""
     ></script>
     <script
-      src="/_next/static/chunks/pages/link-dd34d9b14dfb3c040ade.js"
+      src="/_next/static/chunks/pages/link-e010d772d10ae2f9a50c.js"
       async=""
     ></script>
     <script src="/_next/static/BUILD_ID/_buildManifest.js" async=""></script>
Diff for withRouter.html
@@ -7,7 +7,7 @@
     <noscript data-n-css=""></noscript>
     <link
       rel="preload"
-      href="/_next/static/chunks/webpack-a0b887aeae387eafaefd.js"
+      href="/_next/static/chunks/webpack-06f549fe60c32356e0c0.js"
       as="script"
     />
     <link
@@ -17,12 +17,12 @@
     />
     <link
       rel="preload"
-      href="/_next/static/chunks/597-ae440a7286b9272ad989.js"
+      href="/_next/static/chunks/597-1b9c2a3fa8cca5953f4e.js"
       as="script"
     />
     <link
       rel="preload"
-      href="/_next/static/chunks/778-a5f10b1208c8ee2f08c3.js"
+      href="/_next/static/chunks/778-7689030f4cd652c7d7fe.js"
       as="script"
     />
     <link
@@ -58,7 +58,7 @@
       src="/_next/static/chunks/polyfills-8683bd742a84c1edd48c.js"
     ></script>
     <script
-      src="/_next/static/chunks/webpack-a0b887aeae387eafaefd.js"
+      src="/_next/static/chunks/webpack-06f549fe60c32356e0c0.js"
       async=""
     ></script>
     <script
@@ -66,11 +66,11 @@
       async=""
     ></script>
     <script
-      src="/_next/static/chunks/597-ae440a7286b9272ad989.js"
+      src="/_next/static/chunks/597-1b9c2a3fa8cca5953f4e.js"
       async=""
     ></script>
     <script
-      src="/_next/static/chunks/778-a5f10b1208c8ee2f08c3.js"
+      src="/_next/static/chunks/778-7689030f4cd652c7d7fe.js"
       async=""
     ></script>
     <script

Serverless Mode (Increase detected ⚠️)
General Overall decrease ✓
vercel/next.js canary v10.2.0 vercel/next.js refs/heads/canary Change
buildDuration 21.1s 20.9s -146ms
buildDurationCached 7.5s 7.3s -178ms
nodeModulesSize 46.7 MB 46.6 MB -69.9 kB
Client Bundles (main, webpack, commons) Overall increase ⚠️
vercel/next.js canary v10.2.0 vercel/next.js refs/heads/canary Change
597-HASH.js gzip 13.2 kB 13.2 kB ⚠️ +9 B
778-HASH.js gzip 7.11 kB 7.12 kB ⚠️ +8 B
framework-HASH.js gzip 39.3 kB 39.3 kB
main-HASH.js gzip 151 B 151 B
webpack-HASH.js gzip 993 B 993 B
Overall change 60.7 kB 60.8 kB ⚠️ +17 B
Legacy Client Bundles (polyfills)
vercel/next.js canary v10.2.0 vercel/next.js refs/heads/canary Change
polyfills-HASH.js gzip 31.1 kB 31.1 kB
Overall change 31.1 kB 31.1 kB
Client Pages Overall decrease ✓
vercel/next.js canary v10.2.0 vercel/next.js refs/heads/canary Change
_app-HASH.js gzip 1.3 kB 1.3 kB
_error-HASH.js gzip 3.68 kB 3.68 kB
amp-HASH.js gzip 558 B 558 B
css-HASH.js gzip 363 B 363 B
hooks-HASH.js gzip 924 B 924 B
index-HASH.js gzip 243 B 243 B
link-HASH.js gzip 1.66 kB 1.66 kB -1 B
routerDirect..HASH.js gzip 336 B 336 B
withRouter-HASH.js gzip 334 B 334 B
99a142a5cfae..804.css gzip 125 B 125 B
Overall change 9.52 kB 9.52 kB -1 B
Client Build Manifests Overall increase ⚠️
vercel/next.js canary v10.2.0 vercel/next.js refs/heads/canary Change
_buildManifest.js gzip 390 B 395 B ⚠️ +5 B
Overall change 390 B 395 B ⚠️ +5 B
Serverless bundles Overall decrease ✓
vercel/next.js canary v10.2.0 vercel/next.js refs/heads/canary Change
_error.js 1.39 MB 1.35 MB -46.5 kB
404.html 2.76 kB 2.76 kB
500.html 2.75 kB 2.75 kB
amp.amp.html 10.8 kB 10.8 kB
amp.html 1.96 kB 1.96 kB
css.html 2.13 kB 2.13 kB
hooks.html 2.01 kB 2.01 kB
index.js 1.39 MB 1.35 MB -46.5 kB
link.js 1.45 MB 1.4 MB -46.4 kB
routerDirect.js 1.44 MB 1.4 MB -46.4 kB
withRouter.js 1.44 MB 1.4 MB -46.4 kB
Overall change 7.14 MB 6.91 MB -232 kB

Webpack 4 Mode (Increase detected ⚠️)
General Overall decrease ✓
vercel/next.js canary v10.2.0 vercel/next.js refs/heads/canary Change
buildDuration 14s 13.5s -507ms
buildDurationCached 5.9s 5.4s -442ms
nodeModulesSize 46.7 MB 46.6 MB -69.9 kB
Page Load Tests Overall decrease ⚠️
vercel/next.js canary v10.2.0 vercel/next.js refs/heads/canary Change
/ failed reqs 0 0
/ total time (seconds) 2.81 2.787 -0.02
/ avg req/sec 889.57 896.86 +7.29
/error-in-render failed reqs 0 0
/error-in-render total time (seconds) 1.709 1.8 ⚠️ +0.09
/error-in-render avg req/sec 1462.48 1388.63 ⚠️ -73.85
Client Bundles (main, webpack, commons) Overall increase ⚠️
vercel/next.js canary v10.2.0 vercel/next.js refs/heads/canary Change
677f882d2ed8..HASH.js gzip 13.3 kB 13.3 kB ⚠️ +11 B
framework.HASH.js gzip 39 kB 39 kB
main-HASH.js gzip 7.18 kB 7.19 kB ⚠️ +8 B
webpack-HASH.js gzip 751 B 751 B
Overall change 60.2 kB 60.2 kB ⚠️ +19 B
Legacy Client Bundles (polyfills)
vercel/next.js canary v10.2.0 vercel/next.js refs/heads/canary Change
polyfills-HASH.js gzip 31.3 kB 31.3 kB
Overall change 31.3 kB 31.3 kB
Client Pages Overall decrease ✓
vercel/next.js canary v10.2.0 vercel/next.js refs/heads/canary Change
_app-HASH.js gzip 1.28 kB 1.28 kB
_error-HASH.js gzip 3.71 kB 3.71 kB
amp-HASH.js gzip 536 B 536 B
css-HASH.js gzip 339 B 339 B
hooks-HASH.js gzip 887 B 887 B
index-HASH.js gzip 227 B 227 B
link-HASH.js gzip 1.65 kB 1.64 kB -3 B
routerDirect..HASH.js gzip 303 B 303 B
withRouter-HASH.js gzip 302 B 302 B
21c68fa65a48..217.css gzip 125 B 125 B
Overall change 9.36 kB 9.36 kB -3 B
Client Build Manifests Overall increase ⚠️
vercel/next.js canary v10.2.0 vercel/next.js refs/heads/canary Change
_buildManifest.js gzip 419 B 420 B ⚠️ +1 B
Overall change 419 B 420 B ⚠️ +1 B
Rendered Page Sizes Overall decrease ✓
vercel/next.js canary v10.2.0 vercel/next.js refs/heads/canary Change
index.html gzip 613 B 613 B
link.html gzip 621 B 620 B -1 B
withRouter.html gzip 606 B 606 B
Overall change 1.84 kB 1.84 kB -1 B

Diffs

Diff for _buildManifest.js
@@ -12,7 +12,7 @@ self.__BUILD_MANIFEST = {
   "/hooks": [
     "static\u002Fchunks\u002Fpages\u002Fhooks-f1cc32851f5e866a7e78.js"
   ],
-  "/link": ["static\u002Fchunks\u002Fpages\u002Flink-a9bdb47b832b5a01f298.js"],
+  "/link": ["static\u002Fchunks\u002Fpages\u002Flink-121d9306ed12436945d4.js"],
   "/routerDirect": [
     "static\u002Fchunks\u002Fpages\u002FrouterDirect-e9bdf4dc22ca5dd5d885.js"
   ],
Diff for link-HASH.js
@@ -160,7 +160,7 @@ _N_E = (window["webpackJsonp_N_E"] = window["webpackJsonp_N_E"] || []).push([
 
         var p = props.prefetch !== false;
         var router = (0, _router2.useRouter)();
-        var pathname = (router && router.pathname) || "/";
+        var pathname = (router && router.asPath) || "/";
 
         var _react$default$useMem = _react["default"].useMemo(
             function() {
Diff for 677f882d2ed8..c4df.HASH.js
@@ -1366,7 +1366,15 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
 
       function resolveHref(currentPath, href, resolveAs) {
         // we use a dummy base url for relative urls
-        var base = new URL(currentPath, "http://n");
+        var base;
+
+        try {
+          base = new URL(currentPath, "http://n");
+        } catch (_) {
+          // fallback to / for invalid asPath values e.g. //
+          base = new URL("/", "http://n");
+        }
+
         var urlAsString =
           typeof href === "string"
             ? href
@@ -1430,7 +1438,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
       function prepareUrlAs(router, url, as) {
         // If url and as provided as an object representation,
         // we'll format them into the string version here.
-        var _resolveHref = resolveHref(router.pathname, url, true),
+        var _resolveHref = resolveHref(router.asPath, url, true),
           _resolveHref2 = _slicedToArray(_resolveHref, 2),
           resolvedHref = _resolveHref2[0],
           resolvedAs = _resolveHref2[1];
@@ -1444,7 +1452,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
           ? resolvedHref
           : addBasePath(resolvedHref);
         var preparedAs = as
-          ? stripOrigin(resolveHref(router.pathname, as))
+          ? stripOrigin(resolveHref(router.asPath, as))
           : resolvedAs || resolvedHref;
         return {
           url: preparedUrl,
Diff for main-HASH.js
@@ -404,7 +404,7 @@ _N_E = (window["webpackJsonp_N_E"] = window["webpackJsonp_N_E"] || []).push([
         document.getElementById("__NEXT_DATA__").textContent
       );
       window.__NEXT_DATA__ = data;
-      var version = "10.2.0";
+      var version = "10.2.1-canary.2";
       exports.version = version;
 
       var looseToArray = function looseToArray(input) {
Diff for index.html
@@ -17,12 +17,12 @@
     />
     <link
       rel="preload"
-      href="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.93bc6152317c318ec255.js"
+      href="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.034e4b1503019c911a82.js"
       as="script"
     />
     <link
       rel="preload"
-      href="/_next/static/chunks/main-b42dede016e5810cca0f.js"
+      href="/_next/static/chunks/main-25913a7177e516c7751e.js"
       as="script"
     />
     <link
@@ -61,11 +61,11 @@
       async=""
     ></script>
     <script
-      src="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.93bc6152317c318ec255.js"
+      src="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.034e4b1503019c911a82.js"
       async=""
     ></script>
     <script
-      src="/_next/static/chunks/main-b42dede016e5810cca0f.js"
+      src="/_next/static/chunks/main-25913a7177e516c7751e.js"
       async=""
     ></script>
     <script
Diff for link.html
@@ -17,12 +17,12 @@
     />
     <link
       rel="preload"
-      href="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.93bc6152317c318ec255.js"
+      href="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.034e4b1503019c911a82.js"
       as="script"
     />
     <link
       rel="preload"
-      href="/_next/static/chunks/main-b42dede016e5810cca0f.js"
+      href="/_next/static/chunks/main-25913a7177e516c7751e.js"
       as="script"
     />
     <link
@@ -32,7 +32,7 @@
     />
     <link
       rel="preload"
-      href="/_next/static/chunks/pages/link-a9bdb47b832b5a01f298.js"
+      href="/_next/static/chunks/pages/link-121d9306ed12436945d4.js"
       as="script"
     />
   </head>
@@ -66,11 +66,11 @@
       async=""
     ></script>
     <script
-      src="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.93bc6152317c318ec255.js"
+      src="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.034e4b1503019c911a82.js"
       async=""
     ></script>
     <script
-      src="/_next/static/chunks/main-b42dede016e5810cca0f.js"
+      src="/_next/static/chunks/main-25913a7177e516c7751e.js"
       async=""
     ></script>
     <script
@@ -78,7 +78,7 @@
       async=""
     ></script>
     <script
-      src="/_next/static/chunks/pages/link-a9bdb47b832b5a01f298.js"
+      src="/_next/static/chunks/pages/link-121d9306ed12436945d4.js"
       async=""
     ></script>
     <script src="/_next/static/BUILD_ID/_buildManifest.js" async=""></script>
Diff for withRouter.html
@@ -17,12 +17,12 @@
     />
     <link
       rel="preload"
-      href="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.93bc6152317c318ec255.js"
+      href="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.034e4b1503019c911a82.js"
       as="script"
     />
     <link
       rel="preload"
-      href="/_next/static/chunks/main-b42dede016e5810cca0f.js"
+      href="/_next/static/chunks/main-25913a7177e516c7751e.js"
       as="script"
     />
     <link
@@ -61,11 +61,11 @@
       async=""
     ></script>
     <script
-      src="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.93bc6152317c318ec255.js"
+      src="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.034e4b1503019c911a82.js"
       async=""
     ></script>
     <script
-      src="/_next/static/chunks/main-b42dede016e5810cca0f.js"
+      src="/_next/static/chunks/main-25913a7177e516c7751e.js"
       async=""
     ></script>
     <script

Please sign in to comment.