Skip to content

Commit 14d4bb6

Browse files
authored
Merge branch 'main' into mk/default-edge
2 parents 27f9465 + ba27564 commit 14d4bb6

File tree

20 files changed

+121
-213
lines changed

20 files changed

+121
-213
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ body:
4444
id: runtime-version
4545
attributes:
4646
label: Next Runtime version
47-
description: The version of `@netlify/next-runtime` that you are using. (This is in the build logs)
47+
description: The version of `@netlify/plugin-nextjs` that you are using. (This is in the build logs)
4848
placeholder: x.x.x
4949
validations:
5050
required: true

.github/workflows/pre-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- uses: actions/checkout@v2
1212
- uses: actions/setup-node@v2
1313
with:
14-
node-version: '*'
14+
node-version: 'lts/*'
1515
cache: 'npm'
1616
check-latest: true
1717
registry-url: 'https://registry.npmjs.org'

.github/workflows/release-please.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
if: ${{ steps.release.outputs.releases_created }}
2222
- uses: actions/setup-node@v2
2323
with:
24-
node-version: '*'
24+
node-version: 'lts/*'
2525
cache: 'npm'
2626
check-latest: true
2727
registry-url: 'https://registry.npmjs.org'

.github/workflows/test.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,22 @@ jobs:
2525

2626
steps:
2727
- uses: actions/checkout@v2
28-
- name: Installing with latest Node.js
28+
- name: Installing with LTS Node.js
2929
uses: actions/setup-node@v2
3030
with:
31-
node-version: '*'
31+
node-version: 'lts/*'
3232
check-latest: true
3333
- name: NPM Install
3434
run: npm install
3535
- name: Switching to Node.js ${{ matrix.node-version }} to run tests
3636
uses: actions/setup-node@v2
37-
if: "${{ matrix.node-version != '*' }}"
37+
if: "${{ matrix.node-version != 'lts/*' }}"
3838
with:
3939
node-version: ${{ matrix.node-version }}
4040
check-latest: true
4141
- name: Linting
4242
run: npm run format:ci
43-
if: "${{ matrix.node-version == '*' }}"
43+
if: "${{ matrix.node-version == 'lts/*' }}"
4444
- name: Run tests against next@latest
4545
run: npm test
4646
canary:
@@ -61,18 +61,18 @@ jobs:
6161
if: github.ref_name == 'main'
6262
steps:
6363
- uses: actions/checkout@v2
64-
- name: Installing with latest Node.js
64+
- name: Installing with LTS Node.js
6565
uses: actions/setup-node@v2
6666
with:
67-
node-version: '*'
67+
node-version: 'lts/*'
6868
check-latest: true
6969
- name: NPM Install
7070
run: npm install
7171
- name: Install Next.js Canary
7272
run: npm install -D next@canary --legacy-peer-deps
7373
- name: Switching to Node.js ${{ matrix.node-version }} to run tests
7474
uses: actions/setup-node@v2
75-
if: "${{ matrix.node-version != '*' }}"
75+
if: "${{ matrix.node-version != 'lts/*' }}"
7676
with:
7777
node-version: ${{ matrix.node-version }}
7878
check-latest: true

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
# Next.js Runtime
44

55
<p align="center">
6-
<a aria-label="npm version" href="https://www.npmjs.com/package/@netlify/next-runtime">
7-
<img alt="" src="https://img.shields.io/npm/v/@netlify/next-runtime">
6+
<a aria-label="npm version" href="https://www.npmjs.com/package/@netlify/plugin-nextjs">
7+
<img alt="" src="https://img.shields.io/npm/v/@netlify/plugin-nextjs">
88
</a>
9-
<a aria-label="MIT License" href="https://img.shields.io/npm/l/@netlify/next-runtime">
10-
<img alt="" src="https://img.shields.io/npm/l/@netlify/next-runtime">
9+
<a aria-label="MIT License" href="https://img.shields.io/npm/l/@netlify/plugin-nextjs">
10+
<img alt="" src="https://img.shields.io/npm/l/@netlify/plugin-nextjs">
1111
</a>
1212
</p>
1313

