Skip to content

Commit

Permalink
Moving to Node 22 (#474)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrlee authored Oct 29, 2024
1 parent 63229bd commit 2b6166b
Show file tree
Hide file tree
Showing 7 changed files with 540 additions and 1,405 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ parameters:
default: SLACK_RELEASES_CHANNEL
node-version:
type: string
default: 20.17-browsers
default: 22.10-browsers
jobs:
build:
executor:
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20
22
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change log

**October 29th 2024** - Move to node 22

Node 22 is now LTS. Notes [here](https://nodejs.org/en/blog/announcements/v22-release-announce)

See PR [#474](https://github.com/ministryofjustice/hmpps-template-typescript/pull/474)

**September 25th 2024** - Removing dependency on dotenv

Removing dependency on [dotenv](https://www.npmjs.com/package/dotenv).
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Stage: base image
FROM node:20.18-bookworm-slim as base
FROM node:22.10-bookworm-slim as base

ARG BUILD_NUMBER
ARG GIT_REF
Expand Down
1,916 changes: 523 additions & 1,393 deletions package-lock.json

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"rebuild": "npm run clean && npm i && npm run build"
},
"engines": {
"node": "^20",
"node": "^22",
"npm": "^10"
},
"jest": {
Expand Down Expand Up @@ -76,7 +76,7 @@
]
},
"dependencies": {
"@aws-sdk/client-sqs": "^3.678.0",
"@aws-sdk/client-sqs": "^3.679.0",
"@ministryofjustice/frontend": "^2.2.4",
"agentkeepalive": "^4.5.0",
"applicationinsights": "^2.9.6",
Expand All @@ -102,6 +102,7 @@
},
"devDependencies": {
"@jgoz/esbuild-plugin-typecheck": "^4.0.2",
"@tsconfig/node22": "^22.0.0",
"@types/bunyan": "^1.8.11",
"@types/bunyan-format": "^0.2.9",
"@types/compression": "^1.7.5",
Expand All @@ -111,7 +112,7 @@
"@types/http-errors": "^2.0.4",
"@types/jest": "^29.5.14",
"@types/jsonwebtoken": "^9.0.7",
"@types/node": "^20.16.11",
"@types/node": "^22.8.2",
"@types/nunjucks": "^3.2.6",
"@types/passport": "^1.0.16",
"@types/passport-oauth2": "^1.4.17",
Expand All @@ -123,7 +124,7 @@
"aws-sdk-client-mock": "^4.1.0",
"chokidar": "^3.6.0",
"concurrently": "^9.0.1",
"cypress": "^13.15.0",
"cypress": "^13.15.1",
"cypress-multi-reporters": "^1.6.4",
"esbuild": "^0.23.1",
"esbuild-plugin-clean": "^1.0.1",
Expand Down
8 changes: 3 additions & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
{
"extends": "@tsconfig/node22/tsconfig.json",
"compileOnSave": true,
"compilerOptions": {
"target": "es2018",
"module": "commonjs",
"moduleResolution": "node",
"outDir": "./dist",
"sourceMap": true,
"skipLibCheck": true,
"noEmit": false,
"allowJs": true,
"checkJs": true,
"allowJs": false,
"strict": false,
"resolveJsonModule": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
Expand Down

0 comments on commit 2b6166b

Please sign in to comment.