- 30 Mar, 2022 15 commits
-
-
Tim Neutkens authored
-
Tim Neutkens authored
-
Martin Nabhan authored
When using streaming SSR decodeText is called repeatedly with incoming chunks of data. In that case a multi-byte character may occasionally split between chunks, causing corruption. By setting the TextDecoder option 'stream' to true, and reusing the same TextDecoder instance, TextDecoder will memorise “unfinished” characters and decode them when the next chunk comes.
-
Shu Ding authored
Static optimization is now supported with concurrent features, this PR fixes the condition for `useStatic404`. ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have helpful link attached, see `contributing.md` ## Documentation / Examples - [ ] Make sure the linting passes by running `yarn lint` Co-authored-by:JJ Kasper <22380829+ijjk@users.noreply.github.com>
-
JJ Kasper authored
Co-authored-by:kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
-
Tim Neutkens authored
-
JJ Kasper authored
* fix: Prevent page to scroll to top during data HMR * Add test for scroll position with gssp refreshing
-
Shu Ding authored
* wip * update test * fix _document logic for edge runtime and rsc * revert deleted file * fix lint error * fix * remove doc gip test * Revert "remove doc gip test" This reverts commit a5fd1d7e58463b8dd92df111bc2ae71a34224ad1. * fix test Co-authored-by:Jiachi Liu <inbox@huozhi.im>
-
Johannes Schickling authored
-
VFLC authored
Added missing closing double quote : `strategy="worker` -> `strategy="worker"` ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have helpful link attached, see `contributing.md` ## Documentation / Examples - [ ] Make sure the linting passes by running `yarn lint`
-
Tim Neutkens authored
-
Shu Ding authored
-
LongYinan authored
Co-authored-by:kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
-
Tim Neutkens authored
-
Tim Neutkens authored
- Updates the React 18 test suite to the latest React version. - Upgrade `react-refresh` module Fixes #35518 Fixes #35703 ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have helpful link attached, see `contributing.md` ## Documentation / Examples - [ ] Make sure the linting passes by running `yarn lint` Co-authored-by:Jiachi Liu <4800338+huozhi@users.noreply.github.com>
-
- 29 Mar, 2022 1 commit
-
-
hiro authored
* fix(typo): wolrd -> world * fix(typo): _lineNumer -> _lineNumber * fix(typo): Dyanmic -> Dynamic * fix(typo): mutliple -> multiple * fix(typo): dyanmic -> dynamic * fix(typo): speical -> special * fix(typo): acceptible -> acceptable * fix(typo): dyanmic -> dynamic * fix(typo): nonexistant -> nonexistent * fix(typo): nonexistant -> nonexistent * fix(typo): nonexistant -> nonexistent * fix(typo): nonexistant -> nonexistent * fix(typo): nonexistant -> nonexistent * fix(typo): nonexistant -> nonexistent * fix(typo): accesible -> accessible * fix(typo): explicitely -> explicitly
-
- 28 Mar, 2022 15 commits
-
-
JJ Kasper authored
-
Seth Falco authored
* fix: don't override user-agent in fetch if specified * Add test for fetch user-agent in middleware Co-authored-by:JJ Kasper <jj@jjsweb.site>
-
OJ Kwon authored
Minor improvements to the integration test runner to emit process's stdout when its execution failed. We have `console.log` for the output, but it doesn't emit actually since jest suppresses console output unlesss _assertion_ fails. If we throws in `before*` hook, since there's no actual assertion fails jest won't release captured console logs. PR adds one straightforward workaround (https://stackoverflow.com/questions/48695717/console-log-statements-output-nothing-at-all-in-jest) to emit if process exits with non-zero errorcode. To avoid any existing behavior, this is not enabled for the cases when process successfully exits. ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [x] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have helpful link attached, see `contributing.md` ## Documentation / Examples - [ ] Make sure the linting passes by running `yarn lint`
-
Naoyuki Kanezawa authored
* fix the dynamic routing of middleware * add middleware to dynamicRoutes of routes-manifest * remove unused import * fix middleware routing with static paths * update manifest version test * prevent to match with api route using regex * use iterator instead of generator * do not use Iterator * fix type * fix type * remove unused import * apply the fix for support colons Co-authored-by:JJ Kasper <jj@jjsweb.site>
-
Luis Alvarez D authored
Something I noticed while using Middleware is that the older and no longer working methods are still accessible for the `event` with autocompletion because of their types, and the way of knowing they're deprecated is by running the app and seeing the error message, this should improve that when coding in tools like VS Code. ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [x] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have helpful link attached, see `contributing.md` ## Documentation / Examples - [ ] Make sure the linting passes by running `yarn lint` Co-authored-by:JJ Kasper <22380829+ijjk@users.noreply.github.com>
-
JJ Kasper authored
This updates our default test times as discussed to account for longer `yarn install` times for the isolated tests as GitHub actions network can be slow. x-ref: https://github.com/vercel/next.js/pull/35507#issuecomment-1074606737 x-ref: [slack thread](https://vercel.slack.com/archives/CGU8HUTUH/p1647919982840099)
-
JJ Kasper authored
-
JJ Kasper authored
-
JJ Kasper authored
-
JJ Kasper authored
-
Tim Neutkens authored
Updates the naming of these to be in line with what it does. ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have helpful link attached, see `contributing.md` ## Documentation / Examples - [ ] Make sure the linting passes by running `yarn lint`
-
Luis Alvarez D authored
Logging and analytics are not provided in vercel/examples using middleware. ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have helpful link attached, see `contributing.md` ## Documentation / Examples - [ ] Make sure the linting passes by running `yarn lint`
-
Shu Ding authored
We are currently using `!!ComponentMod.__next_rsc__` as the hint for the renderer to tell if the component is a server component, however that export field (`__next_rsc__`) is assigned to client components (`.client.[ext]`) as well. This PR adds a new `__next_rsc_server__` field which is only true when the component is a server component so the renderer can handle client components correctly. ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have helpful link attached, see `contributing.md` ## Documentation / Examples - [ ] Make sure the linting passes by running `yarn lint`
-
Jiachi Liu authored
### source changes * Error dynamic suspense option in non concurrent mode, don't check react root anymore since they should be bound ### tests changes * Remove duplicated rsc client test * Merge type checking cases (`next/dynamic`) * Remove blocking rendering tests cases since we should opt-in Fizz rendering when using React.lazy * Remove some thrown promises cases, leverage the streaming component we had in RSC test
-
Jiachi Liu authored
Simplify the esmodule detection. If there's any import/exprt usage, it will return `Module` in ast.type otherwise `Script` when `isModule` is set to `"unknown"`
-
- 27 Mar, 2022 3 commits
-
-
TianenPang authored
Correct the type of `trailingSlash` in config example Modified: `docs/api-reference/next.config.js/rewrites.md` ```diff - trailingSlash: 'true', + trailingSlash: true, ```
-
JJ Kasper authored
-
Shu Ding authored
In this test we are mainly focusing on the SSR'd result so hydration is't critical, but it will definitely help to get rid of these hydration errors. ## Bug - [ ] Related issues linked using `fixes #number` - [x] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have helpful link attached, see `contributing.md` ## Documentation / Examples - [ ] Make sure the linting passes by running `yarn lint`
-
- 26 Mar, 2022 5 commits
-
-
Jiachi Liu authored
## Documentation / Examples - [x] Make sure the linting passes by running `yarn lint`
-
Jiachi Liu authored
* Disable script worker for edge runtime (could lead to build error) * Fix rsc loader CJS detection * Fix pagePath searching for per-page runtime test through rsc notes demo, successful deployment: https://next-rsc-notes-9bix7l1nu.vercel.sh/
-
LongYinan authored
fixes https://github.com/vercel/next.js/issues/35609 ## Bug - [x] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have helpful link attached, see `contributing.md` ## Documentation / Examples - [ ] Make sure the linting passes by running `yarn lint` Co-authored-by:
John Daly <1719443+JohnDaly@users.noreply.github.com>
-
JJ Kasper authored
This fixes our package manager detection which was changed slightly in https://github.com/vercel/next.js/pull/34947 for `pnpm` support to ensure the default case still attempts detecting the available package manager if no preference is specified in the command args. This also adds a test case to ensure the install succeeds when we fail to detect a valid `yarn` binary and no preference is set via the `npm_config_user_agent` env variable. ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` Fixes: https://github.com/vercel/next.js/issues/35607 Fixes: https://github.com/vercel/next.js/issues/35599
-
Jiachi Liu authored
* Update terminal tree view for switchable runtime * share PageRuntime type * fix lint
-
- 25 Mar, 2022 1 commit
-
-
Shu Ding authored
Co-authored-by:
kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> Co-authored-by:
Jiachi Liu <inbox@huozhi.im>
-