Skip to content

Commit 56abd3a

Browse files
committed
Merge branch 'main' into mk/background-functions
2 parents 5f582b2 + 39f3b4b commit 56abd3a

File tree

94 files changed

+3515
-7713
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+3515
-7713
lines changed

.eslintignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ node_modules
33
test
44
lib
55
demos
6-
plugin/src/templates/edge
7-
plugin/lib
8-
plugin/dist-types
6+
packages/runtime/src/templates/edge
7+
packages/runtime/lib
8+
packages/runtime/dist-types

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ body:
3939
- type: markdown
4040
attributes:
4141
value: |
42-
Check out [CONTRIBUTING.md](https://github.com/netlify/netlify-plugin-nextjs/blob/main/CONTRIBUTING.md#what-is-a-reproducible-test-case) for advice on producing a reproduction repo.
42+
Check out [CONTRIBUTING.md](https://github.com/netlify/next-runtime/blob/main/CONTRIBUTING.md#what-is-a-reproducible-test-case) for advice on producing a reproduction repo.
4343
- type: input
44-
id: plugin-version
44+
id: runtime-version
4545
attributes:
46-
label: Plugin version
46+
label: Next Runtime version
4747
description: The version of `@netlify/plugin-nextjs` that you are using. (This is in the build logs)
4848
placeholder: x.x.x
4949
validations:
@@ -74,7 +74,7 @@ body:
7474
value: |
7575
<details>
7676
<summary>`netlify.toml`</summary>
77-
77+
7878
```toml
7979
# Paste content of your `netlify.toml` file here
8080
```
@@ -89,7 +89,7 @@ body:
8989
value: |
9090
<details>
9191
<summary>`_redirects`</summary>
92-
92+
9393
```toml
9494
# Paste content of your `_redirects` file here
9595
```
@@ -104,7 +104,7 @@ body:
104104
value: |
105105
<details>
106106
<summary>`next.config.js`</summary>
107-
107+
108108
```toml
109109
# Paste content of your `next.config.js` file here. Check there is no private info in there.
110110
```
@@ -118,7 +118,7 @@ body:
118118
value: |
119119
<details>
120120
<summary>Build logs</summary>
121-
121+
122122
```
123123
# Paste logs here
124124
```
@@ -133,7 +133,7 @@ body:
133133
value: |
134134
<details>
135135
<summary>Function logs</summary>
136-
136+
137137
```
138138
# Paste logs here
139139
```
@@ -150,7 +150,7 @@ body:
150150
value: |
151151
<details>
152152
<summary>generated .next JSON files</summary>
153-
153+
154154
```
155155
# Paste file contents here. Please check there isn't any private info in them
156156
# You can either build locally, or download the deploy from Netlify by clicking the arrow next to the deploy time.

.github/workflows/cypress-canary.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
record: true
6464
parallel: true
6565
config-file: cypress/config/canary.json
66-
group: 'Next Plugin - Demo Canary'
66+
group: 'Next Runtime - Demo Canary'
6767
spec: cypress/integration/canary/*
6868
env:
6969
DEBUG: '@cypress/github-action'

.github/workflows/cypress-demo-nx.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
record: true
6464
parallel: true
6565
config-file: cypress/config/nx-demo.json
66-
group: 'Next Plugin - Demo NX'
66+
group: 'Next Runtime - Demo NX'
6767
spec: cypress/integration/nx/*
6868
env:
6969
DEBUG: '@cypress/github-action'

.github/workflows/cypress-demo-static.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
record: true
6464
parallel: true
6565
config-file: cypress/config/static-root.json
66-
group: 'Next Plugin - Demo Static'
66+
group: 'Next Runtime - Demo Static'
6767
spec: cypress/integration/static-root/*
6868
env:
6969
DEBUG: '@cypress/github-action'

.github/workflows/cypress-demo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
record: true
6464
parallel: true
6565
config-file: cypress/config/ci.json
66-
group: 'Next Plugin - Demo'
66+
group: 'Next Runtime - Demo'
6767
spec: cypress/integration/default/*
6868
env:
6969
DEBUG: '@cypress/github-action'

.github/workflows/cypress-middleware.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
record: true
6464
parallel: true
6565
config-file: cypress/config/middleware.json
66-
group: 'Next Plugin - Middleware'
66+
group: 'Next Runtime - Middleware'
6767
spec: cypress/integration/middleware/*
6868
env:
6969
DEBUG: '@cypress/github-action'

.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: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,24 @@ 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'
2828
if: ${{ steps.release.outputs.releases_created }}
2929
- name: Install dependencies
3030
run: CI=1 npm ci
31-
working-directory: plugin
32-
if: ${{ steps.release.outputs.releases_created }}
33-
- run: npm publish
34-
working-directory: plugin
3531
if: ${{ steps.release.outputs.releases_created }}
32+
- run: npm publish packages/runtime/
33+
if: ${{ steps.release.outputs['packages/runtime--version'] }}
34+
env:
35+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
36+
- run: npm publish packages/next/
37+
if: ${{ steps.release.outputs['packages/next--version'] }}
3638
env:
3739
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
3840
- uses: netlify/submit-build-plugin-action@v1
39-
if: ${{ steps.release.outputs.releases_created }}
41+
if: ${{ steps.release.outputs['packages/runtime--version'] }}
4042
with:
4143
github-token: ${{ steps.get-token.outputs.token }}
42-
package-json-dir: plugin
44+
package-json-dir: packages/runtime

.github/workflows/test.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Plugin Tests
1+
name: Next Runtime Tests
22

33
on:
44
pull_request:
@@ -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

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,7 @@ Temporary Items
146146
.netlify
147147
demos/default/.next
148148
.parcel-cache
149-
plugin/lib
150-
plugin/dist-types
149+
packages/*/lib
151150

152151
# Cypress
153152
cypress/screenshots

.prettierignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ lib
2222
tsconfig.json
2323
demos/nx-next-monorepo-demo
2424

25-
plugin/CHANGELOG.md
26-
plugin/lib
27-
plugin/dist-types
25+
packages/runtime/CHANGELOG.md
26+
packages/runtime/lib
27+
packages/runtime/dist-types

.release-please-manifest.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"plugin": "4.14.1"
2+
"packages/runtime": "4.17.0",
3+
"packages/next": "0.0.1"
34
}

.vscode/feat-test.code-snippets

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
// Place your netlify-plugin-nextjs workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
3-
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
4-
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
5-
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
6-
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
2+
// Place your next-runtime workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
3+
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
4+
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
5+
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
6+
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
77
// Placeholders with the same ids are connected.
88
// Example:
99
"Create Next Test Feature": {
@@ -27,4 +27,4 @@
2727
],
2828
"description": "Log output to console"
2929
}
30-
}
30+
}

.vscode/settings.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
{
22
"deno.enablePaths": [
3-
"plugin/src/templates/edge",
3+
"packages/runtime/src/templates/edge",
44
"demos/middleware/.netlify/edge-functions",
55
"demos/server-components/.netlify/edge-functions",
66
],
7-
"deno.unstable": true,
8-
"deno.importMap": "demos/server-components/.netlify/edge-functions-import-map.json"
7+
"deno.unstable": true
98
}

0 commit comments

Comments
 (0)