- 06 May, 2024 12 commits
-
-
vercel-release-bot authored
-
JJ Kasper authored
This is failing to compile for some of our targets to reverting to unblock CI Reverts vercel/next.js#65410 Closes NEXT-3331
-
Sebastian Silbermann authored
Pages router: Use attribute-based head children reconciler when `strictNextHead` is enabled (#65408) Closes NEXT-3326
-
Vercel Release Bot authored
This auto-generated PR updates the development integration test manifest used when testing Turbopack.
-
vercel-release-bot authored
-
Tim Neutkens authored
## What? Implements support for running the Turbopack trace server, which is the websocket server that powers https://turbo-trace-viewer.vercel.app/ when using `NEXT_TURBOPACK_TRACING=1 NEXT_TURBOPACK_TRACE_SERVER=1`. Currently you have to manually run the server through the Turbo repository which in practice means that only people working on Turbopack are able to run it. With the bindings implemented anyone should be able to run the trace server. Note that the traces that come out of Turbopack are very low level, they're meant for optimizing Turbopack like finding slowdowns / large memory usage / optimizing performance. However, it's useful for people that want to peek into why their application is slow to compile. I.e. we've used https://turbo-trace-viewer.vercel.app to investigate reports in #48748. This PR adds support for `trace.log` by default, so if you add `NEXT_TURBOPACK_TRACING=1 NEXT_TURBOPACK_TRACE_SERVER=1` it will automatically select the `trace.log` for the current instance of Next.js. You can only have one trace server running at the same time. ### `next internal` In order to support running the trace server standalone, which is useful for investigating trace files other people have shared, I've added a new subcommand `internal` that is not covered by semver / use at your own risk. It's meant for internal tools that are useful to be bound to the version of Next.js, the turbo-trace-server is a great example of that as it has an internal binary format for storing data that needs to match the trace.log file. If you want to take a look at `.next/trace` instead the new `next internal` subcommand can be used for that: ```sh # Replace [path] with a path to a file. next internal turbo-trace-server [path] ``` For example: ```sh next internal turbo-trace-server ~/Downloads/trace ``` Currently the trace server does not support loading multiple files, just hasn't been implemented yet. Once we can load two or more files we can load both `.next/trace` and `trace.log` when `NEXT_TURBOPACK_TRACE_SERVER=1` and support multiple paths passed to `next internal turbo-trace-server`. ### Turbopack upgrade PR includes a Turbopack upgrade: * https://github.com/vercel/turbo/pull/8073 <!-- OJ Kwon - feat(webpack-loaders): support dummy span interface --> * https://github.com/vercel/turbo/pull/8083 <!-- OJ Kwon - fix(webpack): print resource, project path when relative calc fails --> * https://github.com/vercel/turbo/pull/8094 <!-- Tim Neutkens - Implement bindings for Turbopack trace server --> <!-- 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 # --> Closes NEXT-3328
-
Zack Tanner authored
When `notFound()` is thrown from metadata, it's caught by a `<MetadataOutlet />` rendered as a sibling to the page component. But we currently only pass the custom not-found component to the `<NotFoundBoundary />` for the `children` slot. This means that if a parallel route throws a `notFound()` in `generateMetadata`, it'd be caught by the root not found, which would be unexpected. This mirrors the logic for determining whether or not a `notFound` boundary should be provided. A side effect of this is that if you throw a `notFound()` in `generateMetadata` for a segment that _only_ has parallel routes, and no `children` slot, it won't be caught by the boundary. But fixing this will require a larger refactor. <!-- 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 # --> Closes NEXT-3320
-
Steven authored
There were a few cases that were untested so I added new tests to cover them. Closes NEXT-3322
-
Sebastian Silbermann authored
Closes NEXT-3324
-
Sebastian Silbermann authored
Closes NEXT-3263
-
Mehdi Mashayekhi authored
There was a typo in the file that I fixed <!-- 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:
Sam Ko <sam@vercel.com>
-
tgt authored
Fixes minor typo on docs
-
- 05 May, 2024 2 commits
-
-
vercel-release-bot authored
-
Reza Mauliadi authored
I found a duplicate code example in https://nextjs.org/docs/app/building-your-application/authentication#context-providers for the layout.ts. Co-authored-by:
Sam Ko <sam@vercel.com>
-
- 04 May, 2024 2 commits
-
-
vercel-release-bot authored
-
Tim Neutkens 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 # --> Closes NEXT-3311
-
- 03 May, 2024 10 commits
-
-
vercel-release-bot authored
-
Sam Ko authored
## Why? There is no mention that Data Cache is being used for the `unstable_cache` API in our documentation. Closes NEXT-3319
-
Zack Tanner authored
Didn't seem like we had any tests that explicitly check a non-nested parallel route works in a root layout, so adding one here. <!-- 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 # --> Closes NEXT-3317
-
Benjamin Woodruff authored
I noticed this was dead while working on other changes to this file. Checked that it built with: ``` cargo check ```
-
Benjamin Woodruff authored
The `transparent` option only does something when the struct is a field-less unit struct with a single item. Right now, an invalid `transparent` option is silently ignored. I'm working on a PR to change this to a compilation error, so that it's obvious that the option won't work. These are the callsites in `next.js` that my tweak brought up as potential issues. Functionally, this PR should be a no-op.
-
Vercel Release Bot authored
This auto-generated PR updates the development integration test manifest used when testing Turbopack.
-
Benjamin Woodruff authored
### Why? `polyfill-nomodule.js` is a pre-built file containing polyfills for older browsers (gated by the `<script>` tag `nomodule` attribute). ### How? - The turbopack server needs to emit a raw OutputAsset for this file, so that it is copied into the output chunks directory. - That file needs to be passed into `polyfillFiles`, and preserved when we're merging manifests inside of the development server. ### Test Plan ``` HEADLESS=true pnpm testonly-dev test/e2e/app-dir/app/index.test.ts -t 'should serve polyfills for browsers that do not support modules' HEADLESS=true pnpm testonly-dev-turbo test/e2e/app-dir/app/index.test.ts -t 'should serve polyfills for browsers that do not support modules' ``` Build a project with `next dev --turbo` and inspect:   Verify that the polyfill file exists and resolves in the browser. Closes PACK-2993
-
JJ Kasper authored
Reverting temporarily while we investigate a bug where the page crashes due to the missing `Suspense`. x-ref: [slack thread](https://vercel.slack.com/archives/C04DUD7EB1B/p1714691721631339) Reverts vercel/next.js#64716 Closes NEXT-3307
-
JJ Kasper authored
As discussed this collects all `revalidateTag` calls and invokes in a single request to avoid race conditions and overhead from multiple pending requests. x-ref: [slack thread](https://vercel.slack.com/archives/C0676QZBWKS/p1714688045037509?thread_ts=1710902198.529179&cid=C0676QZBWKS) Closes NEXT-3306
-
Vercel Release Bot authored
This auto-generated PR updates font data with latest available
-
- 02 May, 2024 11 commits
-
-
vercel-release-bot authored
-
Sam Ko authored
## Why? We're constantly getting failures when attempting to update our font data. Update: I couldn't find anything why this was failing, so I'm guessing there just wasn't any changes that were needed? It just worked with the same code. - https://github.com/vercel/next.js/actions/runs/8916579201/job/24488235812 (fail) - https://github.com/vercel/next.js/actions/runs/8931168481 (successful) Closes NEXT-3304
-
Will Binns-Smith authored
These are ancestor spans to most work done when workers are used.
-
Lee Robinson authored
Co-authored-by:JJ Kasper <jj@jjsweb.site>
-
JJ Kasper authored
This enables the preloading entries on start flag by default as it has a great benefit to preload eagerly when starting the server instead of lazily when requests come in which makes the user eat the module initialization time. Closes NEXT-3303
-
Sebastian Silbermann authored
Closes NEXT-3286
-
Sam Ko authored
## Why? Helps us triage the most popular issues better by also having these in linear. Closes NEXT-3290
-
Rishabh Poddar authored
This PR fixes how a protected API is called once the user is logged in, in the `with-supertokens` example app. Co-authored-by:Sam Ko <sam@vercel.com>
-
Sebastian Silbermann authored
Closes NEXT-3285
-
Andrew Gadzik authored
This should fix the following scenarios, - Given a page defined like `app/foo/[...bar]/page.tsx` - Given a page defined like `app/bar/[[...foo]]/page.tsx` - Given a parallel route defined like `app/@slot/[...catchall]/page.tsx` If you navigate to `/foo/bar` the `params` prop in the parallel route would be ```js params: { catchall: [ 'foo', [ 'bar' ] ] } ``` And if you navigate to `/bar/foo` the `params` prop in the parallel route would be ```js params: { catchall: [ 'bar', '[ ...foo ]' ] } ``` With the fix in place, the `params` prop in the parallel route will be, ```js params: { catchall: [ 'foo', 'bar', ] } ``` And ```js params: { catchall: [ 'bar', 'foo', ] } ``` Respectively -
Sebastian Silbermann authored
-
- 01 May, 2024 3 commits
-
-
vercel-release-bot authored
-
Ryota Murakami authored
### What? Remove "text-balance" custom class from create-next-app tailwindCSS templates. ### Why? TailwindCSS has exact same class since v3.4.0. https://tailwindcss.com/docs/text-wrapCo-authored-by:
Sam Ko <sam@vercel.com>
-
vercel-release-bot authored
-