From 5d1daac8414cdd10ef9f5f2756987ee11507af65 Mon Sep 17 00:00:00 2001 From: Rowan Manning <138944+rowanmanning@users.noreply.github.com> Date: Fri, 28 Jun 2024 11:28:06 +0100 Subject: [PATCH] Add support for Node.js 22 --- .circleci/config.yml | 27 ++++++++++++++++++--------- .toolkitrc.yml | 5 +++-- package-lock.json | 2 +- package.json | 2 +- 4 files changed, 23 insertions(+), 13 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5da7153..01030a6 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -5,10 +5,13 @@ orbs: executors: node: docker: - - image: cimg/node:20.11 - node18_19: + - image: cimg/node:22.3 + node20_15: docker: - - image: cimg/node:18.19 + - image: cimg/node:20.15 + node18_20: + docker: + - image: cimg/node:18.20 jobs: checkout: docker: @@ -43,7 +46,8 @@ workflows: parameters: executor: - node - - node18_19 + - node20_15 + - node18_20 filters: tags: only: /^v\d+\.\d+\.\d+(-.+)?/ @@ -55,7 +59,8 @@ workflows: parameters: executor: - node - - node18_19 + - node20_15 + - node18_20 filters: tags: only: /^v\d+\.\d+\.\d+(-.+)?/ @@ -67,7 +72,8 @@ workflows: parameters: executor: - node - - node18_19 + - node20_15 + - node18_20 filters: tags: only: /^v\d+\.\d+\.\d+(-.+)?/ @@ -101,7 +107,8 @@ workflows: parameters: executor: - node - - node18_19 + - node20_15 + - node18_20 - tool-kit/build: name: tool-kit/build-<< matrix.executor >> requires: @@ -110,7 +117,8 @@ workflows: parameters: executor: - node - - node18_19 + - node20_15 + - node18_20 - tool-kit/test: name: tool-kit/test-<< matrix.executor >> requires: @@ -119,4 +127,5 @@ workflows: parameters: executor: - node - - node18_19 + - node20_15 + - node18_20 diff --git a/.toolkitrc.yml b/.toolkitrc.yml index a34bfaa..af2169c 100644 --- a/.toolkitrc.yml +++ b/.toolkitrc.yml @@ -17,5 +17,6 @@ hooks: options: '@dotcom-tool-kit/circleci': nodeVersion: - - '20.11' - - '18.19' + - '22.3' + - '20.15' + - '18.20' diff --git a/package-lock.json b/package-lock.json index 61535a3..7f9c69e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -32,7 +32,7 @@ "sinon": "^14.0.0" }, "engines": { - "node": "18.x || 20.x", + "node": "18.x || 20.x || 22.x", "npm": "8.x || 9.x || 10.x" } }, diff --git a/package.json b/package.json index de3b094..5cdcce8 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "format": "dotcom-tool-kit format:local" }, "engines": { - "node": "18.x || 20.x", + "node": "18.x || 20.x || 22.x", "npm": "8.x || 9.x || 10.x" }, "repository": {