diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c963d91db29..d4fe33894e8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,6 +61,7 @@ jobs: - name: Check out code into the Go module directory uses: actions/checkout@v3 + # Note: These tests break with node version 18 - name: Rollup Tests run: make test-rollup @@ -87,7 +88,7 @@ jobs: - name: Setup Node.js environment uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 - name: Setup Deno 1.40.0 uses: denoland/setup-deno@main diff --git a/npm/@esbuild/aix-ppc64/package.json b/npm/@esbuild/aix-ppc64/package.json index 8e34c93b433..3f75fadd25a 100644 --- a/npm/@esbuild/aix-ppc64/package.json +++ b/npm/@esbuild/aix-ppc64/package.json @@ -9,7 +9,7 @@ "license": "MIT", "preferUnplugged": true, "engines": { - "node": ">=12" + "node": ">=18" }, "os": [ "aix" diff --git a/npm/@esbuild/android-arm/package.json b/npm/@esbuild/android-arm/package.json index 81a927ba438..edd9d1deedd 100644 --- a/npm/@esbuild/android-arm/package.json +++ b/npm/@esbuild/android-arm/package.json @@ -9,7 +9,7 @@ "license": "MIT", "preferUnplugged": true, "engines": { - "node": ">=12" + "node": ">=18" }, "os": [ "android" diff --git a/npm/@esbuild/android-arm64/package.json b/npm/@esbuild/android-arm64/package.json index 8c257b9c449..818261ffa68 100644 --- a/npm/@esbuild/android-arm64/package.json +++ b/npm/@esbuild/android-arm64/package.json @@ -9,7 +9,7 @@ "license": "MIT", "preferUnplugged": true, "engines": { - "node": ">=12" + "node": ">=18" }, "os": [ "android" diff --git a/npm/@esbuild/android-x64/package.json b/npm/@esbuild/android-x64/package.json index 0bbc6486940..7fedce18175 100644 --- a/npm/@esbuild/android-x64/package.json +++ b/npm/@esbuild/android-x64/package.json @@ -6,7 +6,7 @@ "license": "MIT", "preferUnplugged": true, "engines": { - "node": ">=12" + "node": ">=18" }, "os": [ "android" diff --git a/npm/@esbuild/darwin-arm64/package.json b/npm/@esbuild/darwin-arm64/package.json index 6eea7ea248b..a247eed1d7e 100644 --- a/npm/@esbuild/darwin-arm64/package.json +++ b/npm/@esbuild/darwin-arm64/package.json @@ -9,7 +9,7 @@ "license": "MIT", "preferUnplugged": true, "engines": { - "node": ">=12" + "node": ">=18" }, "os": [ "darwin" diff --git a/npm/@esbuild/darwin-x64/package.json b/npm/@esbuild/darwin-x64/package.json index 329c68dd93c..f4bc23ff4e6 100644 --- a/npm/@esbuild/darwin-x64/package.json +++ b/npm/@esbuild/darwin-x64/package.json @@ -9,7 +9,7 @@ "license": "MIT", "preferUnplugged": true, "engines": { - "node": ">=12" + "node": ">=18" }, "os": [ "darwin" diff --git a/npm/@esbuild/freebsd-arm64/package.json b/npm/@esbuild/freebsd-arm64/package.json index 6a2da885a94..90b9e496753 100644 --- a/npm/@esbuild/freebsd-arm64/package.json +++ b/npm/@esbuild/freebsd-arm64/package.json @@ -9,7 +9,7 @@ "license": "MIT", "preferUnplugged": true, "engines": { - "node": ">=12" + "node": ">=18" }, "os": [ "freebsd" diff --git a/npm/@esbuild/freebsd-x64/package.json b/npm/@esbuild/freebsd-x64/package.json index 36c7e91088c..b2433322e41 100644 --- a/npm/@esbuild/freebsd-x64/package.json +++ b/npm/@esbuild/freebsd-x64/package.json @@ -9,7 +9,7 @@ "license": "MIT", "preferUnplugged": true, "engines": { - "node": ">=12" + "node": ">=18" }, "os": [ "freebsd" diff --git a/npm/@esbuild/linux-arm/package.json b/npm/@esbuild/linux-arm/package.json index ce60c6016a4..e1862b9143c 100644 --- a/npm/@esbuild/linux-arm/package.json +++ b/npm/@esbuild/linux-arm/package.json @@ -9,7 +9,7 @@ "license": "MIT", "preferUnplugged": true, "engines": { - "node": ">=12" + "node": ">=18" }, "os": [ "linux" diff --git a/npm/@esbuild/linux-arm64/package.json b/npm/@esbuild/linux-arm64/package.json index 945123d6e31..dc8dcce3365 100644 --- a/npm/@esbuild/linux-arm64/package.json +++ b/npm/@esbuild/linux-arm64/package.json @@ -9,7 +9,7 @@ "license": "MIT", "preferUnplugged": true, "engines": { - "node": ">=12" + "node": ">=18" }, "os": [ "linux" diff --git a/npm/@esbuild/linux-ia32/package.json b/npm/@esbuild/linux-ia32/package.json index 107b0f1983e..5d68183c712 100644 --- a/npm/@esbuild/linux-ia32/package.json +++ b/npm/@esbuild/linux-ia32/package.json @@ -9,7 +9,7 @@ "license": "MIT", "preferUnplugged": true, "engines": { - "node": ">=12" + "node": ">=18" }, "os": [ "linux" diff --git a/npm/@esbuild/linux-loong64/package.json b/npm/@esbuild/linux-loong64/package.json index b336544220a..c5b32d399c4 100644 --- a/npm/@esbuild/linux-loong64/package.json +++ b/npm/@esbuild/linux-loong64/package.json @@ -9,7 +9,7 @@ "license": "MIT", "preferUnplugged": true, "engines": { - "node": ">=12" + "node": ">=18" }, "os": [ "linux" diff --git a/npm/@esbuild/linux-mips64el/package.json b/npm/@esbuild/linux-mips64el/package.json index f125956cfc4..1712e282ce6 100644 --- a/npm/@esbuild/linux-mips64el/package.json +++ b/npm/@esbuild/linux-mips64el/package.json @@ -9,7 +9,7 @@ "license": "MIT", "preferUnplugged": true, "engines": { - "node": ">=12" + "node": ">=18" }, "os": [ "linux" diff --git a/npm/@esbuild/linux-ppc64/package.json b/npm/@esbuild/linux-ppc64/package.json index d7ccfd0d6ad..ff87687bedf 100644 --- a/npm/@esbuild/linux-ppc64/package.json +++ b/npm/@esbuild/linux-ppc64/package.json @@ -9,7 +9,7 @@ "license": "MIT", "preferUnplugged": true, "engines": { - "node": ">=12" + "node": ">=18" }, "os": [ "linux" diff --git a/npm/@esbuild/linux-riscv64/package.json b/npm/@esbuild/linux-riscv64/package.json index fa4582d8c3c..1dff58e876b 100644 --- a/npm/@esbuild/linux-riscv64/package.json +++ b/npm/@esbuild/linux-riscv64/package.json @@ -9,7 +9,7 @@ "license": "MIT", "preferUnplugged": true, "engines": { - "node": ">=12" + "node": ">=18" }, "os": [ "linux" diff --git a/npm/@esbuild/linux-s390x/package.json b/npm/@esbuild/linux-s390x/package.json index e5af4a89913..8e5065d9527 100644 --- a/npm/@esbuild/linux-s390x/package.json +++ b/npm/@esbuild/linux-s390x/package.json @@ -9,7 +9,7 @@ "license": "MIT", "preferUnplugged": true, "engines": { - "node": ">=12" + "node": ">=18" }, "os": [ "linux" diff --git a/npm/@esbuild/linux-x64/package.json b/npm/@esbuild/linux-x64/package.json index b70b09ecb82..ac25c6702c5 100644 --- a/npm/@esbuild/linux-x64/package.json +++ b/npm/@esbuild/linux-x64/package.json @@ -9,7 +9,7 @@ "license": "MIT", "preferUnplugged": true, "engines": { - "node": ">=12" + "node": ">=18" }, "os": [ "linux" diff --git a/npm/@esbuild/netbsd-x64/package.json b/npm/@esbuild/netbsd-x64/package.json index 20be20288bb..34be89c8e3d 100644 --- a/npm/@esbuild/netbsd-x64/package.json +++ b/npm/@esbuild/netbsd-x64/package.json @@ -8,7 +8,7 @@ }, "license": "MIT", "engines": { - "node": ">=12" + "node": ">=18" }, "os": [ "netbsd" diff --git a/npm/@esbuild/openbsd-x64/package.json b/npm/@esbuild/openbsd-x64/package.json index abb1b0a1622..3458728a012 100644 --- a/npm/@esbuild/openbsd-x64/package.json +++ b/npm/@esbuild/openbsd-x64/package.json @@ -9,7 +9,7 @@ "license": "MIT", "preferUnplugged": true, "engines": { - "node": ">=12" + "node": ">=18" }, "os": [ "openbsd" diff --git a/npm/@esbuild/sunos-x64/package.json b/npm/@esbuild/sunos-x64/package.json index b07c2e255a7..7f9e535d933 100644 --- a/npm/@esbuild/sunos-x64/package.json +++ b/npm/@esbuild/sunos-x64/package.json @@ -9,7 +9,7 @@ "license": "MIT", "preferUnplugged": true, "engines": { - "node": ">=12" + "node": ">=18" }, "os": [ "sunos" diff --git a/npm/@esbuild/win32-arm64/package.json b/npm/@esbuild/win32-arm64/package.json index 663459bf5d4..6515c595ec6 100644 --- a/npm/@esbuild/win32-arm64/package.json +++ b/npm/@esbuild/win32-arm64/package.json @@ -9,7 +9,7 @@ "license": "MIT", "preferUnplugged": true, "engines": { - "node": ">=12" + "node": ">=18" }, "os": [ "win32" diff --git a/npm/@esbuild/win32-ia32/package.json b/npm/@esbuild/win32-ia32/package.json index 819da05f940..dbc5b1b8b02 100644 --- a/npm/@esbuild/win32-ia32/package.json +++ b/npm/@esbuild/win32-ia32/package.json @@ -9,7 +9,7 @@ "license": "MIT", "preferUnplugged": true, "engines": { - "node": ">=12" + "node": ">=18" }, "os": [ "win32" diff --git a/npm/@esbuild/win32-x64/package.json b/npm/@esbuild/win32-x64/package.json index 94abf8c9936..f11545c107b 100644 --- a/npm/@esbuild/win32-x64/package.json +++ b/npm/@esbuild/win32-x64/package.json @@ -9,7 +9,7 @@ "license": "MIT", "preferUnplugged": true, "engines": { - "node": ">=12" + "node": ">=18" }, "os": [ "win32" diff --git a/npm/esbuild-wasm/bin/esbuild b/npm/esbuild-wasm/bin/esbuild index 2f8df03132c..e22567d76c1 100755 --- a/npm/esbuild-wasm/bin/esbuild +++ b/npm/esbuild-wasm/bin/esbuild @@ -87,16 +87,5 @@ for (let key in process.env) { } } -// Node v19 introduced "globalThis.crypto" https://github.com/nodejs/node/pull/44897. -// This broke Go's WebAssembly shim: https://github.com/golang/go/issues/56860. -// Hack around this breakage by resetting "globalThis.crypto" to "writable". -// Just to be safe, also make it "configurable" in case Go updates their -// compiler such that it tries to reconfigure "globalThis.crypto" itself. -Object.defineProperty(globalThis, 'crypto', { - value: globalThis.crypto || require('crypto').webcrypto, - writable: true, - configurable: true, -}); - process.argv.splice(2, 0, esbuild_wasm); wrapper(module_.createRequire(wasm_exec_node), Object.assign(Object.create(WebAssembly), { instantiate })); diff --git a/npm/esbuild-wasm/package.json b/npm/esbuild-wasm/package.json index 1e8decaab10..b3f767dedce 100644 --- a/npm/esbuild-wasm/package.json +++ b/npm/esbuild-wasm/package.json @@ -8,7 +8,7 @@ }, "license": "MIT", "engines": { - "node": ">=12" + "node": ">=18" }, "main": "lib/main.js", "browser": "lib/browser.js", diff --git a/npm/esbuild/package.json b/npm/esbuild/package.json index fe253fb42a2..938142189f0 100644 --- a/npm/esbuild/package.json +++ b/npm/esbuild/package.json @@ -12,7 +12,7 @@ "main": "lib/main.js", "types": "lib/main.d.ts", "engines": { - "node": ">=12" + "node": ">=18" }, "bin": { "esbuild": "bin/esbuild"