Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Breaking] Update Dynamic APIs to be async #68812

Merged
merged 14 commits into from
Sep 25, 2024
Merged

Commits on Sep 24, 2024

  1. Configuration menu
    Copy the full SHA
    52f9320 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    886799a View commit details
    Browse the repository at this point in the history
  3. headers() now returns an exotic promise of Headers

    Similar to `cookies()`, `headers()` provides access to an underlying Request in Next.js. To be optimally compatible with dynamicIO we need request access to be implemented through async APIs and have udpated this function to return a promise of Headers rather than Headers directly. To facilitate migration this API will augment the Promise with properties that allow direct access to headers. In a future version of Next.js we will remove the exotic nature of this Promise and all access will require awaiting the result.
    gnoff committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    3a65c61 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e79036f View commit details
    Browse the repository at this point in the history
  5. searchParams is now exotic

    gnoff committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    d388b00 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    9c1faa6 View commit details
    Browse the repository at this point in the history
  7. Support params as Promise

    gnoff committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    0e61cc0 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    979ca9e View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    c0de945 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    70ce74a View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    0885970 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    a9f75d6 View commit details
    Browse the repository at this point in the history
  13. Fix spelling

    gnoff committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    37bc28b View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    77f7792 View commit details
    Browse the repository at this point in the history