- 14 Jun, 2025 3 commits
-
-
vercel-release-bot authored
-
Hendrik Liebau authored
When a route with dynamic params is prerendered using defined params from `generateStaticParams`, the filled Resume Data Cache is now used for the final-phase prerender of the matching optional fallback shell. This ensures that the fallback shell can reuse existing cache entries, which partially mitigates the performance hit we accepted by splitting up the prerendering into two phases. Furthermore, it will allow us to short-circuit fallback params access in `"use cache"` functions. Instead of having to wait for the timeout error, we will be able to regard cache misses (excluding cached pages and layouts, whose params access is already handled swiftly) to be caused by including the params in the cache key, if `allowEmptyFallbackShell` is `true`.
-
Donny/강동윤 authored
### What? Implement a basic form of Immutable turbo tasks. At this stage, we only detect statically analyzble turbo tasks, and handle them specially. We only skip activeness tracking with this PR.
-
- 13 Jun, 2025 18 commits
-
-
vercel-release-bot authored
-
Donny/강동윤 authored
### What? Modify the caching logic to include the whole filename when compiling with the React Compiler. ### Why? When RC is enabled, we cannot cache the config merely using the extension.
-
Donny/강동윤 authored
### What? Retry HMR benchmarks, but make it less flaky. This PR - Removes flaky benchmarks (`hmr_initial_compilation`, `hmr_subscription`) - Moves flaky parts (`benchmark_initial_compilation`) out of the iteration loop by moving them to the setup phase. ### Why? We need a stable benchmark for dev performance.
-
Hendrik Liebau authored
When `experimental.dynamicIO` is enabled, we're now prerendering fallback shells for routes that have some entries defined in `generateStaticParams` in a second phase, after the more specific route are prerendered. This will allow us to offer better error messages when those fallback prerenders timeout due to accessing params inside of `"use cache"`. In the future, we might even be able to avoid waiting for a timeout in this case, if we share the resume data cache between the two prerender phases. This would also reduce most of the build performance cost we're adding with this PR temporarily (when the feature flag is enabled). [^1] We're also fixing a bug with this PR, where PPR shells for routes with dynamic params were listed twice in the build output. [^1]: Note that `fetch` responses are already cached and shared between the two phases.
-
Donny/강동윤 authored
### What? Retry https://github.com/vercel/next.js/pull/80414. This time, I added `invalidator` required only for turbo tasks function, and made it real assertion. ### Why? We need it. ### How? Closes PACK-4826
-
Luke Sandberg authored
Allow items in `value_trait` definitions to not be marked with `turbo_tasks::function` As a POC remove the `function` attribute from `Issue::severity` and all implementors. In a followup i will explore removing `turbo_task::function` from more `Issue` items. Now if you define a `turbo_tasks::value_trait` because you want to pass around values like `Vc<Box<dyn Trait>>` or emit it as a collectible you don't have to make every trait item a `turbo_tasks::function`. To call these items you will need to `vc.into_trait_ref().await?` and then you can call the methods normally. This has an odd effect of kind of splitting the `trait` in half, some methods can be called on `Vc<Self>` and some can be called on `&self`. Annoyingly you cannot make these items `async` since `value_trait` needs to dyn-compatible, but still this unlocks a lot of opportunities. h/t to kdy1@ for unblocking me on how to use ptr_metadata and how to resolve the issues i was having with Rust-Analyzer
-
Donny/강동윤 authored
### What? Trivial `Cow` optimization for AQMF data ### Why? We can avoid calling `to_vec()` on this data, and according to the profiling result, compression was a memory hog.
-
Hendrik Liebau authored
During build-time prerendering, when we're only caching `fetch` calls implicitly to improve build performance, and not because the user has explicitly opted into fetch caching, we should not enforce the 2MB size limit. 1. The size limit is not required of the file-system-based cache that's used at build time. 2. The warning is not helpful to users, as they are not aware of the implicit caching behavior. Related PRs: - https://github.com/vercel/next.js/pull/68546 - https://github.com/vercel/next.js/pull/79384
-
Joseph authored
Fixes: #80472 Link to good-first-issue lacked some encoding
-
Sherri Cui authored
### What? Fixes small bug in Javascript code example where same variable is declared again. ### How? Same as this PR #74744 which fixed the Typescript code. Co-authored-by:Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com>
-
Mauro Bonfietti 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 # --> Co-authored-by:
Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com>
-
Vercel Release Bot authored
-
Vercel Release Bot authored
-
Vercel Release Bot authored
-
Vercel Release Bot authored
-
Niklas Mischkulnig authored
Don't revisit the nodes repeatedly because of differing `ExportUsage`.
-
Hendrik Liebau authored
The test suite already tests more variations of fallback shells than just the empty ones. There will also be added more tests in the future. We're renaming it to reflect that.
-
Cong-Cong Pan authored
Rspack currently lacks support for `loadModule` in loader contexts. As an alternative solution, we can using native fn implemented by us using SWC to replace load module. --------- Co-authored-by:Benjamin Woodruff <benjamin.woodruff@vercel.com>
-
- 12 Jun, 2025 18 commits
-
-
vercel-release-bot authored
-
Donny/강동윤 authored
### What? ChangeLog: https://github.com/swc-project/swc/compare/swc_core%40v27.0.2...swc_core%40v27.0.4 This PR is expected to regress the build performance a bit but with much better minification rate for some edge cases. ### Why? To apply - https://github.com/swc-project/swc/pull/10603 - https://github.com/swc-project/swc/pull/10604 - https://github.com/swc-project/swc/pull/10602
-
Donny/강동윤 authored
### What? Use CSS string for CSS errors instead of Rust debug representation, and remove `lightningcss` text from the error message. ### Why? We don't need them.
-
Donny/강동윤 authored
Reverts vercel/next.js#80414 it turns out that we were not running debug assertions from CI. x-ref: https://vercel.slack.com/archives/C03EWR7LGEN/p1749765841011769
-
Donny/강동윤 authored
### What? Remove a flaky benchmark. ### Why? https://github.com/vercel/next.js/pull/80414#issuecomment-2963529621 This PR is not supposed to change performance greatly.
-
Donny/강동윤 authored
### What? Apply https://github.com/swc-project/plugins/pull/471 ### Why? To fix the content escaping bug of `styled-jsx`
-
Donny/강동윤 authored
### What? Make `#[turbo_tasks::function(invalidator)]` a thing. It's a preparation for the automatic (runtime) detection of statically-analyzable immutable turbo task. ### Why? We need it for an advanced optimization
-
Donny/강동윤 authored
### What? Configure HMR benchmark. I'm not sure if this benchmark would be stable enough, but let's try. I'll remove this from the automated benchmark later this week if it turns out to be flaky. ### Why? x-ref: https://vercel.slack.com/archives/C06PPGZ0FD3/p1748943158878159 ### How? Closes PACK-4758
-
Joshua Hannaford authored
## Improve multiple lockfiles warning message ### What? Enhances the warning message when multiple lockfiles are detected to explicitly show which lockfile was ultimately selected. Based on feedback from @lukesandberg in a previous PR. ### Why? The previous warning message only listed the lockfiles that should be removed but didn't indicate which one was actually being used. This improvement makes it clearer to users which lockfile Next.js is selecting when multiple are present. ### How? Updated the warning message to include "Selecting [selected lockfile]" before suggesting which lockfiles to remove.
-
Vercel Release Bot authored
-
Vercel Release Bot authored
-
Jiachi Liu authored
-
Sebastian "Sebbie" Silbermann authored
We never actually invoked the listeners attached by React. Updates only worked on soft-navigation because we also re-render the DevOverlayRoot and don't bail out anywhere at the moment. Just invoking the listeners is not sufficient after https://github.com/vercel/next.js/pull/79699 since userspace and dev-overlay would read different versions of `listeners`. I ported the segment explorer into the new folder structure. Updates now flow through the `dispatcher` and then invoking the listeners actually works. Though mid term we should move the segment tree into actual React tree to get rid of the sync updates. I also noticed that we're missing an implementation for a remove operation which is required to show the correct state during soft navigations.
-
Joseph authored
Fixes: https://github.com/vercel/next.js/issues/80419
-
Dominik Ferber authored
-
vercel-release-bot authored
-
Tobias Koppers authored
### What? fix typo discovered by @bgw
-
Jiachi Liu authored
-
- 11 Jun, 2025 1 commit
-
-
vercel-release-bot authored
-