- 30 May, 2025 16 commits
-
-
vercel-release-bot authored
-
Donny/강동윤 authored
### What? User the custom runner for turbopack benchmarks ### Why? Turbopack is very parallel so it's better to use custom runners which has more CPU cores.
-
Donny/강동윤 authored
### What? Cleanup code for benchmarking ### Why? https://github.com/vercel/next.js/pull/79796#pullrequestreview-2879675461 --------- Co-authored-by:
Luke Sandberg <lukesandberg@users.noreply.github.com>
-
Luke Sandberg authored
Fix URL fragment and query handling in Turbopack ## What? This PR improves how URL fragments and query strings are handled in Turbopack by: 1. Standardizing the representation of fragments and queries in `AssetIdent` 2. Ensuring fragments and queries are either empty or include their prefix characters (`#` and `?`) 3. Fixing the URL parsing logic to correctly handle fragments that contain `?` character 4. Removing some ad-hoc workarounds for this issue in the `resolver` and `Assetident::to_string` ## Why? The previous implementation had inconsistencies in how fragments and queries were represented which lead to a variety of confusing issues e.g. does `AssetIdent::to_string` need to add a `?` ?, well sometimes depending on how it was constructed.
-
Luke Sandberg authored
Remove `sub_issues` from Issue representation It is dead. Part of PACK-4105
-
vercel-release-bot authored
-
Niklas Mischkulnig authored
Fix non-deterministic next font manifest order: 
-
Donny/강동윤 authored
### What? Use mimalloc in the benchmark. ### Why? I know it's a bit ridiculous, but using mimalloc stabilizes the benchmark. At least, it was the case for SWC.
-
Niklas Mischkulnig authored
Create a file `.previewinfo` (like `.rscinfo`) to store the preview mode keys (which are stored in `prerender-manifest.json` and were previously changing on every single commit) ``` "preview": { "previewModeId": "6ec938745bce9b5d51329802d1a9788a", "previewModeSigningKey": "f3df5e714dd35c14fedb15b396566ae9530e058f5dde09a82b12941214d96c4d", "previewModeEncryptionKey": "675f97882ebc73c55bc51903f4e5c8d3a17ac90108847ed1b1b90a46d84f368e" } ``` -
Niklas Mischkulnig authored
For more deterministic build outputs (at least with Turbopack)
-
Tobias Koppers authored
<!-- Thanks for opening a PR! Your contribution is much appreciated. To make sure your PR is handled as smoothly as possible we request that you follow the checklist sections below. Choose the right checklist for the change(s) that you're making: ## For Contributors ### Improving Documentation - Run `pnpm prettier-fix` to fix formatting issues before opening the PR. - Read the Docs Contribution Guide to ensure your contribution follows the docs guidelines: https://nextjs.org/docs/community/contribution-guide ### Adding or Updating Examples - The "examples guidelines" are followed from our contributing doc https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md - Make sure the linting passes by running `pnpm build && pnpm lint`. See https://github.com/vercel/next.js/blob/canary/contributing/repository/linting.md ### Fixing a bug - Related issues linked using `fixes #number` - Tests added. See: https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs - Errors have a helpful link attached, see https://github.com/vercel/next.js/blob/canary/contributing.md ### Adding a feature - Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. (A discussion must be opened, see https://github.com/vercel/next.js/discussions/new?category=ideas) - Related issues/discussions are linked using `fixes #number` - e2e tests added (https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs) - Documentation added - Telemetry added. In case of a feature if it's used or not. - Errors have a helpful link attached, see https://github.com/vercel/next.js/blob/canary/contributing.md ## For Maintainers - Minimal description (aim for explaining to someone not on the team to understand the PR) - When linking to a Slack thread, you might want to share details of the conclusion - Link both the Linear (Fixes NEXT-xxx) and the GitHub issues - Add review comments if necessary to explain to the reviewer the logic behind a change ### What? ### Why? ### How? Closes NEXT- Fixes # -->
-
Tudor Comparan authored
Dynamic pages should be async to await for the params, isn't it? <!-- Thanks for opening a PR! Your contribution is much appreciated. To make sure your PR is handled as smoothly as possible we request that you follow the checklist sections below. Choose the right checklist for the change(s) that you're making: ## For Contributors ### Improving Documentation - Run `pnpm prettier-fix` to fix formatting issues before opening the PR. - Read the Docs Contribution Guide to ensure your contribution follows the docs guidelines: https://nextjs.org/docs/community/contribution-guide ### Adding or Updating Examples - The "examples guidelines" are followed from our contributing doc https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md - Make sure the linting passes by running `pnpm build && pnpm lint`. See https://github.com/vercel/next.js/blob/canary/contributing/repository/linting.md ### Fixing a bug - Related issues linked using `fixes #number` - Tests added. See: https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs - Errors have a helpful link attached, see https://github.com/vercel/next.js/blob/canary/contributing.md ### Adding a feature - Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. (A discussion must be opened, see https://github.com/vercel/next.js/discussions/new?category=ideas) - Related issues/discussions are linked using `fixes #number` - e2e tests added (https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs) - Documentation added - Telemetry added. In case of a feature if it's used or not. - Errors have a helpful link attached, see https://github.com/vercel/next.js/blob/canary/contributing.md ## For Maintainers - Minimal description (aim for explaining to someone not on the team to understand the PR) - When linking to a Slack thread, you might want to share details of the conclusion - Link both the Linear (Fixes NEXT-xxx) and the GitHub issues - Add review comments if necessary to explain to the reviewer the logic behind a change ### What? ### Why? ### How? Closes NEXT- Fixes # --> Co-authored-by:
JJ Kasper <jj@jjsweb.site>
-
Emmanuel Oduntan authored
In the example under the "Generated Metadata" section of the page, the route is defined as `/app/blog/[slug]/page.tsx`, but the Props type uses `id` instead of `slug`. This fixes the mismatch to reflect the actual dynamic route segment Co-authored-by:JJ Kasper <jj@jjsweb.site>
-
Macw07 authored
The documentation incorrectly used `params: Promise<{ slug: string }>` in an example and attempted to use `await` in a non-async function. This commit updates the example to reflect the correct usage: - `params` should be a synchronous object: `{ slug: string }` - The page component should be declared `async` if using `await` inside This fixes a misleading example and aligns it with actual behavior in the Next.js App Router: [cause]: SyntaxError: await is only valid in async functions and the top level bodies of modules  Co-authored-by:JJ Kasper <jj@jjsweb.site>
-
Niklas Mischkulnig authored
Use a deterministic requestId so that this code has a deterministic key and thus a deterministic RSC payload to generate deterministic SSG output. ```javascript {/* Adding requestId as react key to make metadata remount for each render */} <ViewportTree key={getFlightViewportKey(requestId)} /> ``` This was previously changing on every run: <img width="1398" alt="Bildschirmfoto 2025-05-30 um 10 45 08" src="https://github.com/user-attachments/assets/36cb9864-9b27-4107-93d6-689c9d147e86" /> -
Donny/강동윤 authored
### What? Revert https://github.com/vercel/next.js/pull/78011 ### Why? Because it caused a regression like https://github.com/vercel/next.js/issues/79938 ### How? Closes https://github.com/vercel/next.js/issues/79938
-
- 29 May, 2025 14 commits
-
-
vercel-release-bot authored
-
Donny/강동윤 authored
### What? We can use codspeed for profiling the build performance, considering that these apps are very small. ### Why? We need an e2e benchmark.
-
Vercel Release Bot authored
This auto-generated PR updates the production integration test manifest used when testing Rspack.
-
Jiwon Choi authored
The Slack notification workflow didn't have if condition, so it was notified on every `build_and_deploy` job. x-ref: [slack thread](https://vercel.slack.com/archives/C0668R2391V/p1748475689878939)
-
Elliot Sutton authored
<!-- Thanks for opening a PR! Your contribution is much appreciated. To make sure your PR is handled as smoothly as possible we request that you follow the checklist sections below. Choose the right checklist for the change(s) that you're making: ## For Contributors ### Improving Documentation - Run `pnpm prettier-fix` to fix formatting issues before opening the PR. - Read the Docs Contribution Guide to ensure your contribution follows the docs guidelines: https://nextjs.org/docs/community/contribution-guide ### Adding or Updating Examples - The "examples guidelines" are followed from our contributing doc https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md - Make sure the linting passes by running `pnpm build && pnpm lint`. See https://github.com/vercel/next.js/blob/canary/contributing/repository/linting.md ### Fixing a bug - Related issues linked using `fixes #number` - Tests added. See: https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs - Errors have a helpful link attached, see https://github.com/vercel/next.js/blob/canary/contributing.md ### Adding a feature - Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. (A discussion must be opened, see https://github.com/vercel/next.js/discussions/new?category=ideas) - Related issues/discussions are linked using `fixes #number` - e2e tests added (https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs) - Documentation added - Telemetry added. In case of a feature if it's used or not. - Errors have a helpful link attached, see https://github.com/vercel/next.js/blob/canary/contributing.md ## For Maintainers - Minimal description (aim for explaining to someone not on the team to understand the PR) - When linking to a Slack thread, you might want to share details of the conclusion - Link both the Linear (Fixes NEXT-xxx) and the GitHub issues - Add review comments if necessary to explain to the reviewer the logic behind a change --> ### What? This PR fixes an issue where the `font-family` declaration in `next/font/local` is ignored when specified in `declarations`. ### Why? Currently, Next.js forces the generated variable name instead of respecting the provided `font-family`. This change ensures that when `font-family` is explicitly set in `declarations`, it is correctly applied in the generated `@font-face` CSS. ### How? - Updated `loader.ts` to respect the `font-family` declaration if explicitly defined. - Removed the restriction on `font-family` in `validate-local-font-function-call.ts`. - Added tests: - `loader.test.ts`: Ensures the `font-family` is correctly used when declared. - `validate-local-font-function-call.test.ts`: Confirms that `font-family` is now an allowed declaration. Closes NEXT- Fixes #75898 Co-authored-by:
Zack Tanner <1939140+ztanner@users.noreply.github.com>
-
Tobias Koppers authored
### What? Add a test case to make sure the compilation doesn't hang on reexport cycles
-
Tobias Koppers authored
### What? Allow errors and panics to be serialized and store them in the task output. Compare errors when setting them to avoid unnecessary invalidations when tasks error again.
-
rauno authored
Tiny PR to fix the error highlight not spanning full width of the container. https://github.com/user-attachments/assets/595b7184-e325-4b24-afdb-7683c04f0999 --- Closes NDX-1025
-
Benjamin Woodruff authored
This had bit-rotted. Sounds like we do want to keep it around for sanity checking things from time-to-time. Tested with: ``` cargo check --features turbo-tasks-backend/lmdb ```
-
Vercel Release Bot authored
This auto-generated PR updates the development integration test manifest used when testing Rspack.
-
Benjamin Woodruff authored
We have some annoying caching issues with napi, which led me to miss this in https://github.com/vercel/next.js/pull/79806. You can force a rebuild of the types with: ``` rm /tmp/*.napi_type_def.tmp cargo clean pnpm swc-build-native ```
-
Cong-Cong Pan authored
Using built-in CssChunkingPlugin implementation in Rspack. Pass test cases: test/e2e/app-dir/css-order/css-order.test.ts
-
Cong-Cong Pan authored
Use rspack.EvalSourceMapDevToolPlugin when running with Rspack The modification specifically pass the test case in: test/integration/server-side-dev-errors/test/index.test.js
-
Benjamin Woodruff authored
This lets us use `RcStr` directly in function arguments and as part of `#[napi(object)]`s. *You can just `RcStr` things!* Here's an example of rspack doing something similar for a custom napi type: https://github.com/web-infra-dev/rspack/blob/35f1126963d5ba6860e9eba939fd5d62f9aa217f/crates/rspack_regex/src/napi.rs
-
- 28 May, 2025 10 commits
-
-
Lorenzo Palmes authored
Fonts imported in a template module do not preload or preconnect when used in a template.js file. This PR adds a small fix and a e2e test. Co-authored-by:Zack Tanner <1939140+ztanner@users.noreply.github.com>
-
vercel-release-bot authored
-
Donny/강동윤 authored
### What? Update the `styled-jsx` SWC plugin to the latest ### Why? Apply https://github.com/swc-project/plugins/pull/464 x-ref: https://vercel.slack.com/archives/C08GMHRF7NC/p1748451540079049?thread_ts=1741381916.437039&cid=C08GMHRF7NC
-
Vercel Release Bot authored
This auto-generated PR updates the production integration test manifest used when testing Turbopack.
-
Vercel Release Bot authored
This auto-generated PR updates the development integration test manifest used when testing Turbopack.
-
Donny/강동윤 authored
### What? Configure a large benchmark for turbopack. ### Why? We may want to run a full benchmark for some PRs.
-
Luke Sandberg authored
## Refactor module graph to reduce memory usage ### What? This PR refactors the module graph implementation to reduce memory usage by: 1. Changing `graph_idx` from `usize` to `u32` to reduce memory footprint 2. Removing unused fields from `SingleModuleGraphModuleNode` (layer and issues) 3. Moving layer resolution to the point of use in dynamic imports and server actions This is a small progression in runtime:  ### Why? These changes optimize memory usage in the module graph, which is particularly important for large applications. By removing unused fields and using more compact types, we can reduce the memory footprint of the graph. Notably, SingleModuleGraphNode is now 24 bytes instead of 48. To make it smaller still we would need to reduce the size of visited moduel, perhaps by storing a reference to the graph that did the original visit? This would be tricky from a lifetimes perspective but much more optimal.
-
Donny/강동윤 authored
### What? This PR configures an automated benchmark for turbopack. We can run small benchmarks for all turbopack PRs, and I'll add more benchmarks with follow-up PRs. ### Why? We need a way to track performance consistently.
-
Ivan Vasilov authored
This PR updates the `with-supabase` template to better auth pages, Tailwind v4 and newest `components.json` for full compatibility with shadcn/ui. The `(auth-pages)` folder has been removed. For auth, the template is now using the [password based auth block](https://supabase.com/ui/docs/nextjs/password-based-auth) from the Supabase UI Library which makes it easier to update it and keep it up-to-date. --------- Co-authored-by:
Lee Robinson <lee@leerob.com>
-
Sebastian "Sebbie" Silbermann authored
-