next.js
e8821dd2 - Widen Turbopack maxDuration to u64 (#101116)

Commit
2 days ago
Widen Turbopack maxDuration to u64 (#101116) ## Summary Widen Turbopack's `maxDuration` storage and parser from `u32` to `u64`, allowing values above `4294967295` without tightening Webpack's existing validation. Both the main segment config and legacy fallback use the wider type. Keep validation for finite, non-negative, static integers. Reject values at or above `2^64` before the float-to-integer cast: `u64::MAX` rounds up to `2^64` as an `f64`, so the upper bound must be exclusive. Enable the existing `4294967296` regression under both bundlers, checking rendering and the exact functions-config manifest value. JavaScript's number precision is unchanged. Split from #101086. ## Verification - Confirmed the acceptance regression fails with the original `u32` bindings. - Full production segment-config precedence suite passed under Webpack and Turbopack with bindings built from this change, including the above-u32 value, existing valid boundaries, invalid values, and Pages Router precedence cases. - Rust formatting and `cargo check -p next-core -p next-api`, changed-test formatting/lint, test TypeScript checks, and framework TypeScript checks passed. <!-- NEXT_JS_LLM --> <!-- fleet bb50a592-84e4-4598-b155-9736bbef6d5a --> Co-authored-by: vercel-fleet-prod[bot] <318278635+vercel-fleet-prod[bot]@users.noreply.github.com>
Author
Parents
Loading