@@ -115,14 +115,14 @@ Edge runtime or middleware is enabled it will also generate edge functions for m
115115
The Next.js Runtime installs automatically for new Next.js sites on Netlify. You can also install it manually like this:
116116

117117
```shell
118-
npm install -D @netlify/next-runtime
118+
npm install -D @netlify/plugin-nextjs
119119
```
120120

121121
...then add the following to your `netlify.toml` file:
122122

123123
```toml
124124
[[plugins]]
125-
package = "@netlify/next-runtime"
125+
package = "@netlify/plugin-nextjs"
126126
```
127127

128128
## Manually upgrading from an older version of the Next.js Runtime
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
name: '@netlify/next-runtime-local'
1+
name: '@netlify/plugin-nextjs-local'

demos/base-path/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "1.0.0",
44
"description": "",
55
"devDependencies": {
6-
"@netlify/next-runtime": "*",
6+
"@netlify/plugin-nextjs": "*",
77
"@types/fs-extra": "^9.0.13",
88
"@types/jest": "^27.4.1",
99
"@types/node": "^17.0.25",
@@ -28,4 +28,4 @@
2828
"url": "https://github.com/netlify/next-runtime/issues"
2929
},
3030
"homepage": "https://github.com/netlify/next-runtime#readme"
31-
}
31+
}

demos/custom-routes/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "1.0.0",
44
"description": "",
55
"devDependencies": {
6-
"@netlify/next-runtime": "*",
6+
"@netlify/plugin-nextjs": "*",
77
"@types/fs-extra": "^9.0.13",
88
"@types/jest": "^27.4.1",
99
"@types/node": "^17.0.25",
@@ -29,4 +29,4 @@
2929
"url": "https://github.com/netlify/next-runtime/issues"
3030
},
3131
"homepage": "https://github.com/netlify/next-runtime#readme"
32-
}
32+
}

demos/default/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"react-dom": "^18.0.0"
2626
},
2727
"devDependencies": {
28-
"@netlify/next-runtime": "*",
28+
"@netlify/plugin-nextjs": "*",
2929
"@types/fs-extra": "^9.0.13",
3030
"@types/jest": "^27.4.1",
3131
"@types/node": "^17.0.25",
@@ -35,4 +35,4 @@
3535
"npm-run-all": "^4.1.5",
3636
"typescript": "^4.6.3"
3737
}
38-
}
38+
}

demos/middleware/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"ntl": "ntl-internal"
1010
},
1111
"dependencies": {
12-
"@netlify/next-runtime": "*",
12+
"@netlify/plugin-nextjs": "*",
1313
"@netlify/next": "*",
1414
"next": "^12.2.0",
1515
"react": "18.0.0",
@@ -24,4 +24,4 @@
2424
"npm-run-all": "^4.1.5",
2525
"typescript": "^4.6.3"
2626
}
27-
}
27+
}

demos/next-auth/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@
2626
"next": "^12.2.0",
2727
"next-auth": "^4.7.0",
2828
"nodemailer": "^6.6.3",
29-
"react": "^17.0.2",
30-
"react-dom": "^17.0.2"
29+
"react": "^18.0.0",
30+
"react-dom": "^18.0.0"
3131
},
3232
"devDependencies": {
33-
"@netlify/next-runtime": "*",
33+
"@netlify/plugin-nextjs": "*",
3434
"@types/fs-extra": "^9.0.13",
3535
"@types/jest": "^27.4.1",
3636
"@types/node": "^17.0.14",
37-
"@types/react": "^17.0.39",
37+
"@types/react": "^18.0.0",
3838
"husky": "^7.0.4",
3939
"npm-run-all": "^4.1.5",
4040
"typescript": "^4.5.5"
@@ -45,4 +45,4 @@
4545
"engines": {
4646
"node": ">=16.0.0"
4747
}
48-
}
48+
}

demos/next-auth/pages/_app.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import { SessionProvider } from "next-auth/react"
2-
import type { AppProps } from "next/app"
32
import "./styles.css"
43

