Skip to content

Commit cea6db8

Browse files
authored
ci: stop testing against NodeJS v18 (#334)
* build(package): set minimal node version in engines field to v20 BREAKING CHANGE: Drop support for NodeJS v18 * build: set minimal node version in build script to v20 * ci: stop testing against NodeJS v18
1 parent 6186fab commit cea6db8

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313
strategy:
1414
matrix:
1515
node_version:
16-
- 18
1716
- 20
1817
- 22
18+
- 24
1919
steps:
2020
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
2121
- name: Use Node.js ${{ matrix.node_version }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,6 @@
6868
]
6969
},
7070
"engines": {
71-
"node": ">= 18"
71+
"node": ">= 20"
7272
}
7373
}

scripts/build.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ async function main() {
4646
outdir: "pkg/dist-node",
4747
bundle: true,
4848
platform: "node",
49-
target: "node18",
49+
target: "node20",
5050
...sharedOptions,
5151
}),
5252
// Build an ESM browser bundle
@@ -95,8 +95,8 @@ async function main() {
9595
sideEffects: false,
9696
},
9797
null,
98-
2
99-
)
98+
2,
99+
),
100100
);
101101
}
102102
main();

0 commit comments

Comments
 (0)