- 28 Mar, 2022 8 commits
-
-
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 5 commits
-
-
Shu Ding authored
Co-authored-by:
kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> Co-authored-by:
Jiachi Liu <inbox@huozhi.im>
-
Jiachi Liu authored
* Update rsc refresh typing and doc example * Update docs/api-reference/next/streaming.md Co-authored-by:
Shu Ding <g@shud.in> Co-authored-by:
Shu Ding <g@shud.in>
-
Jiachi Liu authored
We need to handle cjs cases for client/server components when they're compiled to commonjs in some cases. e.g. if there's an internal `_app.server.js` in nextjs, the assets in the dist files are compiled to cjs by swc. Or any 3rd party libraries are consumed could be cjs only. ### How it works * Detect the source file is ESM or CJS first by detect if there's any ESM import/export * Append the new exports or collect exports info based on the module type
-
JJ Kasper authored
-
JJ Kasper authored
-
- 24 Mar, 2022 3 commits
-
-
CommanderRoot authored
* test: warn on substr() usage Don't allow any new substr() usage after #35421 Signed-off-by:
Tobias Speicher <rootcommander@gmail.com> * Apply suggestions from code review * Use slice in router-utils Co-authored-by:
Steven <steven@ceriously.com>
-
CommanderRoot authored
.substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated Signed-off-by:
Tobias Speicher <rootcommander@gmail.com> Co-authored-by:
Steven <steven@ceriously.com>
-
hiro authored
The following files have been modified. - `docs/api-reference/next.config.js/rewrites.md` - `docs/basic-features/script.md` ## Documentation / Examples - [x] Make sure the linting passes by running `yarn lint`
-
- 23 Mar, 2022 6 commits
-
-
Steven authored
I noticed a few issues that had "Output from `next info`" with the first line as ``` /bin/sh: pnpm: command not found ``` This was because `execSync()` was still printing to stderr when a command was not found. Changing to `execFileSync()` fixed it so we no longer print to stderr when a command is not found.
-
LongYinan authored
Fix https://github.com/vercel/next.js/issues/35525 ## 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`
-
Shu Ding authored
There're some changes since our last update that we'll need (e.g. server context). ## 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`
-
JJ Kasper authored
-
Jiachi Liu authored
Co-authored-by:kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
-
JJ Kasper authored
* Normalize ssgCacheKey for /index * apply test changes to i18n suite as well
-
- 22 Mar, 2022 6 commits
-
-
JJ Kasper authored
* Update next/link error when no children are provided * update manifest * Apply suggestions from code review Co-authored-by:Balázs Orbán <info@balazsorban.com>
-
Malte Ubl authored
Moves two utility functions from `server/router.ts` into their own file. This avoids the middleware pulling in the full Next.js router into its bundle. There are probably more opportunities like this, but this is a good start. Middleware should likely be bundled by a non-chunking optimizing compiler.
-
Heyang Zhou authored
-
Steven authored
-
JJ Kasper authored
-
OJ Kwon authored
-
- 21 Mar, 2022 4 commits
-
-
Luka Hartwig authored
The docs for the react server components preview refer refer to `next@latest` which doesn't work. The linked demo uses `canary` so I replaced it in the install command.
-
JJ Kasper authored
-
Thiago M authored
Leave more clear that <Script> component can't be used inside Head. Current it says "without need", which don't implies it can't be used. ## 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 - [x] Make sure the linting passes by running `yarn lint`
-
JJ Kasper authored
-