-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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
+11,746
−1,014
Commits on Sep 24, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 52f9320 - Browse repository at this point
Copy the full SHA 52f9320View commit details -
Configuration menu - View commit details
-
Copy full SHA for 886799a - Browse repository at this point
Copy the full SHA 886799aView commit details -
headers()
now returns an exotic promise of HeadersSimilar 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.
Configuration menu - View commit details
-
Copy full SHA for 3a65c61 - Browse repository at this point
Copy the full SHA 3a65c61View commit details -
Configuration menu - View commit details
-
Copy full SHA for e79036f - Browse repository at this point
Copy the full SHA e79036fView commit details -
Configuration menu - View commit details
-
Copy full SHA for d388b00 - Browse repository at this point
Copy the full SHA d388b00View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9c1faa6 - Browse repository at this point
Copy the full SHA 9c1faa6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0e61cc0 - Browse repository at this point
Copy the full SHA 0e61cc0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 979ca9e - Browse repository at this point
Copy the full SHA 979ca9eView commit details -
Configuration menu - View commit details
-
Copy full SHA for c0de945 - Browse repository at this point
Copy the full SHA c0de945View commit details -
Configuration menu - View commit details
-
Copy full SHA for 70ce74a - Browse repository at this point
Copy the full SHA 70ce74aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0885970 - Browse repository at this point
Copy the full SHA 0885970View commit details -
Configuration menu - View commit details
-
Copy full SHA for a9f75d6 - Browse repository at this point
Copy the full SHA a9f75d6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 37bc28b - Browse repository at this point
Copy the full SHA 37bc28bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 77f7792 - Browse repository at this point
Copy the full SHA 77f7792View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.