- 13 Jan, 2024 2 commits
-
-
vercel-release-bot authored
-
Lee Robinson authored
Closes https://github.com/vercel/next.js/issues/60598.
-
- 12 Jan, 2024 22 commits
-
-
vercel-release-bot authored
-
JJ Kasper authored
This error can show more than just once depending on number of requests to the page and refreshes. x-ref: https://github.com/vercel/next.js/actions/runs/7507976633/job/20442621189?pr=60589 Closes NEXT-2093
-
JJ Kasper authored
This is already covered by the test above so removes it in favor of that. x-ref: https://github.com/vercel/next.js/actions/runs/7507344417/job/20442223048 Closes NEXT-2092
-
OJ Kwon authored
### What? Minor update to test assertion to work with turbopack. Closes PACK-2234
-
Sam Ko authored
## Changes - Remove `pr_approved.yml` - Update popular issues workflow, move to a different Slack channel Closes NEXT-2089
-
JJ Kasper authored
This adds documentation around the client router filter we leverage in `pages` to allow incremental migration from `pages` to `app`. Also adds mention of two experimental configs that can be useful for managing the client router filter. x-ref: https://github.com/vercel/next.js/issues/47486#issuecomment-1889623898 Closes NEXT-2090 --------- Co-authored-by:
Sam Ko <sam@vercel.com>
-
Willem-Jaap authored
Reverse directory order to indicate that `src/` or the parent of `app/` should be used. At first I thought the correct place was the parent folder of `src/`, this eliminates that confusion
-
Steven authored
- Related to https://github.com/vercel/next.js/issues/54402#issuecomment-1889900918 Closes NEXT-2088
-
Ahmed Abdelbaset authored
ref: #60435
-
JJ Kasper authored
Follow-up to https://github.com/vercel/next.js/pull/60542 this adds regression tests for `basePath` with the client router filter to ensure we hard navigate to the correct URL when going from pages -> app. x-ref: https://github.com/vercel/next.js/issues/47486 Closes NEXT-2086
-
Jiachi Liu authored
### What We're applying react-refresh to browser layer and inject ESM or CJS helper based on file type. Some package from `trasnpilePackages` might contain CJS browser bundle. And injecting ESM helper breaks them. Actually they don't need to have fast refresh ability since they're in `node_modules`. ### How Skip react-refresh for transpiled packages as they're in node_modules and won't change. Fixes #56487 Closes NEXT-2061
-
Andrew Clark authored
### Depends on - #60577 --- A popstate navigation reads data from the local cache. It does not issue new network requests (unless the cache entries have been evicted). So, when navigating with back/forward, we should not switch back to the PPR loading state. We should render the full, cached dynamic data immediately. To implement this, on a popstate navigation, we update the cache to drop the prefetch data for any segment whose dynamic data was already received. We clone the entire cache node tree and set the `prefetchRsc` field to `null` to prevent it from being rendered. (We can't mutate the node in place because Cache Node is a concurrent data structure.) Technically, what we're actually checking is whether the dynamic network response was received. But since it's a streaming response, this does not mean that all the dynamic data has fully streamed in. It just means that _some_ of the dynamic data was received. But as a heuristic, we assume that the rest dynamic data will stream in quickly, so it's still better to skip the prefetch state. Closes NEXT-2084
-
vercel-release-bot authored
-
Will Binns-Smith authored
This allows us to more accurately attribute whether a trace was created in a Turbopack session by doing so at trace creation time rather than trace upload time. Test Plan: Configured next to send traces to a local server and verified this information is attached to the top-level of the trace. Closes PACK-2233
-
Zack Tanner authored
### What? Throwing a `notFound()` error inside of a segment that has an error boundary will cause it to be handled by the segment's error boundary rather than a parent not-found boundary. ### Why? We assume anything that hits an `ErrorBoundary` is an actual error, but this should not be the case when the caught error is one that is handled by Next.js. ### How? This checks if the caught error is one that is expected to be handled someplace else. Closes NEXT-2080 [slack x-ref](https://vercel.slack.com/archives/C03S8ED1DKM/p1705003189392509?thread_ts=1704868742.169129&cid=C03S8ED1DKM)
-
Delba de Oliveira authored
New page outlining all options for handling redirects in Next.js, from the simplest use cases (e.g. `redirect()` in a Server Action), to more advanced cases (e.g. bloom filters and middleware). - [x] `redirect` - [x] `permanentRedirect` - [x] `useRouter` - [x] `next.config.js` - [x] Middleware - [x] Handling redirects at scale - [x] Edge config - [x] Bloom filter --------- Co-authored-by:Lee Robinson <me@leerob.io>
-
Jiachi Liu authored
The Next.js version should always be output first instead of other jobs in `next build` Closes NEXT-2078
-
Tim Neutkens authored
## What? Enables `experimental.windowHistorySupport` by default. It has been in experimental for quite a while now and has been successfully dogfooded in vercel.com as well. <!-- 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-2076 Closes NEXT-1773
-
Sam Ko authored
## Description A few changes to https://github.com/vercel/next.js/tree/canary/.github/actions/next-repo-info and related workflows. ## Changes - Update `generateBlocks()` function - Fix Slack channel title typo - Fix `issuesAndPullRequests({ ... })` API call Closes NEXT-2077
-
Vercel Release Bot authored
This auto-generated PR updates the integration test manifest used when testing Turbopack.
-
Sam Ko authored
## Description Add a new GitHub workflow that outputs the top 15 :github2: issues (most reactions) in the last month. Closes NEXT-2071
-
JJ Kasper authored
This updates our default error rate to be much more precise and reduce false positives by increasing the default size of the client filter we generate. We can afford to increase the default size as it compresses extremely well and gives us more accurate navigations. This carries over the failing test case from https://github.com/vercel/next.js/pull/59293 which showed one case of false positive in a smaller filter. Closes: https://github.com/vercel/next.js/issues/47486 Closes NEXT-2070 --------- Co-authored-by:
Cris Vergara <cris.vergara@bookofthemonth.com>
-
- 11 Jan, 2024 16 commits
-
-
vercel-release-bot authored
-
Steven authored
## Description This PR ensures that the default prettier config is used for examples and templates. This config is compatible with `prettier@3` as well (upgrading prettier is bigger change that can be a future PR). ## Changes - Updated `.prettierrc.json` in root with `"trailingComma": "es5"` (will be needed upgrading to prettier@3) - Added `examples/.prettierrc.json` with default config (this will change every example) - Added `packages/create-next-app/templates/.prettierrc.json` with default config (this will change every template) ## Related - Fixes #54402 - Closes #54409
-
Jiachi Liu authored
## What This fixes when the deep nested routes throws a client side error, it can still be caught by the `global-error.js` ## How We should always resolve global-error from root app directory instead of current route's layout. Also fixed a bad test before where the gloabl-error.js is not located correctly Fixes #53756 Closes NEXT-1760
-
Jacob Smith authored
-
Sam Ko authored
## Description Updating https://github.com/vercel/next.js/blob/canary/.github/workflows/pull_request_approved.yml and related. ## Changes - Fix path so workflow runs - Update cron schedule to be on a weekly basis on instead of daily - Update Slack channel Closes NEXT-2068 --------- Co-authored-by:
JJ Kasper <jj@jjsweb.site>
-
Jiachi Liu authored
When sending post requests but it's not server action, skip logging warning or calling non-existed server action. Instead we only log the warning like missnig headers for server actions when it's a server action and call the action handler when it's decoded as a function Fixes #58152 Closes NEXT-1761
-
Leah authored
### Why? We have more supported options than unsupported ones. Also new options added to next.js now should always be supported by turbopack. Closes PACK-2023
-
hugo-syn authored
## For Contributors Fix multiple typos
-
Will Binns-Smith authored
This forwards spans created in the hmr client to the server-side tracer. Test Plan: Loaded a page and verified navigation-to-hydration span is recorded. Closes PACK-2226
-
Tim Neutkens authored
## What? Adds an additional condition to the hydration error test to check if it recovers correctly when making a change that removes the hydration error. <!-- 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-2033
-
Tobias Koppers authored
### What? This fixes a race condition where loadClientReferenceManifest reads an empty file. All other manifest already have retries, this adds it for the client reference manifest too for consistency. Closes WEB-1727 --------- Co-authored-by:Tim Neutkens <tim@timneutkens.nl>
-
hugo-syn authored
Fix typo s/desireable/desirable/ in 2 README.md files Co-authored-by:Steven <steven@ceriously.com>
-
Sukka authored
The PR further reduces the `create-next-app` installation size by another 80 KiB: - Replace the callback version of Node.js built-in `dns` API usage with `dns/promise` + async/await - Replace `got` w/ `fetch` since Next.js and `create-next-app` now target Node.js 18.17.0+ - Download and extract the tar.gz file in the memory (without creating temporary files). This improves the performance. - Some other minor refinements. Following these changes, the size of `dist/index.js` is now 536 KiB.
-
Takashi Sato authored
fixes #58640 When there is no tsconfig.json, `npm run dev` generates `tsconfig.json`, which has no `target` option. But create-next-app generates `tsconfig.json` with `"target": "es5"` Related to: #44567 Related to: #14390
-
Tim Neutkens authored
Reverts vercel/next.js#60513 Closes NEXT-2056
-
Tim Neutkens authored
Reverts vercel/next.js#60509 Closes NEXT-2055
-