- 26 Feb, 2024 5 commits
-
-
vercel-release-bot authored
-
Tobias Koppers authored
### What? Reduces the number of css chunks per entrypoint by merging chunks. ### Why? In larger application the total CSS deduplication approach falls short in a sense of it's causing way too many separate chunks, which results in way to many requests. That affects page load performance. Closes PACK-2598
-
Tobias Koppers authored
* https://github.com/vercel/turbo/pull/7437 <!-- Tobias Koppers - report relative start/end and fix start time for events --> * https://github.com/vercel/turbo/pull/7446 <!-- Tobias Koppers - allow to aggregate all spans --> * https://github.com/vercel/turbo/pull/6651 <!-- max - fix(postcss_configs): support for resolve `postcss.config.json` file --> * https://github.com/vercel/turbo/pull/7448 <!-- Leah - chore: remove "rust" npm package --> * https://github.com/vercel/turbo/pull/7436 <!-- Leah - refactor(turbo-tasks-fs): move file watching into separate file --> * https://github.com/vercel/turbo/pull/7396 <!-- Donny/강동윤 - feat(turbopack): Apply critical ES lint rules --> * https://github.com/vercel/turbo/pull/7421 <!-- Donny/강동윤 - fix(turbopack): Use different title for non-parsing issues --> * https://github.com/vercel/turbo/pull/7501 <!-- Tobias Koppers - Tracing: Report progress on initial read --> * https://github.com/vercel/turbo/pull/7508 <!-- Donny/강동윤 - fix(turbopack): Fix CSS Modules of turbopack in swc mode --> * https://github.com/vercel/turbo/pull/7424 <!-- Donny/강동윤 - fix(turbopack): Analyze for-of stmts to allow using `sharp` --> * https://github.com/vercel/turbo/pull/7510 <!-- Tobias Koppers - dedupe primary_modules to avoid deduping in chunking, reduce memory usage --> * https://github.com/vercel/turbo/pull/7509 <!-- Tobias Koppers - split graph_node_to_referenced_nodes into cacheable and non-cacheable parts --> * https://github.com/vercel/turbo/pull/7516 <!-- Tobias Koppers - fix ignore in package.json --> * https://github.com/vercel/turbo/pull/7500 <!-- Tobias Koppers - add span count to trace-server --> * https://github.com/vercel/turbo/pull/7507 <!-- Donny/강동윤 - fix(turbopack): Fix CSS module purity validator -->
-
Tim Neutkens authored
## What? Renaming this as a follow-up PR is going to introduce top-level errors. <!-- 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-2589
-
Vercel Release Bot authored
This auto-generated PR updates the integration test manifest used when testing Turbopack.
-
- 24 Feb, 2024 4 commits
-
-
vercel-release-bot authored
-
bestlyg authored
### Improving Documentation follow the [example](https://github.com/vercel/next.js/blob/canary/examples/app-dir-i18n-routing/middleware.ts#L53), it is better to use NextResponse instead of Response.
-
Arya Emami authored
-
Jiachi Liu authored
Use public api alias for turbopack edge runtime, aligning with webpack Closes NEXT-2584
-
- 23 Feb, 2024 16 commits
-
-
vercel-release-bot authored
-
Dima Voytenko authored
-
Leah authored
### What? The file watcher might invalidate the (moved / deleted) directory before the parent task can mark it as no longer needed. Closes PACK-2588
-
Delba de Oliveira authored
-
Ryo H authored
### What? I fixed the typo from `occured` to `occurred`. Co-authored-by:Ryo H <49798519+ryobs@users.noreply.github.com>
-
Will Binns-Smith authored
Some tests in `test/development/acceptance-app/editor-links.test.ts` test that links in the import trace can be clicked. This is currently deprioritized with Turbopack, so skip them. Closes PACK-2450
-
Tobias Koppers authored
### What? Avoid cloning a bit ### Why? less allocations and memory usage ### How? Closes PACK-2584
-
Jiachi Liu authored
### React upstream changes - https://github.com/facebook/react/pull/28333 - https://github.com/facebook/react/pull/28334 - https://github.com/facebook/react/pull/28378 - https://github.com/facebook/react/pull/28377 - https://github.com/facebook/react/pull/28376 - https://github.com/facebook/react/pull/28338 - https://github.com/facebook/react/pull/28331 - https://github.com/facebook/react/pull/28336 - https://github.com/facebook/react/pull/28320 - https://github.com/facebook/react/pull/28317 - https://github.com/facebook/react/pull/28375 - https://github.com/facebook/react/pull/28367 - https://github.com/facebook/react/pull/28380 - https://github.com/facebook/react/pull/28368 - https://github.com/facebook/react/pull/28343 - https://github.com/facebook/react/pull/28355 - https://github.com/facebook/react/pull/28374 - https://github.com/facebook/react/pull/28362 - https://github.com/facebook/react/pull/28344 - https://github.com/facebook/react/pull/28339 - https://github.com/facebook/react/pull/28353 - https://github.com/facebook/react/pull/28346 - https://github.com/facebook/react/pull/25790 - https://github.com/facebook/react/pull/28352 - https://github.com/facebook/react/pull/28326 - https://github.com/facebook/react/pull/27688 - https://github.com/facebook/react/pull/28329 - https://github.com/facebook/react/pull/28332 - https://github.com/facebook/react/pull/28340 - https://github.com/facebook/react/pull/28327 - https://github.com/facebook/react/pull/28325 - https://github.com/facebook/react/pull/28324 - https://github.com/facebook/react/pull/28309 - https://github.com/facebook/react/pull/28310 - https://github.com/facebook/react/pull/28307 - https://github.com/facebook/react/pull/28306 - https://github.com/facebook/react/pull/28315 - https://github.com/facebook/react/pull/28318 - https://github.com/facebook/react/pull/28226 - https://github.com/facebook/react/pull/28308 - https://github.com/facebook/react/pull/27563 - https://github.com/facebook/react/pull/28297 - https://github.com/facebook/react/pull/28286 - https://github.com/facebook/react/pull/28284 - https://github.com/facebook/react/pull/28275 - https://github.com/facebook/react/pull/28145 - https://github.com/facebook/react/pull/28301 - https://github.com/facebook/react/pull/28224 - https://github.com/facebook/react/pull/28152 - https://github.com/facebook/react/pull/28296 - https://github.com/facebook/react/pull/28294 - https://github.com/facebook/react/pull/28279 - https://github.com/facebook/react/pull/28273 - https://github.com/facebook/react/pull/28269 - https://github.com/facebook/react/pull/28376 - https://github.com/facebook/react/pull/28338 - https://github.com/facebook/react/pull/28331 - https://github.com/facebook/react/pull/28336 - https://github.com/facebook/react/pull/28320 - https://github.com/facebook/react/pull/28317 - https://github.com/facebook/react/pull/28375 - https://github.com/facebook/react/pull/28367 - https://github.com/facebook/react/pull/28380 - https://github.com/facebook/react/pull/28368 - https://github.com/facebook/react/pull/28343 - https://github.com/facebook/react/pull/28355 - https://github.com/facebook/react/pull/28374 - https://github.com/facebook/react/pull/28362 - https://github.com/facebook/react/pull/28344 - https://github.com/facebook/react/pull/28339 - https://github.com/facebook/react/pull/28353 - https://github.com/facebook/react/pull/28346 - https://github.com/facebook/react/pull/25790 - https://github.com/facebook/react/pull/28352 - https://github.com/facebook/react/pull/28326 - https://github.com/facebook/react/pull/27688 - https://github.com/facebook/react/pull/28329 - https://github.com/facebook/react/pull/28332 - https://github.com/facebook/react/pull/28340 - https://github.com/facebook/react/pull/28327 - https://github.com/facebook/react/pull/28325 - https://github.com/facebook/react/pull/28324 - https://github.com/facebook/react/pull/28309 - https://github.com/facebook/react/pull/28310 - https://github.com/facebook/react/pull/28307 - https://github.com/facebook/react/pull/28306 - https://github.com/facebook/react/pull/28315 - https://github.com/facebook/react/pull/28318 - https://github.com/facebook/react/pull/28226 - https://github.com/facebook/react/pull/28308 - https://github.com/facebook/react/pull/27563 - https://github.com/facebook/react/pull/28297 - https://github.com/facebook/react/pull/28286 - https://github.com/facebook/react/pull/28284 - https://github.com/facebook/react/pull/28275 - https://github.com/facebook/react/pull/28145 - https://github.com/facebook/react/pull/28301 - https://github.com/facebook/react/pull/28224 - https://github.com/facebook/react/pull/28152 - https://github.com/facebook/react/pull/28296 - https://github.com/facebook/react/pull/28294 - https://github.com/facebook/react/pull/28279 - https://github.com/facebook/react/pull/28273 - https://github.com/facebook/react/pull/28269 Closes NEXT-2542 Disable ppr test for strict mode for now, @acdlite will check it and we'll sync again
-
Shu Ding authored
With Server Actions, a module-level encryption can happen when you do: ```js function wrapAction(value) { return async function () { 'use server' console.log(value) } } const action = wrapAction('some-module-level-encryption-value') ``` ...as that action will be created when requiring this module, and it contains an encrypted argument from its closure (`value`). This currently throws an error during build: ``` Error: Missing manifest for Server Actions. This is a bug in Next.js at d (/Users/shu/Documents/git/next.js/test/e2e/app-dir/actions/.next/server/chunks/1772.js:1:15202) at f (/Users/shu/Documents/git/next.js/test/e2e/app-dir/actions/.next/server/chunks/1772.js:1:16917) at 714 (/Users/shu/Documents/git/next.js/test/e2e/app-dir/actions/.next/server/app/encryption/page.js:1:2806) at t (/Users/shu/Documents/git/next.js/test/e2e/app-dir/actions/.next/server/webpack-runtime.js:1:127) at 7940 (/Users/shu/Documents/git/next.js/test/e2e/app-dir/actions/.next/server/app/encryption/page.js:1:941) at t (/Users/shu/Documents/git/next.js/test/e2e/app-dir/actions/.next/server/webpack-runtime.js:1:127) at r (/Users/shu/Documents/git/next.js/test/e2e/app-dir/actions/.next/server/app/encryption/page.js:1:4529) at /Users/shu/Documents/git/next.js/test/e2e/app-dir/actions/.next/server/app/encryption/page.js:1:4572 at t.X (/Users/shu/Documents/git/next.js/test/e2e/app-dir/actions/.next/server/webpack-runtime.js:1:1181) at /Users/shu/Documents/git/next.js/test/e2e/app-dir/actions/.next/server/app/encryption/page.js:1:4542 ``` Because during module require phase, the encryption logic can't run as it doesn't have Server/Client references available yet (which are set during the rendering phase). Since both references are global singletons to the server and are already loaded early, this fix makes sure that they're registered via `setReferenceManifestsSingleton` before requiring the module. Closes NEXT-2579 -
Vercel Release Bot authored
This auto-generated PR updates the integration test manifest used when testing Turbopack.
-
Masato Nakamura 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 # --> GitHub is [planning to upgrade to Node 20](https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/). Versions prior to actions/cache v3 use an outdated version of node, so we will upgrade to actions/cache v4, where [Node 20 is the default](https://github.com/actions/cache/releases/tag/v4.0.0). Co-authored-by:
JJ Kasper <jj@jjsweb.site>
-
Ethan Arrowood authored
Follow up to #61168 that adds the `useEarlyImport` to `experimental` config section. Closes NEXT-2573
-
JJ Kasper authored
This continues https://github.com/vercel/next.js/pull/62336 and ensures we chunk fully but removes the cache groups as that introduces some un-necessary duplication. With this configuration we ensure we split chunks of all types which fixes the OOM/cache size issue and also avoids overall chunk size increase. Closes NEXT-2577
-
Will Binns-Smith authored
Previously, runtime errors would not be recovered from. Like the webpack implementation, this addresses the issue by performing a full page reload when recovering from a runtime error. Test Plan: `test/development/acceptance-app/error-recovery.test.ts -- Error recovery app default stuck error` Closes PACK-2569
-
Dima Voytenko authored
Without this, any spans added by the middleware implementation would be orphaned and create extra traces.
-
Sam Ko authored
## Changes Better clarify the differences between App and Pages Router around `prefetch: false`. Closes NEXT-2575
-
- 22 Feb, 2024 15 commits
-
-
vercel-release-bot authored
-
Sam Ko authored
## Changes - Add clarifying comment around why we're `process.exit(1)` at the end of `runLintCheck` - Related → https://github.com/vercel/next.js/pull/62378 Closes NEXT-2576
-
Jiwon Choi authored
### What? When the next config has no default export, it does not inform the user correctly, but as: ```ts // next.config.mjs /** @type {import('next').NextConfig} */ export const config = { // ... } ``` ```sh⚠ Invalid next.config.mjs options detected:⚠ Unrecognized key(s) in object: 'config'⚠ See more info here: https://nextjs.org/docs/messages/invalid-next-config ``` ### Why? The options within the named exported config may be inactivated without notice. ### How? Since we use dynamic import for the config, check if `userConfigModule` has a `default` export, and if not, throw an error. Also, added to the docs to address by text that the config needs a default export. -
Mehran Farahani authored
### What? Added a `_currentState` argument to the `authenticate` function in the 'Building Your Application' authentication documentation. ### Why? The `useFormState` hook's first argument is a function that requires two arguments. This adjustment ensures the `authenticate` function aligns with the expected structure used by `useFormState`. For more details, refer to the React documentation: [useFormState Hook](https://react.dev/reference/react-dom/hooks/useFormState).
-
Sam Ko authored
Reverts vercel/next.js#61957
-
Colby Fayock authored
### What? Updates the Cloudinary bullets and links under the Video Optimization. https://nextjs.org/docs/app/building-your-application/optimizing/videos#cloudinary-integration ### Why? More relevant direct link to the Cloudinary-supported Next.js SDK along with an additional link to the Video solution itself. --------- Co-authored-by:
Sam Ko <sam@vercel.com>
-
John Slemmer authored
The current link just takes you to the definition of serialization on MDN. I'm proposing this should link to the React docs and what they are able to serialize because it is way more than JSON.
-
Tim Neutkens authored
## What? Ensures that `prependData` and `additionalData` are passed as loader options instead of as part of `sassOptions`, mirrors webpack behavior. Covers two cases that currently fail in #62321. <!-- 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-2571
-
Svetoslav99 authored
Changing from "components" to "_components" folder name here "app/components/web-vitals.tsx", to be the same as previous example on the page "app/_components/web-vitals.tsx". Co-authored-by:Steven <steven@ceriously.com>
-
Zack Tanner authored
This test case was added in #59752, but this doesn't seem like the correct behavior. The original PR was intended to be smart about resolving `/default.tsx` to a route group default (e.g. `/(foo)/default.tsx`) when one wasn't specified. But since the route group is creating a new hierarchy in the tree and defines its own layout, if the route group layout doesn't specify a default, then the not found behavior seems correct. To fix unexpected not-found behavior in this case, you should specify a default at the same level as the layout where the missing slot(s) might be rendered. Closes NEXT-2565
-
Sam Ko authored
## Changes The error on https://github.com/vercel/next.js/blob/3e92d8a41d5ed4970e252b6e34f11b100dacd167/packages/next/src/lib/eslint/runLintCheck.ts#L117 runs to the `try` in here → https://github.com/vercel/next.js/blob/3e92d8a41d5ed4970e252b6e34f11b100dacd167/packages/next/src/cli/next-lint.ts#L191 instead of throwing in the `catch`, so we add a last `else` statement to `process.exit(1)`. Closes NEXT-2567
-
Vercel Release Bot authored
This auto-generated PR updates the integration test manifest used when testing Turbopack.
-
Tobias Koppers authored
### Why? Allows to correctly aggregate different endpoints in tracing Closes PACK-2559
-
Zack Tanner authored
This onClick isn't actually being used by the test and seems to be causing a flake unrelated to the test assertions. This removes the unused code for now so we can still keep the relevant part of the test in-tact. (Specifically, this test is asserting that we're using the correct prefetch cache entry for interception routes that originate from different trees but resolve to the same URL) <!-- 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-2568
-
Tobias Koppers authored
### What? * scope issues from subscriptions to the websocket connection * close subscriptions when closing the websocket connection ### Why? * subscriptions on one page should not affect other pages ### How? Closes PACK-2567
-