Skip to content

Commit cc14667

Browse files
authored
Merge pull request #31 from seamapi/node-20
Node v20
2 parents 38de860 + 4d73161 commit cc14667

21 files changed

+875
-290
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG VARIANT="18"
1+
ARG VARIANT="20"
22

33
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:${VARIANT}
44

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"build": {
44
"dockerfile": "Dockerfile",
55
"args": {
6-
"VARIANT": "18"
6+
"VARIANT": "20"
77
}
88
},
99
"extensions": [

.github/actions/setup/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ inputs:
66
node_version:
77
description: The Node.js version.
88
required: false
9-
default: '18'
9+
default: '20'
1010
registry_url:
1111
description: The Node.js package registry URL.
1212
required: false
@@ -20,14 +20,14 @@ runs:
2020
using: composite
2121
steps:
2222
- name: Setup Node.js
23-
uses: actions/setup-node@v3
23+
uses: actions/setup-node@v4
2424
if: inputs.install_dependencies == 'true'
2525
with:
2626
cache: npm
2727
node-version: ${{ inputs.node_version }}
2828
registry-url: ${{ inputs.registry_url }}
2929
- name: Setup Node.js without cache
30-
uses: actions/setup-node@v3
30+
uses: actions/setup-node@v4
3131
if: inputs.install_dependencies == 'false'
3232
with:
3333
node-version: ${{ inputs.node_version }}

.github/workflows/_build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
description: The Node.js version.
99
type: string
1010
required: false
11-
default: '18'
11+
default: '20'
1212
outputs:
1313
artifact_name:
1414
description: The artifact name.
@@ -21,7 +21,7 @@ jobs:
2121
timeout-minutes: 30
2222
steps:
2323
- name: Checkout
24-
uses: actions/checkout@v3
24+
uses: actions/checkout@v4
2525
- name: Setup
2626
uses: ./.github/actions/setup
2727
with:

.github/workflows/_publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
timeout-minutes: 30
2525
steps:
2626
- name: Checkout
27-
uses: actions/checkout@v3
27+
uses: actions/checkout@v4
2828
- name: Setup
2929
uses: ./.github/actions/setup
3030
with:
@@ -38,7 +38,7 @@ jobs:
3838
id: meta
3939
run: echo "tgz=$(ls *.tgz | head -n1)" >> $GITHUB_OUTPUT
4040
- name: Publish
41-
uses: JS-DevTools/npm-publish@v2
41+
uses: JS-DevTools/npm-publish@v3
4242
with:
4343
access: public
4444
token: ${{ secrets.registry_token }}

.github/workflows/check.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ jobs:
2020
os:
2121
- ubuntu-latest
2222
node:
23-
- '16'
2423
- '18'
24+
- '20'
2525
include:
2626
- os: ubuntu-latest
2727
os_name: Linux
2828
steps:
2929
- name: Checkout
30-
uses: actions/checkout@v3
30+
uses: actions/checkout@v4
3131
- name: Setup
3232
uses: ./.github/actions/setup
3333
with:
@@ -42,11 +42,11 @@ jobs:
4242
fail-fast: false
4343
matrix:
4444
node:
45-
- '16'
4645
- '18'
46+
- '20'
4747
steps:
4848
- name: Checkout
49-
uses: actions/checkout@v3
49+
uses: actions/checkout@v4
5050
- name: Setup
5151
uses: ./.github/actions/setup
5252
with:
@@ -67,14 +67,14 @@ jobs:
6767
os:
6868
- ubuntu-latest
6969
node:
70-
- '16'
7170
- '18'
71+
- '20'
7272
include:
7373
- os: ubuntu-latest
7474
os_name: Linux
7575
steps:
7676
- name: Setup Node.js
77-
uses: actions/setup-node@v3
77+
uses: actions/setup-node@v4
7878
with:
7979
node-version: ${{ matrix.node }}
8080
- name: Download artifact
@@ -83,7 +83,7 @@ jobs:
8383
name: ${{ needs.build.outputs.artifact_name }}
8484
path: .
8585
- name: Find packages
86-
uses: tj-actions/glob@v16
86+
uses: tj-actions/glob@v17
8787
id: packages
8888
with:
8989
files: '*.tgz'
@@ -113,11 +113,11 @@ jobs:
113113
fail-fast: false
114114
matrix:
115115
node:
116-
- '16'
117116
- '18'
117+
- '20'
118118
steps:
119119
- name: Checkout
120-
uses: actions/checkout@v3
120+
uses: actions/checkout@v4
121121
- name: Setup
122122
uses: ./.github/actions/setup
123123
with:
@@ -130,7 +130,7 @@ jobs:
130130
timeout-minutes: 30
131131
steps:
132132
- name: Checkout
133-
uses: actions/checkout@v3
133+
uses: actions/checkout@v4
134134
- name: Setup
135135
uses: ./.github/actions/setup
136136
- name: Build docs

.github/workflows/format.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ jobs:
1414
timeout-minutes: 30
1515
steps:
1616
- name: Checkout
17-
uses: actions/checkout@v3
17+
uses: actions/checkout@v4
1818
with:
1919
ref: ${{ github.head_ref }}
2020
token: ${{ secrets.GH_TOKEN }}
2121
- name: Import GPG key
22-
uses: crazy-max/ghaction-import-gpg@v5
22+
uses: crazy-max/ghaction-import-gpg@v6
2323
with:
2424
git_user_signingkey: true
2525
git_commit_gpgsign: true
@@ -32,7 +32,7 @@ jobs:
3232
- name: Format
3333
run: npm run format
3434
- name: Commit
35-
uses: stefanzweifel/git-auto-commit-action@v4
35+
uses: stefanzweifel/git-auto-commit-action@v5
3636
if: always()
3737
with:
3838
commit_message: 'ci: Format code'

.github/workflows/generate.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ jobs:
1414
timeout-minutes: 30
1515
steps:
1616
- name: Checkout
17-
uses: actions/checkout@v3
17+
uses: actions/checkout@v4
1818
with:
1919
ref: ${{ github.head_ref }}
2020
token: ${{ secrets.GH_TOKEN }}
2121
- name: Import GPG key
22-
uses: crazy-max/ghaction-import-gpg@v5
22+
uses: crazy-max/ghaction-import-gpg@v6
2323
with:
2424
git_user_signingkey: true
2525
git_commit_gpgsign: true
@@ -36,7 +36,7 @@ jobs:
3636
- name: Generate code
3737
run: npm run generate
3838
- name: Commit
39-
uses: stefanzweifel/git-auto-commit-action@v4
39+
uses: stefanzweifel/git-auto-commit-action@v5
4040
with:
4141
commit_message: 'ci: Generate code'
4242
commit_user_name: ${{ secrets.GIT_USER_NAME }}

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
needs: build
2020
steps:
2121
- name: Checkout
22-
uses: actions/checkout@v3
22+
uses: actions/checkout@v4
2323
with:
2424
fetch-depth: 0
2525
- name: Download artifact

.github/workflows/semantic-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
new_release_version: ${{ steps.release.outputs.new_release_version }}
2323
steps:
2424
- name: Checkout
25-
uses: actions/checkout@v3
25+
uses: actions/checkout@v4
2626
with:
2727
fetch-depth: 0
2828
- name: Semantic release
@@ -38,7 +38,7 @@ jobs:
3838
if: ${{ needs.semantic.outputs.new_release_published == 'true' }}
3939
steps:
4040
- name: Checkout
41-
uses: actions/checkout@v3
41+
uses: actions/checkout@v4
4242
with:
4343
fetch-depth: 1
4444
- name: Release version ${{ steps.release.outputs.new_release_version }} on ${{ github.ref_name }}

.github/workflows/version.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ jobs:
1717
timeout-minutes: 30
1818
steps:
1919
- name: Checkout
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
2121
with:
2222
token: ${{ secrets.GH_TOKEN }}
2323
- name: Import GPG key
24-
uses: crazy-max/ghaction-import-gpg@v5
24+
uses: crazy-max/ghaction-import-gpg@v6
2525
with:
2626
git_user_signingkey: true
2727
git_commit_gpgsign: true

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
lts/hydrogen
1+
20

ava.config.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,9 @@ export default () => {
88
return {
99
ignoredByWatcher: ['tmp/**/*'],
1010
files: ['**/*.test.ts', '!package/**/*'],
11-
environmentVariables: {
12-
// UPSTREAM: https://nodejs.org/docs/latest-v18.x/api/esm.html#loaders
13-
NODE_NO_WARNINGS: '1',
14-
},
1511
extensions: {
16-
ts: 'module',
12+
ts: 'commonjs',
1713
},
18-
nodeArguments: ['--loader=tsx'],
14+
nodeArguments: ['--import=tsx'],
1915
}
2016
}

0 commit comments

Comments
 (0)