From 570b9a410cf6cb3d32bf561bc305d88d5f5886a9 Mon Sep 17 00:00:00 2001 From: LB Johnston Date: Fri, 27 Oct 2023 16:45:09 +1000 Subject: [PATCH] Upgrade to Node 20 --- .circleci/config.yml | 2 +- .nvmrc | 2 +- .squash.yml | 2 +- CHANGELOG.txt | 1 + docs/releases/6.0.md | 1 + package-lock.json | 2 +- package.json | 2 +- 7 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 72ed04fa4f..b58d3aa666 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -33,7 +33,7 @@ jobs: frontend: docker: - - image: cimg/node:18.12 + - image: cimg/node:20.9 steps: - checkout - restore_cache: diff --git a/.nvmrc b/.nvmrc index 3c032078a4..209e3ef4b6 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -18 +20 diff --git a/.squash.yml b/.squash.yml index 19f774a788..c6ca676417 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_18.x | bash -" + - RUN bash -c "curl -sL https://deb.nodesource.com/setup_20.x | bash -" - apt install -y nodejs - pip install setuptools pip --upgrade --force-reinstall - cd /code diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 0ff8c8715d..1851af9308 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -32,6 +32,7 @@ Changelog * Maintenance: Remove icon font support (Matt Westcott) * Maintenance: Remove deprecated SVG icons (Matt Westcott) * Maintenance: Migrate account editing view to a class-based view (Kehinde Bobade) + * Maintenance: Upgrade frontend tooling to use Node 20 (LB (Ben) Johnston) 5.2.1 (xx.xx.xxxx) - IN DEVELOPMENT diff --git a/docs/releases/6.0.md b/docs/releases/6.0.md index c60ef5f59a..943f61cae5 100644 --- a/docs/releases/6.0.md +++ b/docs/releases/6.0.md @@ -51,6 +51,7 @@ depth: 1 * Remove icon font support (Matt Westcott) * Remove deprecated SVG icons (Matt Westcott) * Migrate account editing view to a class-based view (Kehinde Bobade) + * Upgrade frontend tooling to use Node 20 (LB (Ben) Johnston) ## Upgrade considerations - changes affecting all projects diff --git a/package-lock.json b/package-lock.json index 1193424add..8d9d8e163c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -82,7 +82,7 @@ "webpack-cli": "^4.9.1" }, "engines": { - "node": ">=18.0.0" + "node": ">=20.0.0" } }, "node_modules/@aashutoshrathi/word-wrap": { diff --git a/package.json b/package.json index a29d1e9f98..9c075eeb96 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "repository": "https://github.com/wagtail/wagtail", "private": true, "engines": { - "node": ">=18.0.0" + "node": ">=20.0.0" }, "browserslist": [ "Firefox ESR",