-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[pull] canary from vercel:canary #122
base: canary
Are you sure you want to change the base?
Commits on Sep 5, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 63e0298 - Browse repository at this point
Copy the full SHA 63e0298View commit details -
Turbopack dev/build: Ensure @vercel/og is external in Node.js environ…
…ment (#69691) While investigating #65614 I found that in Next.js with webpack we mark this dependency as external but in Turbopack we didn't do that yet, causing it to be bundled and then fail at runtime because the path didn't match exactly. This PR ensures it's marked as external. Didn't add an additional test as we still have some Turbopack build test failures related to opengraph images so potentially this change also fixes those 💯 Fixes PACK-3058 Fixes #65614 <!-- 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 # -->
Configuration menu - View commit details
-
Copy full SHA for 668558a - Browse repository at this point
Copy the full SHA 668558aView commit details -
Turbopack build: Skip irrelevant telemetry tests (#69671)
Similar to #68969, skips a few more tests that are checking features that we don't have to report on. <!-- 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 # -->
Configuration menu - View commit details
-
Copy full SHA for 8662ba0 - Browse repository at this point
Copy the full SHA 8662ba0View commit details -
fix(turbopack): Pass
resourceQuery
to loaders (#69703)### What? Pass `resourceQuery` to loaders correctly. ### Why? To be consistent with webpack ### How? Closes #69502 --------- Co-authored-by: Tobias Koppers <tobias.koppers@googlemail.com>
Configuration menu - View commit details
-
Copy full SHA for 6853c6f - Browse repository at this point
Copy the full SHA 6853c6fView commit details -
Docs: Fix
cookies
page code blocks (#69719)Following up from: #69614 Add missing switcher prop to code blocks, and fix page formatting.
Configuration menu - View commit details
-
Copy full SHA for 4f038db - Browse repository at this point
Copy the full SHA 4f038dbView commit details -
Turbopack build: Implement --experimental-app-only flag (#69722)
## What? Implements `--experimental-app-only` for Turbopack build. <!-- 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 # -->
Configuration menu - View commit details
-
Copy full SHA for b817354 - Browse repository at this point
Copy the full SHA b817354View commit details -
Use vendored React version in Middleware and Instrumentation (#69619)
Co-authored-by: Jiachi Liu <inbox@huozhi.im>
Configuration menu - View commit details
-
Copy full SHA for 2595a27 - Browse repository at this point
Copy the full SHA 2595a27View commit details -
Turbopack build: Skip webpack config tests (#69729)
Found a few more tests that are related to custom webpack configuration. <!-- 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 # -->
Configuration menu - View commit details
-
Copy full SHA for 18f237c - Browse repository at this point
Copy the full SHA 18f237cView commit details -
[Turbopack] fix serialization problems/bugs (#69662)
### What? * improve error * fix CachedTaskType serialization * fix next config serialization * fix serialization of Rope * fix serialization of AliasMap * more efficent rope serialization * add missing primitives * Disable serialization for RuntimeVersions
Configuration menu - View commit details
-
Copy full SHA for 4a4ff6c - Browse repository at this point
Copy the full SHA 4a4ff6cView commit details -
[Turbopack] refactoring/todos (#69663)
add TODO fix function name <!-- 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 # -->
Configuration menu - View commit details
-
Copy full SHA for c14e435 - Browse repository at this point
Copy the full SHA c14e435View commit details -
Configuration menu - View commit details
-
Copy full SHA for cf62dcc - Browse repository at this point
Copy the full SHA cf62dccView commit details -
docs: fix typo in doc on rendering (#69636)
Fix typo: `prender` → `prerender` Co-authored-by: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for a16ea9e - Browse repository at this point
Copy the full SHA a16ea9eView commit details -
<!-- 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: Jiwon Choi <devjiwonchoi@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 537f9cc - Browse repository at this point
Copy the full SHA 537f9ccView commit details -
misc: typo in var name (#69745)
```diff - unmanged + unmanaged ``` Is annoying when searching for `unmanaged` in the file.
Configuration menu - View commit details
-
Copy full SHA for 15900e0 - Browse repository at this point
Copy the full SHA 15900e0View commit details -
Partial Prerendering Basepath Fix (#69520)
This adds new information to the routes manifests that is used during deployment for pages rendered using Partial Prerendering (PPR). It changes the route detection mode from using a pathname to detect a PPR resume request to using a new header, `Next-Resume: 1`. When a `POST` request is received with this header, it is assumed to be a resume request. The old mechanism is being retained until a future canary release to validate the changes to infrastructure.
Configuration menu - View commit details
-
Copy full SHA for 90691cf - Browse repository at this point
Copy the full SHA 90691cfView commit details -
refactor some of the font code (#69146)
Some basic refactors that I made while browsing the fonts code. No behavioral differences should be observed so existing tests suffice.
Configuration menu - View commit details
-
Copy full SHA for b0086f0 - Browse repository at this point
Copy the full SHA b0086f0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 96c1b17 - Browse repository at this point
Copy the full SHA 96c1b17View commit details -
Turbopack build: Update css modules tests (#69730)
Removes the in-between test that relies on the order of test execution which is not needed as this can throw in beforeAll to make all relevant tests fail. <!-- 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 # -->
Configuration menu - View commit details
-
Copy full SHA for 4462e4f - Browse repository at this point
Copy the full SHA 4462e4fView commit details -
Update 16-progressive-web-apps.mdx (#69727)
MInor typo <!-- 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: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for ce38d37 - Browse repository at this point
Copy the full SHA ce38d37View commit details -
Configuration menu - View commit details
-
Copy full SHA for e329415 - Browse repository at this point
Copy the full SHA e329415View commit details
Commits on Sep 6, 2024
-
pages bugfix: prevent cancellation errors from being logged (#69766)
When another data request is received by the pages router, a cancellation error is thrown and is meant to be caught by `change` to signal that the navigation request was aborted. However we were logging the error right before we handled the logic to properly bubble the error up. This meant that it was logging an exception to the console that wasn't actionable. Fixes #40554 Closes NEXT-3731
Configuration menu - View commit details
-
Copy full SHA for a5f30e6 - Browse repository at this point
Copy the full SHA a5f30e6View commit details -
Turbopack build: Fix next-image-new/base-path test (#69783)
Since this is in `test/integration` the path with Turbopack will start at the repository root, it's still correct. <!-- 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 # -->
Configuration menu - View commit details
-
Copy full SHA for faef2f1 - Browse repository at this point
Copy the full SHA faef2f1View commit details -
chore(turbopack-ecmascript): Remove unneeded async recursion '_boxed'…
… helper (#69762) Noticed while reading through this code. [As of Rust 1.77.0, recursive async functions are allowed inline, as long as they use indirection](https://blog.rust-lang.org/2024/03/21/Rust-1.77.0.html#support-for-recursion-in-async-fn). This cleans up the helper method.
Configuration menu - View commit details
-
Copy full SHA for d463bde - Browse repository at this point
Copy the full SHA d463bdeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 87e91d5 - Browse repository at this point
Copy the full SHA 87e91d5View commit details -
[Turbopack] handle state serialization (#69670)
### What? State need some special handling for persistent caching. In particular we need to differ between two kind of states: * Persistent State: It will be stored in the persistent cache and value will be kept between builds. * Transient State: It's only valid for a session and will reset when restoring the persistent cache. We didn't have the separating before, so this PR introduces a new type `TransientState<T>` next to `State<T>` which handles transient state. The value will always be an `Option<T>` and resets to `None` when restoring the persistent cache. This also means all task that depend on transient state will be invalidated on restoring. Transient State can also be used when the value is not serializable. e. g. this is the case for the `last_successful_parse` state in ecmascript modules. We use that to avoid large structure changes to the module graph when introducing parse errors to modules. Using transient state for that means we only apply this optimization on a session, and it resets when restoring from persistent cache.
Configuration menu - View commit details
-
Copy full SHA for a9bfc64 - Browse repository at this point
Copy the full SHA a9bfc64View commit details -
[Turbopack] fix require.resolve self hanging (#69793)
### What? evaluation require.resolve tries to resolve and process a module during module analytics. Since analytics is part of processing a module this can create a call cycle when `require.resolve("./self")` is used. This happens in some npm packages and caused Turbopack to hange. This PR fixes that problem by only resolving the module and not processing it when using `require.resolve`. In addition to that it adds a panic when a call cycle occurs. The next time we mess it up and create a call cycle this will crash Turbopack instead of hanging, which makes it much easier to find the problem. fixes PACK-3227
Configuration menu - View commit details
-
Copy full SHA for ec7b33e - Browse repository at this point
Copy the full SHA ec7b33eView commit details -
Turbopack dev/build: Ignore empty tsconfig/jsconfig (#69795)
Fixes two tests for tsconfig/jsconfig being empty. <!-- 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 # -->
Configuration menu - View commit details
-
Copy full SHA for 2fa1633 - Browse repository at this point
Copy the full SHA 2fa1633View commit details -
Configuration menu - View commit details
-
Copy full SHA for 38e6206 - Browse repository at this point
Copy the full SHA 38e6206View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6bf5a8a - Browse repository at this point
Copy the full SHA 6bf5a8aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 555302b - Browse repository at this point
Copy the full SHA 555302bView commit details -
create-next-app: fix font file corruption when using import alias (#6…
…9806) There's code that uses `glob` to find all template files and replaces the default import alias with whatever is specified during CNA. This does so without excluding fonts, and so we're unintentionally corrupting these `woff` files. This wasn't a problem in previous versions because we didn't use `localFont` in the default template, just `Inter`. The files were technically still being corrupted it just never manifested unless you went to actually use them. This is a quick fix to introduce minimal changes but ideally in a follow-up we should figure out a better solution for replacing aliases, ie by using an allowlist rather than an exclude list. h/t to @lubieowoce for the thorough test cases Fixes #69748 --------- Co-authored-by: Janka Uryga <lolzatu2@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for ef2decf - Browse repository at this point
Copy the full SHA ef2decfView commit details
Commits on Sep 7, 2024
-
chore(github): add issues_version.yml workflow (#69810)
## Why? A manual workflow that will query issues by version string (e.g., `14.2.8`), then output the relevant issues to Slack. x-ref: https://vercel.slack.com/archives/C04LGE5SYEB/p1725659202909009
Configuration menu - View commit details
-
Copy full SHA for 3bb7415 - Browse repository at this point
Copy the full SHA 3bb7415View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1092087 - Browse repository at this point
Copy the full SHA 1092087View commit details
Commits on Sep 8, 2024
-
Turbopack build: Fix middleware dead code elimination test (#69828)
This test assumed a hardcoded file but with Turbopack it's a combination of multiple files. Changed it to use the manifest to look up the relevant 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 # -->
Configuration menu - View commit details
-
Copy full SHA for ce7c8b0 - Browse repository at this point
Copy the full SHA ce7c8b0View commit details -
Configuration menu - View commit details
-
Copy full SHA for e35b5cd - Browse repository at this point
Copy the full SHA e35b5cdView commit details
Commits on Sep 9, 2024
-
fix: Fix find_turbopack_part_id_in_asserts in the PartId::Export(e) c…
…ase (#69804) ## What? Fix `find_turbopack_part_id_in_asserts` , which is not looking for "export ..." strings so it returns `None` in cases where it should return `Some(PartId::Export(e))`. ## Why? This is making the `part_of_module` function not behave exactly as expected, as it [creates a `PartId::Export`](https://github.com/vercel/next.js//blob/09-06-fix_find_turbopack_part_id_in_asserts/turbopack/crates/turbopack-ecmascript/src/tree_shake/mod.rs#L655) passed as `NamedExport.with` and [later processed with `parse_with`](https://github.com/vercel/next.js//blob/09-06-fix_find_turbopack_part_id_in_asserts/turbopack/crates/turbopack-ecmascript/src/analyzer/imports.rs#L369) during the analysis, which calls `find_turbopack_part_id_in_asserts`.
Configuration menu - View commit details
-
Copy full SHA for 0738eb0 - Browse repository at this point
Copy the full SHA 0738eb0View commit details -
ensure aliased prefetches return correct segment key (#69850)
When returning an aliased prefetch, we need to make sure the final tree that is produced contains the final searchParams, as otherwise the router might not properly re-key the component to reflect the changed search value. This moves the existing util that handled appending `searchParams` to the `__PAGE__` segment into the shared segment helpers. On the client, when we detect that we returned an aliased prefetch, we update the segment key with the "final" data by calling this helper with the final searchParams. This also fixes a missing `aliased` detection in the case where we do find an entry as it's possible the entry matches the path, but not the search. It wasn’t sufficient to only do this for full prefetches because while auto prefetches won’t return the CacheNode data, it will return a tree, so we need to make sure the tree contains the right params. Fixes #69847
Configuration menu - View commit details
-
Copy full SHA for 6599b32 - Browse repository at this point
Copy the full SHA 6599b32View commit details -
feat(turbopack-ecmascript): Add implementation for webpackIgnore and …
…turbopackIgnore (revision of #69113) (#69768) ## History @arlyon was working on this in #69113. He's out of office, and this is a feature we want to get landed soon, so I was seeing what needed to happen to get it to merge. I encountered more issues, and I didn't feel entirely comfortable pushing deep changes to @arlyon's branch, so this builds on top of his (rebased) commit. This is my attempted PR to fix these problems. ## What? *Copied from #69113's description.* Certain bundles may be designed specifically to be included at runtime. To support this usecase, webpack implemented a comment directive `webpackIgnore` that opted out that particular import from bundle time optimisations. We need to support this, as some libraries take advantage of this (mapbox). Closes PACK-3046 ## Changes from #69113 - Bail out much earlier in the analysis. The other PR appeared to bail out too late, and would generate a `Promise.resolve()` call, instead of preserving `import`/`require`. My understanding of webpack's feature is that it should include the `import`/`require`. - Skip "too dynamic" analysis for ignored imports. - Switch to a snapshot test, so that we can verify that the output actually contains the `import`/`require` expressions. - Integrates my changes from #69755 to use an `ImportOverrides` struct instead of a bool. --------- Co-authored-by: Alexander Lyon <arlyon@me.com> Co-authored-by: Niklas Mischkulnig <4586894+mischnic@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 935460c - Browse repository at this point
Copy the full SHA 935460cView commit details -
feat(turbopack): add
experimental.turbo.root
config option (#69737)### TL;DR Added support for a new `experimental.turbo.root` configuration option in Next.js. ### What changed? - Introduced a new `root` property in the `ExperimentalTurboOptions` interface. - Updated the build process and hot reloader to use the new `experimental.turbo.root` configuration. - Added fallback logic to use `outputFileTracingRoot` or the project directory if `experimental.turbo.root` is not set. - Implemented warning messages for non-absolute paths in `experimental.turbo.root` and `outputFileTracingRoot`. - Added a utility function `dset` for safely setting nested object properties. ### How to test? 1. Set up a Next.js project with Turbopack enabled. 2. Add the `experimental.turbo.root` option to your `next.config.js`: ```javascript module.exports = { experimental: { turbo: { root: '/path/to/your/root' } } } ``` 3. Run the development server and build process to ensure they use the new root path. 4. Verify that file resolution works correctly with the new root path. ### Why make this change? This change allows developers to explicitly set the root directory for Turbopack, providing more control over file resolution and project structure. It enhances flexibility for monorepo setups and projects with complex directory structures, ensuring that Turbopack can correctly resolve files above the project directory when necessary. Closes PACK-2646 Fixes #62409
Configuration menu - View commit details
-
Copy full SHA for a9c88d2 - Browse repository at this point
Copy the full SHA a9c88d2View commit details -
Turbopack dev/build: Initial browserslist passing (#69781)
## What? This implements passing the browerslist config from Next.js to Turbopack. Initially I implemented passing the user browserslist config in this PR as well but found that when this is lowered it causes test failures, those need to be investigated separately but shouldn't block these changes landing. <!-- 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 # -->
Configuration menu - View commit details
-
Copy full SHA for ab493f1 - Browse repository at this point
Copy the full SHA ab493f1View commit details -
Turbopack: analyze
new Worker
calls (#69584)Step 1: detect `new Worker(new URL(..., import.meta))` calls Detect `new URL("..", import.meta.url)` and turn into `JsValue::Url`
Configuration menu - View commit details
-
Copy full SHA for b825912 - Browse repository at this point
Copy the full SHA b825912View commit details -
Turbopack: Worker chunks (#69734)
Closes PACK-2504 Closes PACK-3020 - Implemented `WorkerAssetReference` to handle `new Worker()` calls - Added `WorkerLoaderModule` and `WorkerLoaderChunkItem` to create separate chunk groups for worker scripts - Updated runtime code to support loading worker scripts - Modified the analysis process to detect and handle worker creation - Workers are loaded via blob urls (which then `importScripts`-s all required chunks), which required introducing a `TURBOPACK_WORKER_LOCATION` global variable to support the relative chunk urls in the isolated blob origin. - [x] `evaluated_chunk_group` is not implemented by `NodeJsChunkingContext`, so it currently fails to build in RSC/SSR contexts - I've made it ignore worker calls for `Rendering::Server` for now
Configuration menu - View commit details
-
Copy full SHA for d077768 - Browse repository at this point
Copy the full SHA d077768View commit details -
Docs: Refactor and tidy Link docs (#69724)
This PR refactors the Link component docs page to follow a consistent structure according to our reference docs template. - Adds both typescript and javascript examples to all code blocks - Adds bot pages and app router examples to all code blocks where applicable - Re-structures the page Fixes: https://linear.app/vercel/issue/DOC-3258/nextlink <!-- 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: Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com> Co-authored-by: Delba de Oliveira <delbabrown@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 0eea1be - Browse repository at this point
Copy the full SHA 0eea1beView commit details -
[Turbopack] only subscribe to changes in dev mode (#69862)
### What? only subscribe to changes in dev mode ### Why? this avoid bundling twice due to data endpoint
Configuration menu - View commit details
-
Copy full SHA for d169cf3 - Browse repository at this point
Copy the full SHA d169cf3View commit details -
HMR: Log unexpected Turbopack errors to a file (#68698)
If a Rust Error Result is returned by an hmr update, then an unexpected internal error unrelated to the user’s code has occurred. Like #67678 does for unhandled panics, log these errors to a file and inform the user with a generic message informing them to file an issue. In development, this continues to log to stderr.
Configuration menu - View commit details
-
Copy full SHA for b368fea - Browse repository at this point
Copy the full SHA b368feaView commit details -
chore(turbopack-ecmascript): Remove more
_boxed
async recursion hel……pers, and remove the async-recursion macro (#69805) An extension of #69762: > There are also a few more of these helpers if you search for `_boxed(`. These things used to be needed before Rust 1.77.0: https://blog.rust-lang.org/2024/03/21/Rust-1.77.0.html#support-for-recursion-in-async-fn These days, we can just do the boxing inline! I also noticed we could remove the `async-recursion` macro, as it's not providing much value on Rust >=1.77.0.
Configuration menu - View commit details
-
Copy full SHA for 833b5b0 - Browse repository at this point
Copy the full SHA 833b5b0View commit details -
Configuration menu - View commit details
-
Copy full SHA for e8de692 - Browse repository at this point
Copy the full SHA e8de692View commit details -
Docs: Refactor
draftMode()
page to follow template, document missin……g methods, improve guide (#69616) Closes: https://linear.app/vercel/issue/DOC-3297/draftmode-reference-page - Documents missing methods ([source](https://github.com/vercel/next.js/blob/adc94b49d47cd263140ba6523bc2db2e6d09e0d2/packages/next/src/client/components/draft-mode.ts#L6)) - Adds examples - Review and improve Draft Mode guide. Will add the steps component once we start working on the guides. --------- Co-authored-by: Rich Haines <hello@richardhaines.dev>
Configuration menu - View commit details
-
Copy full SHA for a68d1fa - Browse repository at this point
Copy the full SHA a68d1faView commit details -
Configuration menu - View commit details
-
Copy full SHA for af6a3d1 - Browse repository at this point
Copy the full SHA af6a3d1View commit details -
fix: use correct protocol when -H and --experimental-https are enabled (
#69822) fixes #69820 - fixes wrong protocol issue when you run `next dev` with `--experimental-https` and `-H` option. To check the PR fixes the issue correctly, run the command below. ``` corepack pnpm next -H 0.0.0.0 --experimental-https YOUR_APP_DIRECTORY ``` <!-- 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 ### 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 ## 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: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for cd7949f - Browse repository at this point
Copy the full SHA cd7949fView commit details -
fix: remove unnecessary console in
isDynamicPostpone
(#69457)### What? Remove `console.log(err)` in `isDynamicPostpone`, I think this should be a debug console that was accidentally left behind. ### Why? This will cause meaningless logs to appear in the console when we use the `unstable_rethrow` API. Co-authored-by: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for 29454f0 - Browse repository at this point
Copy the full SHA 29454f0View commit details -
Turbopack build: Skip webpack specific test (#69875)
`__non_webpack_require__` is not supported in Turbopack (webpack specific) <!-- 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 # -->
Configuration menu - View commit details
-
Copy full SHA for 6964e22 - Browse repository at this point
Copy the full SHA 6964e22View commit details -
updated the example of modularize-imports to utilize the App Router (#…
…69771) This PR updates the modularize-imports example to use the App Router. Here are the changes that have been made: - Renamed the "pages" folder to the "app" folder. - Updated the routing for / files to align with the App Router. - Added the layout.tsx file as part of the App Router. - Updated the package.json file. CC: @samcx --------- Co-authored-by: Sam Ko <sam@vercel.com>
Configuration menu - View commit details
-
Copy full SHA for f3c537b - Browse repository at this point
Copy the full SHA f3c537bView commit details -
Turbopack build: Fix typeof-window-replace tests (#69883)
This test assumed the code would be in the entry file, but that is not always the case, and with Turbopack we even have more chunks so the files can be in both `.next/server/pages` or `.next/server/chunks`. Updates the test to reflect that, replacing was already implemented in 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 # -->
Configuration menu - View commit details
-
Copy full SHA for 1dc3f39 - Browse repository at this point
Copy the full SHA 1dc3f39View commit details -
Configuration menu - View commit details
-
Copy full SHA for a916dfc - Browse repository at this point
Copy the full SHA a916dfcView commit details -
docs(link): update scroll docs (#69894)
## Why? The current docs on scrolling behavior when using `<Link>` are misleading and incorrect. This edit correctly documents the expected scrolling behavior (in both `true` or `false` cases). - https://nextjs.org/docs/app/api-reference/components/link#scroll
Configuration menu - View commit details
-
Copy full SHA for 644b6c6 - Browse repository at this point
Copy the full SHA 644b6c6View commit details -
Support React 18 in Pages Router (#69484)
Pages router (`/pages`) will continue to support React 18 not the React 19 RC. Current thinking is that we'll add support for React 19 in Pages Router once 19 is stable. This does not affect App Router (`/app`) which continues to use the latest React Canary (i.e. React 19). #65058 is required reading to understand the changes in this PR --------- Co-authored-by: Zack Tanner <1939140+ztanner@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 0f2845d - Browse repository at this point
Copy the full SHA 0f2845dView commit details -
chore(cna): re-add /public (#69887)
## Why? To prevent confusion about the `/public`, re-adding to Create Next App. x-ref: https://x.com/YTCodeAntonio/status/1832856105447473351
Configuration menu - View commit details
-
Copy full SHA for 2b9f1bc - Browse repository at this point
Copy the full SHA 2b9f1bcView commit details -
Configuration menu - View commit details
-
Copy full SHA for a8a64c9 - Browse repository at this point
Copy the full SHA a8a64c9View commit details -
docs(link): additional updates with regards to scrolling behavior in …
…App Router (#69896) ## Why? Adding onto this → #69894. A feel more additions to clarify the scroll behavior in App Router. ## How? - Remove instances of previous, incorrect way of describing the default scroll behavior - Remove **Disabling Scroll Restoration** section - Refactor **Disable scrolling to the top of the page** section
Configuration menu - View commit details
-
Copy full SHA for f9148a2 - Browse repository at this point
Copy the full SHA f9148a2View commit details -
Turbopack: allow specified AssetIdents for naming chunk groups (#68917)
Previously, in a number of situations, we would implicitly use the entry module’s ident to name the chunk group. This adds the ability to specify a different name. Now, for evaluated chunk groups for pages, we use the page source’s ident. This prevents changes in loader chunk groups from changing the chunk name, which breaks HMR. We still use the entry module’s ident for most other cases now, but it is now explicitly provided. Test Plan: `TURBOPACK=1 pnpm test-dev test/development/acceptance/ReactRefreshModule.test.ts` with #68698 applied --------- Co-authored-by: Tobias Koppers <tobias.koppers@googlemail.com>
Configuration menu - View commit details
-
Copy full SHA for fcde8fc - Browse repository at this point
Copy the full SHA fcde8fcView commit details
Commits on Sep 10, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 69f07b6 - Browse repository at this point
Copy the full SHA 69f07b6View commit details -
Configuration menu - View commit details
-
Copy full SHA for c5961c4 - Browse repository at this point
Copy the full SHA c5961c4View commit details -
Turbopack build: Fix script-loader test (#69867)
With Turbopack the output path is a bit different that's why the test couldn't find the `.css` file. Changed the test to ensure it checks for `.css` files existing. <!-- 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 # -->
Configuration menu - View commit details
-
Copy full SHA for 1a3bc59 - Browse repository at this point
Copy the full SHA 1a3bc59View commit details -
docs(revalidate): add not about revalidate in Development (#69898)
## Why? There is no mention that Pages are rendered on demand in Development, regardless if you use this route segment config. ``` export const revalidate = 10 ```
Configuration menu - View commit details
-
Copy full SHA for 23c4cf0 - Browse repository at this point
Copy the full SHA 23c4cf0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 25eda2e - Browse repository at this point
Copy the full SHA 25eda2eView commit details -
feat: Add a lint for deprecated APIs (#69772)
### What? Add a linter for importing `ImageResponse` from `next/server`. ### Why? It's deprecated . ### How? Closes PACK-3237
Configuration menu - View commit details
-
Copy full SHA for ca90723 - Browse repository at this point
Copy the full SHA ca90723View commit details -
Turbopack build: Fix process.browser tests (#69919)
Ensures these tests check all output files instead of only the entry file. Given that turbopack can do further chunk splitting. <!-- 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 # -->
Configuration menu - View commit details
-
Copy full SHA for 55adc36 - Browse repository at this point
Copy the full SHA 55adc36View commit details -
Turbopack build: Fix next-image invalid import test (#69921)
Fixes the test, matched development. <!-- 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 # -->
Configuration menu - View commit details
-
Copy full SHA for adb6063 - Browse repository at this point
Copy the full SHA adb6063View commit details -
docs: typo fowards to forwards (#69899)
### Improving Documentation - [x] Run `pnpm prettier-fix` to fix formatting issues before opening the PR. - [x] Read the Docs Contribution Guide to ensure your contribution follows the docs guidelines: https://nextjs.org/docs/community/contribution-guide x-ref: #69894 <!-- 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: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for 3113d80 - Browse repository at this point
Copy the full SHA 3113d80View commit details -
Configuration menu - View commit details
-
Copy full SHA for 47072bf - Browse repository at this point
Copy the full SHA 47072bfView commit details -
Turbopack build: Skip webpack specific test (#69923)
These two are testing webpack config. <!-- 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 # -->
Configuration menu - View commit details
-
Copy full SHA for 497f9e8 - Browse repository at this point
Copy the full SHA 497f9e8View commit details -
Reapply "validate path lengths before writes and attempt to eagerly c… (
Configuration menu - View commit details
-
Copy full SHA for fa53822 - Browse repository at this point
Copy the full SHA fa53822View commit details -
refactor(turbo-tasks): Remove some
format_description
logic from me…Configuration menu - View commit details
-
Copy full SHA for 6d14461 - Browse repository at this point
Copy the full SHA 6d14461View commit details -
refactor(turbo-tasks): Move OutputContent from memory backend into tu…
…rbo-tasks, represent Empty as None (#69473) This is preparation for local tasks/cells in #69126. - Moves this into the `turbo-tasks` crate so that it can be used with local cells/outputs in #69126. - Remove the `Empty` state from the enum because the implementation in #69126 does not currently need that. This can still be represented using `None`.
Configuration menu - View commit details
-
Copy full SHA for b755e1e - Browse repository at this point
Copy the full SHA b755e1eView commit details -
refactor(turbo-tasks-memory): Minor cleanup of code in turbo-tasks-me…
…mory/src/task.rs (#69505) This code was a bit inconsistent with naming/syntax/etc between the different branches, and it was bothering me. No functional changes in this PR!
Configuration menu - View commit details
-
Copy full SHA for cfdd5dc - Browse repository at this point
Copy the full SHA cfdd5dcView commit details -
Configuration menu - View commit details
-
Copy full SHA for c58c6b7 - Browse repository at this point
Copy the full SHA c58c6b7View commit details -
Turbopack: Fix server action sourcemaps (#69884)
Closes #69861 Closes PACK-3240 The sourcemaps of server actions were invalid, the listed source file was the file `AssetIdent` like `turbopack://[project]/bench/basic-app/app/actions.ts [app-client] (ecmascript, action)` instead of only the source file path. This broke the sourcemap mapping logic of the error overlay. --------- Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
Configuration menu - View commit details
-
Copy full SHA for 476e43b - Browse repository at this point
Copy the full SHA 476e43bView commit details -
Fix font size for build error version status (#69811)
### What? This PR fixes a text formatting error where the text shown after the Next.js version is bigger than the version itself. <img width="768" alt="CleanShot 2024-09-06 at 19 41 08@2x" src="https://github.com/user-attachments/assets/1ebe9d4d-860d-4f1a-95c4-36bf67e7b87b"> Fixes #69813 Co-authored-by: Sam Ko <sam@vercel.com>
Configuration menu - View commit details
-
Copy full SHA for eda6948 - Browse repository at this point
Copy the full SHA eda6948View commit details -
Configuration menu - View commit details
-
Copy full SHA for dfff673 - Browse repository at this point
Copy the full SHA dfff673View commit details -
chore(github): update channel for popular-issues (#69941)
## Why? Updating the channel for popular issues. The updated channel will serve the action's purpose better than its current channel.
Configuration menu - View commit details
-
Copy full SHA for f760882 - Browse repository at this point
Copy the full SHA f760882View commit details
Commits on Sep 11, 2024
-
fix: Fix the list of node.js modules compatible with edge (#69801)
### What? Use https://vercel.com/docs/functions/runtimes/edge-runtime#compatible-node.js-modules for the source of truth. ### Why? x-ref: https://vercel.slack.com/archives/C03S8ED1DKM/p1725654625787459?thread_ts=1724702057.947199&cid=C03S8ED1DKM ### How?
Configuration menu - View commit details
-
Copy full SHA for 76bfdd1 - Browse repository at this point
Copy the full SHA 76bfdd1View commit details -
feat(image-optimizer): use previously cached image cache entry if ups…
…tream image is identical (#67257) ### What? - Reduces redundant image optimizations if the upstream image is unchanged, there is no need to run the optimization again as you can just use the previously optimized image. - Changes `getHash`-function to return `base64url` instead of custom variant of standard `base64`. This can be removed if deemed not necessary. - Moves all image ETag calculation logic (and introduce `getImageEtag`-function to do it) to happen inside `image-optimizer` for better consistency. ### Why? Currently when an image is requested and it becomes stale, the server will trigger a full image optimization for that image, using a significant spike in CPU-usage for routes that have multiple images (e.g. an image carousel). ### How? By calculating and storing the upstream etag in the cache entry, we can utilize the previously cached entry to check if the upstream image has remained the same, making it possible to reuse the previously cached entry again, as the image optimization would produce the same results anyways. --------- Co-authored-by: Steven <steven@ceriously.com>
Configuration menu - View commit details
-
Copy full SHA for 2a87b33 - Browse repository at this point
Copy the full SHA 2a87b33View commit details -
Turbopack build: Fix build-output tests (#69957)
Updates the test to ensure it passes with both Webpack/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 # -->
Configuration menu - View commit details
-
Copy full SHA for 3d303a1 - Browse repository at this point
Copy the full SHA 3d303a1View commit details -
Turbopack:
impl<T: ValueDebugFormat> Value<T>
(#69961)Now you can do `x.dbg().await?` not only for `Vc<T>` but also `Value<T>`.
Configuration menu - View commit details
-
Copy full SHA for 422a086 - Browse repository at this point
Copy the full SHA 422a086View commit details -
[Turbopack] print invalid message correctly (#69964)
### Why? '[object: Object]` is not very helpful
Configuration menu - View commit details
-
Copy full SHA for 843fd86 - Browse repository at this point
Copy the full SHA 843fd86View commit details -
docs: clarify opt-out data cache with fetch cache config (#69533)
Co-authored-by: Lee Robinson <me@leerob.io>
Configuration menu - View commit details
-
Copy full SHA for 0f8d6e7 - Browse repository at this point
Copy the full SHA 0f8d6e7View commit details -
docs: improve instrumentation docs (#69665)
Co-authored-by: Lee Robinson <me@leerob.io> Co-authored-by: Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for d6c88fb - Browse repository at this point
Copy the full SHA d6c88fbView commit details -
Configuration menu - View commit details
-
Copy full SHA for de30598 - Browse repository at this point
Copy the full SHA de30598View commit details -
[Turbopack] add error for invalid exports (#69819)
### What? Known not existing exports will show an error. But only when they bindings are actually used. Unused imports won't trigger an error. ``` error - [bindings] .../invalid-export/index.js:1:0 Export Abc doesn't exist in target module + v-----------------------------v 1 + import { Abc } from "./module"; + ^-----------------------------^ 2 | // We don't report errors for unused invalid exports 3 | import { Def } from "./module"; 4 | import * as X from "./module"; 5 | The export Abc was not found in module [project]/turbopack/crates/turbopack-tests/tests/execution/turbopack/exports/invalid-export/input/invalid-export/module.js [test] (ecmascript) <exports>. Did you mean to import Abd? All exports of the module are statically known (It doesn't have dynamic exports). So it's known statically that the requested export doesn't exist. | These are the exports of the module: | Abd, Eef, a, b, c | ``` fixes PACK-3172
Configuration menu - View commit details
-
Copy full SHA for c56d62a - Browse repository at this point
Copy the full SHA c56d62aView commit details -
Configuration menu - View commit details
-
Copy full SHA for d805a7c - Browse repository at this point
Copy the full SHA d805a7cView commit details -
handle empty query param issue in url redirects #68039 (#68157)
Configuration menu - View commit details
-
Copy full SHA for 298d930 - Browse repository at this point
Copy the full SHA 298d930View commit details -
ensure final searchParams are reflected in final state tree (#69948)
Follow up to #69850: I was unintentionally mutating the prefetch entries data property, causing the wrong params to persist on an aliased entry. This does a shallow copy on the treePatch with the updated segment data as the intent was for this to be ephemeral.
Configuration menu - View commit details
-
Copy full SHA for 5d28a9e - Browse repository at this point
Copy the full SHA 5d28a9eView commit details -
docs: update sizes="any" apply strategy to icons (#69975)
### Why? When adding `app/favicon.ico`, the `sizes` property were set to `"any"` to [avoid a browser bug](https://evilmartians.com/chronicles/how-to-favicon-in-2021-six-files-that-fit-most-needs) where an `.ico` icon is favored over `.svg`. However, we changed the behavior to set the actual size at #53343 but the doc wasn't updated together. ### How? Removed the previous explanation and updated that`sizes="any"` may be applied if the extension is `.svg` or the size is not specified. Closes #69553 --------- Co-authored-by: Jiachi Liu <inbox@huozhi.im>
Configuration menu - View commit details
-
Copy full SHA for f05ab48 - Browse repository at this point
Copy the full SHA f05ab48View commit details -
[Turbopack] add rules for transitions (#69951)
### What? Allow to specify transitions via rules. ### Why? This will enable to apply a transition on every style import and allows to put style imports from RSC in the client context
Configuration menu - View commit details
-
Copy full SHA for 6076b7d - Browse repository at this point
Copy the full SHA 6076b7dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1d94f6c - Browse repository at this point
Copy the full SHA 1d94f6cView commit details -
chore(github): reduce per_page to 25 for issues-by-version (#69974)
## Why? We're running into the GitHub rate limit when querying for 50 `per_page`, so reducing to 25. Also adding logic throw a `info(...)` message when no issues by <xyz> version are found.
Configuration menu - View commit details
-
Copy full SHA for 8f90c35 - Browse repository at this point
Copy the full SHA 8f90c35View commit details -
feat(turbopack): hash the font file name if it exceeds our max file s…
…ize (#69144) ### What? When using google fonts, we import files and write them with their hash to the filesystem. Some of these fonts get very close to the file size limit which, after appending a hash onto them, causes turbo to fail with a write error. ### Why? Different operating systems have different path length requirements. In short: - macOS: limit per segment, longer limit for entire path length - unix: limit per segment, longer limit for entire path length - windows: hard limit of 260 chars unless using UNC We need to respect these. ### How? A small change in the font code that rewrites filesystem paths if they approach this limit, with some buffer room. ~Rather than truncating I opted for a 64 bit hash because many fonts have long common prefixes. We could bump this up to 128 or higher but in practice there will be very very few files that need this code path.~ _(bgw):_ This now uses a combination of truncation (for legibility/debuggability) and a 128 bit hash (for collision avoidance). Another option is a general handler for this where reads and writes are intercepted in turbo tasks fs but I wanted to achieve a few things: - explicitly handle sources of problematic file names at the source, rather than having a blanket impl - avoid obscure hashed names appearing in our outputs generally since it makes debugging harder - avoid lots of hashing on reads and writes To me it is safer to have the source ensure they are meeting the needs of the system since we can control source specific implementations. Closes PACK-3012 --------- Co-authored-by: Benjamin Woodruff <benjamin.woodruff@vercel.com>
Configuration menu - View commit details
-
Copy full SHA for ee48ef7 - Browse repository at this point
Copy the full SHA ee48ef7View commit details -
updated the example of with-xstate to utilize the App Router (#69960)
This PR updates the with-xstate example to use the App Router. Here are the changes that have been made: - Renamed the `pages` folder to the `app` folder. - Updated the routing for / files to align with the App Router. - moved the `components` and `machine` folder inside the app directory by renaming it to `_components` and `_machine` - Added the `layout.tsx` file as part of the App Router. - Updated the package.json file. CC: @samcx --------- Co-authored-by: samcx <sam@vercel.com>
Configuration menu - View commit details
-
Copy full SHA for 5348db4 - Browse repository at this point
Copy the full SHA 5348db4View commit details -
Remove invalid fallback revalidate value (#69990)
This removes our invalid revalidate default fallback when a revalidate value isn't returned from render as render should always return a valid value. We also already have an invariant when an invalid revalidate value is returned we just need to ensure that case could be hit properly. This also fixes some invalid test cases which were sending invalid headers. x-ref: [slack thread](https://vercel.slack.com/archives/C0676QZBWKS/p1726061828198529?thread_ts=1720714625.621179&cid=C0676QZBWKS)
Configuration menu - View commit details
-
Copy full SHA for 864e6a5 - Browse repository at this point
Copy the full SHA 864e6a5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5aee839 - Browse repository at this point
Copy the full SHA 5aee839View commit details
Commits on Sep 12, 2024
-
fix(turbopack): Improve guard detection of edge runtime checker (#69983)
### What? Improves guard detection for node.js process so it can handle code like `typeof process.off === "function" && process.off()`. ### Why? It caused several issues for sites. x-ref: https://vercel.slack.com/archives/C03S8ED1DKM/p1724702057947199 ### How?
Configuration menu - View commit details
-
Copy full SHA for 4a5ef3b - Browse repository at this point
Copy the full SHA 4a5ef3bView commit details -
Configuration menu - View commit details
-
Copy full SHA for f63f082 - Browse repository at this point
Copy the full SHA f63f082View commit details -
fix(turbo-tasks): Implement IntoFuture for ResolvedVc (#69986)
`ResolvedVc` is a wrapper type for `Vc`. `ResolvedVc` derefs to `Vc`, but `.await`/`IntoFuture` doesn't follow the deref.
Configuration menu - View commit details
-
Copy full SHA for c011bc9 - Browse repository at this point
Copy the full SHA c011bc9View commit details -
chore: Update lightningcss (#69947)
### What? Update `lightningcss` ### Why? To apply parcel-bundler/lightningcss#796 and parcel-bundler/lightningcss#797 ### How? - Closes PACK-3190 - Closes PACK-3191
Configuration menu - View commit details
-
Copy full SHA for 45fc346 - Browse repository at this point
Copy the full SHA 45fc346View commit details -
[Turbopack] place style imports in RSC in the client context (#69952)
### Why? Styles imported from RSC are processed twice by webpack loaders and postcss. This is not only expensive, but can also lead to hanging problems if both executions doesn't result in the same code (e. g. when using randomness in webpack loaders). ### What? Add a transition to styles to place them in the client context when import on RSC side. fixes #69643 fixes PACK-3243
Configuration menu - View commit details
-
Copy full SHA for 0731c88 - Browse repository at this point
Copy the full SHA 0731c88View commit details -
avoid duplicate page in test (#70009)
### What? the template uses page.js, but the case adds a `page.tsx`, causing a duplicate page error
Configuration menu - View commit details
-
Copy full SHA for 114667d - Browse repository at this point
Copy the full SHA 114667dView commit details -
[Turbopack] improve hmr stability (#69985)
### What? Use strongly consistent reads to improve hmr stability
Configuration menu - View commit details
-
Copy full SHA for 16ed89e - Browse repository at this point
Copy the full SHA 16ed89eView commit details -
[Turbopack] In CI report unexpected errors directly (#69997)
### What? In CI report unexpected errors directly instead of writing them to a file
Configuration menu - View commit details
-
Copy full SHA for 05578a1 - Browse repository at this point
Copy the full SHA 05578a1View commit details -
This auto-generated PR updates font data with latest available Co-authored-by: vercel-release-bot <infra+release@vercel.com>
Configuration menu - View commit details
-
Copy full SHA for 013e09f - Browse repository at this point
Copy the full SHA 013e09fView commit details -
[Turbopack] stable Vcs without TraitRef::cell (#70029)
### What? * stable Vcs without TraitRef::cell * move entrypoints awaiting earlier * consistent middleware and instrumentation endpoint using a empty endpoint to avoid errors * handle error when subscribing to changes
Configuration menu - View commit details
-
Copy full SHA for cf23c1e - Browse repository at this point
Copy the full SHA cf23c1eView commit details -
[Turbopack] fix HmrEntryModule (#69965)
### What? It should reload with the default HMR handling instead of a custom dispose method
Configuration menu - View commit details
-
Copy full SHA for ef5cc2b - Browse repository at this point
Copy the full SHA ef5cc2bView commit details -
chore(turbo-tasks): Remove dead md4 support from turbo-tasks-hash (#6…
…9944) We now use xxh3 for our deterministic non-cryptographic hashing needs. [![deadcode](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/WjlTemxb6oA4PgZFmj08/fabeefec-6b93-4740-85c6-16e9e66a8e29/deadcode.jpeg)](https://app.graphite.dev//settings/meme-library?org=vercel)
Configuration menu - View commit details
-
Copy full SHA for 264df4e - Browse repository at this point
Copy the full SHA 264df4eView commit details -
[Turbopack] remove entries from versioned content map again (#69913)
### What? remove entries from versioned content map again ### Why? We don't want to have stale entries in the map when things are removed
Configuration menu - View commit details
-
Copy full SHA for 98645de - Browse repository at this point
Copy the full SHA 98645deView commit details -
chore(github): be more explicit about having to check canary (#69934)
## Why? Issues are still getting created where folks are not testing on the latest canary. We'll add more explicit language to emphasize the need to test on canary as well. --------- Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
Configuration menu - View commit details
-
Copy full SHA for dab529e - Browse repository at this point
Copy the full SHA dab529eView commit details -
Allow passing a nonce to two third-party libraries (#69931)
### What? Adds a passthrough nonce for Google Analytics when inside the Google Tag Manager 3rd party script. ### Why? Promotes security by allowing users to leverage a nonce instead of `unsafe-inline` ### How? Passes the nonce through to the underlying scripts within Google Tag Manager. Closes: #61820 Fixes #61714 --------- Co-authored-by: Vincent <git@vincenttunru.com> Co-authored-by: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for 7b95c63 - Browse repository at this point
Copy the full SHA 7b95c63View commit details -
Updated the example of with-eslint to utilize the App Router. (#70018)
This PR updates the with-eslint example for using the App Router. Here are the changes that have been made: - Renamed the "pages" folder to the "app" folder. - Added the layout.tsx file as part of the App Router. - Updated the package.json file. - Updated tsconfig.json file CC: @samcx --------- Co-authored-by: samcx <sam@vercel.com>
Configuration menu - View commit details
-
Copy full SHA for fbe6c37 - Browse repository at this point
Copy the full SHA fbe6c37View commit details -
Fix not-found case with incremental tracing (#70041)
This ensures we properly handle the `_not-found` remapping of the entry and ensures it invalidates properly when changed with the experimental trace handling. Prior to this you would see `failed to detect changes` on every successive build for the `not-found` route if present. Closes: NDX-263
Configuration menu - View commit details
-
Copy full SHA for fc2519e - Browse repository at this point
Copy the full SHA fc2519eView commit details -
Update unstable_noStore.mdx (#70024)
Clarify that `unstable_noStore()` is only for use inside of Server Components to opt-out of Static Rendering, Client Component though initially Server Rendered cannot call this function as it is a Server-side only function Co-authored-by: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for d41429f - Browse repository at this point
Copy the full SHA d41429fView commit details -
Update typo in authentication docs (#69966)
Improved page copy for a better understanding of its text. <!-- 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: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for e7d0c97 - Browse repository at this point
Copy the full SHA e7d0c97View commit details -
Remove stores param as new integration does not support initializing a schema. This change basically reverts back to the url that was used prior to the new integration last week, which still works just fine. Co-authored-by: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for 5493d87 - Browse repository at this point
Copy the full SHA 5493d87View commit details -
Fix the prerendering typo in
index.mdx
(#69581)<!-- 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: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for 0cda862 - Browse repository at this point
Copy the full SHA 0cda862View commit details -
docs: fix incorrect usage in Server Action in a Client Component exam…
…ple (#68965) <!-- 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? This PR fixes an incorrect usage of the `Button` component in the client component example. The example mistakenly used a `Button` component without importing or defining it properly, whereas the intent was to use the native HTML `button` element. ## Why? The original example incorrectly suggested that a custom `Button` component was being used. However, the intent was likely to demonstrate the usage of the native `button` element with an `onClick` handler to trigger a Server Action. The existing code could lead to confusion, as it implied the existence of a custom component named `Button` without any clear definition or `import`, which would also result in a recursive component reference issue. ## How? This fix ensures that the example clearly demonstrates the intended use of the native button element with an `onClick` handler, aligning with best practices and avoiding potential errors or misunderstandings in component usage. Co-authored-by: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for 7bbc782 - Browse repository at this point
Copy the full SHA 7bbc782View commit details -
Upgrade React from
7771d3a7-20240827
to94e652d5-20240912
(#70037)**breaking change for canary users: Bumps peer dependency of React from `19.0.0-rc-7771d3a7-20240827` to `19.0.0-rc-94e652d5-20240912`** [diff facebook/react@7771d3a7...94e652d5](facebook/react@7771d3a...94e652d) <details> <summary>React upstream changes</summary> - facebook/react#30952 - facebook/react#30950 - facebook/react#30946 - facebook/react#30934 - facebook/react#30947 - facebook/react#30945 - facebook/react#30938 - facebook/react#30936 - facebook/react#30879 - facebook/react#30888 - facebook/react#30931 - facebook/react#30930 - facebook/react#30832 - facebook/react#30929 - facebook/react#30926 - facebook/react#30925 - facebook/react#30905 - facebook/react#30900 - facebook/react#30910 - facebook/react#30906 - facebook/react#30899 - facebook/react#30919 - facebook/react#30708 - facebook/react#30907 - facebook/react#30897 - facebook/react#30896 - facebook/react#30895 - facebook/react#30887 - facebook/react#30889 - facebook/react#30893 - facebook/react#30892 - facebook/react#30891 - facebook/react#30882 - facebook/react#30881 - facebook/react#30870 - facebook/react#30849 - facebook/react#30878 - facebook/react#30865 - facebook/react#30869 - facebook/react#30875 - facebook/react#30800 - facebook/react#30762 - facebook/react#30831 - facebook/react#30866 - facebook/react#30853 - facebook/react#30850 - facebook/react#30847 - facebook/react#30842 - facebook/react#30837 - facebook/react#30848 - facebook/react#30844 - facebook/react#30839 - facebook/react#30802 - facebook/react#30841 - facebook/react#30827 - facebook/react#30826 - facebook/react#30825 - facebook/react#30824 - facebook/react#30840 - facebook/react#30838 - facebook/react#30836 - facebook/react#30819 - facebook/react#30816 - facebook/react#30814 - facebook/react#30813 - facebook/react#30812 - facebook/react#30811 </details> --------- Co-authored-by: vercel-release-bot <infra+release@vercel.com>
Configuration menu - View commit details
-
Copy full SHA for f2cf2e0 - Browse repository at this point
Copy the full SHA f2cf2e0View commit details -
Update prerender-error.mdx (#68747)
This is how I fixed the issue when this error message came up in my command line. <!-- 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: Lee Robinson <me@leerob.io>
Configuration menu - View commit details
-
Copy full SHA for 1710b3d - Browse repository at this point
Copy the full SHA 1710b3dView commit details -
breaking: remove
geo
andip
fromNextRequest
(#68379)### Overview This PR removes the `geo` and `ip` properties from `NextRequest` for Next.js 15. These values had to be provided by your hosting provider. Since this feature was not generally useful for the broader Next.js community (outside of Vercel), we feel it makes more sense to keep this as a Vercel-specific feature and not something built into the framework. ### Alternatives If you are using Vercel, you can alternatively use the `geolocation` and `ipAddress` functions from [`@vercel/functions`](https://vercel.com/docs/functions/vercel-functions-package) instead: ```js filename="middleware.ts" import { geolocation, ipAddress } from '@vercel/functions'; import type { NextRequest } from 'next/server' export function middleware(request: NextRequest) { const { city } = geolocation(request); const ip = ipAddress(request) // ... } ``` --------- Co-authored-by: Eng Zer Jun <engzerjun@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 56dc3ed - Browse repository at this point
Copy the full SHA 56dc3edView commit details -
fix: Add
import-in-the-middle
to server-external-packages (#68937)OpenTelemetry and many other APM libraries rely on `import-in-the-middle` to hook ES module loading and `import-in-the-middle` does not work if it's bundled since the ESM loader hook picks up a different copy of the library to the bundled code. Nextjs uses dynamic import in some places to load modules and these can be hooked via `import-in-the-middle` but it's currently not possible to hook these modules when `import-in-the-middle` gets bundled. I'm currently working on auto instrumentation of cache handlers which are dynamically imported. You can add `import-in-the-middle` to `serverExternalPackages` but this only works if it's a direct dependency. It doesn't appear to stop bundling if `import-in-the-middle` is a sub-dependency. --------- Co-authored-by: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for ed242dc - Browse repository at this point
Copy the full SHA ed242dcView commit details -
docs(route-handlers): add note about caching with other support HTTP …
…methods in Route Handlers (#70049) ## Why? We currently do not clarify that other supported HTTP Methods (all other besides `GET`) in Route Handlers are not cached. This remains true even if they are placed alongside a `GET` that is cached. --------- Co-authored-by: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for b57e814 - Browse repository at this point
Copy the full SHA b57e814View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1504521 - Browse repository at this point
Copy the full SHA 1504521View commit details
Commits on Sep 13, 2024
-
Ensure .d.ts files are not processed in babel-loader / swc-loader (#6…
…6074) ## What? Not a case people will typically run into as you wouldn't import `.d.ts` files. However it's being imported in the React Compiler playground here with webpack customization: facebook/react#29186 <!-- 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 # -->
Configuration menu - View commit details
-
Copy full SHA for 1869072 - Browse repository at this point
Copy the full SHA 1869072View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1e43331 - Browse repository at this point
Copy the full SHA 1e43331View commit details -
Fix example URL for api-routes -> route-handlers (#69642)
Fix repo names so that the commands can be copy-pasted <!-- 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: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for 21855f9 - Browse repository at this point
Copy the full SHA 21855f9View commit details -
fix: Fix syntax context usage and add PURE comments in server actions (…
Configuration menu - View commit details
-
Copy full SHA for e40574b - Browse repository at this point
Copy the full SHA e40574bView commit details -
Turbopack build: Fix pages-manifest test (#70046)
The path that Turbopack outputs is more correct and it doesn't affect the functioning of Next.js as the path is read from the manifest. <!-- 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 # -->
Configuration menu - View commit details
-
Copy full SHA for 28e0488 - Browse repository at this point
Copy the full SHA 28e0488View commit details -
[Turbopack] [HMR] Allow
Option
s to be returned by `VersionedContent……Map` (#69079) Building on #68698, which causes `Error`s propagated from the `VersionedContentMap` to surface as errors instead of reloading the page, allow intentionally missing values to be returned. There are scenarios in which this is desirable and not an error, such as when the content of entries change and the page must be reloaded. In these cases, a `Update:Missing` is returned, which causes the page to be reloaded. Test Plan: CI PACK-3188 --------- Co-authored-by: Tobias Koppers <tobias.koppers@googlemail.com>
Configuration menu - View commit details
-
Copy full SHA for 71fba19 - Browse repository at this point
Copy the full SHA 71fba19View commit details -
feat(turbopack): Port more features of webpack middleware plugin (#69856
) ### What? Port more linting features from `webpack/middleware-plugin.ts`. ### Why? To match the behavior of the default mode. ### How? Closes PACK-3224
Configuration menu - View commit details
-
Copy full SHA for 1bcf0be - Browse repository at this point
Copy the full SHA 1bcf0beView commit details -
[Turbopack] report error to stderr when an error in a subscribtion ha…
…ppens (#69977) ### What? report error to stderr when an error in a subscribtion happens
Configuration menu - View commit details
-
Copy full SHA for 88832a9 - Browse repository at this point
Copy the full SHA 88832a9View commit details -
Configuration menu - View commit details
-
Copy full SHA for c9e6e03 - Browse repository at this point
Copy the full SHA c9e6e03View commit details -
Update experimental trace tracking (#70044)
This adds meta information to our diagnostics folder for easier debugging. Closes: NDX-288
Configuration menu - View commit details
-
Copy full SHA for ae7a6ff - Browse repository at this point
Copy the full SHA ae7a6ffView commit details -
docs: Fix incorrect
--example
flag commands in create-next-app.mdx (#……69307) In the terminal commands usage examples, the `--example` flag should be followed by the example, not by `[your-project-name]` Co-authored-by: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for 4016eb8 - Browse repository at this point
Copy the full SHA 4016eb8View commit details -
docs: fix leading slash in link url (#70074)
<!-- 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: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for 555bd06 - Browse repository at this point
Copy the full SHA 555bd06View commit details -
Fix failing test case (#70075)
This test case isn't guaranteed to always have the value in the output so removes for now.
Configuration menu - View commit details
-
Copy full SHA for 94f75b4 - Browse repository at this point
Copy the full SHA 94f75b4View commit details -
chore: fix some comments (#69361)
<!-- 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? fix some comments ### Why? ### How? Closes NEXT- Fixes # --> Signed-off-by: haouvw <jchaodaohang@foxmail.com> Co-authored-by: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for 1307c1b - Browse repository at this point
Copy the full SHA 1307c1bView commit details -
docs: update use cases for
unstable_noStore()
to include component … (#70071) …example Usage did not explain the use case that is being shown in the component example which is when fetch is not available such as using an ORM or CMS client to query your data <!-- 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: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for 652890a - Browse repository at this point
Copy the full SHA 652890aView commit details -
docs(runtime): improved readability and better clarifying (#70077)
### Why? I've been reading the docs, and realized these little things while reading 😄 Co-authored-by: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for a79d897 - Browse repository at this point
Copy the full SHA a79d897View commit details -
fix(next): Fixed an error when next#dev runs in windows (#70013)
### What? Fixed an error when next#dev runs NEXT_SERVER_EVAL_SOURCE_MAPS=1 taskr in windows ### Why? Running the next.js source code library through pnpm run dev on windows causes the following error ``` next#dev > cache miss, executing 17f7b16b07333365 > next@15.0.0-canary.152 dev D:\workspace\next.js\packages\next │ > NEXT_SERVER_EVAL_SOURCE_MAPS=1 taskr │ 'NEXT_SERVER_EVAL_SOURCE_MAPS' Not an internal or external command, not a runnable program or batch file. │ ELIFECYCLE Command failed with exit code 1. │ command finished with error: command ``` ### How? Set the next.js environment variable by adding the cross-env library Closes NEXT- Fixes # --> Co-authored-by: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for 3727d0a - Browse repository at this point
Copy the full SHA 3727d0aView commit details -
docs: update prerender error (#69744)
Just adding more details here, as it was pretty bare before. --------- Co-authored-by: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for 7f41ea9 - Browse repository at this point
Copy the full SHA 7f41ea9View commit details -
[docs] Recommend disabling static analysis to combat build OOM if CI …
…already handles that (#69186) [Preview](https://github.com/vercel/next.js/blob/sebbie/08-22-_docs_recommend_disabling_static_analysis_to_combat_build_oom_iff_ci_already_handles_that/docs/02-app/01-building-your-application/06-optimizing/13-memory-usage.mdx#disable-static-analysis) Larger apps may encounter OOM in builds during static analysis (eslint+ts). Most larger apps already have a dedicated CI which is better suited for these tasks. This may result in deploy of broken builds but so is deploying without waiting for tests. The added section specifically talks about OOM and recommends manual promotion after static analysis. How to do CI/CD properly is its own industry though so we shouldn't be too opinionated in smaller sections and just describe what tools are available. Closes https://linear.app/vercel/issue/NEXT-3690
Configuration menu - View commit details
-
Copy full SHA for 76a922a - Browse repository at this point
Copy the full SHA 76a922aView commit details -
docs: clarify which functions become Server Actions (#69243)
<!-- 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 # --> Just adding one word to this guide to add clarity; the assumption being that this is indeed true, that only *exported* functions within a file marked with `use server` are made available through API to the client. Co-authored-by: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for 2e99440 - Browse repository at this point
Copy the full SHA 2e99440View commit details -
Upgrade React from
94e652d5-20240912
to206df66e-20240912
(#70076)Co-authored-by: vercel-release-bot <infra+release@vercel.com>
Configuration menu - View commit details
-
Copy full SHA for 874454f - Browse repository at this point
Copy the full SHA 874454fView commit details -
Add "@sparticuz/chromium" to server-external-packages.json (#69127)
Add "@sparticuz/chromium" to server-external-packages.json as it's now a defacto-standard for headless chromium in serverless environments. <!-- 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: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for 9aed93a - Browse repository at this point
Copy the full SHA 9aed93aView commit details -
added js version of 'localized sitemap', which was missing from the md <!-- 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: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for acd9eb5 - Browse repository at this point
Copy the full SHA acd9eb5View commit details -
docs(ppr): Add note about canary for PPR (#70053)
## Why? Experimental PPR does not work for Next.js v14. Technically, you can try using v14 canary, but at that point, you should just be using v15 canary because both requires React v19. - Fixes #69791 --------- Co-authored-by: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for c4ccace - Browse repository at this point
Copy the full SHA c4ccaceView commit details -
skip generating cert each time (#67122)
<!-- 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 #67120 --> --------- Co-authored-by: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for ce9c28f - Browse repository at this point
Copy the full SHA ce9c28fView commit details -
fix: clone response in first handler to prevent race (#70082)
This fixes a race where if the body was resolved before the clone operation, it would clone later, resulting in an error being thrown due to the body already being consumed.
Configuration menu - View commit details
-
Copy full SHA for a449e4a - Browse repository at this point
Copy the full SHA a449e4aView commit details -
Update with web worker example to utilize the App Router (#70058)
This PR updates the with-web-worker example to use the App Router. Here are the changes that have been made: - Renamed the `pages` folder to the `app` folder. - Updated the routing for `/` files to align with the App Router. - Added the layout.tsx file as part of the App Router. - Updated the package.json file. The following actions were performed as part of this PR: - Ran `pnpm prettier-check` with no issues found. - Executed the `pnpm check-examples` script. --------- Co-authored-by: samcx <sam@vercel.com>
Configuration menu - View commit details
-
Copy full SHA for e99f736 - Browse repository at this point
Copy the full SHA e99f736View commit details -
fix: eslint-plugin-next glob (#68773)
Closes #68752 --------- Co-authored-by: Sam Ko <sam@vercel.com>
Configuration menu - View commit details
-
Copy full SHA for 35706e3 - Browse repository at this point
Copy the full SHA 35706e3View commit details -
fix(create-next-app): Add ts lint rule if --empty flag (#70089)
Closes: #69260 Co-authored-by: Kawahara Shotaro <121674121+k-taro56@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 5732610 - Browse repository at this point
Copy the full SHA 5732610View commit details -
perf(turbo-tasks): Use native async traits for TaskInput (not the asy…
…nc_trait macro) (#70084) ## What? Use rustc's relatively new native support for async traits: https://blog.rust-lang.org/2023/12/21/async-fn-rpit-in-traits.html Instead of the `async_trait` macro: https://docs.rs/async-trait/latest/async_trait/ The main differences are: - `async_trait` supports dynamic dispatch. The compiler-native version does not yet. - The compiler-native version often requires using messier `-> impl Future<...> + Send + '_` return types to declare additional bounds (usually `Send`). - `async_trait` forcibly boxes your returned `Future<...>` as a `Box<dyn Future<...>>`. ## Why? - We don't need dynamic dispatch. - Most of the `TaskInput` code is macro-generated, so the uglier `impl Future` syntax doesn't matter. - This is a hot codepath, and there's overhead associated with boxing a `dyn Future`. Removing the dynamic dispatch avoids pointer indirection and gives the compiler more opportunities to inline code. ## Benchmarks No measurable change. ``` cargo bench -p turbopack-bench -p turbopack-cli -- "hmr_to_eval/Turbopack CSR" ``` ``` bench_hmr_to_eval/Turbopack CSR/1000 modules time: [15.439 ms 15.633 ms 15.978 ms] change: [-1.3769% +1.0017% +3.3534%] (p = 0.46 > 0.05) No change in performance detected. ``` ``` TURBOPACK_BENCH_STRESS=yes cargo bench -p turbo-tasks-memory 500 ``` ``` turbo_tasks_memory_stress/fibonacci/500 time: [539.45 ms 544.10 ms 548.41 ms] thrpt: [228.39 Kelem/s 230.20 Kelem/s 232.18 Kelem/s] change: time: [-1.3718% -0.1154% +1.1538%] (p = 0.87 > 0.05) thrpt: [-1.1406% +0.1155% +1.3909%] No change in performance detected. Found 1 outliers among 20 measurements (5.00%) 1 (5.00%) low mild ```
Configuration menu - View commit details
-
Copy full SHA for 6d8cd42 - Browse repository at this point
Copy the full SHA 6d8cd42View commit details -
Configuration menu - View commit details
-
Copy full SHA for a5bd470 - Browse repository at this point
Copy the full SHA a5bd470View commit details
Commits on Sep 14, 2024
-
feat(turbopack): Use source map while reporting CSS parsing error (#6…
…8648) ### What? Improve error messages about invalid CSS files. ### Why? Currently, `sass-loader` compiles CSS as a single line, and as the issue emitter prints the whole line, the error message is not good. ### How? Closes PACK-3187 Fixes #68311 --------- Co-authored-by: Tobias Koppers <tobias.koppers@googlemail.com>
Configuration menu - View commit details
-
Copy full SHA for 30ce5d4 - Browse repository at this point
Copy the full SHA 30ce5d4View commit details -
Turbopack build: Fix edge-runtime-configurable-guards tests (#70088)
This test was checking for an unsupported feature, skipped and documented. <!-- 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 # -->
Configuration menu - View commit details
-
Copy full SHA for 8f7b0fb - Browse repository at this point
Copy the full SHA 8f7b0fbView commit details -
Configuration menu - View commit details
-
Copy full SHA for c9d3138 - Browse repository at this point
Copy the full SHA c9d3138View commit details -
Configuration menu - View commit details
-
Copy full SHA for d66a827 - Browse repository at this point
Copy the full SHA d66a827View commit details
Commits on Sep 16, 2024
-
fix(turbopack): Do not create invalid
EcmascriptModulePartAsset
(#7…Configuration menu - View commit details
-
Copy full SHA for 528700d - Browse repository at this point
Copy the full SHA 528700dView commit details -
fix(turbopack): Improve analyzer of tree-shaking pass (#70017)
### What? Improve the graph analyzer of the tree-shaking pass. This PR does **not** server-action specific changes for tree shaking. ### Why? This is part of [the tree-shaking PR](#69344). ### How?
Configuration menu - View commit details
-
Copy full SHA for 76cc22d - Browse repository at this point
Copy the full SHA 76cc22dView commit details -
Ensure individual Server References are inlined and DCE'd properly (#…
…70103) Co-authored-by: Jiachi Liu <inbox@huozhi.im>
Configuration menu - View commit details
-
Copy full SHA for dd85346 - Browse repository at this point
Copy the full SHA dd85346View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c5ea40 - Browse repository at this point
Copy the full SHA 5c5ea40View commit details -
Turbopack: add unknown into analysis for mutable for-of loops (#70080)
Configuration menu - View commit details
-
Copy full SHA for 6015b31 - Browse repository at this point
Copy the full SHA 6015b31View commit details -
Bump vendored sass-loader version (#70067)
Bump sass-loader to include webpack-contrib/sass-loader#1141. Closes PACK-2447 Previously sass-loader called `this.async()()` when failing to load the dependency, which meant that the following Webpack loaders still run (because that call is passes `error = undefined` and `content = undefined`). That PR changes it to `this.async()(err)`. This in turn changes the **Turbopack** error message in this case from ``` resolve-url-loader: PostCSS error PostCSS received undefined instead of string ``` to ``` Error evaluating Node.js code Error: Cannot find module 'sass' ``` I upgraded to sass-loader 15 because 16 has a pretty breaking change regarding options: https://github.com/webpack-contrib/sass-loader/releases/tag/v16.0.0 [Breaking sass-loader changes between 12.6.0 and 15.0.0](https://github.com/webpack-contrib/sass-loader/blob/master/CHANGELOG.md): - 15.0.0 (2024-07-23) - prefer sass-embedded over sass by default - 14.0.0 (2024-01-15) - removed `fibers` support - minimum supported Node.js version is 18.12.0 - 13.0.0 - minimum supported Node.js version is 14.15.0 - emit `@warn` at-rules as webpack warnings by default, if you want to revert behavior please use the warnRuleAsWarning option
Configuration menu - View commit details
-
Copy full SHA for ecc3094 - Browse repository at this point
Copy the full SHA ecc3094View commit details -
Configuration menu - View commit details
-
Copy full SHA for 05bcd01 - Browse repository at this point
Copy the full SHA 05bcd01View commit details -
Only build Linux in automated preview builds (#70157)
This is the only build we use in automated deploy tests and when doing ad-hoc syncs. The full matrix is still available by just re-running the workflow or manually starting one. Apple resources are scarce and scaling them up is not trivial at the moment.
Configuration menu - View commit details
-
Copy full SHA for ca488d8 - Browse repository at this point
Copy the full SHA ca488d8View commit details -
Fix eslint root dirs test on Windows (#70160)
The root dirs tests have been failing on Windows since #68773 so this fixes to ensure we normalize the slashes passed to `fast-glob` so it looks up as expected. x-ref: https://dev.azure.com/nextjs/next.js/_build/results?buildId=98629&view=logs&j=8af7cf9c-43a1-584d-6f5c-57bad8880974&t=7ae70e63-3625-50f4-6764-5b3e72b4bd7a
Configuration menu - View commit details
-
Copy full SHA for 6a69c35 - Browse repository at this point
Copy the full SHA 6a69c35View commit details -
Remove non-null assertion operator for compatibility with JavaScript (#…
…70104) Remove TypeScript-specific non-null assertion operator (`!`) from URL parsing The non-null assertion operator (`!`) is used in TypeScript to assert that a value is not `null` or `undefined`. In plain JavaScript, this operator is not valid and can cause issues. Replaced `req.url!` with a safer approach for handling potential `null` or `undefined` values to ensure compatibility with JavaScript environments. <!-- 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: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for b1fad80 - Browse repository at this point
Copy the full SHA b1fad80View commit details -
Fix useFormStatus import in authentication doc (#70138)
Updated docs, authentication section: useFormStatus and useFormState should be imported from 'react-dom' instead of 'react', or else the compiler gives the following error: ⨯ src/components/LoginForm.jsx (19:40) @ login ⨯ TypeError: (0 , react__WEBPACK_IMPORTED_MODULE_6__.useFormState) is not a function or its return value is not iterable at LoginForm (./src/components/LoginForm.jsx:23:80) at stringify (<anonymous>) at stringify (<anonymous>) digest: "258431019" 17 | 18 | export function LoginForm() { 19 | const [state, action] = useFormState(login, undefined); <!-- 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: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for a6e1dcb - Browse repository at this point
Copy the full SHA a6e1dcbView commit details -
docs: fix button server action example (#70131)
When following the example for server actions for button onClick, developers will see the error below. ``` Error: Only plain objects, and a few built-ins, can be passed to Server Actions. Classes or null prototypes are not supported. ``` That is because the server action function is taking in the button onClick `event` in the action. Co-authored-by: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for 9e15451 - Browse repository at this point
Copy the full SHA 9e15451View commit details -
fix: button className in with_supabase example (#70121)
fix: #69525 ## What I fixed an issue in the with-supabase example where duplicate className in deploy-button.tsx was causing a Tailwind CSS error. Co-authored-by: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for 25c114e - Browse repository at this point
Copy the full SHA 25c114eView commit details -
Update Turborepo to 2.1.2 (#70145)
This version of Turborepo reduces the CPU usage when running `pnpm dev` (via vercel/turborepo#9121).
Configuration menu - View commit details
-
Copy full SHA for 002c735 - Browse repository at this point
Copy the full SHA 002c735View commit details -
docs: update configuring
Draft Mode
to link to the API reference (#……70128) ### **Why?** Related desciption says "see the API reference" but does not actually link to the API reference and instead links to the exact same page. <!-- 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: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for 097bedb - Browse repository at this point
Copy the full SHA 097bedbView commit details -
fix(examples): remove
version
attribute post deprecation (#70108)## What? Remove `version` attribute post deprecation from the all docker compose files. ## Why? For the latest docker compose (i.e docker compose v2), the `version` attribute has been deprecated. This is currently a warning when you do docker compose up but in the future would become a requirement. [Version and name top-level elements](https://github.com/compose-spec/compose-spec/blob/main/spec.md#version-and-name-top-level-elements) mention that the `version` has become obsolete for the latest docker compose. ## How? Remove the `version` field in the compose files to stop the warning that one may get during docker builds. ### Adding or Updating Examples - [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 Similar PR: #68503 <!-- 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 ### 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: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for d675e23 - Browse repository at this point
Copy the full SHA d675e23View commit details -
docs: update broken link in UPGRADING.md (#70107)
## Description At #60388, upgrading.md was moved. Then update the link to correct directory. ❌ [/docs/02-app/01-building-your-application/10-upgrading](https://github.com/vercel/next.js/blob/canary//docs/02-app/01-building-your-application/10-upgrading) ✔️ [/docs/02-app/01-building-your-application/11-upgrading](https://github.com/vercel/next.js/blob/canary//docs/02-app/01-building-your-application/11-upgrading) ### Improving Documentation - [x] Run `pnpm prettier-fix` to fix formatting issues before opening the PR. - [x] Read the Docs Contribution Guide to ensure your contribution follows the docs guidelines: https://nextjs.org/docs/community/contribution-guide x-ref: #60388 <!-- 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 ### 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: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for bca1972 - Browse repository at this point
Copy the full SHA bca1972View commit details -
Corrected hyperlink to experimental_ppr (#70130)
I noticed an incorrect anchor at the docs '[Route Segment Config](https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config)' so I fixed it. Co-authored-by: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for b83dccd - Browse repository at this point
Copy the full SHA b83dccdView commit details -
Update 12-third-party-libraries.mdx (#70063)
`export declare const sendGTMEvent: (data: Object) => void;` `sendGTMEvent` currently accept Object only. example: ``` sendGTMEvent({ event: "clicked", value: '123' }); ``` Co-authored-by: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for 274310a - Browse repository at this point
Copy the full SHA 274310aView commit details -
Update examples/github-pages/README.md (#70057)
Hi there, I was trying to understand how to use [examples/github-pages](https://github.com/vercel/next.js/tree/canary/examples/github-pages) and when I followed the instructions my page was rendering without stylesheets. I found the extant README content to be clear, but after I found #38777 I was able to understand what the current content meant, so I thought it would be helpful to add this to the original example. Open to edits on content or clarity. Thanks! --------- Co-authored-by: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for 18faa9f - Browse repository at this point
Copy the full SHA 18faa9fView commit details -
Update authentication example accessing state.errors (#70028)
1. `useFormState` can't be found in the current react version, for some reason. Picking it from `react-dom` works just fine. 2. Reading `state.errors.name` from the `state` object before it becomes defined returns a **TypeError**. Checking if it's defined first before calling its children works just fine. <!-- 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: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for e005cb5 - Browse repository at this point
Copy the full SHA e005cb5View commit details -
Update 01-fetching.mdx - use available endpoint (#69559)
### Improving Documentation Changed example endpoint to available endpoint Co-authored-by: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for 3842680 - Browse repository at this point
Copy the full SHA 3842680View commit details -
fix: rsc content-type header not matching with charset (#70033)
`charset` can be included in the `content-type` header which currently causes `RSC` detection to fail when it shouldn't so this relaxes the check to just ensure the RSC `content-type` includes the expected type not an exact match. --------- Co-authored-by: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for 02f886a - Browse repository at this point
Copy the full SHA 02f886aView commit details -
Docs: fixed useFormStatus import error in the example. (#69565)
<!-- 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 # --> I got the error below when I tried to use the [Pending States example](https://nextjs.org/docs/app/building-your-application/data-fetching/server-actions-and-mutations#pending-states) in the documentation. After I changed the import source to react-dom, the problem was fixed. ![useFormStatus-example-warning](https://github.com/user-attachments/assets/a7ae113a-d7b4-4118-9ab7-cbd43dfd8cb1) Co-authored-by: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for e5a123e - Browse repository at this point
Copy the full SHA e5a123eView commit details -
Update middleware supported runtimes docs (#69510)
Fixes the confusion from #69503. Co-authored-by: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for 2bdc984 - Browse repository at this point
Copy the full SHA 2bdc984View commit details -
remove unsafe-inline from with-strict-csp (#69497)
### What? Remove unsafe-inline from with-strict-csp example in the script-src ### Why? The main purpose of having strict CSP headers is to improve the web app security posture. On securityheaders.com the grade is capped to A if script-src contains 'unsafe-inline'. In order to reach A+. it needs to be removed. ### How? Edit the script-src in the with-strict-csp-app example Co-authored-by: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for 8b03244 - Browse repository at this point
Copy the full SHA 8b03244View commit details -
chore/ examples use-supabase | update rate limit note (#69423)
- update rate limit note <!-- 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: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for 9bf0148 - Browse repository at this point
Copy the full SHA 9bf0148View commit details -
examples(with-supabase): typo on env file name (#69291)
### What? Minor typo on the env file name Co-authored-by: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for 9e56a92 - Browse repository at this point
Copy the full SHA 9e56a92View commit details -
fix(examples/with-docker): remove not needed files from docker context (
#68668) <!-- 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: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for cc6d818 - Browse repository at this point
Copy the full SHA cc6d818View commit details -
fixes #68228 Clarify width and height properties in Image component d…
…ocs (#68248) <!-- 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 - [x] Run `pnpm prettier-fix` to fix formatting issues before opening the PR. - [x] 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 # --> ### Clarify width and height properties in Image component docs This PR updates the documentation for the `width` and `height` properties of the Image component to clarify that these attributes represent the intrinsic dimensions of the image and do not determine the rendered size, which is controlled by CSS. This clarification aligns the documentation with the behavior of the HTML `<img>` tag. Fixes issue #68228. Closes #68228 --------- Co-authored-by: JJ Kasper <jj@jjsweb.site> Co-authored-by: Willem-Jaap <67187467+Willem-Jaap@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for aa66ee4 - Browse repository at this point
Copy the full SHA aa66ee4View commit details -
Fix startTime error on Android 9 with Chrome 74 (#67391)
### What? Fixes the error `Cannot read property 'startTime' of null` on Chrome 74 for Android 9 by ensuring the `beforeHydrationMeasure` and `hydrationMeasure` are not falsy values before accessing their properties. <img width="1164" alt="Screenshot 2024-07-02 at 11 14 53 PM" src="https://github.com/vercel/next.js/assets/52588326/34df95b6-a4fe-4886-96b8-a3c873a2ae6a"> ### Why? The application crashes on Chrome 74 for Android 9 due to `null` or other falsy values being returned in certain situations. This fix ensures that the `startTime` property is only accessed if it is not a falsy value, thereby preventing the crash. ### How? Added a falsy check before accessing the `startTime` property in the performance measurement logic. Specifically, modified the code at [this location](https://github.com/vercel/next.js/blob/b9bd23baec14508400c502b3651f4cf2497e883b/packages/next/src/client/index.tsx#L498) Co-authored-by: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for d2a17d9 - Browse repository at this point
Copy the full SHA d2a17d9View commit details -
Configuration menu - View commit details
-
Copy full SHA for d41dd44 - Browse repository at this point
Copy the full SHA d41dd44View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6ac781d - Browse repository at this point
Copy the full SHA 6ac781dView commit details
Commits on Sep 17, 2024
-
docs: typo error state value on authentication (#70171)
## Summary The error message should correspond to its value. In addition, add `?` to the state of password like the others. ### Improving Documentation - [x] Run `pnpm prettier-fix` to fix formatting issues before opening the PR. - [x] Read the Docs Contribution Guide to ensure your contribution follows the docs guidelines: https://nextjs.org/docs/community/contribution-guide x-ref: #70028 <!-- 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 # -->
Configuration menu - View commit details
-
Copy full SHA for 3127e86 - Browse repository at this point
Copy the full SHA 3127e86View commit details -
Fix regression in TS plugin: allow
reset
prop in error files (#69777)The TypeScript error `Props must be serializable for components in the "use client" entry file, "reset" is invalid.` for the `reset` prop in `error.tsx` and `global-error.tsx` was fixed in #46898 and #48756, respectively. However, a regression of the fix was accidentally introduced in #67211. This PR restores the previous behavior and adds fixtures for manual testing. (Since the Next.js TS plugin only applies to VSCode, manual testing in VSCode is required. See [`test/development/typescript-plugin/README.md`](https://github.com/vercel/next.js/blob/a5f30e68f8d1fe614965abc5df0234a869c6db8a/test/development/typescript-plugin/README.md) for details.)
Configuration menu - View commit details
-
Copy full SHA for 4e14037 - Browse repository at this point
Copy the full SHA 4e14037View commit details -
fix(turbopack): intercepting routes should have default slots (#69929)
Configuration menu - View commit details
-
Copy full SHA for 7eccedc - Browse repository at this point
Copy the full SHA 7eccedcView commit details -
Ensure we chunk revalidate tag requests (#70189)
This ensures we chunk revalidate tag requests so we don't send too many at once. x-ref: [slack thread](https://vercel.slack.com/archives/C03UR7US95F/p1726585656900449?thread_ts=1726049244.204009&cid=C03UR7US95F) --------- Co-authored-by: Kelly Davis <kldavis4@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for ef06571 - Browse repository at this point
Copy the full SHA ef06571View commit details -
[Third parties] Google analytics Add debug mode (#63405)
Co-authored-by: Jiachi Liu <inbox@huozhi.im>
Configuration menu - View commit details
-
Copy full SHA for 05dd22d - Browse repository at this point
Copy the full SHA 05dd22dView commit details -
Improve Server Reference ID DCE tests (#70191)
This PR improves the integration test of dead code elimination of Server Reference IDs in the client bundle, to cover: - Barrel files (re-exports and nested imports) - Side effects in server boundary and intermediate modules - SWC compression
Configuration menu - View commit details
-
Copy full SHA for 2397507 - Browse repository at this point
Copy the full SHA 2397507View commit details -
Configuration menu - View commit details
-
Copy full SHA for e881962 - Browse repository at this point
Copy the full SHA e881962View commit details -
fix(lint): no-html-link in appDir (#68770)
supersedes #51783 ## What This PR fixes the issue of `<a>` tags for internal routing not being caught by linting in the app directory. ## Why The linting of the html links should be consistent across pages and app directories. ## How - Added a new function to parse the URLs in the appDir (since it's a bit different from the /pages directory) - Lint now checks against pagesUrls and appUrls - Added tests for the appDir in the no-html-link-for-pages test file fixes #51742 --------- Co-authored-by: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for c07dbd7 - Browse repository at this point
Copy the full SHA c07dbd7View commit details -
docs: fix 10-dynamic-routes.mdx (#70126)
params from `{}` to `{ slug: undefined }`. Fixes #70124
Configuration menu - View commit details
-
Copy full SHA for 08f8fac - Browse repository at this point
Copy the full SHA 08f8facView commit details -
docs: add
tsc
note in docs for ignoring typescript build errors (#7……0180) Updates the docs to add a note about running `tsc` yourself. If you're ignoring Typescript errors during build time you should probably run `tsc` yourself before building. Co-authored-by: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for c8ef8bd - Browse repository at this point
Copy the full SHA c8ef8bdView commit details -
fix(next): skip conventional type check for
_private
folder convent……ion (#64177) ### Why? The `next build` failed because it was trying to type check route-conventional files (page, layout, route) in the `_private` folder, which should not be considered as route segments. x-ref(CI): https://github.com/vercel/next.js/actions/runs/10907159175/job/30270204880?pr=64177#step:29:117 ### How? Don't generate type files for files that are under the `<app-dir>/**/_*` pattern. Fixes #64162 Closes NDX-283 Closes NDX-285
Configuration menu - View commit details
-
Copy full SHA for 727e625 - Browse repository at this point
Copy the full SHA 727e625View commit details -
Only wait for metadata when dynamicIO experiment is on (#70192)
waiting for metadata is only necessary when `dynamicIO` is enabled. In the long run we will get rid of this waiting anyway when we have async dynamic APIs so we condition this behavior to be only when dynamicIO is on for now
Configuration menu - View commit details
-
Copy full SHA for 3b5bae4 - Browse repository at this point
Copy the full SHA 3b5bae4View commit details -
Fix: (third-parties) sendGTMEvent not queueing events before GTM init (…
…#68683) <!-- 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? sendGTMEvent pushes items to window.datalayer. THe GoogleTagManger (GTM) client uses this to know what events to the GTM server. currently if GTM is not ready, instead of adding events to the dataLayer, it writes a warning to the console saying GTM is not ready. The PR fixes that by defining the dataLayer if it is undefined so it can start to queue up events before GTM is ready ### Why? If GTM init is slow we don't want to loose any events that we want to send before GTM init has happened we want to queue them up in the dataLayer ### How? The PR fixes that by defining the dataLayer if it is undefined so it can start to queue up events before GTM is ready Closes NEXT- Fixes # fixes #66865 (discussion) fixes #68678 (issue) --> ### What? sendGTMEvent pushes items to window.datalayer. THe GoogleTagManger (GTM) client uses this to know what events to the GTM server. currently if GTM is not ready, instead of adding events to the dataLayer, it writes a warning to the console saying GTM is not ready. The PR fixes that by defining the dataLayer if it is undefined so it can start to queue up events before GTM is ready https://developers.google.com/tag-platform/tag-manager/datalayer#how_data_layer_information_is_processed ### Why? If GTM init is slow we don't want to loose any events that we want to send before GTM init has happened we want to queue them up in the dataLayer Another use case for this behaviour, is that you can optionally initialise GoogleTagManager based on environment so you don't pollute GTM data when developing or running playright tests, but you can still evaluate what exists on the dataLayer to test if the correct events would be sent to GTM after testing interactions with the app. ### How? The PR fixes that by defining the dataLayer if it is undefined so it can start to queue up events before GTM is ready Fixes # fixes #66865 (discussion) fixes #68678 (issue) --------- Co-authored-by: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for 77d0f51 - Browse repository at this point
Copy the full SHA 77d0f51View commit details -
Configuration menu - View commit details
-
Copy full SHA for 71a5bd1 - Browse repository at this point
Copy the full SHA 71a5bd1View commit details
Commits on Sep 18, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 6f2471e - Browse repository at this point
Copy the full SHA 6f2471eView commit details -
Upgrade React from
206df66e-20240912
toa99d8e8d-20240916
(#70190)**breaking change for canary users: Bumps peer dependency of React from `19.0.0-rc-206df66e-20240912` to `19.0.0-rc-a99d8e8d-20240916`** [diff facebook/react@206df66e...a99d8e8d](facebook/react@206df66...a99d8e8) <details> <summary>React upstream changes</summary> - facebook/react#30977 - facebook/react#30971 - facebook/react#30922 - facebook/react#30917 - facebook/react#30902 - facebook/react#30912 - facebook/react#30970 - facebook/react#30969 - facebook/react#30967 - facebook/react#30966 - facebook/react#30960 - facebook/react#30968 - facebook/react#30961 - facebook/react#28255 - facebook/react#30957 - facebook/react#30958 - facebook/react#30959 - facebook/react#30951 - facebook/react#30954 - facebook/react#30920 - facebook/react#30942 </details>
Configuration menu - View commit details
-
Copy full SHA for 5791706 - Browse repository at this point
Copy the full SHA 5791706View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2b73531 - Browse repository at this point
Copy the full SHA 2b73531View commit details -
Configuration menu - View commit details
-
Copy full SHA for cf20257 - Browse repository at this point
Copy the full SHA cf20257View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2cca35e - Browse repository at this point
Copy the full SHA 2cca35eView commit details -
Configuration menu - View commit details
-
Copy full SHA for ac4a1c6 - Browse repository at this point
Copy the full SHA ac4a1c6View commit details -
Add support for
dynamicIO
experiment toroute.ts
modules (#70208)`dyanmicIO` enables a semantic where any uncached IO will be excluded from prerenders. Before PPR this means any uncached IO would bail out of static generation at build time and during revalidates. Route handlers have a similar ability to be statically generated at build and revalidate time however we recently changed the behavior to only be enabled if you explicitly opt into this using an API like `export const revalidate` or `export const dynamic = "force-static"`. With dynamic IO though we don't really need to be this restrictive. If you use `unstable_cache` or `fetch(..., { cache: 'force-cache' })` you are opting into caching so when dynamicIO is on we can infer that the GET handler is valid to cache as long as there is no uncached IO. So in this commit we restore static generation when `dynamicIO` is enabled.
Configuration menu - View commit details
-
Copy full SHA for b6ab2cd - Browse repository at this point
Copy the full SHA b6ab2cdView commit details -
[ppr] Allow fallback pages to be revalidated (#70199)
### What? This allows fallback pages that have Partial Prerendering enabled to be revalidated in minimal mode. ### How? When a request comes in without any `x-now-route-matches` headers and has partial prerendering enabled, it will consider it a revalidation request for the fallback page.
Configuration menu - View commit details
-
Copy full SHA for 6d46b17 - Browse repository at this point
Copy the full SHA 6d46b17View commit details -
updated the example of with-videojs to utilize the App Router (#70226)
This PR updates the with-videojs example to use the App Router. Here are the changes that have been made: - Renamed the pages folder to the app folder. - Updated the routing for / files to align with the App Router. - Added the layout.tsx file as part of the App Router. - Updated the package.json file. The following actions were performed as part of this PR: - Ran `pnpm prettier-check `with no issues found. - Executed the `pnpm check-examples` script. CC: @samcx --------- Co-authored-by: samcx <sam@vercel.com>
Configuration menu - View commit details
-
Copy full SHA for cc8b809 - Browse repository at this point
Copy the full SHA cc8b809View commit details -
Re-add internal env for providing page paths (#70235)
This re-adds internal env variables to allow providing page paths directly for debugging purposes. This is NOT a public API and should not be leveraged outside of internal Next.js debugging. x-ref: #67134 x-ref: [slack thread](https://vercel.slack.com/archives/C04DUD7EB1B/p1726519130567199)
Configuration menu - View commit details
-
Copy full SHA for f3e3bcb - Browse repository at this point
Copy the full SHA f3e3bcbView commit details -
feat: add polyfill of
URL.canParse
for browser compatibility (#70228)### Why? Since `URL.canParse` is incompatible with older browsers like Safari 16, we added `canParseUrl` util at #70215. x-ref: https://caniuse.com/?search=URL.canParse To improve maintenance, we decided to add polyfill for `URL.canParse`. x-ref: [slack thread](https://vercel.slack.com/archives/C07BVA6HM17/p1726664071636899?thread_ts=1726620161.450109&cid=C07BVA6HM17) Closes NDX-302 --------- Co-authored-by: Jiachi Liu <inbox@huozhi.im>
Configuration menu - View commit details
-
Copy full SHA for 5b0b68a - Browse repository at this point
Copy the full SHA 5b0b68aView commit details -
Remove dependecy graceful-fs and types (#67194)
Remove the dependency `graceful-fs` and types. I have looked at the project and it is only used in one file, inside this file only `fs` is imported but not the functionality provided by the library, finally it uses the native one through `graceful-fs`, I have simplified the logic and removed the unnecessary library. The retry functionality is implemented in the file and is not used from the dependency Co-authored-by: torresgol10.it <torresgol10.itd@gmail.com> Co-authored-by: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for 6b89e63 - Browse repository at this point
Copy the full SHA 6b89e63View commit details -
Configuration menu - View commit details
-
Copy full SHA for a5e0aab - Browse repository at this point
Copy the full SHA a5e0aabView commit details
Commits on Sep 19, 2024
-
chore(turbopack): Remove pathfinder dependency (#70234)
Pathfinder is only needed if [the `allsorts` `outline` feature](https://docs.rs/allsorts/latest/allsorts/#cargo-features) is enabled, but it looks like we don't actually use the `outline` feature? This should avoid breakages for us whenever the nightly rust simd APIs change.
Configuration menu - View commit details
-
Copy full SHA for de47568 - Browse repository at this point
Copy the full SHA de47568View commit details -
chore: add comments for polyfill imports and file paths (#70233)
### Why? As the file paths to the build outputs of `@next/polyfill-module` & `@next/polyfill-nomodule` may not be intuitive without context, added comments that describes it.
Configuration menu - View commit details
-
Copy full SHA for 48e3c14 - Browse repository at this point
Copy the full SHA 48e3c14View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5307de9 - Browse repository at this point
Copy the full SHA 5307de9View commit details -
Configuration menu - View commit details
-
Copy full SHA for b59fe88 - Browse repository at this point
Copy the full SHA b59fe88View commit details -
[Turbopack] use double locking to balance edges (#70247)
### What? The previous approach was not completely correct and had a race condition when data was propagated by the edge was being balanced. This caused aggregated data to be incorrect. This caused some issues to stick around while they shouldn't do that. ### How? Now it locks both node at the same time to make sure to balance them in a single lockstep.
Configuration menu - View commit details
-
Copy full SHA for 8e1a92b - Browse repository at this point
Copy the full SHA 8e1a92bView commit details -
Run
@next/codemod
tests in CI (#70248)Co-authored-by: Jiachi Liu <inbox@huozhi.im>
Configuration menu - View commit details
-
Copy full SHA for c3475da - Browse repository at this point
Copy the full SHA c3475daView commit details -
docs: add Nitrogen AIO loader for next/image (#67523)
### What? Adds Nitrogen AIO custom image loader to docs. ### Why? Help folks find Nitrogen AIO as an option for Image @leerob --------- Co-authored-by: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for 5f7ff1c - Browse repository at this point
Copy the full SHA 5f7ff1cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 979fedb - Browse repository at this point
Copy the full SHA 979fedbView commit details -
bugfix: actions that redirect should reject the action promise (#69945)
When calling `redirect` in a server action, the action handler will invoke a worker to fetch the RSC payload from the URL being redirected to, and will return it in the action request. This allows the redirect to be handled in a single request rather than requiring a second request to fetch the RSC payload on the URL being redirected to. As part of this special redirection handling, no action result is returned, so the action promise is resolved with `undefined`. As a result of this behavior, if your server action redirects to a page that has the same form that was just submitted, and you're leveraging `useActionState`, the updated state value will be undefined rather than being reset to the initial state. **More generally, redirect errors are handled by the client currently by simply resolving the promise with undefined, which isn't the correct behavior.** This PR will reject the server action promise with a redirect error, so that it'll be caught by our `RedirectBoundary`. Since React will remount the tree as part of the error boundary recovery, this effectively resets the form to it's initial state. If the action is rejected in a global `startTransition`, then it'll be handled by a global `error` handler, which will perform the redirect. And if it occurs outside of a transition, the redirect will be handled by a `unhandledrejection` handler. Because we're not able to apply the flight data as-is in the server action reducer (and instead defer to the navigation action), we seed the prefetch cache for the target page with the flight data from the action result so that we do not need to make another server roundtrip. We apply the same static/dynamic cache staleTime heuristics for these cache entries. Fixes #68549 Closes NDX-229
Configuration menu - View commit details
-
Copy full SHA for 1e2493e - Browse repository at this point
Copy the full SHA 1e2493eView commit details -
unskip middleware deploy test (#70264)
This whole test suite was disabled but only 2 tests rely on runtime logs, so this refactors the test to remove the runtime log dependency in favor of returning the output from the action and reading from the DOM.
Configuration menu - View commit details
-
Copy full SHA for 89242ec - Browse repository at this point
Copy the full SHA 89242ecView commit details -
Fix missing cache-control on SSR app route (#70265)
This removes an inaccurate check that doesn't set a revalidate value if revalidate is `undefined` which can be the case for SSR app route pages. Also adds a regression test to ensure this doesn't break again. Fixes: #70213
Configuration menu - View commit details
-
Copy full SHA for 8f9c6a8 - Browse repository at this point
Copy the full SHA 8f9c6a8View commit details -
Configuration menu - View commit details
-
Copy full SHA for af9b229 - Browse repository at this point
Copy the full SHA af9b229View commit details
Commits on Sep 20, 2024
-
Update Turbopack development test manifest (#70275)
This auto-generated PR updates the development integration test manifest used when testing Turbopack.
Configuration menu - View commit details
-
Copy full SHA for 535b966 - Browse repository at this point
Copy the full SHA 535b966View commit details -
Configuration menu - View commit details
-
Copy full SHA for 44d7a58 - Browse repository at this point
Copy the full SHA 44d7a58View commit details -
fix: match file path url escaping during build and serve (#70256)
### What? This fixes file path encoding differences between build and serve. Currently, file paths that get encoded via `encodeURIPath` (which uses `encodeURIComponent`): https://github.com/vercel/next.js/blob/c3475da0686eecbf9acc9b004e579a8e67288d70/packages/next/src/server/app-render/create-component-styles-and-scripts.tsx#L59-L61 But when matching files to serve, we use `encodeURI`: https://github.com/vercel/next.js/blob/c3475da0686eecbf9acc9b004e579a8e67288d70/packages/next/src/server/lib/router-utils/filesystem.ts#L191 This means that any file which contains reserved characters according to [RFC2396](https://datatracker.ietf.org/doc/html/rfc2396) will not match correctly. ``` reserved = ";" | "/" | "?" | ":" | "@" | "&" | "=" | "+" | "$" | "," ``` Closes PACK-3266
Configuration menu - View commit details
-
Copy full SHA for 1bfac33 - Browse repository at this point
Copy the full SHA 1bfac33View commit details -
Rename
loader_tree
toapp_page_loader_tree
(#70283)This is a pure refactoring in preparation for introducing an `app_route_loader_tree` in a future PR. The `app_page_loader_tree` collects information from the app directory for app _page_ entries, whereas the upcoming `app_route_loader_tree` will collect information from the app directory tailored to app _route_ entries.
Configuration menu - View commit details
-
Copy full SHA for ce74096 - Browse repository at this point
Copy the full SHA ce74096View commit details -
Extract future common code into
base_loader_tree
(#70284)This is a pure refactoring in preparation for introducing an `app_route_loader_tree` in a future PR. It enables reusing common logic for injecting imported modules from the app directory into both page and route entries.
Configuration menu - View commit details
-
Copy full SHA for d2274c1 - Browse repository at this point
Copy the full SHA d2274c1View commit details -
Rename app directory "components" to "modules" (#70285)
This is a pure refactoring. Not every reserved file in the app directory represents a component module. Currently, `route` is the only exception, but a future PR will introduce another one.
Configuration menu - View commit details
-
Copy full SHA for 496ff01 - Browse repository at this point
Copy the full SHA 496ff01View commit details -
Honor redirect type in server actions (#70279)
Fixes #70216 ### What? The `redirect` function from `next/navigation` does not honor the redirect type when used in server actions. When setting `type` to `replace`, the server action pushes to history instead of replacing the route. This stems from #54458 ### Why? The server action should honor the redirect type. ### How? By setting `x-action-redirect` header to `<url>;<redirectType>`, we extract the type of redirect to be performed on the client. This is handled in a way that if the type is absent, we fallback to `push`. Demo: https://github.com/user-attachments/assets/3c84c6e3-2b08-4df3-89b2-5f9d290cc5ff Observe that once the form is submitted and the action replaced the URL with `/`, we didn't go back to the `/child` route. --------- Co-authored-by: Zack Tanner <1939140+ztanner@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for a840410 - Browse repository at this point
Copy the full SHA a840410View commit details -
refactor(turbo-tasks): Add a way to directly construct a ResolvedVc (#…
…69992) Without these APIs, the only way to construct a `ResolvedVc` was: ``` Vc::cell(my_value).to_resolved().await? ``` However, we know when calling `Vc::cell` that the `Vc` must be resolved (since we just assigned it to a cell), so we can shortcut that and provide a better API: ``` ResolvedVc::cell(my_value) ``` For `#[turbo_tasks::value]`s, there's an equivalent `.resolved_cell` method.
Configuration menu - View commit details
-
Copy full SHA for bd85c9a - Browse repository at this point
Copy the full SHA bd85c9aView commit details -
docs: fix the signature of CacheHandler#revalidateTag (#70286)
<!-- 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 git ### 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 # --> docs: fix the signature of CacheHandler#revalidateTag My tests shows that the `tags` could be an array. I have traced it back to the code: https://github.com/vercel/next.js/blob/af9b229074e39617bdd32d390fdc8f6a36d7bcde/packages/next/src/server/lib/incremental-cache/index.ts#L246-L248 --------- Co-authored-by: malewis5 <matthew.a.lewis7@gmail.com> Co-authored-by: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for 948f1f1 - Browse repository at this point
Copy the full SHA 948f1f1View commit details -
Configuration menu - View commit details
-
Copy full SHA for cd33300 - Browse repository at this point
Copy the full SHA cd33300View commit details -
refactor: collect all isThenable/isPromise definitions (#70293)
This collects the few different isThenable and isPromise definitions into one shared function
Configuration menu - View commit details
-
Copy full SHA for cf59073 - Browse repository at this point
Copy the full SHA cf59073View commit details -
updated the example of with-three-js to utilize the App Router (#70287)
This PR updates the with-three-js example to use the App Router. Here are the changes that have been made: - Renamed the pages folder to the app folder. - Updated the routing for `/`, `/birds` & `/boxes` files to align with the App Router. - Added the `layout.tsx` & `tsconfig.json` file as part of the App Router. - Updated the package.json file. The following actions were performed as part of this PR: - Ran `pnpm prettier-check `with no issues found. - Executed the `pnpm check-examples` script. CC: @samcx --------- Co-authored-by: samcx <sam@vercel.com>
Configuration menu - View commit details
-
Copy full SHA for e3688fb - Browse repository at this point
Copy the full SHA e3688fbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0bfa3ec - Browse repository at this point
Copy the full SHA 0bfa3ecView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1a6e487 - Browse repository at this point
Copy the full SHA 1a6e487View commit details