1. 24 Nov, 2025 4 commits
  2. 23 Nov, 2025 2 commits
  3. 22 Nov, 2025 5 commits
  4. 21 Nov, 2025 21 commits
  5. 20 Nov, 2025 8 commits
    • nextjs-bot's avatar
      v16.0.2-canary.27 · 2300bb20
      nextjs-bot authored
      2300bb20
    • Vercel Release Bot's avatar
      Update Rspack development test manifest (#86332) · 470ea7e2
      Vercel Release Bot authored
      This auto-generated PR updates the development integration test manifest used when testing Rspack.
      470ea7e2
    • nextjs-bot's avatar
    • Kazi Mahbubur Rahman's avatar
      docs: add example for enabling both AVIF and WebP image formats for better image… · 1dd580da
      Kazi Mahbubur Rahman authored
      docs: add example for enabling both AVIF and WebP image formats for better image optimization (#86191)
      
      ## Title
      docs: add example for enabling both AVIF and WebP image formats
      
      ## Description
      
      ### What?
      This PR enhances the image component documentation by adding examples
      showing how to enable both AVIF and WebP image formats together in
      `next.config.js`. It also updates the `image-component` example to
      demonstrate this configuration.
      
      ### Why?
      Currently, the documentation only shows examples for:
      - WebP only (default): `formats: ['image/webp']`
      - AVIF only: `formats: ['image/avif']`
      
      However, many developers want to enable both formats together to:
      - Prefer AVIF for browsers that support it (better compression, ~20%
      smaller files)
      - Fall back to WebP for broader browser compatibility
      - Maximize image optimization across different browsers
      
      This configuration is a best practice but wasn't clearly documented with
      an example.
      
      ### How?
      - Added example configuration `formats: ['image/avif', 'image/webp']` to
      App Router image component documentation
      - Added the same example to Pages Router (legacy) image component
      documentation for consistency
      - Updated `examples/image-component/next.config.js` to demonstrate the
      configuration
      - Added clarification that the order matters - Next.js uses the first
      format in the array that the browser supports
      
      ### Changes Made
      - `docs/01-app/03-api-reference/02-components/image.mdx` - Added AVIF +
      WebP example
      - `docs/02-pages/04-api-reference/01-components/image-legacy.mdx` -
      Added AVIF + WebP example
      - `examples/image-component/next.config.js` - Added formats
      configuration
      
      ### Testing
      - [x] Documentation changes only - no code changes
      - [x] Verified examples are syntactically correct
      - [x] Checked that formatting follows Next.js documentation guidelines
      
      ### Checklist
      - [x] Run `pnpm prettier-fix` to fix formatting issues (if applicable)
      - [x] Documentation follows the docs guidelines
      - [x] Changes are clear and helpful for developers
      
      ---------
      Co-authored-by: 's avatarJoseph <joseph.chamochumbi@vercel.com>
      1dd580da
    • Tobias Koppers's avatar
      Turbopack: add NEXT_TURBOPACK_WRITE_ROUTES_HASHES_MANIFEST to write hashes into manifest (#86257) · f7b7f3c1
      Tobias Koppers authored
      ### What?
      
      Add an env var to write route hashes into a diagnostics file.
      f7b7f3c1
    • Tobias Koppers's avatar
      Turbopack: test if unused self arguments are filtered (#86353) · 2d01e08e
      Tobias Koppers authored
      ### What?
      
      add test case for self argument filtering
      2d01e08e
    • Will Binns-Smith's avatar
      next-analyze: improve network error visuals (#86222) · 24033486
      Will Binns-Smith authored
      This improves how network errors (such as when the bundle analyzer error server is shut down) are shown.
      
      Fixes PACK-5877
      
      ![image.png](https://app.graphite.com/user-attachments/assets/69e57bb7-03ca-45ec-9816-f4bc512bfd58.png)
      
      ![image.png](https://app.graphite.com/user-attachments/assets/450ed52c-5368-49ee-a149-e7b17a8c21db.png)
      24033486
    • Luke Sandberg's avatar
      [turbopack] Refactor the analyzer to fix a few issues and prepare to split it up (#86265) · e07cc5cc
      Luke Sandberg authored
      # Refactor Analyzer State Management in Turbopack
      
      This PR refactors the state management in the Turbopack ECMAScript analyzer to improve code organization and maintainability. The changes include:
      
      - Introduced a `LexicalContext` enum to track the current execution context (function, module, control flow) and remove most dependencies on AstPath
      - Moved early return stack and variable declaration kind into the `AnalyzerState` struct
      - Added helper methods for entering and exiting different block types
      - Improved handling of nested blocks and control flow
      - Fixed unreachable code detection in anonymous blocks which allows us to drop some redundant unreachable effects from loops
       - Handle more cases for nested `var` declarations
      
      These refactorings are all either fixing minor issues or regularizing state management.  This is preparation for splitting this AST traversal into two pieces.
      e07cc5cc