1. 17 Dec, 2025 7 commits
  2. 16 Dec, 2025 14 commits
  3. 15 Dec, 2025 19 commits
    • Andrew Clark's avatar
      Delete old navigation response handling implementation (#87149) · 889d1814
      Andrew Clark authored
      Based on:
      
      - #87128 
      - #87147 
      - #87134 
      - #87135 
      
      ---
      
      This completes the migration of navigation response handling to the new
      Segment Cache and PPR-based implementation.
      
      Most of this PR is just deleting vestigial code. No behavioral changes
      are expected. The substance of the migration was completed in earlier
      steps.
      889d1814
    • nextjs-bot's avatar
      v16.1.0-canary.27 · 80fb15ce
      nextjs-bot authored
      80fb15ce
    • Andrew Clark's avatar
      Re-implement hmr-refresh in terms of refresh (#87135) · 3ff99bd0
      Andrew Clark authored
      Based on:
      - #87134 
      
      ---
      
      hmr-refresh-reducer is identical to refresh-reducer except for the fact
      that it doesn't evict the prefetch cache. So this refactors both
      implementations to call the same shared function.
      3ff99bd0
    • nextjs-bot's avatar
      v16.1.0-canary.26 · 1271708e
      nextjs-bot authored
      1271708e
    • Andrew Clark's avatar
      Create initial tree using same function as navigations (#87147) · ed3b1271
      Andrew Clark authored
      Based on:
      
      - #87128 
      
      ---
      
      Small refactor. During the initial render to hydrate the page, we create
      the CacheNode tree using the same function that is used to create new
      trees during soft navigation.
      
      Unlike during a soft navigation, we intentionally don't check if any
      data needs to be fetched from the server. We assume the initial
      hydration payload is sufficient to render the page.
      
      The completeness of the initial data is an important property that we
      rely on as a last-ditch mechanism for recovering the app; we must always
      be able to reload a fresh HTML document to get to a consistent state.
      
      This was one of the last remaining places where
      fillLazyItemsTillLeafWithHead was used.
      ed3b1271
    • Andrew Clark's avatar
      Refactor: Unify history traversal with other nav types (#87128) · 6270c09c
      Andrew Clark authored
      This merges the logic inside updateCacheNodeOnPopstateRestoration into
      the function used for all other navigation types.
      
      The main difference between history traversal navigations and other
      navigation types is our treatment of dynamic data. History traversal
      operations are allowed to reuse dynamic data regardless of its freshness
      or staleness. So I've updated the `shouldRefreshDynamicData` argument to
      be an enum that accounts for our various freshness policies. As of now,
      there are three: Default, HistoryTraversal, and RefreshAll.
      
      This is part of an ongoing series of refactors to unify all navigation
      types into a single flow, both to simplify the implementation, and to
      ensure the behavior is consistent.
      6270c09c
    • Sebastian "Sebbie" Silbermann's avatar
    • Zack Tanner's avatar
      fix: otel error spans from streamed responses (#86955) · 4f13405b
      Zack Tanner authored
      When an error is thrown inside a Suspense boundary during streaming SSR,
      the error was not being captured in the "render route (app)" span. This
      happened because `getTracer().wrap()` ends the span as soon as the
      stream is created and returned, but errors inside Suspense boundaries
      occur asynchronously during stream consumption.
      
      This PR changes the span management from using `wrap()` to manually
      calling `startSpan()` and tracking the span lifecycle. The span now
      stays open until `allReady` resolves or rejects. A new `withSpan()`
      helper was added to the tracer to properly activate the span context so
      child spans are parented. Error handlers now accept an optional
      `spanToRecordOn` parameter to record exceptions on the correct span
      rather than relying solely on the active scope span.
      
      Fixes #86517
      4f13405b
    • nextjs-bot's avatar
      v16.1.0-canary.25 · 40a9d005
      nextjs-bot authored
      40a9d005
    • Sebastian "Sebbie" Silbermann's avatar
    • Sebastian "Sebbie" Silbermann's avatar
    • Wyatt Johnson's avatar
      Fix interception routes with trailing slash configuration (#86787) · 4b603cfa
      Wyatt Johnson authored
      ### What?
      
      This PR fixes interception routes to work correctly with the
      `trailingSlash` configuration option.
      
      ### Why?
      
      Interception routes were not working when users had `trailingSlash:
      true` in their Next.js config. This was because interception route
      rewrites were marked as `internal: true`, which caused them to bypass
      the `modifyRouteRegex` processing that handles trailing slash
      normalization.
      
      When a route is marked as internal and provides its own regex, the code
      would skip the regex modification step that ensures routes work
      correctly with both `trailingSlash: true` and `trailingSlash: false`
      configurations. This meant interception routes would fail to match when
      trailing slashes were enabled.
      
      ### How?
      
      1. **Removed `internal: true` flag** from interception route rewrites in
      `generate-interception-routes-rewrites.ts`. This ensures they go through
      the same regex modification process as regular routes, properly handling
      trailing slash normalization.
      
      2. **Added comprehensive test coverage** by wrapping the parallel routes
      and interception test suite in `describe.each([true, false])` to test
      both trailing slash configurations. Updated all URL assertions to
      account for the trailing slash setting.
      
      3. **Refactored `build-custom-route.ts`** to scope the `source` variable
      closer to where it's actually used, preventing unnecessary computation
      for internal routes that already provide a regex.
      
      4. **Moved `next.config.js` inline** to the test file for better
      organization and to support the parameterized test structure.
      4b603cfa
    • Sebastian "Sebbie" Silbermann's avatar
    • Sebastian Sebbie Silbermann's avatar
    • nextjs-bot's avatar
      v16.1.0-canary.24 · 7335543e
      nextjs-bot authored
      7335543e
    • Sebastian Sebbie Silbermann's avatar
      [ci] Fix build-and-deploy · 3884de9b
      Sebastian Sebbie Silbermann authored
      3884de9b
    • Sebastian "Sebbie" Silbermann's avatar
    • nextjs-bot's avatar
      v16.1.0-canary.23 · 00577920
      nextjs-bot authored
      00577920
    • Sebastian "Sebbie" Silbermann's avatar