- 22 Jan, 2024 16 commits
-
-
vercel-release-bot authored
-
OJ Kwon authored
### Description This PR refactors existing `analysis/get-static-page-info`, moves over most of parse / ast visiting logic into next-swc's rust codebase. By having this, turbopack can reuse same logic to extract info for the analysis. Also as a side effect, this removes JS side parse which is known to be inefficient due to serialization / deserialization. The entrypoint `getPageStaticInfo` is still in the existing `get-page-static-info`, only for extracting / visiting logic is moved. There are some JS specific context to postprocess extracted information which would require additional effort to move into. Closes PACK-2088
-
Sam Ko authored
## Changes - Update all instances of pnpm to the latest v8.14.2 Closes NEXT-2188
-
Mike Timmerman authored
Use nullish coalescing operator in all getLayout examples on documentation page Co-authored-by:Sam Ko <sam@vercel.com>
-
Delba de Oliveira authored
-
Will Binns-Smith authored
This aligns the version with that in https://github.com/vercel/turbo Closes PACK-2272
-
Balázs Orbán authored
### What? Add some regex patterns to not allow certain github links as reproduction URLs ### Why? See https://github.com/vercel/next.js/issues/58248 ### How? See https://github.com/balazsorban44/nissuer#validate-reproduction-urls Closes NEXT-2185
-
Tim Neutkens authored
## What? Skip the `@next/font` legacy tests in Turbopack. `next/font` is supported with Turbopack enabled. <!-- Thanks for opening a PR! Your contribution is much appreciated. To make sure your PR is handled as smoothly as possible we request that you follow the checklist sections below. Choose the right checklist for the change(s) that you're making: ## For Contributors ### Improving Documentation - Run `pnpm prettier-fix` to fix formatting issues before opening the PR. - Read the Docs Contribution Guide to ensure your contribution follows the docs guidelines: https://nextjs.org/docs/community/contribution-guide ### Adding or Updating Examples - The "examples guidelines" are followed from our contributing doc https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md - Make sure the linting passes by running `pnpm build && pnpm lint`. See https://github.com/vercel/next.js/blob/canary/contributing/repository/linting.md ### Fixing a bug - Related issues linked using `fixes #number` - Tests added. See: https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs - Errors have a helpful link attached, see https://github.com/vercel/next.js/blob/canary/contributing.md ### Adding a feature - Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. (A discussion must be opened, see https://github.com/vercel/next.js/discussions/new?category=ideas) - Related issues/discussions are linked using `fixes #number` - e2e tests added (https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs) - Documentation added - Telemetry added. In case of a feature if it's used or not. - Errors have a helpful link attached, see https://github.com/vercel/next.js/blob/canary/contributing.md ## For Maintainers - Minimal description (aim for explaining to someone not on the team to understand the PR) - When linking to a Slack thread, you might want to share details of the conclusion - Link both the Linear (Fixes NEXT-xxx) and the GitHub issues - Add review comments if necessary to explain to the reviewer the logic behind a change ### What? ### Why? ### How? Closes NEXT- Fixes # --> Closes NEXT-2183
-
Leah authored
### Turbopack Updates * https://github.com/vercel/turbo/pull/6923 <!-- Tobias Koppers - Bottom up tracing and some tracing improvements --> * https://github.com/vercel/turbo/pull/7028 <!-- Leah - fix: add missing layer ident modifier to asset with inner assets --> Closes PACK-2270
-
Tim Neutkens authored
## What? Follow-up to #60972 that ensures the rest of the tests pass too. We used an RGB image (not sure how) where it should be `RGBA` as `.ico` does not support `RGB` and https://crates.io/crates/image fails for that case. Details in the Rust image crate: https://github.com/image-rs/image/blob/4989d5f83a4a1aaaf7b1fd1f33f7b4db1d3404d3/src/codecs/ico/decoder.rs#L59C27-L59C37 Wayback machine of the linked post: https://web.archive.org/web/20170911130832/https://blogs.msdn.microsoft.com/oldnewthing/20101022-00/?p=12473/ <!-- Thanks for opening a PR! Your contribution is much appreciated. To make sure your PR is handled as smoothly as possible we request that you follow the checklist sections below. Choose the right checklist for the change(s) that you're making: ## For Contributors ### Improving Documentation - Run `pnpm prettier-fix` to fix formatting issues before opening the PR. - Read the Docs Contribution Guide to ensure your contribution follows the docs guidelines: https://nextjs.org/docs/community/contribution-guide ### Adding or Updating Examples - The "examples guidelines" are followed from our contributing doc https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md - Make sure the linting passes by running `pnpm build && pnpm lint`. See https://github.com/vercel/next.js/blob/canary/contributing/repository/linting.md ### Fixing a bug - Related issues linked using `fixes #number` - Tests added. See: https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs - Errors have a helpful link attached, see https://github.com/vercel/next.js/blob/canary/contributing.md ### Adding a feature - Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. (A discussion must be opened, see https://github.com/vercel/next.js/discussions/new?category=ideas) - Related issues/discussions are linked using `fixes #number` - e2e tests added (https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs) - Documentation added - Telemetry added. In case of a feature if it's used or not. - Errors have a helpful link attached, see https://github.com/vercel/next.js/blob/canary/contributing.md ## For Maintainers - Minimal description (aim for explaining to someone not on the team to understand the PR) - When linking to a Slack thread, you might want to share details of the conclusion - Link both the Linear (Fixes NEXT-xxx) and the GitHub issues - Add review comments if necessary to explain to the reviewer the logic behind a change ### What? ### Why? ### How? Closes NEXT- Fixes # --> Closes NEXT-2182
-
Tim Neutkens authored
## What? There were a bunch of Sharp related tests failing when running the test suite with Turbopack. The reason for this was that we automatically detect the root of the project based on the closest lockfile (i.e. package-lock.json). In this particular test a new package-lock.json was added and since this suite is not yet isolated it cases problems. This PR adds `outputFileTracingRoot` to explicitly provide the root of the project, which ensures the right files are resolved. Closes NEXT-2180
-
Jiachi Liu authored
In both dev server and production build we both use `getStartServerInfo` to log the basic info but for prod build we should always respect to use "build" phase Fixes #57927 Closes NEXT-2179
-
Mike Dyer authored
<!-- Thanks for opening a PR! Your contribution is much appreciated. To make sure your PR is handled as smoothly as possible we request that you follow the checklist sections below. Choose the right checklist for the change(s) that you're making: ## For Contributors ### Improving Documentation - Run `pnpm prettier-fix` to fix formatting issues before opening the PR. - Read the Docs Contribution Guide to ensure your contribution follows the docs guidelines: https://nextjs.org/docs/community/contribution-guide ### Adding or Updating Examples - The "examples guidelines" are followed from our contributing doc https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md - Make sure the linting passes by running `pnpm build && pnpm lint`. See https://github.com/vercel/next.js/blob/canary/contributing/repository/linting.md ### Fixing a bug - Related issues linked using `fixes #number` - Tests added. See: https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs - Errors have a helpful link attached, see https://github.com/vercel/next.js/blob/canary/contributing.md ### Adding a feature - Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. (A discussion must be opened, see https://github.com/vercel/next.js/discussions/new?category=ideas) - Related issues/discussions are linked using `fixes #number` - e2e tests added (https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs) - Documentation added - Telemetry added. In case of a feature if it's used or not. - Errors have a helpful link attached, see https://github.com/vercel/next.js/blob/canary/contributing.md ## For Maintainers - Minimal description (aim for explaining to someone not on the team to understand the PR) - When linking to a Slack thread, you might want to share details of the conclusion - Link both the Linear (Fixes NEXT-xxx) and the GitHub issues - Add review comments if necessary to explain to the reviewer the logic behind a change ### What? Update the edge-and-nodejs-runtime doc with a Good to Know about a common build error involving using packages that rely on the filesystem in an edge runtime environment. ### Why? The docs don't mention the issue. Most github issues, articles, and SO answers revolve around updating the next.config with a webpack key to ignore 'fs' imports in api routes and getServerSideProps functions. This is incorrect when the issue is using packages that rely on 'fs', 'stream', or 'path' in an edge runtime environment. Silly mistake, but it costs people time. ### How? Update the docs. Closes NEXT- Fixes # --> --------- Co-authored-by:
Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com>
-
Tim Neutkens authored
## What? Follow-up to #60932, adds all other precompiled dependencies. <!-- Thanks for opening a PR! Your contribution is much appreciated. To make sure your PR is handled as smoothly as possible we request that you follow the checklist sections below. Choose the right checklist for the change(s) that you're making: ## For Contributors ### Improving Documentation - Run `pnpm prettier-fix` to fix formatting issues before opening the PR. - Read the Docs Contribution Guide to ensure your contribution follows the docs guidelines: https://nextjs.org/docs/community/contribution-guide ### Adding or Updating Examples - The "examples guidelines" are followed from our contributing doc https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md - Make sure the linting passes by running `pnpm build && pnpm lint`. See https://github.com/vercel/next.js/blob/canary/contributing/repository/linting.md ### Fixing a bug - Related issues linked using `fixes #number` - Tests added. See: https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs - Errors have a helpful link attached, see https://github.com/vercel/next.js/blob/canary/contributing.md ### Adding a feature - Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. (A discussion must be opened, see https://github.com/vercel/next.js/discussions/new?category=ideas) - Related issues/discussions are linked using `fixes #number` - e2e tests added (https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs) - Documentation added - Telemetry added. In case of a feature if it's used or not. - Errors have a helpful link attached, see https://github.com/vercel/next.js/blob/canary/contributing.md ## For Maintainers - Minimal description (aim for explaining to someone not on the team to understand the PR) - When linking to a Slack thread, you might want to share details of the conclusion - Link both the Linear (Fixes NEXT-xxx) and the GitHub issues - Add review comments if necessary to explain to the reviewer the logic behind a change ### What? ### Why? ### How? Closes NEXT- Fixes # --> Closes NEXT-2178
-
Tim Neutkens authored
## What? Since #60889 is failing tests I'm narrowing the changes into some separate PRs that can be landed independently. This PR adds source-map@0.8.0-beta.0` to the precompiled dependencies. <!-- Thanks for opening a PR! Your contribution is much appreciated. To make sure your PR is handled as smoothly as possible we request that you follow the checklist sections below. Choose the right checklist for the change(s) that you're making: ## For Contributors ### Improving Documentation - Run `pnpm prettier-fix` to fix formatting issues before opening the PR. - Read the Docs Contribution Guide to ensure your contribution follows the docs guidelines: https://nextjs.org/docs/community/contribution-guide ### Adding or Updating Examples - The "examples guidelines" are followed from our contributing doc https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md - Make sure the linting passes by running `pnpm build && pnpm lint`. See https://github.com/vercel/next.js/blob/canary/contributing/repository/linting.md ### Fixing a bug - Related issues linked using `fixes #number` - Tests added. See: https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs - Errors have a helpful link attached, see https://github.com/vercel/next.js/blob/canary/contributing.md ### Adding a feature - Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. (A discussion must be opened, see https://github.com/vercel/next.js/discussions/new?category=ideas) - Related issues/discussions are linked using `fixes #number` - e2e tests added (https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs) - Documentation added - Telemetry added. In case of a feature if it's used or not. - Errors have a helpful link attached, see https://github.com/vercel/next.js/blob/canary/contributing.md ## For Maintainers - Minimal description (aim for explaining to someone not on the team to understand the PR) - When linking to a Slack thread, you might want to share details of the conclusion - Link both the Linear (Fixes NEXT-xxx) and the GitHub issues - Add review comments if necessary to explain to the reviewer the logic behind a change ### What? ### Why? ### How? Closes NEXT- Fixes # --> Closes NEXT-2177
-
Tim Neutkens authored
## What? Some small refactors to the click handler in the error overlay. Also removes `export` for a function that is only used in the module. <!-- Thanks for opening a PR! Your contribution is much appreciated. To make sure your PR is handled as smoothly as possible we request that you follow the checklist sections below. Choose the right checklist for the change(s) that you're making: ## For Contributors ### Improving Documentation - Run `pnpm prettier-fix` to fix formatting issues before opening the PR. - Read the Docs Contribution Guide to ensure your contribution follows the docs guidelines: https://nextjs.org/docs/community/contribution-guide ### Adding or Updating Examples - The "examples guidelines" are followed from our contributing doc https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md - Make sure the linting passes by running `pnpm build && pnpm lint`. See https://github.com/vercel/next.js/blob/canary/contributing/repository/linting.md ### Fixing a bug - Related issues linked using `fixes #number` - Tests added. See: https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs - Errors have a helpful link attached, see https://github.com/vercel/next.js/blob/canary/contributing.md ### Adding a feature - Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. (A discussion must be opened, see https://github.com/vercel/next.js/discussions/new?category=ideas) - Related issues/discussions are linked using `fixes #number` - e2e tests added (https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs) - Documentation added - Telemetry added. In case of a feature if it's used or not. - Errors have a helpful link attached, see https://github.com/vercel/next.js/blob/canary/contributing.md ## For Maintainers - Minimal description (aim for explaining to someone not on the team to understand the PR) - When linking to a Slack thread, you might want to share details of the conclusion - Link both the Linear (Fixes NEXT-xxx) and the GitHub issues - Add review comments if necessary to explain to the reviewer the logic behind a change ### What? ### Why? ### How? Closes NEXT- Fixes # --> Closes NEXT-2169
-
- 21 Jan, 2024 11 commits
-
-
vercel-release-bot authored
-
Prachi Sharma authored
Fix: function name getStaticPaths is written in getStaticProps function, issue exist in get-static-props.mdx under pages/api-reference/functions folder. This issue was pushed as part of - Pull Request: 55205 Commit Id: 80fba152f2add326a1520ffd2b530d00c75983f6  Co-authored-by:
JJ Kasper <jj@jjsweb.site>
-
Jason authored
-
Lee Robinson authored
Closes https://github.com/vercel/next.js/issues/54667
-
Yuto Yoshino authored
-
Jason authored
-
Ahmed Abdelbaset authored
Co-authored-by:Lee Robinson <me@leerob.io>
-
Ziya Fenn authored
Co-authored-by:Lee Robinson <me@leerob.io>
-
Arseny authored
This pull request updates the `cache-handler-redis` example with a stabilized API. The updated `next.config.js` now uses the stable `cacheHandler` option instead of the `experimental.incrementalCacheHandlerPath`.
-
Ethan Arrowood authored
Fairly basic PR that just fixes the `basic-app` benchmark application. The api route was throwing an error since it wasn't returning a `Response`, and renamed some `pages/` directory routes so they become available.
-
Sam Ko authored
## Changes - Remove `pnpm-lock.yaml` from with-algolia-react-instantsearch example Closes NEXT-2174
-
- 20 Jan, 2024 3 commits
-
-
vercel-release-bot authored
-
Will Binns-Smith authored
This removes the need for `NEXT_HMR_TIMING` to do this. Closes PACK-2264 Co-authored-by:JJ Kasper <jj@jjsweb.site>
-
Rishabh Poddar authored
Refactors with-supertokens example app to move some of the helper functions into the SDK.
-
- 19 Jan, 2024 10 commits
-
-
vercel-release-bot authored
-
Will Binns-Smith authored
This: - Makes makes reporting hmr changes more accurate by emitting an explicit start event and lowering the aggregation period for reporting completed turbo tasks - Parameterizes the aggregation period, allowing JS subscribers to request different intervals, such as for the next-rs-api test - Aligns path pattern with webpack by normalizing its layer names - Fixes a bug in `drainAndGetNext` where the stream never could drain past the first item - Sends `client-hmr-latency` spans from Turbopack in both page and app router pages Closes PACK-2252 --------- Co-authored-by:Tobias Koppers <tobias.koppers@googlemail.com>
-
vercel-release-bot authored
-
Lee Robinson authored
-
Sukka authored
The PR continues from #58038 aiming to reduce the installation size further, and **improve performance in doing so**. Most of `micromatch`'s APIs are essentially wrappers/alias of `picomatch`, supplemented with additional features facilitated by a transitive dependency `braces`. However, Next.js doesn't use those "extra features". Switching from `micromatch` to `picomatch` can avoid introducing the transitive dependency `braces`. The PR also improves some globs' performance by hoisting. - `micromatch.makeRe` is just an alias of `picomatch.makeRe` - https://github.com/micromatch/micromatch/blob/90dc0cd3e186b8ab4dd05bfc41e2b98f5067a49b/index.js#L387C30-L387C30 - `micromatch.isMatch(str, patterns, options)` equals `picomatch(patterns, options)(str)` - https://github.com/micromatch/micromatch/blob/90dc0cd3e186b8ab4dd05bfc41e2b98f5067a49b/index.js#L123 - `micromatch.matcher` is just an alias of `picomatch` - https://github.com/micromatch/micromatch/blob/90dc0cd3e186b8ab4dd05bfc41e2b98f5067a49b/index.js#L104C1-L104C40 --------- Co-authored-by:
Sam Ko <sam@vercel.com>
-
Stephanie Dietz authored
I've added a new page to the Next.js docs about optimizing videos. It covers: - the native video and iframe tag - displaying externally hosted videos (i.e. from youtube) - self hosting strategies and best practices - Video optimization techniques --------- Co-authored-by:
Lee Robinson <me@leerob.io> Co-authored-by:
Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com> Co-authored-by:
Josh Lubawy <jlubawy@gmail.com> Co-authored-by:
Balázs Orbán <info@balazsorban.com>
-
Dima Voytenko authored
This span is meant to be a parent for all "resolve segment modules" spans.
-
Liam Laverty authored
### What? Adds a link to CSP documentation the first time it's mentioned in the headers page here: https://nextjs.org/docs/app/building-your-application/configuring/content-security-policy ### Why? Convenience for users, as it's unclear at that point in the document that `CSP` is discussing `Content-Security-Policy`, and the first reference to its docs are at the end of the page. ### How? Added a link to the CSP doc here https://nextjs.org/docs/app/building-your-application/configuring/content-security-policy
-
Balázs Orbán authored
### What? Removing an outdated entry, and fixing the casing of another so Workflow runs are auto-approved. ### Why? https://github.com/vercel/next.js/pull/60574 fails the CI Workflow Run, because of a mismatch in GitHub actor and the actual username set in `labeler.json` [Ref](https://github.com/vercel/nextjs-hive-docker/blob/c26bc3f26520b41986a0f9467fdc2529f705d81f/validate-job.js#L39-L42), [Slack thread](https://vercel.slack.com/archives/C03S9JCH2Q5/p1705684536884389?thread_ts=1705436555.494229&cid=C03S9JCH2Q5) Closes NEXT-2172
-