- 08 Mar, 2024 11 commits
-
-
vercel-release-bot authored
-
Tobias Koppers authored
### What? avoid duplication of next.js internals in app dir For the example/hello-world: Before: ``` Route (app) Size First Load JS ┌ ○ / 15 kB 184 kB └ ○ /_not-found 15 kB 184 kB + First Load JS shared by all 169 kB ├ chunks/[project]__929616._.js 85.2 kB ├ chunks/[project]_packages_next_dist_0f911b._.js 83.2 kB └ other shared chunks (total) 230 B ``` After: ``` Route (app) Size First Load JS ┌ ○ / 15 kB 104 kB └ ○ /_not-found 15 kB 104 kB + First Load JS shared by all 88.9 kB ├ chunks/[project]_packages_next_dist_0f911b._.js 83.2 kB └ other shared chunks (total) 5.7 kB ``` Closes PACK-2695 ### Turbopack changes * https://github.com/vercel/turbo/pull/7617 <!-- OJ Kwon - feat(turbopack): add missing webpack context property --> * https://github.com/vercel/turbo/pull/7676 <!-- Tim Neutkens - Implement minify for Turbopack runtime file --> * https://github.com/vercel/turbo/pull/7677 <!-- Tobias Koppers - add FullContextTransition -->
-
Delba de Oliveira authored
-
Karl Horky authored
Closes #57895 Closes #57896 ### What? Switch Yarn v1 to pnpm for reproduction repos, avoiding the CodeSandbox Yarn v1 `yarn.lock` caching problem described below ### Why? As confirmed with @CompuIves, CodeSandbox caches the `yarn.lock` file generated after the first start + `yarn install` of a GitHub template (Yarn v1) - this saves old versions of Next.js (not the latest canary) in the lockfile and causes old versions of Next.js to be installed when users click on the CodeSandbox Reproduction link during issue creation. This leads to the current breakage, where Next.js actually cannot even start in the reproduction sandbox: 1. Start creating a new GitHub issue on the `vercel/next` GitHub repo 2. Open [the CodeSandbox reproduction link](https://codesandbox.io/p/sandbox/github/vercel/next.js/tree/canary/examples/reproduction-template) linked in the **Link to the code that reproduces this issue** section 3. Observe the error message below in the `dev` task started below (`experimental.appDir: true` was required in the `13.0.8-canary.0` version of Next.js in the cached `yarn.lock` file, but the `next.config.js` file no longer includes this config) ```bash $ yarn dev yarn run v1.22.19 $ next dev ready - started server on 0.0.0.0:3000, url: http://localhost:3000 Error: > The `app` directory is experimental. To enable, add `appDir: true` to your `next.config.js` configuration under `experimental`. See https://nextjs.org/docs/messages/experimental-app-dir-config at Object.findPagesDir (/project/sandbox/node_modules/next/dist/lib/find-pages-dir.js:80:19) at new DevServer (/project/sandbox/node_modules/next/dist/server/dev/next-dev-server.js:110:59) at NextServer.createServer (/project/sandbox/node_modules/next/dist/server/next.js:140:20) at /project/sandbox/node_modules/next/dist/server/next.js:155:42 at async NextServer.prepare (/project/sandbox/node_modules/next/dist/server/next.js:130:24) at async /project/sandbox/node_modules/next/dist/cli/next-dev.js:344:17 error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. ``` Sandbox demo: https://codesandbox.io/p/sandbox/quirky-pascal-n32xk2?file=%2Fnext.config.js%3A5%2C1  ### How? Switch to pnpm installation commands instead of Yarn v1 ### Caveats This uses CodeSandbox-specific config ### Alternatives considered - Delete the outdated yarn.lock file on setup of the sandbox, PR open here: #57895 - Commit an empty `yarn.lock` file to block caching of this file, PR open here: #57896 cc @samcx @CompuIves
-
vercel-release-bot authored
-
Tim Neutkens authored
## What? Implementation for https://github.com/vercel/turbo/pull/7660. Enables minification of browser files. <!-- 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-2742 --------- Co-authored-by:
Tobias Koppers <tobias.koppers@googlemail.com>
-
Zack Tanner authored
While looking at flakey tests I noticed that this test has a typo which means the assertion was being skipped all together. Closes NEXT-2760 <!-- 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 # -->
-
Will Binns-Smith authored
An iteration of #62359, this uses the module-local flag instead of a shared dedicated module for flagging runtime errors, correctly reloading the page when these occur. Test Plan: See now-passing tests in the manifest. Closes PACK-2690
-
Sam Ko authored
## Why? We have a flaky test with `NODE_OPTIONS='--inspect'` test in https://github.com/vercel/next.js/blob/canary/test/integration/cli/test/index.test.js because with Turbopack, we run several integration tests concurrently. Our integration tests are ran concurrently, so anything that adds `NODE_OPTIONS='--inspect'` can clash with another when `run-tests.js` is ran. Hence, the result below. - https://github.com/vercel/next.js/actions/runs/8189378285/job/22394053022?pr=62999 You can confirm this locally by running `TURBOPACK=1 node run-tests.js --test-pattern "test\\/integration\\/(cli|config-mjs)\\/test\\/index\\.test\\.js"`. ## Changes Both https://github.com/vercel/next.js/blob/canary/test/integration/config-mjs/test/index.test.js and https://github.com/vercel/next.js/blob/canary/test/integration/config/test/index.test.js add a now unnecessary `NODE_OPTIONS='--inspect'`, so we should be good to remove them. Closes NEXT-2759
-
Nhan Doan authored
### What? Update import paths to use aliases. ### Why? For clearer and shorter imports. ### How? https://nextjs.org/docs/app/building-your-application/configuring/absolute-imports-and-module-aliasesCo-authored-by:
Sam Ko <sam@vercel.com>
-
Zack Tanner authored
A recent `aws-sdk` publish broke the release. This adds a dependency to unblock these tests from failing. x-ref: https://github.com/aws/aws-sdk-js-v3/issues/5866#issuecomment-1984616572 <!-- 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-2758
-
- 07 Mar, 2024 26 commits
-
-
Zack Tanner authored
The "Compiled" HMR log is emitted as follows: > Compiled in 54ms When running this string through the matcher, we get: ``` > const matches = "Compiled in 54ms".match(/Compiled.*? in ([\d.]{1,})\s?(?:s|ms)/i) console.log(matches[1]); // 54 ``` We correctly assign `compileTime` to `matches[1]`. However, we then assign `compileTimeMs` to `parseFloat(compileTime[1])`. This is definitely an error, as `compileTime[1]` would be `4` in the above example. This means that if the compilation time takes less than a single digit value, it'd be coerced to NaN. <!-- 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-2757 -
Jiachi Liu authored
### What Use the plugin state directly in flight plugins to access the async modules collection ### Why This change is cherry-picked from #62349 , where I found the plugin state didn't store the async modules reousces properly due to the clone of the array in flight manifest plugin. So for flight manifestp plugin itself, it's holding a different instance rather than the one from proxy state. Closes NEXT-2743
-
vercel-release-bot authored
-
Zack Tanner authored
This test is flaking because the assertion before it triggers a redbox error, and the HMR event to remove the redbox is occasionally happening after we've moved onto the next test assertion. It also just checks for "h1" which is heavily overloaded in this test suite for various UI elements so I added a more specific selector. [x-ref](https://github.com/vercel/next.js/actions/runs/8195295576/job/22413257207?pr=63019#step:27:1550) <!-- 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-2756
-
Zack Tanner authored
#62980 migrated `examples/basic-css` to use app router. A handful of our create-next-app tests use this example when asserting the correct project files are created, so we were asserting on a pages file existing rather than an app dir page. This PR updates those tests. <!-- 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-2754
-
nauvalazhar 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 # --> ### What? Currently, the Router Cache on the [Linking and Navigating](https://nextjs.org/docs/app/building-your-application/routing/linking-and-navigating) page is linked to the "[Data Fetching, Caching, and Revalidating](https://nextjs.org/docs/app/building-your-application/data-fetching/fetching-caching-and-revalidating#caching-data#router-cache)" page, isn't it would be more accurate if Router Cache referenced to the [Router Cache section on the Caching](https://nextjs.org/docs/app/building-your-application/caching#router-cache) page instead? ### Why? This change would avoid confusion in two ways: 1. The first link used in the Linking and Navigating page does not exist (https://nextjs.org/docs/app/building-your-application/data-fetching/fetching-caching-and-revalidating#caching-data#router-cache) 2. Router Cache on the Caching page offers specific context and a detailed guide on the topic Thank you. Co-authored-by:
Sam Ko <sam@vercel.com>
-
Darius Cepulis authored
## App Router Moves the `with-mux-video` example to idiomatic App Router, with goodies like * server component data fetching * server actions * layouts * route groups * loading UI ## Mux Dependencies * @mux/mux-node 7 -> 8 * @mux/mux-player-react 1 -> 2 * @mux/upchunk + custom UI -> @mux/mux-uploader ## In other news... * Fleshed out the README * Updated imagery * Moved from styled jsx to tailwind and lightly updated styles ## Contributor Checklist * [x] The "examples guidelines" are followed from our contributing doc https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md * [x] Make sure the linting passes by running `pnpm build && pnpm lint`. See https://github.com/vercel/next.js/blob/canary/contributing/repository/linting.md --------- Co-authored-by:
Sam Ko <sam@vercel.com>
-
vercel-release-bot authored
-
OJ Kwon authored
### What? Currently wasm binding cannot build lightningcss, until we can make it work falls back to normal css if lightningcss is enabled + wasm bindings are loaded. Closes PACK-2678
-
OJ Kwon authored
### What Looks like we allow d.ts to be included in `match_js_extension`, so if custom rules have an ecmatransform it could raise an error with d.ts. This doesn't make test passes yet, seems there are other issues need to be resolved. Closes PACK-2653
-
OJ Kwon authored
### What? When we write path for the og metadata, basePath was omitted regardless of config. (Actual asset emission was correct, just writing the path in the metadata route) PR updates template code to use config's basePath if exists. Closes PACK-2655
-
Delba de Oliveira authored
-
Delba de Oliveira authored
As per @SukkaW's feedback. Closes: https://linear.app/vercel/issue/DX-2379/clarify-abortcontrollersignal-usage-in-react-fetch-memoization
-
lhfmartin authored
### What? Missing comma to separate dict entries Co-authored-by:JJ Kasper <jj@jjsweb.site>
-
Tobias Koppers authored
### Why? Sometimes the turbo build-native command takes longer to restore stealing time from the actual test job Closes PACK-2681
-
Delba de Oliveira authored
Clarify that fetch is not cached when used in a Server Action (see https://github.com/vercel/next.js/pull/60170), and in `POST` requests in Route Handlers.
-
Arian authored
### Adding or Updating Examples Migrate the basic-css example from page router to app router. If it needs further updates, Please let me know Happy to contribute --------- Co-authored-by:Steven <steven@ceriously.com>
-
Vercel Release Bot authored
This auto-generated PR updates the integration test manifest used when testing Turbopack.
-
Donny/강동윤 authored
# Turbopack * https://github.com/vercel/turbo/pull/7625 <!-- Tobias Koppers - generate calls of bindings correctly without this context --> * https://github.com/vercel/turbo/pull/7621 <!-- Donny/강동윤 - fix: Fix purity lint for CSS Modules in swc mode --> * https://github.com/vercel/turbo/pull/7640 <!-- Tobias Koppers - very dynamic requests will only lead to a warning --> * https://github.com/vercel/turbo/pull/7639 <!-- Donny/강동윤 - build: Update `swc_core` to `v0.90.17` --> ### What? Update turbopack ### Why? To keep in sync ### How?
-
Jiachi Liu authored
### What * Move missing html tags error into error overlay, from outside we don't have to manually determine when to render a dummy component with runtime missing tag error or error overlay. * Add brackets `<>` to the html tags in the error  ### Why In #62815, we're having throwing an missing required error, this will trigger another runtime error. Then when error overlay caught it through error event listener, it will render it as an unhandled runtime error: You will see the below message in the overlay. ``` Unhandled Runtime Error Error: The following tas are missing... [Error stack] ``` This error message will bring a message that the error is happened on client during runtime, but actually we already know that is a user side mistake which doesn't have a error trace. This couldn't hmr as you fix the error as well. This PR moves the rendering into error overlay that we're aware of the errors and can render the correct html on client, with the `html` tag attached with error id and `body` wrapping the error overlay. We tell overlay that there're missing tags through props, let it handle everything inside. It can also hmr once you fix the error. One drawback is that when you re-introduce the error, it might trigger react DOM updates exception (`Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.`) instead of the "missing tags" message again. Besides that the HMR works properly. Closes NEXT-2741
-
Balázs Orbán authored
-
Arian authored
Update pnpm version from 8.15.1 to 8.15.4 pnpm 8.15.4 release note https://github.com/pnpm/pnpm/releases/tag/v8.15.4 Previous comment form reviewer https://github.com/vercel/next.js/pull/62963#issuecomment-1982010314
-
Donny/강동윤 authored
### What? Update SWC crates. ### Why? To keep in sync. ### How? Closes PACK-2670
-
Zack Tanner authored
No change in behavior -- this PR updates `applyFlightData` and its recursive functions to receive the prefetch entry rather than a boolean. We only use the actual prefetch entry in `fillLazyItemsTillLeafWithHead` but I found kept getting confused about what this argument was needed for when it was provided so far away from the part where we read the boolean. <!-- 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-2556
-
JJ Kasper authored
This avoids the need to manually check when these get out of sync by having an automated check to keep them in sync when one or the other is updated. x-ref: https://github.com/vercel/next.js/pull/62966 Closes NEXT-2734
-
Balázs Orbán authored
I noticed in #62965 that these were out-of-sync. Content should match: https://github.com/vercel/next.js/blob/canary/packages/next/src/lib/server-external-packages.json Also sorted alphabetically. Closes NEXT-2732
-
- 06 Mar, 2024 3 commits
-
-
James Mikrut authored
Payload is moving to ESM, and we need to be removed from the default list of `serverComponentsExternalPackages`. This PR simply removes Payload from the default list. Developers can add it back in if they are using older versions of Payload. --------- Co-authored-by:JJ Kasper <jj@jjsweb.site>
-
vercel-release-bot authored
-
Sam Ko authored
## Changes - We need to document how that we retry until a port is found when we're not specifying a port via the CLI (`--port`) or the `PORT` environment variable. For example, if `3000` and `3001` are used, we will check `3000`, `3001`, and then land on `3002`. Closes NEXT-2731
-