From a842d3e58c108a5dc7f5ff2c731522ca21ce2eed Mon Sep 17 00:00:00 2001 From: Romaric Pascal Date: Mon, 9 Dec 2024 16:57:47 +0000 Subject: [PATCH] Update to Node 22.12 enables requiring ESM files without it being experimental --- .github/workflows/scripts/package.json | 2 +- .nvmrc | 6 +-- package-lock.json | 57 ++++++++++++++++----- package.json | 2 +- packages/govuk-frontend-review/package.json | 2 +- shared/config/package.json | 2 +- shared/helpers/package.json | 2 +- shared/lib/package.json | 2 +- shared/stats/package.json | 2 +- shared/tasks/package.json | 2 +- 10 files changed, 52 insertions(+), 27 deletions(-) diff --git a/.github/workflows/scripts/package.json b/.github/workflows/scripts/package.json index 6f77445054..3abd452b6f 100644 --- a/.github/workflows/scripts/package.json +++ b/.github/workflows/scripts/package.json @@ -3,7 +3,7 @@ "name": "@govuk-frontend/workflow-scripts", "description": "GOV.UK Frontend GitHub Actions workflow scripts", "engines": { - "node": "^22.11.0", + "node": "^22.12.0", "npm": "^10.1.0" }, "license": "MIT", diff --git a/.nvmrc b/.nvmrc index 36bad18e44..dc0bb0f439 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1,5 +1 @@ -22 -# When updating this version, remember to update: -# - the 'engines' fields in the various `package.json` files of the project -# - `package-lock.json` by running `npm install` -# - the `[node]` section of the various `.browserslistrc` files of the project +v22.12.0 diff --git a/package-lock.json b/package-lock.json index 83da970f47..89a6ba96aa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -61,7 +61,7 @@ "typescript": "^5.5.4" }, "engines": { - "node": "^22.11.0", + "node": "^22.12.0", "npm": "^10.1.0" }, "optionalDependencies": { @@ -520,7 +520,7 @@ "outdent": "^0.8.0" }, "engines": { - "node": "^22.11.0", + "node": "^22.12.0", "npm": "^10.1.0" } }, @@ -5779,6 +5779,20 @@ "node": ">= 18" } }, + "node_modules/@octokit/rest/node_modules/@octokit/core/node_modules/before-after-hook": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-3.0.2.tgz", + "integrity": "sha512-Nik3Sc0ncrMK4UUdXQmAnRtzmNQTAAXmXIopizwZ1W1t8QmfJj+zL4OA2I7XPTPW5z5TDqv4hRo/JzouDJnX3A==", + "license": "Apache-2.0", + "optional": true + }, + "node_modules/@octokit/rest/node_modules/@octokit/core/node_modules/universal-user-agent": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-7.0.2.tgz", + "integrity": "sha512-0JCqzSKnStlRRQfCdowvqy3cy0Dvtlb8xecj/H8JFZuCze4rwjPZQOgvFvn0Ws/usCHQFGpyr+pB9adaGwXn4Q==", + "license": "ISC", + "optional": true + }, "node_modules/@octokit/rest/node_modules/@octokit/endpoint": { "version": "10.1.1", "license": "MIT", @@ -5791,6 +5805,13 @@ "node": ">= 18" } }, + "node_modules/@octokit/rest/node_modules/@octokit/endpoint/node_modules/universal-user-agent": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-7.0.2.tgz", + "integrity": "sha512-0JCqzSKnStlRRQfCdowvqy3cy0Dvtlb8xecj/H8JFZuCze4rwjPZQOgvFvn0Ws/usCHQFGpyr+pB9adaGwXn4Q==", + "license": "ISC", + "optional": true + }, "node_modules/@octokit/rest/node_modules/@octokit/graphql": { "version": "8.1.1", "license": "MIT", @@ -5804,6 +5825,13 @@ "node": ">= 18" } }, + "node_modules/@octokit/rest/node_modules/@octokit/graphql/node_modules/universal-user-agent": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-7.0.2.tgz", + "integrity": "sha512-0JCqzSKnStlRRQfCdowvqy3cy0Dvtlb8xecj/H8JFZuCze4rwjPZQOgvFvn0Ws/usCHQFGpyr+pB9adaGwXn4Q==", + "license": "ISC", + "optional": true + }, "node_modules/@octokit/rest/node_modules/@octokit/plugin-paginate-rest": { "version": "11.3.1", "license": "MIT", @@ -5868,6 +5896,13 @@ "node": ">= 18" } }, + "node_modules/@octokit/rest/node_modules/@octokit/request/node_modules/universal-user-agent": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-7.0.2.tgz", + "integrity": "sha512-0JCqzSKnStlRRQfCdowvqy3cy0Dvtlb8xecj/H8JFZuCze4rwjPZQOgvFvn0Ws/usCHQFGpyr+pB9adaGwXn4Q==", + "license": "ISC", + "optional": true + }, "node_modules/@octokit/rest/node_modules/@octokit/types": { "version": "13.5.0", "license": "MIT", @@ -5876,12 +5911,6 @@ "@octokit/openapi-types": "^22.2.0" } }, - "node_modules/@octokit/rest/node_modules/before-after-hook": { - "optional": true - }, - "node_modules/@octokit/rest/node_modules/universal-user-agent": { - "optional": true - }, "node_modules/@parcel/watcher": { "version": "2.5.0", "resolved": "https://registry.npmjs.org/@parcel/watcher/-/watcher-2.5.0.tgz", @@ -30725,7 +30754,7 @@ "typedoc-plugin-missing-exports": "^3.1.0" }, "engines": { - "node": "^22.11.0", + "node": "^22.12.0", "npm": "^10.1.0" }, "optionalDependencies": { @@ -35590,7 +35619,7 @@ "govuk-frontend": "*" }, "engines": { - "node": "^22.11.0", + "node": "^22.12.0", "npm": "^10.1.0" } }, @@ -35615,7 +35644,7 @@ "slug": "^10.0.0" }, "engines": { - "node": "^22.11.0", + "node": "^22.12.0", "npm": "^10.1.0" }, "peerDependencies": { @@ -36121,7 +36150,7 @@ "slash": "^3.0.0" }, "engines": { - "node": "^22.11.0", + "node": "^22.12.0", "npm": "^10.1.0" } }, @@ -36150,7 +36179,7 @@ "rollup-plugin-visualizer": "^5.12.0" }, "engines": { - "node": "^22.11.0", + "node": "^22.12.0", "npm": "^10.1.0" } }, @@ -36484,7 +36513,7 @@ "yargs-parser": "^21.1.1" }, "engines": { - "node": "^22.11.0", + "node": "^22.12.0", "npm": "^10.1.0" } }, diff --git a/package.json b/package.json index c85a2b7277..9b08109fc1 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "name": "@govuk-frontend/repository", "description": "Used only for the development of GOV.UK Frontend, see `packages/govuk-frontend/package.json` for the published `package.json`", "engines": { - "node": "^22.11.0", + "node": "^22.12.0", "npm": "^10.1.0" }, "license": "MIT", diff --git a/packages/govuk-frontend-review/package.json b/packages/govuk-frontend-review/package.json index c0dc943527..3ef752f6ee 100644 --- a/packages/govuk-frontend-review/package.json +++ b/packages/govuk-frontend-review/package.json @@ -4,7 +4,7 @@ "description": "GOV.UK Frontend review app", "main": "src/start.mjs", "engines": { - "node": "^22.11.0", + "node": "^22.12.0", "npm": "^10.1.0" }, "license": "MIT", diff --git a/shared/config/package.json b/shared/config/package.json index 30e82c22e2..6e27020d8f 100644 --- a/shared/config/package.json +++ b/shared/config/package.json @@ -4,7 +4,7 @@ "description": "GOV.UK Frontend shared config", "main": "index.js", "engines": { - "node": "^22.11.0", + "node": "^22.12.0", "npm": "^10.1.0" }, "license": "MIT", diff --git a/shared/helpers/package.json b/shared/helpers/package.json index adccfa15fd..eef3dc2478 100644 --- a/shared/helpers/package.json +++ b/shared/helpers/package.json @@ -9,7 +9,7 @@ "./*": "./*.js" }, "engines": { - "node": "^22.11.0", + "node": "^22.12.0", "npm": "^10.1.0" }, "license": "MIT", diff --git a/shared/lib/package.json b/shared/lib/package.json index 09d15f996d..1e65c47324 100644 --- a/shared/lib/package.json +++ b/shared/lib/package.json @@ -8,7 +8,7 @@ "./*": "./*.js" }, "engines": { - "node": "^22.11.0", + "node": "^22.12.0", "npm": "^10.1.0" }, "license": "MIT", diff --git a/shared/stats/package.json b/shared/stats/package.json index a3c5d74012..8bf402034f 100644 --- a/shared/stats/package.json +++ b/shared/stats/package.json @@ -4,7 +4,7 @@ "description": "GOV.UK Frontend build stats", "main": "src/index.mjs", "engines": { - "node": "^22.11.0", + "node": "^22.12.0", "npm": "^10.1.0" }, "license": "MIT", diff --git a/shared/tasks/package.json b/shared/tasks/package.json index 49b0000f5c..2af4c6edc6 100644 --- a/shared/tasks/package.json +++ b/shared/tasks/package.json @@ -4,7 +4,7 @@ "description": "GOV.UK Frontend shared tasks", "main": "index.mjs", "engines": { - "node": "^22.11.0", + "node": "^22.12.0", "npm": "^10.1.0" }, "license": "MIT",