1. 12 Nov, 2025 1 commit
  2. 11 Nov, 2025 1 commit
  3. 28 Oct, 2025 14 commits
  4. 27 Oct, 2025 21 commits
  5. 24 Oct, 2025 3 commits
    • nextjs-bot's avatar
      v16.0.1-canary.2 · 498349c3
      nextjs-bot authored
      498349c3
    • Wyatt Johnson's avatar
      fix(static-paths): add depth tracking to parallel route param resolution (#85319) · 3cf4b17b
      Wyatt Johnson authored
      ### What?
      
      Adds depth-aware parameter resolution to `resolveParallelRouteParams` by
      migrating from simplified parallel route segments to LoaderTree
      structure.
      
      ### Why?
      
      Dynamic and intercepted parameters in parallel routes were not being
      correctly extracted when used at nested depths. The previous
      implementation didn't account for:
      - Route nesting level when matching pathname segments to parameters
      - Route groups (which don't affect depth) vs interception routes (which
      do)
      - Embedded parameters that need resolution before depth calculation
      
      This caused incorrect behavior in real-world scenarios like:
      - Nested parallel routes at different depths
      - Interception routes with parallel routes
      - ISR/generateStaticParams with complex routing structures
      
      ### How?
      
      1. **LoaderTree Integration**: Migrated from `ParallelRouteSegment[]` to
      LoaderTree structure for accurate routing hierarchy representation
      2. **Depth Tracking**: Recursively traverse LoaderTree to calculate
      depth, accounting for:
         - Static segments (increment depth)
         - Dynamic segments (increment depth)
         - Route groups `()` - don't increment depth
         - Interception routes `(.)` `(..)` `(...)` - do increment depth
      3. **Smart Parameter Extraction**: 
         - Check if pathname segment at calculated depth is a placeholder
         - Only extract if segment is known (not `[paramName]`)
         - Resolve embedded params before extraction
      4. **Comprehensive Tests**: Added test coverage for:
         - Dynamic params at various depths
         - Route groups vs interception routes
         - Catchall/optional-catchall with depth
         - Complex nested scenarios
      
      Fixes #85251
      3cf4b17b
    • Joseph's avatar
      docs: link to MCP guide from upgrade (#85308) · a135a7d5
      Joseph authored
      a135a7d5