From 2e87f4ddec361b75231b4497f51dc67fa232da47 Mon Sep 17 00:00:00 2001 From: LB Date: Mon, 4 Nov 2024 20:15:36 +1000 Subject: [PATCH] Update to Node 22 (active LTS) - See https://nodejs.org/en/blog/release/v22.11.0 - Fixes #12531 --- .circleci/config.yml | 2 +- .nvmrc | 2 +- .squash.yml | 2 +- package-lock.json | 2 +- package.json | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 19f15ef106..3bba2e658c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -33,7 +33,7 @@ jobs: frontend: docker: - - image: cimg/node:20.9 + - image: cimg/node:22.11 steps: - checkout - restore_cache: diff --git a/.nvmrc b/.nvmrc index 209e3ef4b6..2bd5a0a98a 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -20 +22 diff --git a/.squash.yml b/.squash.yml index c6ca676417..128d071880 100644 --- a/.squash.yml +++ b/.squash.yml @@ -3,7 +3,7 @@ deployments: dockerimage: python:3.11.4-slim-bullseye build_steps: - apt-get update && apt-get install -y libssl-dev libpq-dev git build-essential libfontconfig1 libfontconfig1-dev curl - - RUN bash -c "curl -sL https://deb.nodesource.com/setup_20.x | bash -" + - RUN bash -c "curl -sL https://deb.nodesource.com/setup_22.x | bash -" - apt install -y nodejs - pip install setuptools pip --upgrade --force-reinstall - cd /code diff --git a/package-lock.json b/package-lock.json index 622c89729d..33d811e36f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -89,7 +89,7 @@ "webpack-cli": "^5.1.4" }, "engines": { - "node": ">=20.0.0" + "node": ">=22" } }, "node_modules/@aashutoshrathi/word-wrap": { diff --git a/package.json b/package.json index 70632ea3d6..459d85adbb 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "repository": "https://github.com/wagtail/wagtail", "private": true, "engines": { - "node": ">=20.0.0" + "node": ">=22" }, "browserslist": [ "Firefox ESR",