language
stringclasses
1 value
owner
stringlengths
2
15
repo
stringlengths
2
21
sha
stringlengths
45
45
message
stringlengths
7
36.3k
path
stringlengths
1
199
patch
stringlengths
15
102k
is_multipart
bool
2 classes
Other
vercel
next.js
e5ef60fecb142c149e0307376a1996f941b2840d.json
Add ESLint to Next.js (#22437) For #22228 This PR: - Adds ESLint to toolchain - Included by default for builds (`next build`) - Can be enabled for development (`next dev`) - Custom formatter built for output - Adds appropriate tests - Adds two documentation pages
packages/next/next-server/server/config-shared.ts
@@ -89,6 +89,10 @@ export const defaultConfig: NextConfig = { serverRuntimeConfig: {}, publicRuntimeConfig: {}, reactStrictMode: false, + eslint: { + dev: false, + build: true, + }, } export function normalizeConfig(phase: string, config: any) {
true
Other
vercel
next.js
e5ef60fecb142c149e0307376a1996f941b2840d.json
Add ESLint to Next.js (#22437) For #22228 This PR: - Adds ESLint to toolchain - Included by default for builds (`next build`) - Can be enabled for development (`next dev`) - Custom formatter built for output - Adds appropriate tests - Adds two documentation pages
packages/next/package.json
@@ -60,9 +60,12 @@ ] }, "dependencies": { + "@babel/core": "7.12.10", "@babel/runtime": "7.12.5", + "@babel/eslint-parser": "7.13.4", "@hapi/accept": "5.0.1", "@next/env": "10.0.10-canary.7", + "@next/eslint-plugin-next": "10.0.10-canary.7", "@next/polyfill-module": "10.0.10-cana...
true
Other
vercel
next.js
e5ef60fecb142c149e0307376a1996f941b2840d.json
Add ESLint to Next.js (#22437) For #22228 This PR: - Adds ESLint to toolchain - Included by default for builds (`next build`) - Can be enabled for development (`next dev`) - Custom formatter built for output - Adds appropriate tests - Adds two documentation pages
packages/next/server/hot-reloader.ts
@@ -512,6 +512,7 @@ export default class HotReloader { this.onDemandEntries = onDemandEntryHandler(this.watcher, multiCompiler, { pagesDir: this.pagesDir, pageExtensions: this.config.pageExtensions, + eslint: this.config.eslint?.dev, ...(this.config.onDemandEntries as { maxInacti...
true
Other
vercel
next.js
e5ef60fecb142c149e0307376a1996f941b2840d.json
Add ESLint to Next.js (#22437) For #22228 This PR: - Adds ESLint to toolchain - Included by default for builds (`next build`) - Can be enabled for development (`next dev`) - Custom formatter built for output - Adds appropriate tests - Adds two documentation pages
packages/next/server/on-demand-entry-handler.ts
@@ -4,6 +4,7 @@ import { join, posix } from 'path' import { parse } from 'url' import { webpack } from 'next/dist/compiled/webpack/webpack' import * as Log from '../build/output/log' +import { verifyAndLint } from '../lib/verifyAndLint' import { normalizePagePath, normalizePathSep, @@ -32,11 +33,13 @@ export ...
true
Other
vercel
next.js
e5ef60fecb142c149e0307376a1996f941b2840d.json
Add ESLint to Next.js (#22437) For #22228 This PR: - Adds ESLint to toolchain - Included by default for builds (`next build`) - Can be enabled for development (`next dev`) - Custom formatter built for output - Adds appropriate tests - Adds two documentation pages
test-pnp.sh
@@ -29,6 +29,9 @@ do cp -r "./examples/$testCase/." "./e2e-tests/$testCase" cd "./e2e-tests/$testCase" + # Ensure builds do not fail due to lint errors + echo "module.exports = { eslint: { build: false } }" > next.config.js + touch yarn.lock yarn set version berry
true
Other
vercel
next.js
e5ef60fecb142c149e0307376a1996f941b2840d.json
Add ESLint to Next.js (#22437) For #22228 This PR: - Adds ESLint to toolchain - Included by default for builds (`next build`) - Can be enabled for development (`next dev`) - Custom formatter built for output - Adds appropriate tests - Adds two documentation pages
test/integration/dist-dir/test/index.test.js
@@ -47,7 +47,10 @@ describe('distDir', () => { it('should throw error with invalid distDir', async () => { const origNextConfig = await fs.readFile(nextConfig, 'utf8') - await fs.writeFile(nextConfig, `module.exports = { distDir: '' }`) + await fs.writeFile( + nextConfig, + `module.exports = {...
true
Other
vercel
next.js
e5ef60fecb142c149e0307376a1996f941b2840d.json
Add ESLint to Next.js (#22437) For #22228 This PR: - Adds ESLint to toolchain - Included by default for builds (`next build`) - Can be enabled for development (`next dev`) - Custom formatter built for output - Adds appropriate tests - Adds two documentation pages
test/integration/eslint/custom-eslint-config/.eslintrc.json
@@ -0,0 +1,16 @@ +{ + "extends": ["plugin:@next/next/recommended"], + "rules": { + "@next/next/no-sync-scripts": "off", + "@next/next/no-css-tags": "warn", + "@next/next/no-html-link-for-pages": ["error", "./"] + }, + "parserOptions": { + "ecmaVersion": 2018, + "sourceType": "module", + "ecmaFeatu...
true
Other
vercel
next.js
e5ef60fecb142c149e0307376a1996f941b2840d.json
Add ESLint to Next.js (#22437) For #22228 This PR: - Adds ESLint to toolchain - Included by default for builds (`next build`) - Can be enabled for development (`next dev`) - Custom formatter built for output - Adds appropriate tests - Adds two documentation pages
test/integration/eslint/custom-eslint-config/pages/index.js
@@ -0,0 +1,13 @@ +import { Head } from 'next/document' + +export default class Test extends Head { + render() { + return ( + <div> + <h1>Hello title</h1> + <script src="https://synchronous-script.com"></script> + <link href="/_next/static/css/styles.css" rel="stylesheet" /> + </div> +...
true
Other
vercel
next.js
e5ef60fecb142c149e0307376a1996f941b2840d.json
Add ESLint to Next.js (#22437) For #22228 This PR: - Adds ESLint to toolchain - Included by default for builds (`next build`) - Can be enabled for development (`next dev`) - Custom formatter built for output - Adds appropriate tests - Adds two documentation pages
test/integration/eslint/custom-next-config/.eslintrc.json
@@ -0,0 +1,14 @@ +{ + "extends": ["plugin:@next/next/recommended"], + "rules": { + "@next/next/no-html-link-for-pages": ["error", "./"] + }, + "parserOptions": { + "ecmaVersion": 2018, + "sourceType": "module", + "ecmaFeatures": { + "jsx": true, + "modules": true + } + } +}
true
Other
vercel
next.js
e5ef60fecb142c149e0307376a1996f941b2840d.json
Add ESLint to Next.js (#22437) For #22228 This PR: - Adds ESLint to toolchain - Included by default for builds (`next build`) - Can be enabled for development (`next dev`) - Custom formatter built for output - Adds appropriate tests - Adds two documentation pages
test/integration/eslint/custom-next-config/next.config.js
@@ -0,0 +1,6 @@ +module.exports = { + eslint: { + dev: true, + build: false, + }, +}
true
Other
vercel
next.js
e5ef60fecb142c149e0307376a1996f941b2840d.json
Add ESLint to Next.js (#22437) For #22228 This PR: - Adds ESLint to toolchain - Included by default for builds (`next build`) - Can be enabled for development (`next dev`) - Custom formatter built for output - Adds appropriate tests - Adds two documentation pages
test/integration/eslint/custom-next-config/pages/index.js
@@ -0,0 +1,13 @@ +import { Head } from 'next/document' + +export default class Test extends Head { + render() { + return ( + <div> + <h1>Hello title</h1> + <script src="https://synchronous-script.com"></script> + <link href="/_next/static/css/styles.css" rel="stylesheet" /> + </div> +...
true
Other
vercel
next.js
e5ef60fecb142c149e0307376a1996f941b2840d.json
Add ESLint to Next.js (#22437) For #22228 This PR: - Adds ESLint to toolchain - Included by default for builds (`next build`) - Can be enabled for development (`next dev`) - Custom formatter built for output - Adds appropriate tests - Adds two documentation pages
test/integration/eslint/pkg-json-eslint-config/package.json
@@ -0,0 +1,36 @@ +{ + "name": "hello-world", + "version": "1.0.0", + "scripts": { + "dev": "next", + "build": "next build", + "start": "next start" + }, + "dependencies": { + "next": "latest", + "react": "^16.13.1", + "react-dom": "^16.13.1" + }, + "license": "MIT", + "eslintConfig": { + "e...
true
Other
vercel
next.js
e5ef60fecb142c149e0307376a1996f941b2840d.json
Add ESLint to Next.js (#22437) For #22228 This PR: - Adds ESLint to toolchain - Included by default for builds (`next build`) - Can be enabled for development (`next dev`) - Custom formatter built for output - Adds appropriate tests - Adds two documentation pages
test/integration/eslint/pkg-json-eslint-config/pages/index.js
@@ -0,0 +1,13 @@ +import { Head } from 'next/document' + +export default class Test extends Head { + render() { + return ( + <div> + <h1>Hello title</h1> + <script src="https://synchronous-script.com"></script> + <link href="/_next/static/css/styles.css" rel="stylesheet" /> + </div> +...
true
Other
vercel
next.js
e5ef60fecb142c149e0307376a1996f941b2840d.json
Add ESLint to Next.js (#22437) For #22228 This PR: - Adds ESLint to toolchain - Included by default for builds (`next build`) - Can be enabled for development (`next dev`) - Custom formatter built for output - Adds appropriate tests - Adds two documentation pages
test/integration/eslint/test/custom-eslint-config.test.js
@@ -0,0 +1,37 @@ +import { join } from 'path' +import { nextBuild } from 'next-test-utils' +import { remove } from 'fs-extra' + +jest.setTimeout(1000 * 60 * 2) + +const appDir = join(__dirname, '../custom-eslint-config') + +describe('ESLint', () => { + let stdout + let code + + beforeAll(async () => { + await rem...
true
Other
vercel
next.js
e5ef60fecb142c149e0307376a1996f941b2840d.json
Add ESLint to Next.js (#22437) For #22228 This PR: - Adds ESLint to toolchain - Included by default for builds (`next build`) - Can be enabled for development (`next dev`) - Custom formatter built for output - Adds appropriate tests - Adds two documentation pages
test/integration/eslint/test/custom-next-config.test.js
@@ -0,0 +1,55 @@ +import { join } from 'path' +import { + launchApp, + renderViaHTTP, + killApp, + findPort, + nextBuild, +} from 'next-test-utils' + +jest.setTimeout(1000 * 60 * 2) + +const appDir = join(__dirname, '../custom-next-config') + +describe('ESLint', () => { + it('should show messages in dev mode as s...
true
Other
vercel
next.js
e5ef60fecb142c149e0307376a1996f941b2840d.json
Add ESLint to Next.js (#22437) For #22228 This PR: - Adds ESLint to toolchain - Included by default for builds (`next build`) - Can be enabled for development (`next dev`) - Custom formatter built for output - Adds appropriate tests - Adds two documentation pages
test/integration/eslint/test/pkg-json-eslint-config.test.js
@@ -0,0 +1,44 @@ +import { join } from 'path' +import { nextBuild } from 'next-test-utils' +import { remove } from 'fs-extra' + +jest.setTimeout(1000 * 60 * 2) + +const appDir = join(__dirname, '../pkg-json-eslint-config') + +describe('ESLint', () => { + let code + let output + + beforeAll(async () => { + await r...
true
Other
vercel
next.js
e5ef60fecb142c149e0307376a1996f941b2840d.json
Add ESLint to Next.js (#22437) For #22228 This PR: - Adds ESLint to toolchain - Included by default for builds (`next build`) - Can be enabled for development (`next dev`) - Custom formatter built for output - Adds appropriate tests - Adds two documentation pages
test/integration/index-index/pages/index/index.js
@@ -1,3 +1,3 @@ export default function Index() { - return <div id="page">index > index</div> + return <div id="page">index &gt; index</div> }
true
Other
vercel
next.js
e5ef60fecb142c149e0307376a1996f941b2840d.json
Add ESLint to Next.js (#22437) For #22228 This PR: - Adds ESLint to toolchain - Included by default for builds (`next build`) - Can be enabled for development (`next dev`) - Custom formatter built for output - Adds appropriate tests - Adds two documentation pages
test/integration/index-index/pages/index/index/index.js
@@ -1,3 +1,3 @@ export default function Index() { - return <div id="page">index > index > index</div> + return <div id="page">index &gt; index &gt; index</div> }
true
Other
vercel
next.js
e5ef60fecb142c149e0307376a1996f941b2840d.json
Add ESLint to Next.js (#22437) For #22228 This PR: - Adds ESLint to toolchain - Included by default for builds (`next build`) - Can be enabled for development (`next dev`) - Custom formatter built for output - Adds appropriate tests - Adds two documentation pages
test/integration/index-index/pages/index/project/index.js
@@ -1,3 +1,3 @@ export default function Index() { - return <div id="page">index > project</div> + return <div id="page">index &gt; project</div> }
true
Other
vercel
next.js
e5ef60fecb142c149e0307376a1996f941b2840d.json
Add ESLint to Next.js (#22437) For #22228 This PR: - Adds ESLint to toolchain - Included by default for builds (`next build`) - Can be enabled for development (`next dev`) - Custom formatter built for output - Adds appropriate tests - Adds two documentation pages
test/integration/index-index/pages/index/user.js
@@ -1,3 +1,3 @@ export default function Index() { - return <div id="page">index > user</div> + return <div id="page">index &gt; user</div> }
true
Other
vercel
next.js
e5ef60fecb142c149e0307376a1996f941b2840d.json
Add ESLint to Next.js (#22437) For #22228 This PR: - Adds ESLint to toolchain - Included by default for builds (`next build`) - Can be enabled for development (`next dev`) - Custom formatter built for output - Adds appropriate tests - Adds two documentation pages
test/integration/production-build-dir/next.config.js
@@ -0,0 +1,5 @@ +module.exports = { + eslint: { + build: false, + }, +}
true
Other
vercel
next.js
e5ef60fecb142c149e0307376a1996f941b2840d.json
Add ESLint to Next.js (#22437) For #22228 This PR: - Adds ESLint to toolchain - Included by default for builds (`next build`) - Can be enabled for development (`next dev`) - Custom formatter built for output - Adds appropriate tests - Adds two documentation pages
test/integration/production/pages/error-in-ssr-render.js
@@ -1,10 +1,11 @@ +/* eslint-disable */ + import React from 'react' export default class ErrorInRenderPage extends React.Component { static async getInitialProps() { return {} } - // eslint-disable-next-line react/require-render-return render() { throw new Error('An Expected error occured') }
true
Other
vercel
next.js
e5ef60fecb142c149e0307376a1996f941b2840d.json
Add ESLint to Next.js (#22437) For #22228 This PR: - Adds ESLint to toolchain - Included by default for builds (`next build`) - Can be enabled for development (`next dev`) - Custom formatter built for output - Adds appropriate tests - Adds two documentation pages
test/integration/tsconfig-verifier/pages/index.tsx
@@ -1,6 +1,6 @@ -// eslint-disable-next-line @typescript-eslint/no-unused-vars +/* eslint-disable */ + const blah: boolean = false -// eslint-disable-next-line @typescript-eslint/no-unused-vars const blah2 = import('../value').then((r) => r.default) export default () => <h3>Hello TypeScript</h3>
true
Other
vercel
next.js
e5ef60fecb142c149e0307376a1996f941b2840d.json
Add ESLint to Next.js (#22437) For #22228 This PR: - Adds ESLint to toolchain - Included by default for builds (`next build`) - Can be enabled for development (`next dev`) - Custom formatter built for output - Adds appropriate tests - Adds two documentation pages
test/integration/webpack-require-hook/next.config.js
@@ -11,4 +11,7 @@ module.exports = { throw new Error('Webpack require hook not applying') return config }, + eslint: { + build: false, + }, }
true
Other
vercel
next.js
e5ef60fecb142c149e0307376a1996f941b2840d.json
Add ESLint to Next.js (#22437) For #22228 This PR: - Adds ESLint to toolchain - Included by default for builds (`next build`) - Can be enabled for development (`next dev`) - Custom formatter built for output - Adds appropriate tests - Adds two documentation pages
yarn.lock
@@ -93,6 +93,15 @@ semver "^5.4.1" source-map "^0.5.0" +"@babel/eslint-parser@7.13.4": + version "7.13.4" + resolved "https://registry.yarnpkg.com/@babel/eslint-parser/-/eslint-parser-7.13.4.tgz#dd9df3c70f44d2fb5a6519e8e10ca06c67dca43a" + integrity sha512-WfFEd89SzqmtYox8crTLJuEXyJolZY6Uu6iJpJmw4aMu50zHb...
true
Other
vercel
next.js
e52a224c212f7f8455b8eb06bb8df55ab4db5249.json
Add manifest of error pages (#23310) ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added ## 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 `fix...
errors/manifest.json
@@ -0,0 +1,338 @@ +{ + "routes": [ + { + "title": "Messages", + "heading": true, + "routes": [ + { + "title": "404-get-initial-props", + "path": "/errors/404-get-initial-props.md" + }, + { "title": "amp-bind-jsx-alt", "path": "/errors/amp-bind-jsx-alt.md" }, + ...
false
Other
vercel
next.js
8e4123e9d90409b84acf9276586f341db3bff5a3.json
feat: add exemple with redux toolkit in typescript (#23250) This pull request add typescript to the current redux-toolkit example on next.js. @markerikson suggested this nice idea to add a ts example: https://twitter.com/acemarke/status/1370877104527712259?s=20 This example is with the previous redux-toolkit example ...
examples/with-redux-toolkit-typescript/.gitignore
@@ -0,0 +1,34 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.js + +# testing +/coverage + +# next.js +/.next/ +/out/ + +# production +/build + +# misc +.DS_Store +*.pem + +# debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* +...
true
Other
vercel
next.js
8e4123e9d90409b84acf9276586f341db3bff5a3.json
feat: add exemple with redux toolkit in typescript (#23250) This pull request add typescript to the current redux-toolkit example on next.js. @markerikson suggested this nice idea to add a ts example: https://twitter.com/acemarke/status/1370877104527712259?s=20 This example is with the previous redux-toolkit example ...
examples/with-redux-toolkit-typescript/README.md
@@ -0,0 +1,23 @@ +# Redux Toolkit TypeScript Example + +This example shows how to integrate Next.js with [Redux Toolkit](https://redux-toolkit.js.org). + +The **Redux Toolkit** is intended to be the standard way to write Redux logic (create actions and reducers, setup the store with some default middlewares like redux ...
true
Other
vercel
next.js
8e4123e9d90409b84acf9276586f341db3bff5a3.json
feat: add exemple with redux toolkit in typescript (#23250) This pull request add typescript to the current redux-toolkit example on next.js. @markerikson suggested this nice idea to add a ts example: https://twitter.com/acemarke/status/1370877104527712259?s=20 This example is with the previous redux-toolkit example ...
examples/with-redux-toolkit-typescript/components/add-note.tsx
@@ -0,0 +1,41 @@ +import { FC } from 'react' +import { useDispatch, useSelector } from 'react-redux' + +import { addNote, selectNotes } from '../lib/slices/notesSlice' +import useForm from '../lib/useForm' +import { Note } from '../types/Note' +import { isErrorResponse } from '../types/ErrorResponse' + +const AddNoteFo...
true
Other
vercel
next.js
8e4123e9d90409b84acf9276586f341db3bff5a3.json
feat: add exemple with redux toolkit in typescript (#23250) This pull request add typescript to the current redux-toolkit example on next.js. @markerikson suggested this nice idea to add a ts example: https://twitter.com/acemarke/status/1370877104527712259?s=20 This example is with the previous redux-toolkit example ...
examples/with-redux-toolkit-typescript/components/clock.tsx
@@ -0,0 +1,34 @@ +import { FC } from 'react' +import { useSelector } from 'react-redux' + +import { selectClock } from '../lib/slices/clockSlice' + +const formatTime = (time: number) => { + // cut off except hh:mm:ss + return new Date(time).toJSON().slice(11, 19) +} + +const Clock: FC = () => { + const { lastUpdate,...
true
Other
vercel
next.js
8e4123e9d90409b84acf9276586f341db3bff5a3.json
feat: add exemple with redux toolkit in typescript (#23250) This pull request add typescript to the current redux-toolkit example on next.js. @markerikson suggested this nice idea to add a ts example: https://twitter.com/acemarke/status/1370877104527712259?s=20 This example is with the previous redux-toolkit example ...
examples/with-redux-toolkit-typescript/components/counter.tsx
@@ -0,0 +1,156 @@ +import { ChangeEvent, FC } from 'react' +import { useState } from 'react' +import { useDispatch, useSelector } from 'react-redux' + +import { + decrement, + increment, + incrementAsync, + incrementByAmount, + reset, + selectCount, +} from '../lib/slices/counterSlice' + +const Counter: FC = () =...
true
Other
vercel
next.js
8e4123e9d90409b84acf9276586f341db3bff5a3.json
feat: add exemple with redux toolkit in typescript (#23250) This pull request add typescript to the current redux-toolkit example on next.js. @markerikson suggested this nice idea to add a ts example: https://twitter.com/acemarke/status/1370877104527712259?s=20 This example is with the previous redux-toolkit example ...
examples/with-redux-toolkit-typescript/components/edit-note.tsx
@@ -0,0 +1,60 @@ +import { FC } from 'react' +import { useLayoutEffect, useRef } from 'react' +import { useDispatch } from 'react-redux' + +import { editNote } from '../lib/slices/notesSlice' +import useForm from '../lib/useForm' +import { PersistedNote } from '../types/Note' + +type Props = { + note: PersistedNote +}...
true
Other
vercel
next.js
8e4123e9d90409b84acf9276586f341db3bff5a3.json
feat: add exemple with redux toolkit in typescript (#23250) This pull request add typescript to the current redux-toolkit example on next.js. @markerikson suggested this nice idea to add a ts example: https://twitter.com/acemarke/status/1370877104527712259?s=20 This example is with the previous redux-toolkit example ...
examples/with-redux-toolkit-typescript/lib/slices/clockSlice.ts
@@ -0,0 +1,29 @@ +import { createSlice, PayloadAction } from '@reduxjs/toolkit' +import { CoreState } from '../../src/store' + +type ClockState = { + lastUpdate: number + light: boolean +} + +const initialState: ClockState = { + lastUpdate: 0, + light: true, +} + +const clockSlice = createSlice({ + name: 'clock', ...
true
Other
vercel
next.js
8e4123e9d90409b84acf9276586f341db3bff5a3.json
feat: add exemple with redux toolkit in typescript (#23250) This pull request add typescript to the current redux-toolkit example on next.js. @markerikson suggested this nice idea to add a ts example: https://twitter.com/acemarke/status/1370877104527712259?s=20 This example is with the previous redux-toolkit example ...
examples/with-redux-toolkit-typescript/lib/slices/counterSlice.ts
@@ -0,0 +1,60 @@ +import { createSlice, Dispatch } from '@reduxjs/toolkit' +import { CoreState } from '../../src/store' + +type CounterState = { + value: number +} + +const initialState: CounterState = { + value: 0, +} + +const counterSlice = createSlice({ + name: 'counter', + initialState, + reducers: { + // R...
true
Other
vercel
next.js
8e4123e9d90409b84acf9276586f341db3bff5a3.json
feat: add exemple with redux toolkit in typescript (#23250) This pull request add typescript to the current redux-toolkit example on next.js. @markerikson suggested this nice idea to add a ts example: https://twitter.com/acemarke/status/1370877104527712259?s=20 This example is with the previous redux-toolkit example ...
examples/with-redux-toolkit-typescript/lib/slices/notesSlice.ts
@@ -0,0 +1,193 @@ +import { createAsyncThunk, createSelector, createSlice } from '@reduxjs/toolkit' +import { Note, PersistedNote } from '../../types/Note' +import { CoreState } from '../../src/store' +import { ErrorResponse } from '../../types/ErrorResponse' + +type ErrorResult = { + error: ErrorResponse | string +} ...
true
Other
vercel
next.js
8e4123e9d90409b84acf9276586f341db3bff5a3.json
feat: add exemple with redux toolkit in typescript (#23250) This pull request add typescript to the current redux-toolkit example on next.js. @markerikson suggested this nice idea to add a ts example: https://twitter.com/acemarke/status/1370877104527712259?s=20 This example is with the previous redux-toolkit example ...
examples/with-redux-toolkit-typescript/lib/useForm.ts
@@ -0,0 +1,24 @@ +import { ChangeEvent } from 'react' + +const useForm = <TContent>(defaultValues: TContent) => ( + handler: (content: TContent) => void +) => async (event: ChangeEvent<HTMLFormElement>) => { + event.preventDefault() + event.persist() + + const form = event.target + const elements = Array.from(form...
true
Other
vercel
next.js
8e4123e9d90409b84acf9276586f341db3bff5a3.json
feat: add exemple with redux toolkit in typescript (#23250) This pull request add typescript to the current redux-toolkit example on next.js. @markerikson suggested this nice idea to add a ts example: https://twitter.com/acemarke/status/1370877104527712259?s=20 This example is with the previous redux-toolkit example ...
examples/with-redux-toolkit-typescript/lib/useInterval.ts
@@ -0,0 +1,19 @@ +import { useEffect, useRef } from 'react' + +// https://overreacted.io/making-setinterval-declarative-with-react-hooks/ +const useInterval = (callback: Function, delay: number) => { + const savedCallback = useRef<Function>() + useEffect(() => { + savedCallback.current = callback + }, [callback])...
true
Other
vercel
next.js
8e4123e9d90409b84acf9276586f341db3bff5a3.json
feat: add exemple with redux toolkit in typescript (#23250) This pull request add typescript to the current redux-toolkit example on next.js. @markerikson suggested this nice idea to add a ts example: https://twitter.com/acemarke/status/1370877104527712259?s=20 This example is with the previous redux-toolkit example ...
examples/with-redux-toolkit-typescript/next-env.d.ts
@@ -0,0 +1,2 @@ +/// <reference types="next" /> +/// <reference types="next/types/global" />
true
Other
vercel
next.js
8e4123e9d90409b84acf9276586f341db3bff5a3.json
feat: add exemple with redux toolkit in typescript (#23250) This pull request add typescript to the current redux-toolkit example on next.js. @markerikson suggested this nice idea to add a ts example: https://twitter.com/acemarke/status/1370877104527712259?s=20 This example is with the previous redux-toolkit example ...
examples/with-redux-toolkit-typescript/package.json
@@ -0,0 +1,27 @@ +{ + "name": "with-redux-toolkit-typescript", + "version": "1.0.0", + "scripts": { + "dev": "next", + "build": "next build", + "start": "next start", + "type-check": "tsc" + }, + "dependencies": { + "@nano-sql/core": "^2.3.7", + "@reduxjs/toolkit": "^1.3.6", + "next": "latest"...
true
Other
vercel
next.js
8e4123e9d90409b84acf9276586f341db3bff5a3.json
feat: add exemple with redux toolkit in typescript (#23250) This pull request add typescript to the current redux-toolkit example on next.js. @markerikson suggested this nice idea to add a ts example: https://twitter.com/acemarke/status/1370877104527712259?s=20 This example is with the previous redux-toolkit example ...
examples/with-redux-toolkit-typescript/pages/_app.tsx
@@ -0,0 +1,21 @@ +import React, { ComponentType } from 'react' +import { Provider } from 'react-redux' +import { AppInitialProps } from 'next/app' + +import store from '../src/store' + +const MyApp = ({ + Component, + pageProps, +}: { + Component: ComponentType<AppInitialProps> + pageProps: AppInitialProps +}) => {...
true
Other
vercel
next.js
8e4123e9d90409b84acf9276586f341db3bff5a3.json
feat: add exemple with redux toolkit in typescript (#23250) This pull request add typescript to the current redux-toolkit example on next.js. @markerikson suggested this nice idea to add a ts example: https://twitter.com/acemarke/status/1370877104527712259?s=20 This example is with the previous redux-toolkit example ...
examples/with-redux-toolkit-typescript/pages/api/notes.js
@@ -0,0 +1,112 @@ +import { nSQL } from '@nano-sql/core' + +const connectMiddleware = (handler) => async (req, res) => { + const dbName = 'with-redux-toolkit' + + if (!nSQL().listDatabases().includes(dbName)) { + await nSQL().createDatabase({ + id: dbName, + mode: 'PERM', + tables: [ + { + ...
true
Other
vercel
next.js
8e4123e9d90409b84acf9276586f341db3bff5a3.json
feat: add exemple with redux toolkit in typescript (#23250) This pull request add typescript to the current redux-toolkit example on next.js. @markerikson suggested this nice idea to add a ts example: https://twitter.com/acemarke/status/1370877104527712259?s=20 This example is with the previous redux-toolkit example ...
examples/with-redux-toolkit-typescript/pages/index.tsx
@@ -0,0 +1,23 @@ +import { useDispatch } from 'react-redux' + +import Clock from '../components/clock' +import Counter from '../components/counter' +import { tick } from '../lib/slices/clockSlice' +import useInterval from '../lib/useInterval' + +const IndexPage = () => { + const dispatch = useDispatch() + // Tick the...
true
Other
vercel
next.js
8e4123e9d90409b84acf9276586f341db3bff5a3.json
feat: add exemple with redux toolkit in typescript (#23250) This pull request add typescript to the current redux-toolkit example on next.js. @markerikson suggested this nice idea to add a ts example: https://twitter.com/acemarke/status/1370877104527712259?s=20 This example is with the previous redux-toolkit example ...
examples/with-redux-toolkit-typescript/pages/notes.tsx
@@ -0,0 +1,58 @@ +import Dynamic from 'next/dynamic' +import Head from 'next/head' +import { useEffect, useState } from 'react' +import { useDispatch, useSelector } from 'react-redux' + +import AddNoteForm from '../components/add-note' +import { deleteNote, loadNotes, selectNotes } from '../lib/slices/notesSlice' +impo...
true
Other
vercel
next.js
8e4123e9d90409b84acf9276586f341db3bff5a3.json
feat: add exemple with redux toolkit in typescript (#23250) This pull request add typescript to the current redux-toolkit example on next.js. @markerikson suggested this nice idea to add a ts example: https://twitter.com/acemarke/status/1370877104527712259?s=20 This example is with the previous redux-toolkit example ...
examples/with-redux-toolkit-typescript/src/store.ts
@@ -0,0 +1,18 @@ +import { combineReducers, configureStore } from '@reduxjs/toolkit' + +import clockReducer from '../lib/slices/clockSlice' +import counterReducer from '../lib/slices/counterSlice' +import notesReducer from '../lib/slices/notesSlice' + +const rootReducer = combineReducers({ + counter: counterReducer, +...
true
Other
vercel
next.js
8e4123e9d90409b84acf9276586f341db3bff5a3.json
feat: add exemple with redux toolkit in typescript (#23250) This pull request add typescript to the current redux-toolkit example on next.js. @markerikson suggested this nice idea to add a ts example: https://twitter.com/acemarke/status/1370877104527712259?s=20 This example is with the previous redux-toolkit example ...
examples/with-redux-toolkit-typescript/tsconfig.json
@@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "rootDirs": ["src/", "types/", "pages/", "lib/", "components/"], + "allowJs": true, + "alwaysStrict": true, + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, + "isolatedModules": true, + "jsx": "preserve", + "lib": ["dom", "es201...
true
Other
vercel
next.js
8e4123e9d90409b84acf9276586f341db3bff5a3.json
feat: add exemple with redux toolkit in typescript (#23250) This pull request add typescript to the current redux-toolkit example on next.js. @markerikson suggested this nice idea to add a ts example: https://twitter.com/acemarke/status/1370877104527712259?s=20 This example is with the previous redux-toolkit example ...
examples/with-redux-toolkit-typescript/types/ErrorResponse.ts
@@ -0,0 +1,10 @@ +export type ErrorResponse = { + title: string + content: string +} + +export function isErrorResponse( + error: ErrorResponse | string | undefined +): error is ErrorResponse { + return (error as ErrorResponse)?.title !== undefined +}
true
Other
vercel
next.js
8e4123e9d90409b84acf9276586f341db3bff5a3.json
feat: add exemple with redux toolkit in typescript (#23250) This pull request add typescript to the current redux-toolkit example on next.js. @markerikson suggested this nice idea to add a ts example: https://twitter.com/acemarke/status/1370877104527712259?s=20 This example is with the previous redux-toolkit example ...
examples/with-redux-toolkit-typescript/types/Note.ts
@@ -0,0 +1,8 @@ +export type Note = { + title: string + content: string +} + +export type PersistedNote = Note & { + id: string +}
true
Other
vercel
next.js
8c72806aced6bd1a9e06d7e9289e691f7fa5ed49.json
add separate progress output for typechecking (#23226) ## Bug - [x] Related issues linked using `fixes #number` - [ ] Integration tests added ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues...
packages/next/build/index.ts
@@ -151,8 +151,8 @@ export default async function build( } } - const buildSpinner = createSpinner({ - prefixText: `${Log.prefixes.info} Creating an optimized production build`, + const typeCheckingSpinner = createSpinner({ + prefixText: `${Log.prefixes.info} Checking validity of types`, ...
false
Other
vercel
next.js
ebfbbdb331f8f93d92650cb4689807f67219833d.json
Fix broken link (#23230)
examples/with-redux-toolkit/README.md
@@ -24,6 +24,6 @@ Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&ut ### TypeScript Setup (optional) -If you haven't already added [TypeScript](https://www.typescriptlang.org/) to your project, follow the [steps in the Next.js documentation](https://nextjs.org/docs/basic-features/Type...
false
Other
vercel
next.js
3caf6420d03b65d11c786a58de9d30f0b6a754d0.json
Add PR template
.github/pull_request_template.md
@@ -0,0 +1,22 @@ +<!-- +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 + +- [ ] Related issues linked ...
false
Other
vercel
next.js
e71014609e777f42f414e45e257faa8d8a2203d9.json
Fix invalid console.error link (#23213)
packages/next/lib/load-custom-routes.ts
@@ -190,7 +190,7 @@ function checkCustomRoutes( console.error( `The route ${ (route as Rewrite).source - } rewrites urls outside of the basePath. Please use a destination that starts with \`http://\` or \`https://\` https://err.sh/vercel/next.js/invalid-external-rewrite.md` + } ...
true
Other
vercel
next.js
e71014609e777f42f414e45e257faa8d8a2203d9.json
Fix invalid console.error link (#23213)
test/integration/invalid-custom-routes/test/index.test.js
@@ -213,7 +213,7 @@ const runTests = () => { ) expect(stderr).toContain( - `The route /hello rewrites urls outside of the basePath. Please use a destination that starts with \`http://\` or \`https://\` https://err.sh/vercel/next.js/invalid-external-rewrite.md` + `The route /hello rewrites urls out...
true
Other
vercel
next.js
b6bb110aca2c0db7dac904eb5a79b55c2dd5f8fc.json
Ensure process exits after build completes (#23207) This ensures we exit the build process after the build completes even if timers/connections are left open since this can cause the process to hang indefinitely. This was the previous behavior although got changed un-intentionally in https://github.com/vercel/next.js...
packages/next/bin/next.ts
@@ -106,7 +106,15 @@ if (typeof React.Suspense === 'undefined') { process.on('SIGTERM', () => process.exit(0)) process.on('SIGINT', () => process.exit(0)) -commands[command]().then((exec) => exec(forwardedArgs)) +commands[command]() + .then((exec) => exec(forwardedArgs)) + .then(() => { + if (command === 'buil...
true
Other
vercel
next.js
b6bb110aca2c0db7dac904eb5a79b55c2dd5f8fc.json
Ensure process exits after build completes (#23207) This ensures we exit the build process after the build completes even if timers/connections are left open since this can cause the process to hang indefinitely. This was the previous behavior although got changed un-intentionally in https://github.com/vercel/next.js...
test/integration/production/next.config.js
@@ -1,3 +1,6 @@ +// intervals/open connections shouldn't block build from exiting +setInterval(() => {}, 250) + module.exports = { onDemandEntries: { // Make sure entries are not getting disposed.
true
Other
vercel
next.js
8a76cad98fc2369bc6aff14e7d17d2858a3a8c7a.json
Fix closing tag in Script docs (#26276) ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added ## 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 `...
docs/basic-features/script.md
@@ -20,7 +20,7 @@ function Home() { <Head> <script async src="https://www.google-analytics.com/analytics.js" /> </Head> - </Head> + </> ) }
false
Other
vercel
next.js
4f3674cc37b1e3bc19ecf4f4e606543f2ce03d8b.json
Correct the word "remove" (#26258)
errors/future-webpack5-moved-to-webpack5.md
@@ -6,7 +6,7 @@ The `future.webpack5` option has been moved to `webpack5` in `next.config.js`. #### Possible Ways to Fix It -If you had the value `true` you can removed the option as webpack 5 is now the default for all Next.js apps unless opted out. +If you had the value `true` you can remove the option as webpac...
false
Other
vercel
next.js
67aba8469e16a1d8581153a15decc7fb0b8737cc.json
Update postcss version in examples (#26226)
examples/cms-ghost/package.json
@@ -12,7 +12,7 @@ "date-fns": "2.16.1", "lazysizes": "^5.3.0", "next": "latest", - "postcss": "^8.2.4", + "postcss": "^8.2.15", "react": "^17.0.2", "react-dom": "^17.0.2" },
true
Other
vercel
next.js
67aba8469e16a1d8581153a15decc7fb0b8737cc.json
Update postcss version in examples (#26226)
examples/cms-graphcms/package.json
@@ -11,7 +11,7 @@ "classnames": "2.2.6", "date-fns": "2.10.0", "next": "latest", - "postcss": "8.2.2", + "postcss": "8.2.15", "react": "^17.0.2", "react-dom": "^17.0.2" },
true
Other
vercel
next.js
67aba8469e16a1d8581153a15decc7fb0b8737cc.json
Update postcss version in examples (#26226)
examples/cms-prepr/package.json
@@ -12,7 +12,7 @@ "classnames": "2.2.6", "date-fns": "2.10.0", "next": "latest", - "postcss": "8.2.2", + "postcss": "8.2.15", "react": "^17.0.2", "react-dom": "^17.0.2" },
true
Other
vercel
next.js
8610ba4b5e31b2595164ca71489c8897d7b5d719.json
Fix eslint version check for older versions (#26212)
packages/next/lib/eslint/runLintCheck.ts
@@ -42,7 +42,7 @@ async function lint( const mod = await import(deps.resolved.get('eslint')!) const { ESLint } = mod - let eslintVersion = ESLint.version + let eslintVersion = ESLint?.version if (!ESLint) { eslintVersion = mod?.CLIEngine?.version
true
Other
vercel
next.js
8610ba4b5e31b2595164ca71489c8897d7b5d719.json
Fix eslint version check for older versions (#26212)
test/integration/eslint/invalid-eslint-version/.eslintrc
@@ -0,0 +1,4 @@ +{ + "extends": "next", + "root": true +}
true
Other
vercel
next.js
8610ba4b5e31b2595164ca71489c8897d7b5d719.json
Fix eslint version check for older versions (#26212)
test/integration/eslint/invalid-eslint-version/node_modules/eslint/index.js
@@ -0,0 +1 @@ +module.exports = {}
true
Other
vercel
next.js
8610ba4b5e31b2595164ca71489c8897d7b5d719.json
Fix eslint version check for older versions (#26212)
test/integration/eslint/invalid-eslint-version/node_modules/eslint/lib/api.js
@@ -0,0 +1 @@ +module.exports = {}
true
Other
vercel
next.js
8610ba4b5e31b2595164ca71489c8897d7b5d719.json
Fix eslint version check for older versions (#26212)
test/integration/eslint/invalid-eslint-version/node_modules/eslint/package.json
@@ -0,0 +1,5 @@ +{ + "name": "eslint", + "main": "./index.js", + "version": "6.0.1" +}
true
Other
vercel
next.js
8610ba4b5e31b2595164ca71489c8897d7b5d719.json
Fix eslint version check for older versions (#26212)
test/integration/eslint/invalid-eslint-version/pages/index.js
@@ -0,0 +1,8 @@ +const Home = () => ( + <div> + <p>Home</p> + /* Badly formatted comment */ + </div> +) + +export default Home
true
Other
vercel
next.js
8610ba4b5e31b2595164ca71489c8897d7b5d719.json
Fix eslint version check for older versions (#26212)
test/integration/eslint/test/index.test.js
@@ -11,6 +11,7 @@ const dirCustomConfig = join(__dirname, '../custom-config') const dirIgnoreDuringBuilds = join(__dirname, '../ignore-during-builds') const dirCustomDirectories = join(__dirname, '../custom-directories') const dirConfigInPackageJson = join(__dirname, '../config-in-package-json') +const dirInvalidEsl...
true
Other
vercel
next.js
2967fe1df39ec0946d171ac2a36c9805cfccff0d.json
Update docs on static image imports (#26211) Incorporates some of the feedback we've had about this doc. ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for imple...
docs/basic-features/image-optimization.md
@@ -31,14 +31,13 @@ To add an image to your application, import the [`next/image`](/docs/api-referen ```jsx import Image from 'next/image' -import profilePic from '../public/me.png' function Home() { return ( <> <h1>My Homepage</h1> <Image - src={profilePic} + src="/me.png" ...
false
Other
vercel
next.js
82bad10a29d944e86cdc5370e0d9ded5c5a408c4.json
Fix babel-loader failing on JSON5 syntax (#26194) ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues link...
packages/next/build/babel/loader/get-config.ts
@@ -1,4 +1,5 @@ import { readFileSync } from 'fs' +import JSON5 from 'next/dist/compiled/json5' import { createConfigItem, loadOptions } from 'next/dist/compiled/babel/core' import loadConfig from 'next/dist/compiled/babel/core-lib-config' @@ -151,7 +152,7 @@ const isJsFile = /\.js$/ function getCustomBabelConfig...
true
Other
vercel
next.js
82bad10a29d944e86cdc5370e0d9ded5c5a408c4.json
Fix babel-loader failing on JSON5 syntax (#26194) ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues link...
test/integration/babel-custom/fixtures/babel-json5/.babelrc
@@ -0,0 +1,12 @@ +{ + "presets": [ + [ + "next/babel", + { + "preset-env": { + "modules": "commonjs" // Here's a comment + } + } + ] + ] +}
true
Other
vercel
next.js
82bad10a29d944e86cdc5370e0d9ded5c5a408c4.json
Fix babel-loader failing on JSON5 syntax (#26194) ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues link...
test/integration/babel-custom/fixtures/babel-json5/pages/index.js
@@ -0,0 +1 @@ +export default () => <h1>Hello World</h1>
true
Other
vercel
next.js
82bad10a29d944e86cdc5370e0d9ded5c5a408c4.json
Fix babel-loader failing on JSON5 syntax (#26194) ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues link...
test/integration/babel-custom/test/index.test.js
@@ -17,4 +17,8 @@ describe('Babel', () => { it('should allow setting targets to a string', async () => { await nextBuild(join(__dirname, '../fixtures/targets-string')) }) + + it('should allow babelrc JSON5 syntax', async () => { + await nextBuild(join(__dirname, '../fixtures/babel-json5')) + }) })
true
Other
vercel
next.js
56292234075051e8b9967c39c8a0d99eb57aa54d.json
Update examples to use React 17 (#26133) [With next 11 requiring react 17](https://nextjs.org/blog/next-11#upgrade-guide), most of the examples need to be updated, so the following snippet updated all the examples to a compatible react version. ```bash cd examples/ fd -g 'package.json' | xargs sed -r -i 's/"react": "...
examples/active-class-name/package.json
@@ -9,8 +9,8 @@ "author": "Remy Sharp <remy@leftlogic.com>", "dependencies": { "next": "latest", - "react": "^16.7.0", - "react-dom": "^16.7.0" + "react": "^17.0.2", + "react-dom": "^17.0.2" }, "license": "MIT" }
true
Other
vercel
next.js
56292234075051e8b9967c39c8a0d99eb57aa54d.json
Update examples to use React 17 (#26133) [With next 11 requiring react 17](https://nextjs.org/blog/next-11#upgrade-guide), most of the examples need to be updated, so the following snippet updated all the examples to a compatible react version. ```bash cd examples/ fd -g 'package.json' | xargs sed -r -i 's/"react": "...
examples/amp-first/package.json
@@ -8,8 +8,8 @@ }, "dependencies": { "next": "latest", - "react": "^16.10.2", - "react-dom": "^16.10.2" + "react": "^17.0.2", + "react-dom": "^17.0.2" }, "license": "MIT" }
true
Other
vercel
next.js
56292234075051e8b9967c39c8a0d99eb57aa54d.json
Update examples to use React 17 (#26133) [With next 11 requiring react 17](https://nextjs.org/blog/next-11#upgrade-guide), most of the examples need to be updated, so the following snippet updated all the examples to a compatible react version. ```bash cd examples/ fd -g 'package.json' | xargs sed -r -i 's/"react": "...
examples/amp-story/package.json
@@ -8,8 +8,8 @@ }, "dependencies": { "next": "latest", - "react": "^16.7.0", - "react-dom": "^16.7.0" + "react": "^17.0.2", + "react-dom": "^17.0.2" }, "license": "MIT" }
true
Other
vercel
next.js
56292234075051e8b9967c39c8a0d99eb57aa54d.json
Update examples to use React 17 (#26133) [With next 11 requiring react 17](https://nextjs.org/blog/next-11#upgrade-guide), most of the examples need to be updated, so the following snippet updated all the examples to a compatible react version. ```bash cd examples/ fd -g 'package.json' | xargs sed -r -i 's/"react": "...
examples/amp/package.json
@@ -8,8 +8,8 @@ }, "dependencies": { "next": "latest", - "react": "^16.7.0", - "react-dom": "^16.7.0" + "react": "^17.0.2", + "react-dom": "^17.0.2" }, "license": "MIT" }
true
Other
vercel
next.js
56292234075051e8b9967c39c8a0d99eb57aa54d.json
Update examples to use React 17 (#26133) [With next 11 requiring react 17](https://nextjs.org/blog/next-11#upgrade-guide), most of the examples need to be updated, so the following snippet updated all the examples to a compatible react version. ```bash cd examples/ fd -g 'package.json' | xargs sed -r -i 's/"react": "...
examples/analyze-bundles/package.json
@@ -13,8 +13,8 @@ "cross-env": "^6.0.3", "faker": "^4.1.0", "next": "latest", - "react": "^16.8.0", - "react-dom": "^16.8.0" + "react": "^17.0.2", + "react-dom": "^17.0.2" }, "devDependencies": { "serve": "^11.3.2"
true
Other
vercel
next.js
56292234075051e8b9967c39c8a0d99eb57aa54d.json
Update examples to use React 17 (#26133) [With next 11 requiring react 17](https://nextjs.org/blog/next-11#upgrade-guide), most of the examples need to be updated, so the following snippet updated all the examples to a compatible react version. ```bash cd examples/ fd -g 'package.json' | xargs sed -r -i 's/"react": "...
examples/api-routes-apollo-server-and-client-auth/package.json
@@ -15,8 +15,8 @@ "graphql": "^14.0.2", "next": "latest", "prop-types": "^15.6.2", - "react": "^16.7.0", - "react-dom": "^16.7.0", + "react": "^17.0.2", + "react-dom": "^17.0.2", "uuid": "8.1.0" }, "license": "MIT"
true
Other
vercel
next.js
56292234075051e8b9967c39c8a0d99eb57aa54d.json
Update examples to use React 17 (#26133) [With next 11 requiring react 17](https://nextjs.org/blog/next-11#upgrade-guide), most of the examples need to be updated, so the following snippet updated all the examples to a compatible react version. ```bash cd examples/ fd -g 'package.json' | xargs sed -r -i 's/"react": "...
examples/api-routes-apollo-server-and-client/package.json
@@ -12,8 +12,8 @@ "graphql": "^14.0.2", "next": "latest", "prop-types": "^15.6.2", - "react": "^16.7.0", - "react-dom": "^16.7.0" + "react": "^17.0.2", + "react-dom": "^17.0.2" }, "license": "MIT" }
true
Other
vercel
next.js
56292234075051e8b9967c39c8a0d99eb57aa54d.json
Update examples to use React 17 (#26133) [With next 11 requiring react 17](https://nextjs.org/blog/next-11#upgrade-guide), most of the examples need to be updated, so the following snippet updated all the examples to a compatible react version. ```bash cd examples/ fd -g 'package.json' | xargs sed -r -i 's/"react": "...
examples/api-routes-apollo-server/package.json
@@ -11,8 +11,8 @@ "apollo-server-micro": "2.13.1", "graphql": "15.0.0", "next": "latest", - "react": "16.13.1", - "react-dom": "16.13.1" + "react": "^17.0.2", + "react-dom": "^17.0.2" }, "license": "MIT" }
true
Other
vercel
next.js
56292234075051e8b9967c39c8a0d99eb57aa54d.json
Update examples to use React 17 (#26133) [With next 11 requiring react 17](https://nextjs.org/blog/next-11#upgrade-guide), most of the examples need to be updated, so the following snippet updated all the examples to a compatible react version. ```bash cd examples/ fd -g 'package.json' | xargs sed -r -i 's/"react": "...
examples/api-routes-cors/package.json
@@ -9,8 +9,8 @@ "dependencies": { "cors": "2.8.5", "next": "latest", - "react": "^16.13.1", - "react-dom": "^16.13.1" + "react": "^17.0.2", + "react-dom": "^17.0.2" }, "license": "MIT" }
true
Other
vercel
next.js
56292234075051e8b9967c39c8a0d99eb57aa54d.json
Update examples to use React 17 (#26133) [With next 11 requiring react 17](https://nextjs.org/blog/next-11#upgrade-guide), most of the examples need to be updated, so the following snippet updated all the examples to a compatible react version. ```bash cd examples/ fd -g 'package.json' | xargs sed -r -i 's/"react": "...
examples/api-routes-graphql/package.json
@@ -10,8 +10,8 @@ "apollo-server-micro": "2.11.0", "graphql": "14.6.0", "next": "latest", - "react": "16.13.1", - "react-dom": "16.13.1", + "react": "^17.0.2", + "react-dom": "^17.0.2", "swr": "0.1.18" }, "license": "MIT"
true
Other
vercel
next.js
56292234075051e8b9967c39c8a0d99eb57aa54d.json
Update examples to use React 17 (#26133) [With next 11 requiring react 17](https://nextjs.org/blog/next-11#upgrade-guide), most of the examples need to be updated, so the following snippet updated all the examples to a compatible react version. ```bash cd examples/ fd -g 'package.json' | xargs sed -r -i 's/"react": "...
examples/api-routes-middleware/package.json
@@ -9,8 +9,8 @@ "dependencies": { "cookie": "0.4.0", "next": "latest", - "react": "^16.8.6", - "react-dom": "^16.8.6", + "react": "^17.0.2", + "react-dom": "^17.0.2", "swr": "0.1.18" }, "license": "MIT"
true
Other
vercel
next.js
56292234075051e8b9967c39c8a0d99eb57aa54d.json
Update examples to use React 17 (#26133) [With next 11 requiring react 17](https://nextjs.org/blog/next-11#upgrade-guide), most of the examples need to be updated, so the following snippet updated all the examples to a compatible react version. ```bash cd examples/ fd -g 'package.json' | xargs sed -r -i 's/"react": "...
examples/api-routes-rate-limit/package.json
@@ -10,8 +10,8 @@ "dependencies": { "lru-cache": "^6.0.0", "next": "10.0.3", - "react": "17.0.1", - "react-dom": "17.0.1", + "react": "^17.0.2", + "react-dom": "^17.0.2", "uuid": "^8.3.1" } }
true
Other
vercel
next.js
56292234075051e8b9967c39c8a0d99eb57aa54d.json
Update examples to use React 17 (#26133) [With next 11 requiring react 17](https://nextjs.org/blog/next-11#upgrade-guide), most of the examples need to be updated, so the following snippet updated all the examples to a compatible react version. ```bash cd examples/ fd -g 'package.json' | xargs sed -r -i 's/"react": "...
examples/api-routes-rest/package.json
@@ -8,8 +8,8 @@ }, "dependencies": { "next": "latest", - "react": "^16.8.6", - "react-dom": "^16.8.6", + "react": "^17.0.2", + "react-dom": "^17.0.2", "swr": "^0.1.18" }, "license": "MIT"
true
Other
vercel
next.js
56292234075051e8b9967c39c8a0d99eb57aa54d.json
Update examples to use React 17 (#26133) [With next 11 requiring react 17](https://nextjs.org/blog/next-11#upgrade-guide), most of the examples need to be updated, so the following snippet updated all the examples to a compatible react version. ```bash cd examples/ fd -g 'package.json' | xargs sed -r -i 's/"react": "...
examples/api-routes/package.json
@@ -8,8 +8,8 @@ }, "dependencies": { "next": "latest", - "react": "^16.8.6", - "react-dom": "^16.8.6", + "react": "^17.0.2", + "react-dom": "^17.0.2", "swr": "0.1.18" }, "license": "MIT"
true
Other
vercel
next.js
56292234075051e8b9967c39c8a0d99eb57aa54d.json
Update examples to use React 17 (#26133) [With next 11 requiring react 17](https://nextjs.org/blog/next-11#upgrade-guide), most of the examples need to be updated, so the following snippet updated all the examples to a compatible react version. ```bash cd examples/ fd -g 'package.json' | xargs sed -r -i 's/"react": "...
examples/auth0/package.json
@@ -10,8 +10,8 @@ "dependencies": { "@auth0/nextjs-auth0": "^0.8.0", "next": "latest", - "react": "^16.12.0", - "react-dom": "^16.12.0", + "react": "^17.0.2", + "react-dom": "^17.0.2", "tslib": "^2.2.0" } }
true
Other
vercel
next.js
56292234075051e8b9967c39c8a0d99eb57aa54d.json
Update examples to use React 17 (#26133) [With next 11 requiring react 17](https://nextjs.org/blog/next-11#upgrade-guide), most of the examples need to be updated, so the following snippet updated all the examples to a compatible react version. ```bash cd examples/ fd -g 'package.json' | xargs sed -r -i 's/"react": "...
examples/basic-css/package.json
@@ -8,8 +8,8 @@ }, "dependencies": { "next": "latest", - "react": "^16.7.0", - "react-dom": "^16.7.0" + "react": "^17.0.2", + "react-dom": "^17.0.2" }, "license": "MIT" }
true
Other
vercel
next.js
56292234075051e8b9967c39c8a0d99eb57aa54d.json
Update examples to use React 17 (#26133) [With next 11 requiring react 17](https://nextjs.org/blog/next-11#upgrade-guide), most of the examples need to be updated, so the following snippet updated all the examples to a compatible react version. ```bash cd examples/ fd -g 'package.json' | xargs sed -r -i 's/"react": "...
examples/basic-export/package.json
@@ -8,8 +8,8 @@ }, "dependencies": { "next": "latest", - "react": "^16.7.0", - "react-dom": "^16.7.0" + "react": "^17.0.2", + "react-dom": "^17.0.2" }, "license": "MIT" }
true
Other
vercel
next.js
56292234075051e8b9967c39c8a0d99eb57aa54d.json
Update examples to use React 17 (#26133) [With next 11 requiring react 17](https://nextjs.org/blog/next-11#upgrade-guide), most of the examples need to be updated, so the following snippet updated all the examples to a compatible react version. ```bash cd examples/ fd -g 'package.json' | xargs sed -r -i 's/"react": "...
examples/blog-starter/package.json
@@ -11,8 +11,8 @@ "date-fns": "2.16.1", "gray-matter": "4.0.2", "next": "latest", - "react": "^17.0.1", - "react-dom": "^17.0.1", + "react": "^17.0.2", + "react-dom": "^17.0.2", "remark": "13.0.0", "remark-html": "13.0.1" },
true
Other
vercel
next.js
56292234075051e8b9967c39c8a0d99eb57aa54d.json
Update examples to use React 17 (#26133) [With next 11 requiring react 17](https://nextjs.org/blog/next-11#upgrade-guide), most of the examples need to be updated, so the following snippet updated all the examples to a compatible react version. ```bash cd examples/ fd -g 'package.json' | xargs sed -r -i 's/"react": "...
examples/catch-all-routes/package.json
@@ -9,7 +9,7 @@ "license": "MIT", "dependencies": { "next": "latest", - "react": "^16.12.0", - "react-dom": "^16.12.0" + "react": "^17.0.2", + "react-dom": "^17.0.2" } }
true
Other
vercel
next.js
56292234075051e8b9967c39c8a0d99eb57aa54d.json
Update examples to use React 17 (#26133) [With next 11 requiring react 17](https://nextjs.org/blog/next-11#upgrade-guide), most of the examples need to be updated, so the following snippet updated all the examples to a compatible react version. ```bash cd examples/ fd -g 'package.json' | xargs sed -r -i 's/"react": "...
examples/cms-agilitycms/package.json
@@ -12,9 +12,9 @@ "date-fns": "2.10.0", "isomorphic-unfetch": "3.0.0", "next": "latest", - "react": "^16.13.0", + "react": "^17.0.2", "react-datocms": "1.1.0", - "react-dom": "^16.13.0", + "react-dom": "^17.0.2", "react-intersection-observer": "^8.26.1", "remark": "11.0.2", ...
true
Other
vercel
next.js
56292234075051e8b9967c39c8a0d99eb57aa54d.json
Update examples to use React 17 (#26133) [With next 11 requiring react 17](https://nextjs.org/blog/next-11#upgrade-guide), most of the examples need to be updated, so the following snippet updated all the examples to a compatible react version. ```bash cd examples/ fd -g 'package.json' | xargs sed -r -i 's/"react": "...
examples/cms-buttercms/package.json
@@ -12,8 +12,8 @@ "date-fns": "2.14.0", "isomorphic-unfetch": "3.0.0", "next": "latest", - "react": "^16.13.1", - "react-dom": "^16.13.1" + "react": "^17.0.2", + "react-dom": "^17.0.2" }, "devDependencies": { "postcss-flexbugs-fixes": "4.2.1",
true
Other
vercel
next.js
56292234075051e8b9967c39c8a0d99eb57aa54d.json
Update examples to use React 17 (#26133) [With next 11 requiring react 17](https://nextjs.org/blog/next-11#upgrade-guide), most of the examples need to be updated, so the following snippet updated all the examples to a compatible react version. ```bash cd examples/ fd -g 'package.json' | xargs sed -r -i 's/"react": "...
examples/cms-contentful/package.json
@@ -12,8 +12,8 @@ "classnames": "2.2.6", "date-fns": "2.14.0", "next": "latest", - "react": "^16.13.1", - "react-dom": "^16.13.1" + "react": "^17.0.2", + "react-dom": "^17.0.2" }, "devDependencies": { "@fullhuman/postcss-purgecss": "^2.3.0",
true
Other
vercel
next.js
56292234075051e8b9967c39c8a0d99eb57aa54d.json
Update examples to use React 17 (#26133) [With next 11 requiring react 17](https://nextjs.org/blog/next-11#upgrade-guide), most of the examples need to be updated, so the following snippet updated all the examples to a compatible react version. ```bash cd examples/ fd -g 'package.json' | xargs sed -r -i 's/"react": "...
examples/cms-cosmic/package.json
@@ -12,9 +12,9 @@ "date-fns": "2.14.0", "lazysizes": "^5.2.1-rc2", "next": "latest", - "react": "^16.13.1", + "react": "^17.0.2", "react-datocms": "1.2.4", - "react-dom": "^16.13.1", + "react-dom": "^17.0.2", "react-imgix": "^9.0.2", "remark": "12.0.0", "remark-html": "11....
true
Other
vercel
next.js
56292234075051e8b9967c39c8a0d99eb57aa54d.json
Update examples to use React 17 (#26133) [With next 11 requiring react 17](https://nextjs.org/blog/next-11#upgrade-guide), most of the examples need to be updated, so the following snippet updated all the examples to a compatible react version. ```bash cd examples/ fd -g 'package.json' | xargs sed -r -i 's/"react": "...
examples/cms-datocms/package.json
@@ -10,9 +10,9 @@ "classnames": "2.2.6", "date-fns": "2.14.0", "next": "latest", - "react": "^16.13.1", + "react": "^17.0.2", "react-datocms": "1.2.4", - "react-dom": "^16.13.1", + "react-dom": "^17.0.2", "remark": "12.0.0", "remark-html": "11.0.2" },
true
Other
vercel
next.js
56292234075051e8b9967c39c8a0d99eb57aa54d.json
Update examples to use React 17 (#26133) [With next 11 requiring react 17](https://nextjs.org/blog/next-11#upgrade-guide), most of the examples need to be updated, so the following snippet updated all the examples to a compatible react version. ```bash cd examples/ fd -g 'package.json' | xargs sed -r -i 's/"react": "...
examples/cms-ghost/package.json
@@ -13,8 +13,8 @@ "lazysizes": "^5.3.0", "next": "latest", "postcss": "^8.2.4", - "react": "^17.0.1", - "react-dom": "^17.0.1" + "react": "^17.0.2", + "react-dom": "^17.0.2" }, "devDependencies": { "postcss-flexbugs-fixes": "^5.0.2",
true
Other
vercel
next.js
56292234075051e8b9967c39c8a0d99eb57aa54d.json
Update examples to use React 17 (#26133) [With next 11 requiring react 17](https://nextjs.org/blog/next-11#upgrade-guide), most of the examples need to be updated, so the following snippet updated all the examples to a compatible react version. ```bash cd examples/ fd -g 'package.json' | xargs sed -r -i 's/"react": "...
examples/cms-graphcms/package.json
@@ -12,8 +12,8 @@ "date-fns": "2.10.0", "next": "latest", "postcss": "8.2.2", - "react": "17.0.1", - "react-dom": "17.0.1" + "react": "^17.0.2", + "react-dom": "^17.0.2" }, "devDependencies": { "postcss-flexbugs-fixes": "^5.0.2",
true
Other
vercel
next.js
56292234075051e8b9967c39c8a0d99eb57aa54d.json
Update examples to use React 17 (#26133) [With next 11 requiring react 17](https://nextjs.org/blog/next-11#upgrade-guide), most of the examples need to be updated, so the following snippet updated all the examples to a compatible react version. ```bash cd examples/ fd -g 'package.json' | xargs sed -r -i 's/"react": "...
examples/cms-kontent/package.json
@@ -12,8 +12,8 @@ "date-fns": "2.10.0", "gray-matter": "4.0.2", "next": "latest", - "react": "^16.13.0", - "react-dom": "^16.13.0", + "react": "^17.0.2", + "react-dom": "^17.0.2", "remark": "11.0.2", "remark-html": "10.0.0", "rxjs": "^6.6.2"
true
Other
vercel
next.js
56292234075051e8b9967c39c8a0d99eb57aa54d.json
Update examples to use React 17 (#26133) [With next 11 requiring react 17](https://nextjs.org/blog/next-11#upgrade-guide), most of the examples need to be updated, so the following snippet updated all the examples to a compatible react version. ```bash cd examples/ fd -g 'package.json' | xargs sed -r -i 's/"react": "...
examples/cms-prepr/package.json
@@ -13,8 +13,8 @@ "date-fns": "2.10.0", "next": "latest", "postcss": "8.2.2", - "react": "17.0.1", - "react-dom": "17.0.1" + "react": "^17.0.2", + "react-dom": "^17.0.2" }, "devDependencies": { "postcss-flexbugs-fixes": "^5.0.2",
true
Other
vercel
next.js
56292234075051e8b9967c39c8a0d99eb57aa54d.json
Update examples to use React 17 (#26133) [With next 11 requiring react 17](https://nextjs.org/blog/next-11#upgrade-guide), most of the examples need to be updated, so the following snippet updated all the examples to a compatible react version. ```bash cd examples/ fd -g 'package.json' | xargs sed -r -i 's/"react": "...
examples/cms-prismic/package.json
@@ -12,8 +12,8 @@ "next": "latest", "prismic-javascript": "3.0.1", "prismic-reactjs": "1.3.1", - "react": "^16.13.0", - "react-dom": "^16.13.0" + "react": "^17.0.2", + "react-dom": "^17.0.2" }, "devDependencies": { "@fullhuman/postcss-purgecss": "^2.1.0",
true