Skip to content

Commit 35614b7

Browse files
committed
fix: Bump min target node to 20
Node 18 does support SEA but not with the blob, meaning you can only inject a JS file and not assets. The way fossilize works requires the blob method and Node.js 18 support ends in a few monthse so not worth adding a special case for Node.js 18.
1 parent 6aca442 commit 35614b7

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/node-util.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,7 @@ export async function _resolveNodeVersion(version: string): Promise<string> {
9595
.match(NODE_VERSION_REGEX)!
9696
.slice(1, 3)
9797
.map(Number) as [number, number];
98-
if (
99-
nodeVersionMajor < 18 ||
100-
(nodeVersionMajor === 18 && nodeVersionMinor < 16) ||
101-
(nodeVersionMajor === 19 && nodeVersionMinor < 7)
102-
) {
98+
if (nodeVersionMajor < 20) {
10399
throw new Error(
104100
`Node.js version ${resolvedVersion} does not support SEA.\nSee https://nodejs.org/api/single-executable-applications.html#single-executable-applications`
105101
);

0 commit comments

Comments
 (0)