- 01 Dec, 2021 4 commits
-
-
JJ Kasper authored
-
Jiachi Liu authored
## Bug - [ ] Related issues linked using `fixes #number` - [x] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md`
-
Tim Neutkens authored
-
Tim Neutkens authored
-
- 30 Nov, 2021 15 commits
-
-
Shu Ding authored
If importing an external module inside a Server Component (`.server.js`), it shouldn't be bundled into the client. Only client components should be kept. ## 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`
-
Jeff authored
* fix(types): add missing ua type for NextRequest add missing ua string type on NextRequest["ua"], returns full agent as string * Update UserAgent type Co-authored-by:JJ Kasper <jj@jjsweb.site>
-
Kim, Harim authored
* Remove deprecated function * Remove useless change * lint-fix Co-authored-by:JJ Kasper <jj@jjsweb.site>
-
Vincent Voyer authored
-
Delba de Oliveira authored
Co-authored-by:
Tim Neutkens <tim@timneutkens.nl> Co-authored-by:
Lee Robinson <me@leerob.io> Co-authored-by:
stefanprobst <stefan.probst@univie.ac.at> Co-authored-by:
Rich Haines <hello@richardhaines.dev>
-
Steven authored
This allows TypeScript users to have type safety for middleware functions. - Closes #30490 Co-authored-by:
Lee Robinson <9113740+leerob@users.noreply.github.com> Co-authored-by:
JJ Kasper <22380829+ijjk@users.noreply.github.com>
-
JJ Kasper authored
-
Tim Koopman authored
fixes #31411 ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` Co-authored-by:JJ Kasper <22380829+ijjk@users.noreply.github.com>
-
Jiachi Liu authored
## Bug Fixes #31892 react 18: requires camelcase for those props ``` Warning: Invalid DOM property `imagesrcset`. Did you mean `imageSrcSet` ``` react 17: requires lowercase for those props ``` Warning: React does not recognize the `imageSrcSet` prop on a DOM element. ``` - [x] Related issues linked using `fixes #number` - [x] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ### Utils * Add command `yarn next-react-18 test/integration/any-react-18-app/` * Add util `withReact18` ```js const withReact18 = require('../../react-18/test/with-react-18') module.exports = withReact18({ experimental: { concurrentFeatures: true, }, }) ``` -
Gerald Monaco authored
Since #31939 is going to move the `Document` components, we can't rely on `DefinePlugin` to provide environment variables. This PR passes them as render opts instead. We can't just force this to be bundled like e.g. `next/dynamic`, because we use it internally.
-
Donny/강동윤 authored
This PR applies - https://github.com/swc-project/swc/pull/2916 - Closes https://github.com/vercel/next.js/issues/31757
-
Jiachi Liu authored
## Bug Fixes: #31675 Functional document without gIP should be enabled when streaming is enabled, even without rsc - [x] Related issues linked using `fixes #number` - [x] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md`
-
Lee Robinson authored
-
Jiachi Liu authored
x-ref: #28498, #31784 I can repro the issue #24783 with `next-boost` 0.10.1 and it was fixed in 0.10.2 (ref: https://github.com/rjyo/next-boost/commit/eba6d10aabb2470ec5d7bd48ac8fec4ea08e26c5). The actual case is missing setting node env to `"production"`. React freeze element props and element itself in dev mode (ref: https://github.com/facebook/react/blob/a724a3b578dce77d427bef313102a4d0e978d9b4/packages/react/src/ReactElement.js#L194-L196) Then next.js will reassign props with react development bundle while next-boost is enabled. Those operations are only happened in non-dev mode so it's good to remove now. This PR + #31898 == revert #31784 cc @styfle @awareness481
-
Maia Teegarden authored
-
- 29 Nov, 2021 10 commits
-
-
Katie Byers authored
-
Maedah Batool authored
-
Maia Teegarden authored
-
JJ Kasper authored
-
Thibaut SABOT authored
Co-authored-by:kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
-
Jiachi Liu authored
The test from #31784 can pass with or without the source code change in that PR. I cannot repro it. The writable is true on build in the provided case
-
Michel Krämer authored
Co-authored-by:
kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> Co-authored-by:
Lee Robinson <me@leerob.io>
-
Leonardo Ortiz authored
In the `Server Components APIs (Alpha)` code sample, importing `React` is unnecessary. People may think that having `react`'s default export imported is needed to use `Suspense`
-
Leonardo Ortiz authored
This PR adds a missing import in React 18 documentation's sample code, where `Suspense` is used without being imported. _(edit: fix typo)_
-
Vincent Voyer authored
Following comment on the project here: https://github.com/vvo/iron-session/issues/425
-
- 28 Nov, 2021 3 commits
-
-
Steven authored
- Closes #28498 Co-authored-by:Jesse Jafa <12380586+awareness481@users.noreply.github.com>
-
Javi Velasco authored
A middleware can work as a proxy intercepting requests and then performing a `fetch` to the destination adding headers to the request / response as a "man in the middle". When using `fetch` from a middleware we are not in the context of a browser so we can't really use relative URLs, they must be always absolute. Now consider the previous case when middleware is running in *server mode*. Typically in order to know the host where we are fetching we can use the `request.nextUrl` which is given to the middleware but in this case the invoker (which is next-server) has no context of the hostname, nor the port. To solve this use case we must make the invoker of the middleware aware of the origin hostname and port. This PR: - Introduces `hostname` and `port` as options for `NextServer`. - Refactors types in `NextServer` and `NextDevServer` moving type only imports to the top of the file. - Refactors `startServer` to do a best guess on the `hostname` and `port`, passing them down. - Exposes `.port` and `.hostname` to be retrieved from the `app`. In an upcoming PR we will pass the host guess to the middleware to solve the relative URL issue.
-
Austin P authored
Almost every one of the examples for middleware specific a `.ts` file extension, this PR just makes it consistent.
-
- 26 Nov, 2021 8 commits
-
-
Jiachi Liu authored
`headers` type should align with `NodeHeaders`
-
Maia Teegarden authored
-
Jeremy Monson authored
-
Shu Ding authored
`isAutoExport` should be `false` when `concurrentFeatures` is enabled. ## 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`
-
Juny authored
## 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/31012 I referred to the previous code. ``` if (errors == null) { if (Object.keys(amp).length > 0) { warnings = (warnings || []).concat(formatAmpMessages(amp) || []) if (!warnings.length) warnings = null } } ``` https://github.com/vercel/next.js/pull/29753/files
-
Tim Neutkens authored
Co-authored-by:kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
-
Hannes Bornö authored
fixes #31520 ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added - [x] 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
-