1. 31 Jan, 2025 5 commits
  2. 30 Jan, 2025 8 commits
  3. 29 Jan, 2025 20 commits
    • Sam Ko's avatar
      chore(github): add more areas (#75456) · 9fc4d39a
      Sam Ko authored
      ## Why?
      
      Not sure how I forgot `Route Handlers`.
      9fc4d39a
    • vercel-release-bot's avatar
      v15.2.0-canary.33 · 0e83fbd4
      vercel-release-bot authored
      0e83fbd4
    • Sam Ko's avatar
      chore(github): update github labels (#75452) · 51f9e2b2
      Sam Ko authored
      ## Why?
      
      Rename `Output (export/standalone)` to `Output`. This keeps it separate from labels such as `Image (next/image)` (`export/standalone` is not an import).
      51f9e2b2
    • Donny/강동윤's avatar
      build: Update `swc_core` to `v12.0.0` (#75327) · 8d7b202e
      Donny/강동윤 authored
      ### What?
      
      Update `swc_core` to the next version.
      
      ChangeLog: https://github.com/swc-project/swc/compare/swc_core%40v10.5.0...swc_core%40v12.0.0
      
      ### Why?
      
      To apply an enormous amount of performance patches.
      8d7b202e
    • Benjamin Woodruff's avatar
      perf(turbo-tasks): Filter out and do not cache unused arguments (#75261) · 8ed8716c
      Benjamin Woodruff authored
      For trait methods, we often have underscore-prefixed arguments that are unused in method implementations, but must exist on the method signature because the trait requires it.
      
      For example, look at `code_generation`: https://github.com/search?q=repo%3Avercel%2Fnext.js%20fn%20code_generation&type=code
      
      We can filter those arguments as soon as we resolve the real method, and avoid storing them as part of the task's cache key.
      
      This should mean less data stored per task, and better cache hit rates (so less tasks overall).
      
      This appears to give a roughly 5% memory win:
      
      ![Screenshot 2025-01-28 at 11.54.37 AM.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/HAZVitxRNnZz8QMiPn4a/3459c25e-c73b-4d56-92cc-f44479b2d016.png)
      
      (Spreadsheet: https://docs.google.com/spreadsheets/d/1fz9Q-tDE6LebS9p4Mci8vZG7jkBSajiMYF1WbZEPnts/edit?usp=sharing)
      
      Full data:
      
      <details>
      Tested with next-site in front.
      
      Command run:
      
      ```
      rm -rf .next && TURBOPACK=1 TURBOPACK_BUILD=1 TURBO_ENGINE_READ_ONLY=1 /bin/time -v pnpm next build --experimental-build-mode=compile
      ```
      
      
      # Before, run 1
      
      Compiled in: 19.3s
      
      ```
              Command being timed: "pnpm next build --experimental-build-mode=compile"
              User time (seconds): 121.88
              System time (seconds): 16.74
              Percent of CPU this job got: 501%
              Elapsed (wall clock) time (h:mm:ss or m:ss): 0:27.61
              Average shared text size (kbytes): 0
              Average unshared data size (kbytes): 0
              Average stack size (kbytes): 0
              Average total size (kbytes): 0
              Maximum resident set size (kbytes): 5607868
              Average resident set size (kbytes): 0
              Major (requiring I/O) page faults: 58
              Minor (reclaiming a frame) page faults: 1816374
              Voluntary context switches: 1280636
              Involuntary context switches: 361414
              Swaps: 0
              File system inputs: 102088
              File system outputs: 738000
              Socket messages sent: 0
              Socket messages received: 0
              Signals delivered: 0
              Page size (bytes): 4096
              Exit status: 0
      ```
      
      
      # Before, run 2
      
      Compiled in: 19.3s
      
      ```
              Command being timed: "pnpm next build --experimental-build-mode=compile"
              User time (seconds): 124.34
              System time (seconds): 16.97
              Percent of CPU this job got: 516%
              Elapsed (wall clock) time (h:mm:ss or m:ss): 0:27.36
              Average shared text size (kbytes): 0
              Average unshared data size (kbytes): 0
              Average stack size (kbytes): 0
              Average total size (kbytes): 0
              Maximum resident set size (kbytes): 5455968
              Average resident set size (kbytes): 0
              Major (requiring I/O) page faults: 8
              Minor (reclaiming a frame) page faults: 2014509
              Voluntary context switches: 1267794
              Involuntary context switches: 358175
              Swaps: 0
              File system inputs: 6496
              File system outputs: 737296
              Socket messages sent: 0
              Socket messages received: 0
              Signals delivered: 0
              Page size (bytes): 4096
              Exit status: 0
      ```
      
      
      # Before, run 3
      
      Compiled in: 18.4s
      
      ```
              Command being timed: "pnpm next build --experimental-build-mode=compile"
              User time (seconds): 117.81
              System time (seconds): 15.86
              Percent of CPU this job got: 505%
              Elapsed (wall clock) time (h:mm:ss or m:ss): 0:26.46
              Average shared text size (kbytes): 0
              Average unshared data size (kbytes): 0
              Average stack size (kbytes): 0
              Average total size (kbytes): 0
              Maximum resident set size (kbytes): 5655912
              Average resident set size (kbytes): 0
              Major (requiring I/O) page faults: 5
              Minor (reclaiming a frame) page faults: 1868540
              Voluntary context switches: 1271444
              Involuntary context switches: 337236
              Swaps: 0
              File system inputs: 7784
              File system outputs: 737480
              Socket messages sent: 0
              Socket messages received: 0
              Signals delivered: 0
              Page size (bytes): 4096
              Exit status:
      ```
      
      
      # Before, run 4
      
      Compiled in: 18.2s
      
      ```
              Command being timed: "pnpm next build --experimental-build-mode=compile"
              User time (seconds): 116.98
              System time (seconds): 15.09
              Percent of CPU this job got: 504%
              Elapsed (wall clock) time (h:mm:ss or m:ss): 0:26.15
              Average shared text size (kbytes): 0
              Average unshared data size (kbytes): 0
              Average stack size (kbytes): 0
              Average total size (kbytes): 0
              Maximum resident set size (kbytes): 5962764
              Average resident set size (kbytes): 0
              Major (requiring I/O) page faults: 0
              Minor (reclaiming a frame) page faults: 1861147
              Voluntary context switches: 1253759
              Involuntary context switches: 333116
              Swaps: 0
              File system inputs: 0
              File system outputs: 737304
              Socket messages sent: 0
              Socket messages received: 0
              Signals delivered: 0
              Page size (bytes): 4096
              Exit status: 0
      ```
      
      
      # Before, run 5
      
      Compiled in: 17.9s
      
      ```
              Command being timed: "pnpm next build --experimental-build-mode=compile"
              User time (seconds): 119.02
              System time (seconds): 14.84
              Percent of CPU this job got: 516%
              Elapsed (wall clock) time (h:mm:ss or m:ss): 0:25.92
              Average shared text size (kbytes): 0
              Average unshared data size (kbytes): 0
              Average stack size (kbytes): 0
              Average total size (kbytes): 0
              Maximum resident set size (kbytes): 5745780
              Average resident set size (kbytes): 0
              Major (requiring I/O) page faults: 0
              Minor (reclaiming a frame) page faults: 1542655
              Voluntary context switches: 1238600
              Involuntary context switches: 357049
              Swaps: 0
              File system inputs: 0
              File system outputs: 737000
              Socket messages sent: 0
              Socket messages received: 0
              Signals delivered: 0
              Page size (bytes): 4096
              Exit status: 0
      ```
      
      
      # After, run 1
      
      Compiled in: 19.0s
      
      ```
              Command being timed: "pnpm next build --experimental-build-mode=compile"
              User time (seconds): 121.85
              System time (seconds): 16.69
              Percent of CPU this job got: 508%
              Elapsed (wall clock) time (h:mm:ss or m:ss): 0:27.22
              Average shared text size (kbytes): 0
              Average unshared data size (kbytes): 0
              Average stack size (kbytes): 0
              Average total size (kbytes): 0
              Maximum resident set size (kbytes): 5402708
              Average resident set size (kbytes): 0
              Major (requiring I/O) page faults: 41
              Minor (reclaiming a frame) page faults: 1822829
              Voluntary context switches: 1221091
              Involuntary context switches: 361604
              Swaps: 0
              File system inputs: 110200
              File system outputs: 737048
              Socket messages sent: 0
              Socket messages received: 0
              Signals delivered: 0
              Page size (bytes): 4096
              Exit status: 0
      ```
      
      
      # After, run 2
      
      Compiled in: 18.5s
      
      ```
              Command being timed: "pnpm next build --experimental-build-mode=compile"
              User time (seconds): 119.46
              System time (seconds): 15.32
              Percent of CPU this job got: 506%
              Elapsed (wall clock) time (h:mm:ss or m:ss): 0:26.60
              Average shared text size (kbytes): 0
              Average unshared data size (kbytes): 0
              Average stack size (kbytes): 0
              Average total size (kbytes): 0
              Maximum resident set size (kbytes): 5413980
              Average resident set size (kbytes): 0
              Major (requiring I/O) page faults: 1
              Minor (reclaiming a frame) page faults: 1695775
              Voluntary context switches: 1269774
              Involuntary context switches: 328448
              Swaps: 0
              File system inputs: 800
              File system outputs: 736952
              Socket messages sent: 0
              Socket messages received: 0
              Signals delivered: 0
              Page size (bytes): 4096
              Exit status: 0
      ```
      
      
      # After, run 3
      
      Compiled in: 18.5s
      
      ```
              Command being timed: "pnpm next build --experimental-build-mode=compile"
              User time (seconds): 118.15
              System time (seconds): 15.12
              Percent of CPU this job got: 503%
              Elapsed (wall clock) time (h:mm:ss or m:ss): 0:26.48
              Average shared text size (kbytes): 0
              Average unshared data size (kbytes): 0
              Average stack size (kbytes): 0
              Average total size (kbytes): 0
              Maximum resident set size (kbytes): 5312528
              Average resident set size (kbytes): 0
              Major (requiring I/O) page faults: 0
              Minor (reclaiming a frame) page faults: 1893778
              Voluntary context switches: 1277325
              Involuntary context switches: 324591
              Swaps: 0
              File system inputs: 128
              File system outputs: 737304
              Socket messages sent: 0
              Socket messages received: 0
              Signals delivered: 0
              Page size (bytes): 4096
              Exit status: 0
      ```
      
      
      # After, run 4
      
      Compiled in: 18.2s
      
      ```
              Command being timed: "pnpm next build --experimental-build-mode=compile"
              User time (seconds): 115.60
              System time (seconds): 15.30
              Percent of CPU this job got: 499%
              Elapsed (wall clock) time (h:mm:ss or m:ss): 0:26.22
              Average shared text size (kbytes): 0
              Average unshared data size (kbytes): 0
              Average stack size (kbytes): 0
              Average total size (kbytes): 0
              Maximum resident set size (kbytes): 5240892
              Average resident set size (kbytes): 0
              Major (requiring I/O) page faults: 1
              Minor (reclaiming a frame) page faults: 1514837
              Voluntary context switches: 1296049
              Involuntary context switches: 312076
              Swaps: 0
              File system inputs: 32
              File system outputs: 737664
              Socket messages sent: 0
              Socket messages received: 0
              Signals delivered: 0
              Page size (bytes): 4096
              Exit status: 0
      ```
      
      
      # After, run 5
      
      Compiled in: 19.4s
      
      ```
              Command being timed: "pnpm next build --experimental-build-mode=compile"
              User time (seconds): 125.91
              System time (seconds): 15.63
              Percent of CPU this job got: 514%
              Elapsed (wall clock) time (h:mm:ss or m:ss): 0:27.50
              Average shared text size (kbytes): 0
              Average unshared data size (kbytes): 0
              Average stack size (kbytes): 0
              Average total size (kbytes): 0
              Maximum resident set size (kbytes): 5346672
              Average resident set size (kbytes): 0
              Major (requiring I/O) page faults: 1
              Minor (reclaiming a frame) page faults: 1839175
              Voluntary context switches: 1280293
              Involuntary context switches: 358863
              Swaps: 0
              File system inputs: 32
              File system outputs: 737720
              Socket messages sent: 0
              Socket messages received: 0
              Signals delivered: 0
              Page size (bytes): 4096
              Exit status: 0
      ```
      </details>
      8ed8716c
    • Tobias Koppers's avatar
      [Turbopack] only the first task read need to be strongly consistent (#75435) · 5f47bb15
      Tobias Koppers authored
      ### What?
      
      see code comment
      5f47bb15
    • Sam Ko's avatar
      chore(github): update more labels (#75444) · c97dff9b
      Sam Ko authored
      ## Why?
      
      To better organize and triage issues.
      
      ## How?
      
      - Remove `Link (next/link)`, update `Navigation` to `Linking and
      Navigating`
      - Add `Redirects`
      c97dff9b
    • vercel-release-bot's avatar
      v15.2.0-canary.32 · b63bdf40
      vercel-release-bot authored
      b63bdf40
    • Zack Tanner's avatar
      Revert "fix: handle optional catchalls correctly" (#75442) · 8514cd64
      Zack Tanner authored
      We noticed a routing regression, so reverting while we investigate. 
      
      Reverts vercel/next.js#75377
      8514cd64
    • Lee Robinson's avatar
      docs: specify encryption for custom actions key (#75425) · c0d23aee
      Lee Robinson authored
      If you are overriding the server actions encryption key, you need to
      also ensure it uses AES-GCM encrpytion.
      c0d23aee
    • Tobias Koppers's avatar
      [Turbopack] fix is_empty implementation (#75426) · 5aa6d9e8
      Tobias Koppers authored
      ### What?
      
      The AggregationQueue has multiple queues that need to be checked for emptyness.
      5aa6d9e8
    • JJ Kasper's avatar
      Revert changing bundler for runtime bundle but keep externals fix (#75412) · 0be280dc
      JJ Kasper authored
      This reverts the bundler change part while we investigate source map
      issue but keeps the externals optimize preventing the runtime bundle
      from inflating back to over `4MB`.
      
      This reverts commit 98b0700e
      This reverts commit 04c3f0b2
      0be280dc
    • Tim Neutkens's avatar
      Add temporary CI workflows for testing (#75432) · 348c7fe3
      Tim Neutkens authored
      ## What?
      
      Temporary CI workflows for #74554.
      
      <!-- Thanks for opening a PR! Your contribution is much appreciated.
      To make sure your PR is handled as smoothly as possible we request that
      you follow the checklist sections below.
      Choose the right checklist for the change(s) that you're making:
      
      ## For Contributors
      
      ### Improving Documentation
      
      - Run `pnpm prettier-fix` to fix formatting issues before opening the
      PR.
      - Read the Docs Contribution Guide to ensure your contribution follows
      the docs guidelines:
      https://nextjs.org/docs/community/contribution-guide
      
      ### Adding or Updating Examples
      
      - The "examples guidelines" are followed from our contributing doc
      https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md
      - Make sure the linting passes by running `pnpm build && pnpm lint`. See
      https://github.com/vercel/next.js/blob/canary/contributing/repository/linting.md
      
      ### Fixing a bug
      
      - Related issues linked using `fixes #number`
      - Tests added. See:
      https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs
      - Errors have a helpful link attached, see
      https://github.com/vercel/next.js/blob/canary/contributing.md
      
      ### Adding a feature
      
      - Implements an existing feature request or RFC. Make sure the feature
      request has been accepted for implementation before opening a PR. (A
      discussion must be opened, see
      https://github.com/vercel/next.js/discussions/new?category=ideas)
      - Related issues/discussions are linked using `fixes #number`
      - e2e tests added
      (https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs)
      - Documentation added
      - Telemetry added. In case of a feature if it's used or not.
      - Errors have a helpful link attached, see
      https://github.com/vercel/next.js/blob/canary/contributing.md
      
      
      ## For Maintainers
      
      - Minimal description (aim for explaining to someone not on the team to
      understand the PR)
      - When linking to a Slack thread, you might want to share details of the
      conclusion
      - Link both the Linear (Fixes NEXT-xxx) and the GitHub issues
      - Add review comments if necessary to explain to the reviewer the logic
      behind a change
      
      ### What?
      
      ### Why?
      
      ### How?
      
      Closes NEXT-
      Fixes #
      
      -->
      348c7fe3
    • Lee Robinson's avatar
    • Tim Neutkens's avatar
      Turbopack: Use from_utf8_unchecked for minify output (#75422) · 65d1943a
      Tim Neutkens authored
      ## What?
      
      Matches other places where codegen happens. In benchmarks this is a
      roughly 100 microseconds win per file processed through minifying.
      
      <!-- Thanks for opening a PR! Your contribution is much appreciated.
      To make sure your PR is handled as smoothly as possible we request that
      you follow the checklist sections below.
      Choose the right checklist for the change(s) that you're making:
      
      ## For Contributors
      
      ### Improving Documentation
      
      - Run `pnpm prettier-fix` to fix formatting issues before opening the
      PR.
      - Read the Docs Contribution Guide to ensure your contribution follows
      the docs guidelines:
      https://nextjs.org/docs/community/contribution-guide
      
      ### Adding or Updating Examples
      
      - The "examples guidelines" are followed from our contributing doc
      https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md
      - Make sure the linting passes by running `pnpm build && pnpm lint`. See
      https://github.com/vercel/next.js/blob/canary/contributing/repository/linting.md
      
      ### Fixing a bug
      
      - Related issues linked using `fixes #number`
      - Tests added. See:
      https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs
      - Errors have a helpful link attached, see
      https://github.com/vercel/next.js/blob/canary/contributing.md
      
      ### Adding a feature
      
      - Implements an existing feature request or RFC. Make sure the feature
      request has been accepted for implementation before opening a PR. (A
      discussion must be opened, see
      https://github.com/vercel/next.js/discussions/new?category=ideas)
      - Related issues/discussions are linked using `fixes #number`
      - e2e tests added
      (https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs)
      - Documentation added
      - Telemetry added. In case of a feature if it's used or not.
      - Errors have a helpful link attached, see
      https://github.com/vercel/next.js/blob/canary/contributing.md
      
      
      ## For Maintainers
      
      - Minimal description (aim for explaining to someone not on the team to
      understand the PR)
      - When linking to a Slack thread, you might want to share details of the
      conclusion
      - Link both the Linear (Fixes NEXT-xxx) and the GitHub issues
      - Add review comments if necessary to explain to the reviewer the logic
      behind a change
      
      ### What?
      
      ### Why?
      
      ### How?
      
      Closes NEXT-
      Fixes #
      
      -->
      65d1943a
    • vercel-release-bot's avatar
      v15.2.0-canary.31 · 6c3218a3
      vercel-release-bot authored
      6c3218a3
    • Tim Neutkens's avatar
      Turbopack: Implement build worker (#75391) · 3bd112b5
      Tim Neutkens authored
      ## What?
      
      Runs Turbopack in a separate child process so that e.g. memory usage can
      be cleaned up before continuing with the rest of the Next.js build. This
      will lower the peak memory consumption given that before this change the
      Turbopack cache was kept around until the end of the build.
      
      <!-- Thanks for opening a PR! Your contribution is much appreciated.
      To make sure your PR is handled as smoothly as possible we request that
      you follow the checklist sections below.
      Choose the right checklist for the change(s) that you're making:
      
      ## For Contributors
      
      ### Improving Documentation
      
      - Run `pnpm prettier-fix` to fix formatting issues before opening the
      PR.
      - Read the Docs Contribution Guide to ensure your contribution follows
      the docs guidelines:
      https://nextjs.org/docs/community/contribution-guide
      
      ### Adding or Updating Examples
      
      - The "examples guidelines" are followed from our contributing doc
      https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md
      - Make sure the linting passes by running `pnpm build && pnpm lint`. See
      https://github.com/vercel/next.js/blob/canary/contributing/repository/linting.md
      
      ### Fixing a bug
      
      - Related issues linked using `fixes #number`
      - Tests added. See:
      https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs
      - Errors have a helpful link attached, see
      https://github.com/vercel/next.js/blob/canary/contributing.md
      
      ### Adding a feature
      
      - Implements an existing feature request or RFC. Make sure the feature
      request has been accepted for implementation before opening a PR. (A
      discussion must be opened, see
      https://github.com/vercel/next.js/discussions/new?category=ideas)
      - Related issues/discussions are linked using `fixes #number`
      - e2e tests added
      (https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs)
      - Documentation added
      - Telemetry added. In case of a feature if it's used or not.
      - Errors have a helpful link attached, see
      https://github.com/vercel/next.js/blob/canary/contributing.md
      
      
      ## For Maintainers
      
      - Minimal description (aim for explaining to someone not on the team to
      understand the PR)
      - When linking to a Slack thread, you might want to share details of the
      conclusion
      - Link both the Linear (Fixes NEXT-xxx) and the GitHub issues
      - Add review comments if necessary to explain to the reviewer the logic
      behind a change
      
      ### What?
      
      ### Why?
      
      ### How?
      
      Closes NEXT-
      Fixes #
      
      -->
      3bd112b5
    • Vercel Release Bot's avatar
    • Tim Neutkens's avatar
      Turbopack: Move build to separate file (#75390) · bc9131a3
      Tim Neutkens authored
      ## What?
      
      Mirrors the handling for webpack by using `NextBuildContext` for all
      needed information.
      
      This will allow for moving the turbopack build to a child process for
      memory cleanup once the compiler finishes.
      
      This PR is intended to only move the code, will create a PR stacked on
      this one to add the child process handling.
      
      <!-- Thanks for opening a PR! Your contribution is much appreciated.
      To make sure your PR is handled as smoothly as possible we request that
      you follow the checklist sections below.
      Choose the right checklist for the change(s) that you're making:
      
      ## For Contributors
      
      ### Improving Documentation
      
      - Run `pnpm prettier-fix` to fix formatting issues before opening the
      PR.
      - Read the Docs Contribution Guide to ensure your contribution follows
      the docs guidelines:
      https://nextjs.org/docs/community/contribution-guide
      
      ### Adding or Updating Examples
      
      - The "examples guidelines" are followed from our contributing doc
      https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md
      - Make sure the linting passes by running `pnpm build && pnpm lint`. See
      https://github.com/vercel/next.js/blob/canary/contributing/repository/linting.md
      
      ### Fixing a bug
      
      - Related issues linked using `fixes #number`
      - Tests added. See:
      https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs
      - Errors have a helpful link attached, see
      https://github.com/vercel/next.js/blob/canary/contributing.md
      
      ### Adding a feature
      
      - Implements an existing feature request or RFC. Make sure the feature
      request has been accepted for implementation before opening a PR. (A
      discussion must be opened, see
      https://github.com/vercel/next.js/discussions/new?category=ideas)
      - Related issues/discussions are linked using `fixes #number`
      - e2e tests added
      (https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs)
      - Documentation added
      - Telemetry added. In case of a feature if it's used or not.
      - Errors have a helpful link attached, see
      https://github.com/vercel/next.js/blob/canary/contributing.md
      
      
      ## For Maintainers
      
      - Minimal description (aim for explaining to someone not on the team to
      understand the PR)
      - When linking to a Slack thread, you might want to share details of the
      conclusion
      - Link both the Linear (Fixes NEXT-xxx) and the GitHub issues
      - Add review comments if necessary to explain to the reviewer the logic
      behind a change
      
      ### What?
      
      ### Why?
      
      ### How?
      
      Closes NEXT-
      Fixes #
      
      -->
      bc9131a3
    • Michael Sereniti's avatar
      Fixed `null is not an object (evaluating 't.parallelRoutes.get')` (#75360) · c297cbd0
      Michael Sereniti authored
      ### Related issues
      
      1. Fixes #69272
      2. Fixes #69270
      3. Fixes #67730
      4. Relates to
      https://github.com/vercel/next.js/issues/55462#issuecomment-1896098700
      5. Resolves https://github.com/vercel/next.js/discussions/67729
      6. Relates to https://github.com/vercel/next.js/discussions/66752
      
      ### What?
      
      Quite often we are getting `TypeError: null is not an object (evaluating
      't.parallelRoutes.get')` error in our error tracker.
      There is no clear pattern; but it's daily count grows as DAU amount
      grows.
      
      Error call trace is:
      ```
      router-reducer/fill-lazy-items-till-leaf-with-head.ts at line 153:59
      router-reducer/create-initial-router-state.ts at line 66:34
      ```
      
      ### Why?
      
      In the code there is comment `location and initialParallelRoutes are not
      initialized in the SSR render they are set to an empty map and
      window.location, respectively during hydration`. However, it seems that
      it's not always set to an empty map on the client side.
      
      ### How?
      
      To ensure it's always set, I have replaced wrong (from ts pov) `null!`
      with `new Map()` and redundant logic of passing `initialParallelRoutes`
      into `cache.parallelRoutes`
      c297cbd0
  4. 28 Jan, 2025 7 commits