From 2cc7c8432fc74b734e9d2b0c34c6a9ab434e5781 Mon Sep 17 00:00:00 2001 From: Fabian <43351274+0xk1f0@users.noreply.github.com> Date: Mon, 4 Sep 2023 12:33:15 +0200 Subject: fix(node): Bump hardcoded version to latest (#20366) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When trying to run ``` deno run -A --unstable npm:astro dev ``` in my Astro project it fails with: ``` Node.js v18.12.1 is not supported by Astro! Please upgrade Node.js to a supported version: ">=18.14.1" ``` My current version is: ``` ~ ❯ node --version v20.5.1 ``` Bumping the version to the latest stable Release of node in `ext/node/polyfills/_process/process.ts` fixes this. I don't know if this causes any conflicts, so please feel free to correct me here. --- ext/node/polyfills/_process/process.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/node/polyfills/_process/process.ts') diff --git a/ext/node/polyfills/_process/process.ts b/ext/node/polyfills/_process/process.ts index ff854ea27..2b2fae9cd 100644 --- a/ext/node/polyfills/_process/process.ts +++ b/ext/node/polyfills/_process/process.ts @@ -102,7 +102,7 @@ export const env: InstanceType & Record = * it pointed to Deno version, but that led to incompability * with some packages. */ -export const version = "v18.12.1"; +export const version = "v18.17.1"; /** * https://nodejs.org/api/process.html#process_process_versions @@ -113,7 +113,7 @@ export const version = "v18.12.1"; * with some packages. Value of `v8` field is still taken from `Deno.version`. */ export const versions = { - node: "18.12.1", + node: "18.17.1", uv: "1.43.0", zlib: "1.2.11", brotli: "1.0.9", -- cgit v1.2.3