Browse Source

Upgrade to Node 20

LB Johnston 1 year ago
parent
commit
570b9a410c
7 changed files with 7 additions and 5 deletions
  1. 1 1
      .circleci/config.yml
  2. 1 1
      .nvmrc
  3. 1 1
      .squash.yml
  4. 1 0
      CHANGELOG.txt
  5. 1 0
      docs/releases/6.0.md
  6. 1 1
      package-lock.json
  7. 1 1
      package.json

+ 1 - 1
.circleci/config.yml

@@ -33,7 +33,7 @@ jobs:
 
   frontend:
     docker:
-      - image: cimg/node:18.12
+      - image: cimg/node:20.9
     steps:
       - checkout
       - restore_cache:

+ 1 - 1
.nvmrc

@@ -1 +1 @@
-18
+20

+ 1 - 1
.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

+ 1 - 0
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

+ 1 - 0
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

+ 1 - 1
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": {

+ 1 - 1
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",