54
// Use of the <SessionProvider> is mandatory to allow components that call
65
// `useSession()` anywhere in your application to access the `session` object.
7-
export default function App({ Component, pageProps }: AppProps) {
6+
export default function App({ Component, pageProps }) {
87
return (
98
<SessionProvider session={pageProps.session} refetchInterval={0}>
109
<Component {...pageProps} />

demos/next-auth/tsconfig.json

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,27 @@
11
{
2+
"extends": "../../tsconfig.json",
23
"compilerOptions": {
3-
"target": "es5",
44
"lib": [
5-
"dom",
6-
"dom.iterable",
7-
"esnext"
5+
"es2019",
6+
"dom"
87
],
9-
"allowJs": true,
10-
"skipLibCheck": true,
11-
"strict": true,
12-
"forceConsistentCasingInFileNames": true,
8+
"strict": false,
139
"noEmit": true,
14-
"esModuleInterop": true,
15-
"module": "esnext",
10+
"incremental": true,
1611
"moduleResolution": "node",
1712
"resolveJsonModule": true,
1813
"isolatedModules": true,
19-
"jsx": "preserve",
20-
"incremental": true
14+
"jsx": "preserve"
2115
},
22-
"include": ["process.d.ts", "next-env.d.ts", "next-auth.d.ts", "**/*.ts", "**/*.tsx"],
23-
"exclude": ["node_modules"]
16+
"include": [
17+
"process.d.ts",
18+
"next-env.d.ts",
19+
"next-auth.d.ts",
20+
"**/*.ts",
21+
"**/*.tsx",
22+
"pages/_app.js"
23+
],
24+
"exclude": [
25+
"node_modules"
26+
]
2427
}

demos/next-export/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"next": "^12.2.0"
77
},
88
"devDependencies": {
9-
"@netlify/next-runtime": "*",
9+
"@netlify/plugin-nextjs": "*",
1010
"@types/fs-extra": "^9.0.13",
1111
"@types/jest": "^27.4.1",
1212
"@types/node": "^17.0.25",
@@ -28,4 +28,4 @@
2828
"url": "https://github.com/netlify/next-runtime/issues"
2929
},
3030
"homepage": "https://github.com/netlify/next-runtime#readme"
31-
}
31+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
name: '@netlify/next-runtime-local'
1+
name: '@netlify/plugin-nextjs-local'

demos/plugin-wrapper/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"test": "echo \"Error: no test specified\" && exit 1"
88
},
99
"devDependencies": {
10-
"@netlify/next-runtime": "*",
10+
"@netlify/plugin-nextjs": "*",
1111
"@types/fs-extra": "^9.0.13",
1212
"@types/jest": "^27.4.1",
1313
"@types/node": "^17.0.25",
@@ -16,4 +16,4 @@
1616
"npm-run-all": "^4.1.5",
1717
"typescript": "^4.6.3"
1818
}
19-
}
19+
}

demos/server-components/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
"react-dom": "^18.0.0"
1717
},
1818
"devDependencies": {
19-
"@netlify/next-runtime": "*",
19+
"@netlify/plugin-nextjs": "*",
2020
"@types/fs-extra": "^9.0.13",
2121
"@types/jest": "^27.4.1",
2222
"@types/node": "^17.0.25",
2323
"husky": "^7.0.4",
2424
"npm-run-all": "^4.1.5",
2525
"typescript": "^4.6.3"
2626
}
27-
}
27+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
name: '@netlify/next-runtime-local'
1+
name: '@netlify/plugin-nextjs-local'

demos/static-root/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"next": "^12.2.0"
77
},
88
"devDependencies": {
9-
"@netlify/next-runtime": "*",
9+
"@netlify/plugin-nextjs": "*",
1010
"@types/fs-extra": "^9.0.13",
1111
"@types/jest": "^27.4.1",
1212
"@types/node": "^17.0.25",
@@ -28,4 +28,4 @@
2828
"url": "https://github.com/netlify/next-runtime/issues"
2929
},
3030
"homepage": "https://github.com/netlify/next-runtime#readme"
31-
}
31+
}

0 commit comments

Comments
 (0)