Skip to content

v0.0.54

Latest

Choose a tag to compare

@github-actions github-actions released this 29 May 09:13
· 13 commits to main since this release
88b1152

What's Changed

New Features

  • Added support for inline CSS parity in App Router
  • Implemented compiler.define and compiler.defineServer configuration options
  • Added compiler.removeConsole build option to strip console statements

Bug Fixes

App Router

  • Fixed static-sibling info inclusion in SSR responses
  • Fixed caching for pages with revalidate=Infinity or revalidate=false
  • Fixed module-only Vite reference errors now properly treated as action-not-found
  • Fixed forbidden() and unauthorized() to properly escalate past intermediate layouts
  • Fixed client prefetch cache to honor experimental.staleTimes configuration
  • Fixed routing to treat @children as transparent so explicit pages win over catchalls
  • Fixed action Set-Cookie header deduplication by name
  • Fixed icons.other metadata to accept single descriptor format
  • Fixed draftMode() reads inside cache scopes
  • Fixed cookie and header propagation from server actions without JavaScript
  • Fixed global-not-found chunk isolation to prevent CSS cascade issues
  • Fixed unstable_rootParams propagation to actions and route handlers
  • Fixed spacing in streamed error meta tags
  • Fixed autoscroll preservation across page refreshes
  • Fixed updateTag to throw proper error when called outside Server Actions
  • Fixed source identity preservation for intercepted renders
  • Fixed default autoscroll page target behavior

Pages Router

  • Fixed Document.getInitialProps invocation so document props reach SSR
  • Fixed app route detection during prefetch operations
  • Fixed custom pages/500 rendering on SSR errors
  • Fixed non-serializable getStaticProps/getServerSideProps error handling
  • Fixed page script emission with defer attribute in <head> by default
  • Fixed useParams snapshot stabilization for SSR
  • Fixed static page responses to return 405 with proper Allow header for invalid methods
  • Fixed 404 responses for invalid _next/static requests in worker deployment

General

  • Fixed Next.js script stylesheets to emit proper <link rel="stylesheet"> tags
  • Fixed unstable_retry to throw proper Pages Router parity error
  • Fixed webpack loader side effects to apply process.env mutations
  • Fixed build process to inline process.env.NEXT_DEPLOYMENT_ID for client and worker bundles
  • Fixed OpenTelemetry to inject experimental.clientTraceMetadata into SSR head
  • Fixed build to forward pageExtensions to Vite resolve extensions
  • Fixed middleware to stop merging original query into rewrite targets
  • Fixed Link component href/onClick forwarding in legacyBehavior mode
  • Fixed React DOM prop name translation to HTML attributes in hoisted scripts
  • Fixed route handler Set-Cookie default Path=/ when merging mutable cookies
  • Fixed routing precedence when both pages/_foo.tsx and app/ directory exist
  • Fixed development favicon.ico handling to avoid expensive 404 renders

Performance

  • Moved normalizePathSeparators utility to shared path utils
  • Reused normalizePathSeparators for static file cache path handling

Internal / Chores

  • Added comprehensive test coverage for Link component onClick/preventDefault behavior
  • Added regression tests for API route dispatch with middleware
  • Added trailing slash enforcement tests for App Router
  • Added regression tests for URL-encoded CSS paths
  • Added shallow Router.push redirect bypass tests
  • Added edge runtime and OG image API route tests
  • Added metadata regression test for dynamic icon hrefs
  • Added Link component OnNavigate fixture tests
  • Added form action regression tests
  • Added various other regression and edge case test coverage

Contributors

@Divkix
@NathanDrake2406
@james-elicx
@manNomi
@shulaoda