- 18 Mar, 2024 27 commits
-
-
vercel-release-bot authored
-
Sam Ko authored
## Changes - Add links to source code - Add creation dates for issues and PRs Closes NEXT-2850
-
OJ Kwon authored
### What Attempt to fix workflow after recent changes. Closes PACK-2774
-
Will Binns-Smith authored
Test Plan: `TURBOPACK=1 pnpm test-dev test/development/basic/gssp-ssr-change-reloading/test/index.test.ts Closes PACK-2767
-
Arian authored
## Migrate the with-jotai example from page router to app router Please if it needs further updates, Let me know! Happy to contribute --------- Co-authored-by:Sam Ko <sam@vercel.com>
-
OJ Kwon authored
### What fix test/development/acceptance-app/app-hmr-changes.test.ts. Closes PACK-2765
-
Ethan Arrowood authored
Follow up to https://github.com/vercel/next.js/issues/61133 that will rely on `x-forwarded-proto` value if it exists in order to default the `x-forwarded-port` value. Closes NEXT-2820
-
OJ Kwon authored
### What Fixes to honor metadata route's segment config - turbopack replaces it into route handler, then parsed segment config so original segment config was ignored always. Closes PACK-2762
-
Konrad Pettersson authored
Rename variable `cookieList` to `cookieStore` in [documentation example](https://nextjs.org/docs/app/api-reference/functions/cookies#cookieshasname) to be aligned with every other example in the same page ([here](https://github.com/KonkenBonken/next.js/blob/51b878f5a30c01c8fa3ba7a227becea951909c99/docs/02-app/02-api-reference/04-functions/cookies.mdx#L23) and [here](https://github.com/KonkenBonken/next.js/blob/51b878f5a30c01c8fa3ba7a227becea951909c99/docs/02-app/02-api-reference/04-functions/cookies.mdx#L37) compared to [here](https://github.com/KonkenBonken/next.js/blob/51b878f5a30c01c8fa3ba7a227becea951909c99/docs/02-app/02-api-reference/04-functions/cookies.mdx#L55)) I see no deliberate reason the [third example](https://github.com/KonkenBonken/next.js/blob/51b878f5a30c01c8fa3ba7a227becea951909c99/docs/02-app/02-api-reference/04-functions/cookies.mdx#L51-L59) should differ from the rest. Co-authored-by:
Steven <steven@ceriously.com>
-
vercel-release-bot authored
-
OJ Kwon authored
### What https://github.com/typescript-eslint/typescript-eslint/pull/8671 introduces a change to enforce node.js >= 18.18.0. This is technically breaking changes, and affects us as we support 18.17.0 still (https://github.com/vercel/next.js/blob/canary/package.json#L254). As a workaround, pin dep version to avoid 7.3.0 - later when we lift our engines, can remove those. Closes PACK-2763
-
Will Binns-Smith authored
This records dedicated snapshots for Turbopack for the remaining tests in `test/development/acceptance/error-recovery.test.ts`. The only remaining difference was the lack of Import trace information. Test Plan: `TURBOPACK=1 pnpm test-dev test/development/acceptance/error-recovery.test.ts` Closes PACK-2761
-
Karl Horky 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? Now that @phanect added support for ESM PostCSS config files in PR #63109 (original issue #34448), PostCSS can use ESM config by default. It needs to use an `.mjs` extension by default because `create-next-app` scaffolds CommonJS apps by default. This will also work with ESM projects which have added `"type": "module"` in their `package.json` ### Why? 1. To convert one more file to ESM 2. To use the modern format 3. To follow other similar migrations that have taken place in the Next.js codebase (eg. `next.config.mjs`) ### How? - Change file extensions from `.cjs` to `.mjs` (change similar to PR #58380) - Change module format from CommonJS to ESM - Add type for the config, for users who enable `checkJs: true` in `tsconfig.json` Co-authored-by:
Sam Ko <sam@vercel.com>
-
Tim Neutkens authored
## What? Got a report from @juliusmarminge that running examples in the [uploadthing monorepo](https://github.com/pingdotgg/uploadthing) would result in resolving errors with Turbopack. Turns out the monorepo root couldn't be resolved and the reason for that is that they are using `bun install` as the package manager, which we didn't account for in the `findRootLockFile` logic. This PR adds `bun.lockb` to the existing list that already check npm/pnpm/yarn. <!-- 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-2766
-
Tim Neutkens authored
## What? Small refactor to make it clearer what workflow uploads to areweturboyet, what workflow runs tests, and what workflow runs daily. <!-- 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-2836
-
Jiachi Liu authored
Related #51242 React will error `In HTML, <script> cannot be a child of <html>. This will cause a hydration error.` when `script` is rendered under `html` directly. The examples in our docs are causing this hydration error. Moving it under `body` tag will fix the hydration error Closes NEXT-2834 Co-authored-by:Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com>
-
Tobias Koppers authored
### What? sync with turbo Closes PACK-2760
-
Jiachi Liu authored
script tag cannot be placed under html directly, users reported a case in #51242 that having `<Script>` under html will cause hydration error, this will display the React hydration error related warning of bad usage for it. You will see this warning in dev overlay instead of displaying nothing ``` In HTML, <script> cannot be a child of <html>. This will cause a hydration error. ``` Added two other react warnings detection patterns as well * `Warning: In HTML, text nodes cannot be a child of <%s>.\nThis will cause a hydration error.',` * `Warning: In HTML, whitespace text nodes cann...` But tested they're not generating hydration errors, only warnings in console, so we don't need to have tests for them. Closes NEXT-2835
-
Tim Neutkens authored
## What? Updates the test snapshot so that it passes for Turbopack. <!-- 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-2833
-
vercel-release-bot authored
-
Shu Ding authored
Two small changes. There's no need to check `payload === undefined` as it will always be a string. At the other place we can reuse the global `textEncoder` instance. Closes NEXT-2830
-
Tim Neutkens authored
## What? `new Worker()` is not supported yet in Turbopack. Support for it will be added after stable. <!-- 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-2831
-
Tim Neutkens authored
## What? Fixes the `"app dir - metadata dynamic routes should error if the default export of dynamic image is missing",` test. The check was missing in the output code for 2 metadata variations. <!-- 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-2832
-
Tobias Koppers authored
### What? This fixes more CSS ordering issues with production and webpack dev. * CSS Modules must not be side effect free as side effect free modules are per definition order independent which is not true for CSS * fix order of iterating module references * disable splitChunks for CSS * special chunking for CSS with loose and strict mode * more test cases Closes PACK-2709
-
Oliver Lassen authored
When using Server Actions with a form the fields are getting truncated at 1MB because of `busboy`'s default `fieldSize` limit of 1MB. This PR tries to solve https://github.com/vercel/next.js/issues/59277 however there is a mismatch about `fieldSize` and `bodySize`. I have tried creating a PR for `busboy` https://github.com/mscdex/busboy/pull/351 to allow configuring a max size for the entire body. ### TODO: - [ ] Figure out if this is acceptable - [ ] Throw error when `bodySizeLimit` is hit. <!-- 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 # --> Fixes #59277, closes #61462. --------- Co-authored-by:
Shu Ding <g@shud.in>
-
Shu Ding authored
Currently, we always fallback to https as the protocol for redirection requests inside Server Actions even for the local server host, which can be `0.0.0.0` and result in SSL errors. Closes #63114, partially resolves https://github.com/vercel/next.js/issues/62903#issuecomment-1984179180. Closes NEXT-2829
-
Vercel Release Bot authored
This auto-generated PR updates the integration test manifest used when testing Turbopack.
-
- 17 Mar, 2024 4 commits
-
-
vercel-release-bot authored
-
Robin Wieruch authored
I used Lucia in my last App Router project and it was a super smooth experience. I would have put it on top of the list, because it is open source, you keep your user data, it is not a paid service, and has no lock-in, however, I though I would have to put it below Clerk, because Clerk is official Vercel partner (?). Anyway, would love to see Lucia in the list! Co-authored-by:Sam Ko <sam@vercel.com>
-
조계진 authored
I accidentally closed [this PR](https://github.com/vercel/next.js/pull/63307), so I opened it again. - adjust the position of `(default)` - change from hyphen to colon - change the order of comments in code blocks so that the default option `'nodejs'` comes first. - change `nodejs`, `edge` to `'nodejs'`, `'edge'` like other string segment options. --------- Co-authored-by:
Sam Ko <sam@vercel.com>
-
Sol Lee authored
This PR makes a grammatical improvement for a sentence in the documentations page (https://nextjs.org/docs/app/building-your-application/routing/pages-and-layouts) Co-authored-by:
Sam Ko <sam@vercel.com>
-
- 16 Mar, 2024 9 commits
-
-
vercel-release-bot authored
-
Tobias Koppers authored
### What? fixed `"use client"` in files ending with `d`... ### Why? ### How? Closes PACK-2753
-
vercel-release-bot authored
-
Tobias Koppers authored
### What? * Allow to apply webpack loaders depending on "conditions". * add a few next specific conditions depending on context type ### Why? Some loaders need different behavior depending on context ### How? Closes PACK-2748
-
Vercel Release Bot authored
This auto-generated PR updates the integration test manifest used when testing Turbopack.
-
Jiachi Liu authored
### What * The tags extracted from hydration errors could be "<div>" and "p", we need to stripe the brackets "<>" for matching the tag name from component stack * Change the dimmed text color to lighter so you can see it better in light mode #### After vs Before <img width="450" src="https://github.com/vercel/next.js/assets/4800338/6caed5ac-c073-41cc-a699-eb29f3785d59"> <img width="450" src="https://github.com/vercel/next.js/assets/4800338/926aa80f-2a49-4362-b77e-16b819955b0a"> Closes NEXT-2828
-
Jumpei Ogawa authored
Fixes #34448 Before this PR, next/lib/find-config fails to load \*.config.mjs files and \*.config.js files when `"type": "module"` is set in package.json. It expects CommonJS files although the \*.config.{js|mjs} files are written in JS modules format (i.e. using `import` and `export`). This PR fixes it so that it can load configs written in JS modules format. --------- Co-authored-by:Jiachi Liu <inbox@huozhi.im>
-
Josh Story authored
Error had a typo in it. it should be `force-dynamic` not `dynamic-error`. Closes NEXT-2827
-
Tobias Koppers authored
### What? We initially skipped a few test cases. We need to reenable them. ### Why? ### How? Closes PACK-2752
-