From c8a6ea56f0b694eb206378b939e4c7ae056c965d Mon Sep 17 00:00:00 2001 From: Christian Vuerings Date: Fri, 19 May 2023 14:03:28 -0700 Subject: [PATCH 1/2] Upgrade Node.js to LTS version (18.x) --- npm_and_yarn/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/npm_and_yarn/Dockerfile b/npm_and_yarn/Dockerfile index 63d70815bd2..7dd1f4be486 100644 --- a/npm_and_yarn/Dockerfile +++ b/npm_and_yarn/Dockerfile @@ -7,11 +7,11 @@ ARG PNPM_VERSION=8.6.4 ARG YARN_VERSION=3.6.0 # See https://github.com/nodesource/distributions#installation-instructions -ARG NODEJS_VERSION=16.x +ARG NODEJS_VERSION=18.x # Check for updates at https://github.com/npm/cli/releases # This version should be compatible with the Node.js version declared above. See https://nodejs.org/en/download/releases as well -ARG NPM_VERSION=8.19.4 +ARG NPM_VERSION=9.5.1 # Install Node and npm RUN curl -sL https://deb.nodesource.com/setup_$NODEJS_VERSION | bash - \ From e6a6a137c4d76ad2bc899914cc9fcff6f0686047 Mon Sep 17 00:00:00 2001 From: Christian Vuerings Date: Thu, 29 Jun 2023 16:54:58 -0700 Subject: [PATCH 2/2] Address test failure --- npm_and_yarn/spec/dependabot/npm_and_yarn/file_updater_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/npm_and_yarn/spec/dependabot/npm_and_yarn/file_updater_spec.rb b/npm_and_yarn/spec/dependabot/npm_and_yarn/file_updater_spec.rb index 7274d6a4e56..15185f6da52 100644 --- a/npm_and_yarn/spec/dependabot/npm_and_yarn/file_updater_spec.rb +++ b/npm_and_yarn/spec/dependabot/npm_and_yarn/file_updater_spec.rb @@ -2522,7 +2522,7 @@ to eq("git+ssh://git@github.com/jonschlinkert/is-number.git#" \ "0c6b15a88bc10cd47f67a09506399dfc9ddc075d") expect(parsed_package_lock["dependencies"]["is-number"]["from"]). - to eq("is-number@jonschlinkert/is-number#semver:^4.0.0") + to eq("is-number@github:jonschlinkert/is-number#semver:^4.0.0") end end end