Skip to content

Commit

Permalink
v10.0.5-canary.10
Browse files Browse the repository at this point in the history
  • Loading branch information
Timer committed Jan 6, 2021
1 parent 47b7660 commit 9f6bcd4
Show file tree
Hide file tree
Showing 15 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.0.5-canary.9"
"version": "10.0.5-canary.10"
}
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.0.5-canary.9",
"version": "10.0.5-canary.10",
"keywords": [
"react",
"next",
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.0.5-canary.9",
"version": "10.0.5-canary.10",
"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.0.5-canary.9",
"version": "10.0.5-canary.10",
"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.0.5-canary.9",
"version": "10.0.5-canary.10",
"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.0.5-canary.9",
"version": "10.0.5-canary.10",
"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.0.5-canary.9",
"version": "10.0.5-canary.10",
"main": "index.js",
"license": "MIT",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/next-plugin-google-analytics/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/plugin-google-analytics",
"version": "10.0.5-canary.9",
"version": "10.0.5-canary.10",
"repository": {
"url": "vercel/next.js",
"directory": "packages/next-plugin-google-analytics"
Expand Down
2 changes: 1 addition & 1 deletion packages/next-plugin-sentry/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/plugin-sentry",
"version": "10.0.5-canary.9",
"version": "10.0.5-canary.10",
"repository": {
"url": "vercel/next.js",
"directory": "packages/next-plugin-sentry"
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.0.5-canary.9",
"version": "10.0.5-canary.10",
"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.0.5-canary.9",
"version": "10.0.5-canary.10",
"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.0.5-canary.9",
"version": "10.0.5-canary.10",
"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.0.5-canary.9",
"version": "10.0.5-canary.10",
"description": "The React Framework",
"main": "./dist/server/next.js",
"license": "MIT",
Expand Down Expand Up @@ -63,10 +63,10 @@
"@ampproject/toolbox-optimizer": "2.7.1-alpha.0",
"@babel/runtime": "7.12.5",
"@hapi/accept": "5.0.1",
"@next/env": "10.0.5-canary.9",
"@next/polyfill-module": "10.0.5-canary.9",
"@next/react-dev-overlay": "10.0.5-canary.9",
"@next/react-refresh-utils": "10.0.5-canary.9",
"@next/env": "10.0.5-canary.10",
"@next/polyfill-module": "10.0.5-canary.10",
"@next/react-dev-overlay": "10.0.5-canary.10",
"@next/react-refresh-utils": "10.0.5-canary.10",
"@opentelemetry/api": "0.14.0",
"ast-types": "0.13.2",
"babel-plugin-transform-define": "2.0.0",
Expand Down Expand Up @@ -144,7 +144,7 @@
"@babel/preset-react": "7.12.10",
"@babel/preset-typescript": "7.12.7",
"@babel/types": "7.12.12",
"@next/polyfill-nomodule": "10.0.5-canary.9",
"@next/polyfill-nomodule": "10.0.5-canary.10",
"@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.0.5-canary.9",
"version": "10.0.5-canary.10",
"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.0.5-canary.9",
"version": "10.0.5-canary.10",
"description": "An experimental package providing utilities for React Refresh.",
"repository": {
"url": "vercel/next.js",
Expand Down

1 comment on commit 9f6bcd4

@ijjk
Copy link
Member

@ijjk ijjk commented on 9f6bcd4 Jan 6, 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 increase ⚠️
vercel/next.js canary v9.5.5 vercel/next.js refs/heads/canary Change
buildDuration 11.2s 12s ⚠️ +820ms
nodeModulesSize 61.9 MB 80.6 MB ⚠️ +18.8 MB
Page Load Tests Overall increase ✓
vercel/next.js canary v9.5.5 vercel/next.js refs/heads/canary Change
/ failed reqs 0 0
/ total time (seconds) 2.586 2.467 -0.12
/ avg req/sec 966.73 1013.19 +46.46
/error-in-render failed reqs 0 0
/error-in-render total time (seconds) 1.689 1.74 ⚠️ +0.05
/error-in-render avg req/sec 1480.45 1437.03 ⚠️ -43.42
Client Bundles (main, webpack, commons) Overall increase ⚠️
vercel/next.js canary v9.5.5 vercel/next.js refs/heads/canary Change
677f882d2ed8..9b19.js gzip 11.1 kB 13.1 kB ⚠️ +2 kB
framework.HASH.js gzip 39 kB 39 kB ⚠️ +14 B
main-79d6d55..698e.js gzip 7.2 kB N/A N/A
webpack-e067..f178.js gzip 751 B 751 B
main-1f258db..b7d8.js gzip N/A 6.63 kB N/A
Overall change 58 kB 59.4 kB ⚠️ +1.45 kB
Legacy Client Bundles (polyfills) Overall increase ⚠️
vercel/next.js canary v9.5.5 vercel/next.js refs/heads/canary Change
polyfills-4b..e242.js gzip 31 kB 31.2 kB ⚠️ +168 B
Overall change 31 kB 31.2 kB ⚠️ +168 B
Client Pages Overall increase ⚠️
vercel/next.js canary v9.5.5 vercel/next.js refs/heads/canary Change
_app-9a0b9e1..b37e.js gzip 1.28 kB 1.28 kB
_error-ed1b0..8fbd.js gzip 3.44 kB 3.46 kB ⚠️ +17 B
hooks-89731c..c609.js gzip 887 B 887 B
index-17468f..5d83.js gzip 227 B 227 B
link-409b283..e3ab.js gzip 1.32 kB N/A N/A
routerDirect..924c.js gzip 284 B 303 B ⚠️ +19 B
withRouter-7..c13d.js gzip 284 B 302 B ⚠️ +18 B
link-705099c..c35d.js gzip N/A 1.64 kB N/A
Overall change 7.73 kB 8.09 kB ⚠️ +368 B
Client Build Manifests
vercel/next.js canary v9.5.5 vercel/next.js refs/heads/canary Change
_buildManifest.js gzip 323 B 323 B
Overall change 323 B 323 B
Rendered Page Sizes Overall decrease ✓
vercel/next.js canary v9.5.5 vercel/next.js refs/heads/canary Change
index.html gzip 646 B 613 B -33 B
link.html gzip 652 B 620 B -32 B
withRouter.html gzip 639 B 607 B -32 B
Overall change 1.94 kB 1.84 kB -97 B

Diffs

Diff for _buildManifest.js
@@ -1,18 +1,18 @@
 self.__BUILD_MANIFEST = {
   __rewrites: [],
-  "/": ["static\u002Fchunks\u002Fpages\u002Findex-283eed3c1520dcc26e8d.js"],
+  "/": ["static\u002Fchunks\u002Fpages\u002Findex-5219d40a02e71ed7dcbf.js"],
   "/_error": [
-    "static\u002Fchunks\u002Fpages\u002F_error-a0c4519f5ca8e97fa7be.js"
+    "static\u002Fchunks\u002Fpages\u002F_error-20af334c64d8a5dc13e8.js"
   ],
   "/hooks": [
-    "static\u002Fchunks\u002Fpages\u002Fhooks-8001dc76075832ee8949.js"
+    "static\u002Fchunks\u002Fpages\u002Fhooks-61cb7b66e376b851f63a.js"
   ],
-  "/link": ["static\u002Fchunks\u002Fpages\u002Flink-67e857671520c009f99f.js"],
+  "/link": ["static\u002Fchunks\u002Fpages\u002Flink-e404e0ff0d1ed82dadd1.js"],
   "/routerDirect": [
-    "static\u002Fchunks\u002Fpages\u002FrouterDirect-2e9bfd441bd88cd3382e.js"
+    "static\u002Fchunks\u002Fpages\u002FrouterDirect-a5bdcfc87579b1d2776d.js"
   ],
   "/withRouter": [
-    "static\u002Fchunks\u002Fpages\u002FwithRouter-9af1d72bd996729e701e.js"
+    "static\u002Fchunks\u002Fpages\u002FwithRouter-748b809bbc7636857f70.js"
   ],
   sortedPages: [
     "\u002F",
Diff for _error-a0c45..8e97fa7be.js
@@ -461,8 +461,10 @@ Also adds support for deduplicated `key` properties
         var metaCategories = {};
         return function(h) {
           var isUnique = true;
+          var hasKey = false;
 
           if (h.key && typeof h.key !== "number" && h.key.indexOf("$") > 0) {
+            hasKey = true;
             var key = h.key.slice(h.key.indexOf("$") + 1);
 
             if (keys.has(key)) {
@@ -498,7 +500,10 @@ Also adds support for deduplicated `key` properties
                   var category = h.props[metatype];
                   var categories = metaCategories[metatype] || new Set();
 
-                  if (categories.has(category)) {
+                  if (
+                    (metatype !== "name" || !hasKey) &&
+                    categories.has(category)
+                  ) {
                     isUnique = false;
                   } else {
                     categories.add(category);
Diff for link-67e8576..0c009f99f.js
@@ -80,62 +80,9 @@ _N_E = (window["webpackJsonp_N_E"] = window["webpackJsonp_N_E"] || []).push([
 
       var _router2 = __webpack_require__("nOHt");
 
-      var cachedObserver;
-      var listeners = new Map();
-      var IntersectionObserver = true ? window.IntersectionObserver : undefined;
-      var prefetched = {};
-
-      function getObserver() {
-        // Return shared instance of IntersectionObserver if already created
-        if (cachedObserver) {
-          return cachedObserver;
-        } // Only create shared IntersectionObserver if supported in browser
-
-        if (!IntersectionObserver) {
-          return undefined;
-        }
-
-        return (cachedObserver = new IntersectionObserver(
-          function(entries) {
-            entries.forEach(function(entry) {
-              if (!listeners.has(entry.target)) {
-                return;
-              }
+      var _useIntersection = __webpack_require__("vNVm");
 
-              var cb = listeners.get(entry.target);
-
-              if (entry.isIntersecting || entry.intersectionRatio > 0) {
-                cachedObserver.unobserve(entry.target);
-                listeners["delete"](entry.target);
-                cb();
-              }
-            });
-          },
-          {
-            rootMargin: "200px"
-          }
-        ));
-      }
-
-      var listenToIntersections = function listenToIntersections(el, cb) {
-        var observer = getObserver();
-
-        if (!observer) {
-          return function() {};
-        }
-
-        observer.observe(el);
-        listeners.set(el, cb);
-        return function() {
-          try {
-            observer.unobserve(el);
-          } catch (err) {
-            console.error(err);
-          }
-
-          listeners["delete"](el);
-        };
-      };
+      var prefetched = {};
 
       function prefetch(router, href, as, options) {
         if (false) {
@@ -148,9 +95,13 @@ _N_E = (window["webpackJsonp_N_E"] = window["webpackJsonp_N_E"] || []).push([
         router.prefetch(href, as, options)["catch"](function(err) {
           if (false) {
           }
-        }); // Join on an invalid URI character
+        });
+        var curLocale =
+          options && typeof options.locale !== "undefined"
+            ? options.locale
+            : router && router.locale; // Join on an invalid URI character
 
-        prefetched[href + "%" + as] = true;
+        prefetched[href + "%" + as + (curLocale ? "%" + curLocale : "")] = true;
       }
 
       function isModifiedEvent(event) {
@@ -165,7 +116,16 @@ _N_E = (window["webpackJsonp_N_E"] = window["webpackJsonp_N_E"] || []).push([
         );
       }
 
-      function linkClicked(e, router, href, as, replace, shallow, scroll) {
+      function linkClicked(
+        e,
+        router,
+        href,
+        as,
+        replace,
+        shallow,
+        scroll,
+        locale
+      ) {
         var nodeName = e.currentTarget.nodeName;
 
         if (
@@ -183,12 +143,14 @@ _N_E = (window["webpackJsonp_N_E"] = window["webpackJsonp_N_E"] || []).push([
         } // replace state instead of push if prop is present
 
         router[replace ? "replace" : "push"](href, as, {
-          shallow: shallow
+          shallow: shallow,
+          locale: locale,
+          scroll: scroll
         }).then(function(success) {
           if (!success) return;
 
           if (scroll) {
-            window.scrollTo(0, 0);
+            // FIXME: proper route announcing at Router level, not Link:
             document.body.focus();
           }
         });
@@ -205,12 +167,6 @@ _N_E = (window["webpackJsonp_N_E"] = window["webpackJsonp_N_E"] || []).push([
         }
 
         var p = props.prefetch !== false;
-
-        var _react$default$useSta = _react["default"].useState(),
-          _react$default$useSta2 = _slicedToArray(_react$default$useSta, 2),
-          childElm = _react$default$useSta2[0],
-          setChildElm = _react$default$useSta2[1];
-
         var router = (0, _router2.useRouter)();
         var pathname = (router && router.pathname) || "/";
 
@@ -233,32 +189,11 @@ _N_E = (window["webpackJsonp_N_E"] = window["webpackJsonp_N_E"] || []).push([
           href = _react$default$useMem.href,
           as = _react$default$useMem.as;
 
-        _react["default"].useEffect(
-          function() {
-            if (
-              p &&
-              IntersectionObserver &&
-              childElm &&
-              childElm.tagName &&
-              (0, _router.isLocalURL)(href)
-            ) {
-              // Join on an invalid URI character
-              var isPrefetched = prefetched[href + "%" + as];
-
-              if (!isPrefetched) {
-                return listenToIntersections(childElm, function() {
-                  prefetch(router, href, as);
-                });
-              }
-            }
-          },
-          [p, childElm, href, as, router]
-        );
-
         var children = props.children,
           replace = props.replace,
           shallow = props.shallow,
-          scroll = props.scroll; // Deprecated. Warning shown by propType check. If the children provided is a string (<Link>example</Link>) we wrap it in an <a> tag
+          scroll = props.scroll,
+          locale = props.locale; // Deprecated. Warning shown by propType check. If the children provided is a string (<Link>example</Link>) we wrap it in an <a> tag
 
         if (typeof children === "string") {
           children = /*#__PURE__*/ _react["default"].createElement(
@@ -270,54 +205,102 @@ _N_E = (window["webpackJsonp_N_E"] = window["webpackJsonp_N_E"] || []).push([
 
         var child = _react.Children.only(children);
 
-        var childProps = {
-          ref: function ref(el) {
-            if (el) setChildElm(el);
+        var childRef = child && typeof child === "object" && child.ref;
 
-            if (child && typeof child === "object" && child.ref) {
-              if (typeof child.ref === "function") child.ref(el);
-              else if (typeof child.ref === "object") {
-                child.ref.current = el;
+        var _ref3 = (0, _useIntersection.useIntersection)({
+            rootMargin: "200px"
+          }),
+          _ref4 = _slicedToArray(_ref3, 2),
+          setIntersectionRef = _ref4[0],
+          isVisible = _ref4[1];
+
+        var setRef = _react["default"].useCallback(
+          function(el) {
+            setIntersectionRef(el);
+
+            if (childRef) {
+              if (typeof childRef === "function") childRef(el);
+              else if (typeof childRef === "object") {
+                childRef.current = el;
               }
             }
           },
+          [childRef, setIntersectionRef]
+        );
+
+        (0, _react.useEffect)(
+          function() {
+            var shouldPrefetch =
+              isVisible && p && (0, _router.isLocalURL)(href);
+            var curLocale =
+              typeof locale !== "undefined" ? locale : router && router.locale;
+            var isPrefetched =
+              prefetched[href + "%" + as + (curLocale ? "%" + curLocale : "")];
+
+            if (shouldPrefetch && !isPrefetched) {
+              prefetch(router, href, as, {
+                locale: curLocale
+              });
+            }
+          },
+          [as, href, isVisible, locale, p, router]
+        );
+        var childProps = {
+          ref: setRef,
           onClick: function onClick(e) {
             if (child.props && typeof child.props.onClick === "function") {
               child.props.onClick(e);
             }
 
             if (!e.defaultPrevented) {
-              linkClicked(e, router, href, as, replace, shallow, scroll);
+              linkClicked(
+                e,
+                router,
+                href,
+                as,
+                replace,
+                shallow,
+                scroll,
+                locale
+              );
             }
           }
         };
 
-        if (p) {
-          childProps.onMouseEnter = function(e) {
-            if (!(0, _router.isLocalURL)(href)) return;
+        childProps.onMouseEnter = function(e) {
+          if (!(0, _router.isLocalURL)(href)) return;
 
-            if (child.props && typeof child.props.onMouseEnter === "function") {
-              child.props.onMouseEnter(e);
-            }
+          if (child.props && typeof child.props.onMouseEnter === "function") {
+            child.props.onMouseEnter(e);
+          }
 
-            prefetch(router, href, as, {
-              priority: true
-            });
-          };
-        } // If child is an <a> tag and doesn't have a href attribute, or if the 'passHref' property is
+          prefetch(router, href, as, {
+            priority: true
+          });
+        }; // If child is an <a> tag and doesn't have a href attribute, or if the 'passHref' property is
         // defined, we specify the current 'href', so that repetition is not needed by the user
 
         if (
           props.passHref ||
           (child.type === "a" && !("href" in child.props))
         ) {
-          childProps.href = (0, _router.addBasePath)(
-            (0, _router.addLocale)(
-              as,
-              router && router.locale,
-              router && router.defaultLocale
-            )
+          var curLocale =
+            typeof locale !== "undefined" ? locale : router && router.locale;
+          var localeDomain = (0, _router.getDomainLocale)(
+            as,
+            curLocale,
+            router && router.locales,
+            router && router.domainLocales
           );
+          childProps.href =
+            localeDomain ||
+            (0, _router.addBasePath)(
+              (0, _router.addLocale)(
+                as,
+                curLocale,
+                router && router.defaultLocale
+              )
+            );
         }
 
         return /*#__PURE__*/ _react["default"].cloneElement(child, childProps);
@@ -326,6 +309,126 @@ _N_E = (window["webpackJsonp_N_E"] = window["webpackJsonp_N_E"] || []).push([
       var _default = Link;
       exports["default"] = _default;
 
+      /***/
+    },
+
+    /***/ vNVm: /***/ function(module, exports, __webpack_require__) {
+      "use strict";
+
+      var _slicedToArray = __webpack_require__("J4zp");
+
+      var _interopRequireDefault = __webpack_require__("TqRt");
+
+      exports.__esModule = true;
+      exports.useIntersection = useIntersection;
+
+      var _react = __webpack_require__("q1tI");
+
+      var _requestIdleCallback = _interopRequireDefault(
+        __webpack_require__("0G5g")
+      );
+
+      var hasIntersectionObserver = typeof IntersectionObserver !== "undefined";
+
+      function useIntersection(_ref) {
+        var rootMargin = _ref.rootMargin,
+          disabled = _ref.disabled;
+        var isDisabled = disabled || !hasIntersectionObserver;
+        var unobserve = (0, _react.useRef)();
+
+        var _ref2 = (0, _react.useState)(false),
+          _ref3 = _slicedToArray(_ref2, 2),
+          visible = _ref3[0],
+          setVisible = _ref3[1];
+
+        var setRef = (0, _react.useCallback)(
+          function(el) {
+            if (unobserve.current) {
+              unobserve.current();
+              unobserve.current = undefined;
+            }
+
+            if (isDisabled || visible) return;
+
+            if (el && el.tagName) {
+              unobserve.current = observe(
+                el,
+                function(isVisible) {
+                  return isVisible && setVisible(isVisible);
+                },
+                {
+                  rootMargin: rootMargin
+                }
+              );
+            }
+          },
+          [isDisabled, rootMargin, visible]
+        );
+        (0, _react.useEffect)(
+          function() {
+            if (!hasIntersectionObserver) {
+              if (!visible)
+                (0, _requestIdleCallback["default"])(function() {
+                  return setVisible(true);
+                });
+            }
+          },
+          [visible]
+        );
+        return [setRef, visible];
+      }
+
+      function observe(element, callback, options) {
+        var _createObserver = createObserver(options),
+          id = _createObserver.id,
+          observer = _createObserver.observer,
+          elements = _createObserver.elements;
+
+        elements.set(element, callback);
+        observer.observe(element);
+        return function unobserve() {
+          elements["delete"](element);
+          observer.unobserve(element); // Destroy observer when there's nothing left to watch:
+
+          if (elements.size === 0) {
+            observer.disconnect();
+            observers["delete"](id);
+          }
+        };
+      }
+
+      var observers = new Map();
+
+      function createObserver(options) {
+        var id = options.rootMargin || "";
+        var instance = observers.get(id);
+
+        if (instance) {
+          return instance;
+        }
+
+        var elements = new Map();
+        var observer = new IntersectionObserver(function(entries) {
+          entries.forEach(function(entry) {
+            var callback = elements.get(entry.target);
+            var isVisible = entry.isIntersecting || entry.intersectionRatio > 0;
+
+            if (callback && isVisible) {
+              callback(isVisible);
+            }
+          });
+        }, options);
+        observers.set(
+          id,
+          (instance = {
+            id: id,
+            observer: observer,
+            elements: elements
+          })
+        );
+        return instance;
+      }
+
       /***/
     }
   },
Diff for routerDirect..88cd3382e.js
@@ -1,6 +1,12 @@
 _N_E = (window["webpackJsonp_N_E"] = window["webpackJsonp_N_E"] || []).push([
   [9],
   {
+    /***/ "20a2": /***/ function(module, exports, __webpack_require__) {
+      module.exports = __webpack_require__("nOHt");
+
+      /***/
+    },
+
     /***/ LtRI: /***/ function(module, exports, __webpack_require__) {
       (window.__NEXT_P = window.__NEXT_P || []).push([
         "/routerDirect",
@@ -26,7 +32,7 @@ _N_E = (window["webpackJsonp_N_E"] = window["webpackJsonp_N_E"] || []).push([
         react__WEBPACK_IMPORTED_MODULE_0__
       );
       /* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
-        "nOHt"
+        "20a2"
       );
       /* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(
         next_router__WEBPACK_IMPORTED_MODULE_1__
Diff for withRouter-9..6729e701e.js
@@ -15,7 +15,7 @@ _N_E = (window["webpackJsonp_N_E"] = window["webpackJsonp_N_E"] || []).push([
         react__WEBPACK_IMPORTED_MODULE_0__
       );
       /* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
-        "nOHt"
+        "20a2"
       );
       /* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(
         next_router__WEBPACK_IMPORTED_MODULE_1__
@@ -38,6 +38,12 @@ _N_E = (window["webpackJsonp_N_E"] = window["webpackJsonp_N_E"] || []).push([
       /***/
     },
 
+    /***/ "20a2": /***/ function(module, exports, __webpack_require__) {
+      module.exports = __webpack_require__("nOHt");
+
+      /***/
+    },
+
     /***/ eThv: /***/ function(module, exports, __webpack_require__) {
       (window.__NEXT_P = window.__NEXT_P || []).push([
         "/withRouter",
Diff for 677f882d2ed8..4eeebf399.js

Diff too large to display

Diff for main-2aa8068..281f09665.js

Diff too large to display

Diff for polyfills-f7..972ef83e9.js
failed to diff
Diff for index.html
@@ -3,10 +3,11 @@
   <head>
     <meta charset="utf-8" />
     <meta name="viewport" content="width=device-width" />
-    <noscript data-n-css="true"></noscript>
+    <meta name="next-head-count" content="2" />
+    <noscript data-n-css=""></noscript>
     <link
       rel="preload"
-      href="/_next/static/chunks/main-2aa8068f0cc281f09665.js"
+      href="/_next/static/chunks/main-0ae841d5a7826d092b3c.js"
       as="script"
     />
     <link
@@ -21,17 +22,17 @@
     />
     <link
       rel="preload"
-      href="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.5472d08d2594eeebf399.js"
+      href="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.f470eb4208df1d1152fd.js"
       as="script"
     />
     <link
       rel="preload"
-      href="/_next/static/chunks/pages/_app-7512045a5b3d9376e2ca.js"
+      href="/_next/static/chunks/pages/_app-f6044d7389b6f97833eb.js"
       as="script"
     />
     <link
       rel="preload"
-      href="/_next/static/chunks/pages/index-283eed3c1520dcc26e8d.js"
+      href="/_next/static/chunks/pages/index-5219d40a02e71ed7dcbf.js"
       as="script"
     />
   </head>
@@ -44,19 +45,15 @@
         "query": {},
         "buildId": "BUILD_ID",
         "isFallback": false,
-        "gip": true,
-        "head": [
-          ["meta", { "charSet": "utf-8" }],
-          ["meta", { "name": "viewport", "content": "width=device-width" }]
-        ]
+        "gip": true
       }
     </script>
     <script
       nomodule=""
-      src="/_next/static/chunks/polyfills-f73ba3fc145972ef83e9.js"
+      src="/_next/static/chunks/polyfills-ae47a1f95297af5f55f8.js"
     ></script>
     <script
-      src="/_next/static/chunks/main-2aa8068f0cc281f09665.js"
+      src="/_next/static/chunks/main-0ae841d5a7826d092b3c.js"
       async=""
     ></script>
     <script
@@ -68,15 +65,15 @@
       async=""
     ></script>
     <script
-      src="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.5472d08d2594eeebf399.js"
+      src="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.f470eb4208df1d1152fd.js"
       async=""
     ></script>
     <script
-      src="/_next/static/chunks/pages/_app-7512045a5b3d9376e2ca.js"
+      src="/_next/static/chunks/pages/_app-f6044d7389b6f97833eb.js"
       async=""
     ></script>
     <script
-      src="/_next/static/chunks/pages/index-283eed3c1520dcc26e8d.js"
+      src="/_next/static/chunks/pages/index-5219d40a02e71ed7dcbf.js"
       async=""
     ></script>
     <script src="/_next/static/BUILD_ID/_buildManifest.js" async=""></script>
Diff for link.html
@@ -3,10 +3,11 @@
   <head>
     <meta charset="utf-8" />
     <meta name="viewport" content="width=device-width" />
-    <noscript data-n-css="true"></noscript>
+    <meta name="next-head-count" content="2" />
+    <noscript data-n-css=""></noscript>
     <link
       rel="preload"
-      href="/_next/static/chunks/main-2aa8068f0cc281f09665.js"
+      href="/_next/static/chunks/main-0ae841d5a7826d092b3c.js"
       as="script"
     />
     <link
@@ -21,17 +22,17 @@
     />
     <link
       rel="preload"
-      href="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.5472d08d2594eeebf399.js"
+      href="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.f470eb4208df1d1152fd.js"
       as="script"
     />
     <link
       rel="preload"
-      href="/_next/static/chunks/pages/_app-7512045a5b3d9376e2ca.js"
+      href="/_next/static/chunks/pages/_app-f6044d7389b6f97833eb.js"
       as="script"
     />
     <link
       rel="preload"
-      href="/_next/static/chunks/pages/link-67e857671520c009f99f.js"
+      href="/_next/static/chunks/pages/link-e404e0ff0d1ed82dadd1.js"
       as="script"
     />
   </head>
@@ -49,19 +50,15 @@
         "query": {},
         "buildId": "BUILD_ID",
         "isFallback": false,
-        "gip": true,
-        "head": [
-          ["meta", { "charSet": "utf-8" }],
-          ["meta", { "name": "viewport", "content": "width=device-width" }]
-        ]
+        "gip": true
       }
     </script>
     <script
       nomodule=""
-      src="/_next/static/chunks/polyfills-f73ba3fc145972ef83e9.js"
+      src="/_next/static/chunks/polyfills-ae47a1f95297af5f55f8.js"
     ></script>
     <script
-      src="/_next/static/chunks/main-2aa8068f0cc281f09665.js"
+      src="/_next/static/chunks/main-0ae841d5a7826d092b3c.js"
       async=""
     ></script>
     <script
@@ -73,15 +70,15 @@
       async=""
     ></script>
     <script
-      src="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.5472d08d2594eeebf399.js"
+      src="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.f470eb4208df1d1152fd.js"
       async=""
     ></script>
     <script
-      src="/_next/static/chunks/pages/_app-7512045a5b3d9376e2ca.js"
+      src="/_next/static/chunks/pages/_app-f6044d7389b6f97833eb.js"
       async=""
     ></script>
     <script
-      src="/_next/static/chunks/pages/link-67e857671520c009f99f.js"
+      src="/_next/static/chunks/pages/link-e404e0ff0d1ed82dadd1.js"
       async=""
     ></script>
     <script src="/_next/static/BUILD_ID/_buildManifest.js" async=""></script>
Diff for withRouter.html
@@ -3,10 +3,11 @@
   <head>
     <meta charset="utf-8" />
     <meta name="viewport" content="width=device-width" />
-    <noscript data-n-css="true"></noscript>
+    <meta name="next-head-count" content="2" />
+    <noscript data-n-css=""></noscript>
     <link
       rel="preload"
-      href="/_next/static/chunks/main-2aa8068f0cc281f09665.js"
+      href="/_next/static/chunks/main-0ae841d5a7826d092b3c.js"
       as="script"
     />
     <link
@@ -21,17 +22,17 @@
     />
     <link
       rel="preload"
-      href="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.5472d08d2594eeebf399.js"
+      href="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.f470eb4208df1d1152fd.js"
       as="script"
     />
     <link
       rel="preload"
-      href="/_next/static/chunks/pages/_app-7512045a5b3d9376e2ca.js"
+      href="/_next/static/chunks/pages/_app-f6044d7389b6f97833eb.js"
       as="script"
     />
     <link
       rel="preload"
-      href="/_next/static/chunks/pages/withRouter-9af1d72bd996729e701e.js"
+      href="/_next/static/chunks/pages/withRouter-748b809bbc7636857f70.js"
       as="script"
     />
   </head>
@@ -44,19 +45,15 @@
         "query": {},
         "buildId": "BUILD_ID",
         "isFallback": false,
-        "gip": true,
-        "head": [
-          ["meta", { "charSet": "utf-8" }],
-          ["meta", { "name": "viewport", "content": "width=device-width" }]
-        ]
+        "gip": true
       }
     </script>
     <script
       nomodule=""
-      src="/_next/static/chunks/polyfills-f73ba3fc145972ef83e9.js"
+      src="/_next/static/chunks/polyfills-ae47a1f95297af5f55f8.js"
     ></script>
     <script
-      src="/_next/static/chunks/main-2aa8068f0cc281f09665.js"
+      src="/_next/static/chunks/main-0ae841d5a7826d092b3c.js"
       async=""
     ></script>
     <script
@@ -68,15 +65,15 @@
       async=""
     ></script>
     <script
-      src="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.5472d08d2594eeebf399.js"
+      src="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.f470eb4208df1d1152fd.js"
       async=""
     ></script>
     <script
-      src="/_next/static/chunks/pages/_app-7512045a5b3d9376e2ca.js"
+      src="/_next/static/chunks/pages/_app-f6044d7389b6f97833eb.js"
       async=""
     ></script>
     <script
-      src="/_next/static/chunks/pages/withRouter-9af1d72bd996729e701e.js"
+      src="/_next/static/chunks/pages/withRouter-748b809bbc7636857f70.js"
       async=""
     ></script>
     <script src="/_next/static/BUILD_ID/_buildManifest.js" async=""></script>

Serverless Mode (Increase detected ⚠️)
General Overall increase ⚠️
vercel/next.js canary v9.5.5 vercel/next.js refs/heads/canary Change
buildDuration 13s 14.5s ⚠️ +1.5s
nodeModulesSize 61.9 MB 80.6 MB ⚠️ +18.8 MB
Client Bundles (main, webpack, commons) Overall increase ⚠️
vercel/next.js canary v9.5.5 vercel/next.js refs/heads/canary Change
677f882d2ed8..9b19.js gzip 11.1 kB N/A N/A
framework.HASH.js gzip 39 kB 39 kB ⚠️ +14 B
main-79d6d55..698e.js gzip 7.2 kB N/A N/A
webpack-e067..f178.js gzip 751 B N/A N/A
677f882d2ed8..89aa.js gzip N/A 13.1 kB N/A
main-1f258db..b7d8.js gzip N/A 6.63 kB N/A
webpack-50be..df5b.js gzip N/A 751 B N/A
Overall change 58 kB 59.4 kB ⚠️ +1.45 kB
Legacy Client Bundles (polyfills) Overall increase ⚠️
vercel/next.js canary v9.5.5 vercel/next.js refs/heads/canary Change
polyfills-4b..e242.js gzip 31 kB N/A N/A
polyfills-81..14d7.js gzip N/A 31.2 kB N/A
Overall change 31 kB 31.2 kB ⚠️ +168 B
Client Pages Overall increase ⚠️
vercel/next.js canary v9.5.5 vercel/next.js refs/heads/canary Change
_app-9a0b9e1..b37e.js gzip 1.28 kB N/A N/A
_error-ed1b0..8fbd.js gzip 3.44 kB N/A N/A
hooks-89731c..c609.js gzip 887 B N/A N/A
index-17468f..5d83.js gzip 227 B N/A N/A
link-409b283..e3ab.js gzip 1.32 kB N/A N/A
routerDirect..924c.js gzip 284 B N/A N/A
withRouter-7..c13d.js gzip 284 B N/A N/A
_app-b6fc6bc..222c.js gzip N/A 1.28 kB N/A
_error-e2ffa..0f3f.js gzip N/A 3.46 kB N/A
hooks-010c20..8411.js gzip N/A 887 B N/A
index-bbee2f..528b.js gzip N/A 227 B N/A
link-705099c..c35d.js gzip N/A 1.64 kB N/A
routerDirect..bf84.js gzip N/A 303 B N/A
withRouter-a..5826.js gzip N/A 302 B N/A
Overall change 7.73 kB 8.09 kB ⚠️ +368 B
Client Build Manifests
vercel/next.js canary v9.5.5 vercel/next.js refs/heads/canary Change
_buildManifest.js gzip 323 B 323 B
Overall change 323 B 323 B
Serverless bundles Overall decrease ✓
vercel/next.js canary v9.5.5 vercel/next.js refs/heads/canary Change
_error.js 1.05 MB 1 MB -51.1 kB
404.html 2.6 kB 2.67 kB ⚠️ +69 B
hooks.html 1.98 kB 1.92 kB -60 B
index.js 1.05 MB 1 MB -51 kB
link.js 1.1 MB 1.06 MB -40.1 kB
routerDirect.js 1.09 MB 1.05 MB -41.8 kB
withRouter.js 1.09 MB 1.05 MB -41.8 kB
Overall change 5.4 MB 5.18 MB -226 kB

Please sign in to comment.