- 04 Nov, 2023 4 commits
-
-
vercel-release-bot authored
-
Tim Neutkens authored
The linked documentation mentions that `highest` is the default in the pnpm version we use: > Default: highest (was lowest-direct from v8.0.0 to v8.6.12) https://pnpm.io/npmrc#resolution-mode <!-- 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:
Zack Tanner <zacktanner@gmail.com>
-
Tim Neutkens authored
Converted some additional tests to `createNextDescribe`. <!-- 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 # -->
-
Wyatt Johnson authored
-
- 03 Nov, 2023 13 commits
-
-
Zack Tanner authored
This wasn't working previously so updated the glob & script to properly track changes to our bundled next runtimes Should now be appended to the bottom of the PR stats action, eg: 
-
vercel-release-bot authored
-
Lee Robinson authored
Revert part of https://github.com/vercel/next.js/pull/57998.
-
Wyatt Johnson authored
Co-authored-by:Jimmy Lai <11064311+feedthejim@users.noreply.github.com>
-
Yusril A authored
-
vercel-release-bot authored
-
Tim Neutkens authored
Follow-up to #57529, this adds extra logging so that you know what the header value was in order to configure it correctly.
-
Tim Neutkens authored
One more small tests skipped that is webpack-only.
-
Thomas Knickman authored
### What? Use [Turborepo generators](https://turbo.build/repo/docs/core-concepts/monorepos/code-generation#custom-generators) instead of plop. Turborepo generators are built on top of plop, but include some additional tooling to make working in monorepos easier. It also supports zero config typescript for configs. ### Why? Same Team! ### How? Ported the existing plopfile to a turbo generator config Co-authored-by:
Jiachi Liu <4800338+huozhi@users.noreply.github.com>
-
Tim Neutkens authored
Ensures extra messages are ignored instead of throwing an error.
-
Lee Robinson authored
To better match both keywords.
-
Chenguang Li authored
One more `
-
Vũ Văn Dũng authored
The current warning is > It looks like there is a custom Babel configuration can be removed . which in this PR is updated to > It looks like there is a custom Babel configuration that can be removed. --- [Original bug found by @protehnica on the Next.js Discord:](https://discord.com/channels/752553802359505017/1148942305194152056) > On my server I used to have a `.babelrc` file to disable `@next/swc`, because it wouldn't run on CentOS 7. > Apparently this is no longer needed now in Next.js 13, but the message warning users about it looks extremely unprofessional. > > > "It looks like there is a custom Babel configuration can be removed ." > > Not only is the grammar off, there's also a weird space before the final dot. > Can someone who's already working on the codebase submit a pull request? > I would love to do it myself, but I wouldn't know where to start. > > The exact file in the repo containing the message string is: > ```next.js/packages/next/src/build/babel/loader/get-config.ts```
-
- 02 Nov, 2023 10 commits
-
-
Jimmy Lai authored
This PR fixes a bug where Next.js would not use the serverComponentsExternalPackages config when opting into the `experimental.bundlePagesExternals` flag. The fix consists of just adding a check for the externals config.
-
vercel-release-bot authored
-
Jiachi Liu authored
We had added encoding the client component assets loaded from RSC manifest that we need to encode them to make sure when they're loaded on server and sent to client, the client will receive the encoded one. But the override of the webpack chunk loading method could be loaded later than react related chunks, that when client component is loaded first (e.g. `next/script`) and it triggers react loaded ealier than the overriding. Then the chunk could be encoded incorrectly. Discussed with @gnoff and put this out as the 1st step solution to ensure the order. in the future we can try to get rid of the encoding by providing safer url Fixes #57829
-
Will Binns-Smith authored
This avoids separate snapshots for both Turbopack and Webpack, and correctly reflects that these fail.
-
OJ Kwon authored
### What? continuation of https://github.com/vercel/next.js/pull/57851, since it is from a remote branch that I don't have access to write. Co-authored-by:
Maia Teegarden <2865858+padmaia@users.noreply.github.com> Co-authored-by:
Tim Neutkens <6324199+timneutkens@users.noreply.github.com>
-
vercel-release-bot authored
-
Zack Tanner authored
A shared incremental cache IPC server was introduced for build-time static workers as an optimization to dedupe fetch requests, however this can cause fetch-related flakiness to builds under certain conditions (e.g., large payloads). This moves the optimization behind an experimental flag to unblock those running into IPC-related build time errors while we work on an alternative solution for the underlying issue Fixes #53695
-
vercel-release-bot authored
-
Zack Tanner authored
This removes our current convention of throwing promises in reducers in favor of returning promises that can be consumed by `use` instead. This will help unblock some future improvements (batching, PPR) Reducers that would typically throw a promise now return their promise. This gets maintained by a mutable queue (initialized in hydrate) to ensure actions are processed in-order. The queue is also responsible for mutating state and passing it as an input to subsequent actions. This PR does not modify reducer behavior to keep changes minimal, but there's more cleanup that we can do in a follow-up PR to remove things that previously assumed reducers would be replayed. (I recommend reviewing with whitespace turned off) --------- Co-authored-by:Tim Neutkens <tim@timneutkens.nl>
-
Steven authored
Since we separated unit tests into its own job in PR https://github.com/vercel/next.js/pull/55621, we can now run unit tests against Node.js 18 and Node.js 20 (maintenance and lts) using a matrix.
-
- 01 Nov, 2023 13 commits
-
-
vercel-release-bot authored
-
Wyatt Johnson authored
This passes down the route kind information to the incrememntal cache so it no longer needs to test some files existing in order to validate if the file exists or not for a route.
-
Zack Tanner authored
When postpone is caught by user code, this will cause PPR not to properly prerender the static parts and thus we need to fail the build. This also adds some messaging about how to fix the error. Prior to this change, catching code that would normally trigger `postpone ` would silently fail, but the build outputs would be incorrect as there's no postpone data available. Relands #57477 with additional tests & fixes
-
Balázs Orbán authored
### What? Drop redundant Jest config ### Why? This slipped in by accident. It's already the default value. See https://jestjs.io/docs/configuration#snapshotformat-object
-
OJ Kwon authored
### What Probably not a big deal since we run this against cjs / esm both, but looks like it's a minor typo. Closes WEB-1894
-
Jiachi Liu authored
This part was removed before but added in back during the merging of turbopack and legacy `next-swc` changes. Remove them again
-
Jiachi Liu authored
Social metadata will be display properly if there's `title` and `description` configured. If you have `title` and `description` configured in metadata, some people's intuition will be "yes I had them, they should be the same if I have `openGraph` or `twitter`". This PR improves the configuration that you don't have to configure them as duplicate both in top `metadata` export and `metadata.openGraph` or `metadata.twitter`. But we don't always assign them if you don't configure social cards (open graph or twitter), this way users should be able to omit social cards if possible. x-ref: [feedback from slack](https://vercel.slack.com/archives/C03KAR5DCKC/p1698548491415089?thread_ts=1698512393.500649&cid=C03KAR5DCKC)
-
Jiachi Liu authored
Reduce the confusiong of the the logging of pages, make it easier to understand * Removing the trailing `/page`, `/route` suffix * Removing the internal segment like `[[...__metadata__]]` #### After ``` ○ Compiling / ... ○ Compiling /dynamic/[slug]/icon ... ``` #### Before ``` ○ Compiling /page ... ○ Compiling /(group)/dynamic/[slug]/icon-ahg52g/[[...__metadata_id__]]/route ... ``` Closes NEXT-1701
-
Jon Meyers authored
### What? [1] Use Server Actions for auth [2] Use Geist font [3] Address warning about `metadataBase` in console ### Why? [1] The co-location of Login page and authentication logic is simpler for beginners [2] Looks nice [3] Avoid confusing people with the starter template printing warnings ### How? [1] Refactor Route Handlers to Server Actions [2] Install font and set to `html` [3] Explicitly declare the default value for `metadataBaseUrl`
-
Lee Robinson authored
-
Gal Schlezinger authored
make sure `next.config.mjs` uses `export` instead of `module.exports`
-
Balázs Orbán authored
### What? Minor change to use the word `content` instead of `HTML` in the build output tree-view legend. ### Why? The `○` symbol is also used for statically pre-rendered Route Handlers, which might not return HTML, so just clarifying the wording. [Slack thread](https://vercel.slack.com/archives/C03KAR5DCKC/p1698844583794019)
-
vercel-release-bot authored
-