- 17 Oct, 2021 2 commits
-
-
Tim Neutkens authored
-
Donny/강동윤 authored
Co-authored-by:kdy1 <kdy1@users.noreply.github.com>
-
- 16 Oct, 2021 5 commits
-
-
JJ Kasper authored
Follow-up to https://github.com/vercel/next.js/pull/29935 this fixes the failing tests on Azure as it seems the `import()` needs to be prefixed with `file://` on Windows or an error is thrown. It also disables the config unit tests since a dynamic import inside of `jest` on either an m1 on macOS or Windows using node 14 causes a segfault from being used inside of `vm`. <details> <summary>segfault error in jest</summary> <img width="962" alt="Screen Shot 2021-10-15 at 16 45 04" src="https://user-images.githubusercontent.com/22380829/137596819-072233e3-1a45-445f-a3dd-c03ec62fb4ce.png"> </details> <details> <summary>Windows absolute import error</summary> <img width="1114" alt="Screen Shot 2021-10-16 at 12 45 59" src="https://user-images.githubusercontent.com/22380829/137597185-200f3164-7f79-488f-acc9-6c812ce5bc4a.png"> </details>
-
Tim Neutkens authored
-
Tim Neutkens authored
Co-authored-by:
JJ Kasper <jj@jjsweb.site> Co-authored-by:
Steven <steven@ceriously.com>
-
Pedro Rodrigues authored
I've been playing around with `examples/with-mongodb-mongoose` and this PR updates mongoose and swr which are severely outdated to their most recent major releases. This PR also removes two options that are no longer needed in the connection configuration when using mongoose 6: `useNewUrlParser` and `useUnifiedTopology`. See [Migrating from 5.x to 6.x - No More Deprecation Warning Options](https://mongoosejs.com/docs/migrating_to_6.html#no-more-deprecation-warning-options). ## Documentation / Examples - [x] Make sure the linting passes
-
Christian Vuerings authored
-
- 15 Oct, 2021 16 commits
-
-
Steven authored
Follow up to #29949
-
matamatanot authored
Follow up to #29949 ## Documentation / Examples - [x] Make sure the linting passes
-
Steven authored
Older versions of Node.js don't have a stable ESM implementation https://nodejs.org/api/esm.html#esm_modules_ecmascript_modules
-
Tim Neutkens authored
-
Tim Neutkens authored
-
mohamed bel haj youssef authored
-
Tim Neutkens authored
-
Donny/강동윤 authored
Co-authored-by:
kdy1 <kdy1@users.noreply.github.com> Co-authored-by:
kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> Co-authored-by:
Tim Neutkens <timneutkens@me.com>
-
Tim Neutkens authored
-
Tim Neutkens authored
-
Tim Neutkens authored
-
Donny/강동윤 authored
Co-authored-by:kdy1 <kdy1@users.noreply.github.com>
-
Tim Neutkens authored
-
JJ Kasper authored
This replaces the server-sent events HMR connection with a WebSocket connection to prevent hitting browser connection limits, allow sending events back from the browser, and overall better performance. This approach sets up the the `upgrade` event listener on the server immediately when created via `next dev` and on the first request using `req.socket.server` when created via a custom server. In a follow-up PR we can push the files changed via the WebSocket as well. x-ref: https://github.com/vercel/next.js/issues/10061 x-ref: https://github.com/vercel/next.js/issues/8064 x-ref: https://github.com/vercel/next.js/issues/4495 ## 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
-
Denis Homolík authored
Fixes #28687 According to the answer in #28687, `GetStaticPropsResult` should allow specifying `revalidate` next to the `notFound: true`. Right now it's missing in the types def and allows to return any type. Also this may lead to confusion, that `revalidate` can't be used with the `notFound: true` Example: ```ts export const getStaticProps: GetStaticProps = async ({ locale }) => { const data = await fetchData(); if (!data) { return { notFound: true, revalidate: new Date() // ts doesn't know the revalidate field and allows this }; } return { props: { data }, revalidate: new Date() // ts know the revalidate field, so it doesn't allow this }; }; ``` ## 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 - [x] Make sure the linting passes
-
- 14 Oct, 2021 9 commits
-
-
Tim Neutkens authored
-
JJ Kasper authored
-
Thibaut SABOT authored
* upgrade strip-ansi in react-dev-overlay * use the non-breaking version of strip-ansi
-
Donny/강동윤 authored
## 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
-
jj@jjsweb.site authored
-
Tim Neutkens authored
Since this is not a swcrc option and will be removed in the future it's best to prune it from next-swc already. ## 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
-
JJ Kasper authored
This updates to the latest version of `@vercel/nft` which includes better shared caching between runs. x-ref: https://github.com/vercel/nft/pull/239 x-ref: https://github.com/vercel/nft/pull/238 x-ref: https://github.com/vercel/nft/pull/237
-
JJ Kasper authored
Fixes typo per https://github.com/vercel/next.js/pull/29462#discussion_r728604242 ## Documentation / Examples - [x] Make sure the linting passes
-
Steven authored
Revises docs to explain that the maximum of the header and config is used.
-
- 13 Oct, 2021 8 commits
-
-
Kara authored
This refactor is the first of a few changes to support "classic" (two-part) streaming. This one should be a noop that doesn't actually change the behavior. It re-organizes the way that functions are wrapped in Document Head/NextScript so anything that will be part of the second flush can be separated out from the first flush. It also adds the structure for a useMaybeDeferContent hook, but currently always assumes that nothing should be deferred. The next PRs will actually implement streaming.
-
Tim Neutkens authored
## 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
-
Tim Neutkens authored
-
Donny/강동윤 authored
Co-authored-by:
JJ Kasper <jj@jjsweb.site> Co-authored-by:
kdy1 <kdy1@users.noreply.github.com>
-
Tobias Koppers authored
gets rid of `(node:670) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 drain listeners added to [WriteStream]. Use emitter.setMaxListeners() to increase limit`
-
Tim Neutkens authored
-
Tobias Koppers authored
-
Angelo P authored
…/image` Error While learning how to test next.js applications I came across this error when testing components using next/image with an image import eg: ``` // /quiz-hero import Image from 'next/image'; import quizImage from '../../public/undraw-quiz.svg'; // In render <Image height='91' width='198' layout='fixed' src={quizImage} alt='QuizImage' /> ``` ### Error -> Failed to parse src "test-file-stub" on `next/image`, if using relative image it must start with a leading slash "/" or be an absolute URL (http:// or https://) This is fixed by adding a "/" to the beginning of your file-stub module export string. This is not an error when you're awaiting an image using async waitFor, But comes up as an error when you're testing a component that holds another component with a "next/image" import. eg: ``` // quizHero.test.tsx works like this without change. const image = await waitFor(() => screen.findByAltText('QuizImage')); // but index.test.tsx fails rendering the homepage without the change. render(<Home />); // Error: Failed to parse src "test-file-stub" on `next/image`... // with change to __mocks__/fileMock quizHero.test.tsx //test pass index.test.tsx //test pass ``` <!-- Thanks for opening a PR! Your contribution is much appreciated. In order 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 that you're making: --> ## Bug possibly related to -> #26749 ## Feature - [X] Documentation added ## Documentation / Examples - [X] Make sure the linting passes
-