-
Notifications
You must be signed in to change notification settings - Fork 27.9k
Comparing changes
Open a pull request
base repository: vercel/next.js
base: v15.2.2
head repository: vercel/next.js
compare: v15.2.3
- 9 commits
- 57 files changed
- 4 contributors
Commits on Mar 17, 2025
-
[metadata] re-insert icons to head for streamed metadata (#76915)
### What Re-insert the metadata icons under body tag into head tag to ensure they can be proper displayed. ### Why * For chromium based browsers (Chrome, Edge, etc.) and Safari, icons need to stay under `<head>` to be picked up by the browser. Firefox doesn't have this requirement. * Firefox will always render svg > icon > png, so it doesn't matter to it. Made a test in https://icons-order-test.vercel.app/, you can play with the test cases here. These links can see the comparsion of the approach in the this PR. During deployment it's very hard to verify Safari as it's pretty broken. But deploymet works well. After we re-insert the icon from body into head, they can be properly displayed across all the browsers. Note: We insert the script during streaming rather than using a jsx element right after metadata to avoid the hydration errors Closes #76810 Closes NDX-951
Configuration menu - View commit details
-
Copy full SHA for 88deb12 - Browse repository at this point
Copy the full SHA 88deb12View commit details -
[ts-hint] fix vscode type hint plugin enabling (#77099)
### What Fix the enabling of ts hint plugin in vscode. This is a regression introduced in #76300, where we use the plugin config `{ "name": "next" }` to directly check if it has a `enabled` property, and determine if we should enable the plugin. This PR fixed the way of reading plugin config and keep it enabled by default. Fixes 76980
Configuration menu - View commit details
-
Copy full SHA for 1e1ff40 - Browse repository at this point
Copy the full SHA 1e1ff40View commit details -
[metadata] remove the default segement check for metadata rendering (#…
…77119) ### What Remove the default segment checks for metadata rendering. When the `default.js` is rendered, it should still have the metadata. It was a condition added due to possible of duplicated metadata, but it's resolved by other conditions such as only rendering in child slot, and hoisting metadata into rsc head for navigation.
Configuration menu - View commit details
-
Copy full SHA for 4698ad6 - Browse repository at this point
Copy the full SHA 4698ad6View commit details -
Update middleware request header (#77201)
This just adds an additional header to our internal filtering list for middleware.
Configuration menu - View commit details
-
Copy full SHA for 52a078d - Browse repository at this point
Copy the full SHA 52a078dView commit details -
Ensure deploymentId is used for CSS preloads (#77210)
This just ensures we use the deployment ID if configured for preload CSS links. x-ref: [slack thread](https://vercel.slack.com/archives/C03S8ED1DKM/p1742146672858189)
Configuration menu - View commit details
-
Copy full SHA for 8151cb6 - Browse repository at this point
Copy the full SHA 8151cb6View commit details -
Add dev warning for cross-origin and stabilize allowedDevOrigins (#77044
) Adding a warning when we block cross-origin requests in dev so users are aware this is why easier and know how to allow the origin through as custom setups can use different origins and it be valid. x-ref: #76880 (comment) --------- Co-authored-by: Jiachi Liu <inbox@huozhi.im> Co-authored-by: Zack Tanner <1939140+ztanner@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 5e59da1 - Browse repository at this point
Copy the full SHA 5e59da1View commit details -
unify allowed origin detection handling (#77053)
This unifies the CSRF origin detection to mirror what we do for server action origins, which supports things like wildcard matches (below the domain level) Fixes #76999
Configuration menu - View commit details
-
Copy full SHA for adf5462 - Browse repository at this point
Copy the full SHA adf5462View commit details -
Update default allowed origins list (#77212)
Per feedback in #76880 this ensures we ocnsider `*.localhost` as allowed by default for the dev origins list.
Configuration menu - View commit details
-
Copy full SHA for 2fcae1d - Browse repository at this point
Copy the full SHA 2fcae1dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 535e26d - Browse repository at this point
Copy the full SHA 535e26dView commit details
There are no files selected for viewing