- 15 Jan, 2025 10 commits
-
-
vercel-release-bot authored
-
Will Binns-Smith authored
This: - Allows for synchronous lookup of a module’s availability information without async resolving Vcs - Creates a single structure that combines the entire availability information hierarchy into one. While not strictly necessary, without Vc caching, the hierarchy of structs only provided overhead without advantage
-
Benjamin Woodruff authored
fix(turbopack-swc-utils): Don't panic if issues aren't emitted, use `#[must_use]` annotation (#74906) This is creating a ton of logspam for me when running tests. I can get dozens of these panics in a row. It appears that there are functions that can return an `anyhow::Error` between collecting issues and emitting them. In those cases, it's not practical to ensure the issues are always emitted. Instead, just settle for a much weaker compile-time check with `#[must_use]` that at least ensures something happens with `IssueCollector`.
-
Tobias Koppers authored
### What? improves the heuristic for task optimization. It minimizes the produce of `(uppers - 1) * follower` and chooses a bigger aggregation number based on that. This allows for many uppers when there are no followers. That is often the case when a task is shared between multiple pages. Or for tasks are are near the leafs of the graph.
-
Tobias Koppers authored
### What? fix an earlier PR by completely removing children count
-
Benjamin Woodruff authored
I'm trying to use this to debug a hang in turbo-tasks. There's some overlap with https://turbo-trace-viewer.vercel.app/, but this is more realtime, which is useful for finding hanging futures. There's some similar functionality in turbopack-cli: https://github.com/vercel/next.js/blob/c51b53680de4b1c00cd66bb00b7ff6b878646583/turbopack/crates/turbopack-cli/src/dev/mod.rs#L349 Enable this by building with `--features next-swc-napi/tokio-console`.
-
Wyatt Johnson authored
Previously, the segment path handling was returning before the `x-nextjs-cache` headers were sent, this moves it below that to ensure that the correct cache headers are added.
-
Vercel Release Bot authored
-
Hendrik Liebau authored
Fixes a regression caused by #74835. [x-ref](https://github.com/vercel/next.js/actions/runs/12773698779/job/35607288377)
-
Zack Tanner authored
`build_reusable` assumes `fnm` is available but on GH hosted runners we have to ensure it's installed. This adds an installation step if fnm is not available. Fixes failing deployment tests, eg: https://github.com/vercel/next.js/actions/runs/12778327338/attempts/3 Validated in https://github.com/vercel/next.js/actions/runs/12778954324
-
- 14 Jan, 2025 30 commits
-
-
vercel-release-bot authored
-
Zack Tanner authored
Closes the popover or overlay when pressing the escape key. https://github.com/user-attachments/assets/20eb7bab-c753-40cf-8182-e655c6f31b35
-
Zack Tanner authored
Removes the need for custom CSS to style these and also enables keyboard interactivity.
-
Jiwon Choi authored
This PR added a `cmd + .` keyboard shortcut for the DevTools Indicator. ### Mac Light https://github.com/user-attachments/assets/5d99098a-3983-460b-ad9c-1d4f7c24220d ### Mac Dark https://github.com/user-attachments/assets/de71b668-c79a-4962-a105-fc4b2cbd9a64 ### Windows Light https://github.com/user-attachments/assets/6f615f27-2871-41a3-aa39-7592237e63ad ### Windows Dark https://github.com/user-attachments/assets/d5997095-5161-4d1f-a69c-54e74f032821 Closes NDX-568 --------- Co-authored-by:
Jiachi Liu <inbox@huozhi.im>
-
Darius Cepulis authored
Co-authored-by:Jiachi Liu <inbox@huozhi.im>
-
Darius Cepulis authored
-
Jude Gao authored
| **Change** | **Before** | **After** | |------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------| | **Padding: 12px to 6px** |  |  | | **Hover: Non-selectable row** |  |  | | **Issue count icon background color** |  |  | | **Close popover on outside click** | [Before](https://github.com/user-attachments/assets/545ca252-bf3e-4ba6-b2aa-b8e02069eb4a) | [After](https://github.com/user-attachments/assets/c2a4f2cf-5642-4b9e-8ce4-1a44b8db3a53) | | **Works with high z-index elements** | [Before](https://github.com/user-attachments/assets/1bdf14ce-afb4-4db8-91e3-b1d9647571be) |  |
-
Donny/강동윤 authored
### What? Fix tree shaking with `import * as R from 'ramda'`. ### Why? It's required ### How? Closes PACK-3684 --------- Co-authored-by:
Tobias Koppers <tobias.koppers@googlemail.com> Co-authored-by:
Niklas Mischkulnig <4586894+mischnic@users.noreply.github.com>
-
Sebastian "Sebbie" Silbermann authored
We already know all the cases where we currently fail to restore scroll (https://github.com/vercel/next.js/pull/74751/). Users cannot work around this warning so it's pure noise.
-
vercel-release-bot authored
-
Jude Gao authored
This PR addresses the following issues and improvements: 1. Apply a style reset to Storybook for consistency. 2. Update NextLogo element from div to button to improve accessibility. 3. Add a press effect to shrink NextLogo for better interactivity. 4. Ensure the pointer cursor is consistent across the entire NextLogo area. 5. Add a box shadow to NextLogo for improved visual depth. 6. Optimize animation by refining speed and sequence. 7. Replace hardcoded colors with CSS variables to enable dark mode support. 8. Fix overflow issues with effects. 9. Resolve black background overflow problem. 10. Enhance SVG anti-aliasing for a cleaner appearance. 11. Center the logo by moving it to the right by 1 pixel. This PR serves as a fast-follow to https://github.com/vercel/next.js/pull/74833
-
Andrew Clark authored
This adds a new internal priority level to the prefetch queue for links that are hovered or touched. The idea is that if a user hovers over a link, they're much more likely to click on it. The elevated priority is added on mouseenter/touchstart. It is _not_ removed on mouseleave/touchend, because even though the user left the link without navigating to it, the link is still more likely to be navigated to than a link that was never hovered at all. Because the prefetch queue is last-in-first-out, the highest priority link is whichever link was most recently hovered.
-
Andrew Clark authored
We use an IntersectionObserver to prefetch links when they enter the viewport. This updates the behavior to cancel the prefetch if the link exits the viewport before it completes. This can greatly reduce the amount of data transfer caused by prefetching, however, the impact of this change will depend on the user's network conditions. The faster the network conditions, the more likely the link will have already been prefetched by the time the link exits the screen. We'll need a different strategy for limiting prefetch data transfer in fast network conditions, perhaps by tracking and throttling the overall bitrate.
-
Andrew Clark authored
The Link component initiates a prefetch whenever it enters the viewport, but currently the implementation works by setting an `isVisible` state to true, rerendering the component, and calling `router.prefetch` inside a `useEffect` hook. This extra render is not necessary — we can initiate the prefetch directly inside the IntersectionObserver's event handler. The bulk of the changes in this commit involve removing the use of the `useIntersection` abstraction and inlining the IntersectionObserver into the Link module. The removal of this indirection will make it easier to add more sophisticated scheduling improvements, like canceling the prefetch on viewport exit, and increasing the priority of the prefetch during hover.
-
Andrew Clark authored
This implements support in the Segment Cache for "full" link prefetches, typically initiated by passing `prefetch={true}` to a `<Link>`. The goal of a full prefetch is to request all the data needed for a navigation, both static and dynamic, so that once the navigation occurs, the router does not need to fetch any additional data. So, a full prefetch implicitly instructs the client cache to treat the response as static, even the dynamic data. The implementation is largely the same as what we do to support non-PPR-enabled routes — a request tree is sent to the server describing which segments are already cached and which ones need to be rendered. While constructing the request tree, if all the segments are already in the client cache, the request can be skipped entirely. The main difference is that a full prefetch will only reuse a cached segment entry if it does not contain any dynamic holes. -
Vercel Release Bot authored
-
Jiachi Liu authored
-
JJ Kasper authored
As discussed this replaces our Azure pipelines handling with our own runners instead. This allows us to build the `next-swc` binary to run tests against for Windows when necessary instead of trying to leverage the canary binary which requires any relevant changes to have been published which can cause us to miss Windows specific failures until after a canary is published. This also has the benefit of us being able to consolidate our CI config for Windows/Linux for better consistency. Since running workloads on Windows is slower still this just starts with copying over the tests we had configured previously although we can look at adding more we see useful for catching regressions.
-
Jiachi Liu authored
### What Follow up of #74647, do not enque warnings otherwise it's showing a message of updating `tsconfig.json` inside nextjs monorepo when you do `pnpm next <app path>` ``` We detected TypeScript in your project and reconfigured your tsconfig.json file for you. Strict-mode is set to false by default. ``` This is because when there's action we'll always log this.
-
Tobias Koppers authored
Rename AggregateRoot to Activeness and split into both sources improve readablility add active_counter as source of activeness add Debug for DequeSet <!-- 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 # -->
-
Tobias Koppers authored
improve performance test case add mark_as_completed fix aggregation graph bug optimize update make sure to not miss the power_of_two mark add threshold for leaf uppers add test case <!-- 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 # -->
-
Zach Jaensch 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 --> Apologies in advance if I have missed something in the contributing process. Fixes #52925 ### What? Adds metadata config option for pagination link tags. ### Why? The `<link rel="prev"` and `<link rel="next"` are used by search crawlers and can help with SEO performance. For more information: https://developers.google.com/search/blog/2011/09/pagination-with-relnext-and-relprev ### How? Uses existing patterns for metadata config. Co-authored-by:
Jiachi Liu <inbox@huozhi.im>
-
Jiwon Choi authored
This PR added the Turbopack story for Error Containers: `BuildError`, `Errors`, and `RootLayoutMissingTagsError`.
-
vexcat authored
Fixes #74843 --------- Co-authored-by:
Gabriel Pulido <gpulido-ecw@cricut.com> Co-authored-by:
Hendrik Liebau <mail@hendrik-liebau.de>
-
Tobias Koppers authored
add tracing to task_execution_completed add tracing for strongly consistent read improve aggregation update tracing <!-- 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 # -->
-
Jude Gao authored
Note: This is part of the new dev overlay initiative, so it's only enabled when the new overlay experience is turned on. There are two kinds of loading states, namely, `build` and `render`. - you will see the `build` indicator when you make a client navigation that has not been built to a new route OR during an HMR update - you will see the `render` indicator while React processes the router transition -- callout: we currently only support `render` status in App Router Here is a quick demo of what it looks like - you will see that the `build` is using a more muted colour than `render`: <div class='graphite__hidden'> <div>🎥 Video uploaded on Graphite:</div> <a href="https://app.graphite.dev/media/video/rKSEEwxbNzdFs9t0yyxN/b0b48adf-01d1-4ac9-a747-9f5808cfa929.mp4"> <img src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/rKSEEwxbNzdFs9t0yyxN/b0b48adf-01d1-4ac9-a747-9f5808cfa929.mp4"> </a> </div> <video src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/rKSEEwxbNzdFs9t0yyxN/b0b48adf-01d1-4ac9-a747-9f5808cfa929.mp4">CleanShot 2025-01-13 at 14.24.28.mp4</video> Note on implementation detail: We previously had a mechanism to surface the build status. We extended that mechanism to display the status in the new indicator UI without adding new HMR event bindings. Since the render status is a new requirement and specific to the new overlay, it is directly coupled with the overlay and plumbed separately from the build status. -
Tobias Koppers authored
add count method to storage avoid tracking children count <!-- 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 # -->
-
Jiwon Choi authored
This PR synced the Terminal component style with the CodeFrame component for the Build Error. Technically, we may merge those two, but we haven't yet, as we need to consider more edge cases for the Build Error. ### Light  ### Dark  Closes NDX-644
-
Jiachi Liu authored
-
Jiwon Choi authored
This PR added Hydration Error Code Frame. ### Light https://github.com/user-attachments/assets/1e44cf6b-f3f3-498d-a771-876282d485b3 ### Dark https://github.com/user-attachments/assets/1098cb51-54ff-4bec-a12b-27d09b469be9 Closes NDX-611
-