Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to node 20 #108

Merged
merged 1 commit into from
Oct 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ parameters:

node-version:
type: string
default: 18.17-browsers
default: 20.9-browsers

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
20
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:18.17-bullseye-slim as base
FROM node:20.9-bullseye-slim as base

ARG BUILD_NUMBER=1_0_0
ARG GIT_REF=not-available
Expand Down
2 changes: 1 addition & 1 deletion helm_deploy/hmpps-visits-internal-admin-ui/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: hmpps-visits-internal-admin-ui
version: 0.2.0
dependencies:
- name: generic-service
version: 2.6.4
version: 2.8.0
repository: https://ministryofjustice.github.io/hmpps-helm-charts
- name: generic-prometheus-alerts
version: 1.3.3
Expand Down
728 changes: 385 additions & 343 deletions package-lock.json

Large diffs are not rendered by default.

58 changes: 29 additions & 29 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"clean": "rm -rf dist build node_modules stylesheets"
},
"engines": {
"node": "^18",
"node": "^20",
"npm": "^10"
},
"jest": {
Expand Down Expand Up @@ -110,7 +110,7 @@
"helmet": "^7.0.0",
"http-errors": "^2.0.0",
"jquery": "^3.7.1",
"jwt-decode": "^3.1.2",
"jwt-decode": "^4.0.0",
"nocache": "^4.0.0",
"nunjucks": "^3.2.4",
"passport": "^0.6.0",
Expand All @@ -122,52 +122,52 @@
"uuid": "^9.0.1"
},
"devDependencies": {
"@types/bunyan": "^1.8.9",
"@types/bunyan-format": "^0.2.6",
"@types/compression": "^1.7.3",
"@types/connect-flash": "0.0.38",
"@types/cookie-session": "^2.0.45",
"@types/csurf": "^1.11.3",
"@types/express-session": "^1.17.8",
"@types/http-errors": "^2.0.2",
"@types/jest": "^29.5.5",
"@types/jsonwebtoken": "^9.0.3",
"@types/node": "^18.18.5",
"@types/nunjucks": "^3.2.4",
"@types/passport": "^1.0.13",
"@types/passport-oauth2": "^1.4.13",
"@types/superagent": "^4.1.19",
"@types/supertest": "^2.0.14",
"@types/uuid": "^9.0.5",
"@typescript-eslint/eslint-plugin": "^6.8.0",
"@typescript-eslint/parser": "^6.8.0",
"@types/bunyan": "^1.8.10",
"@types/bunyan-format": "^0.2.7",
"@types/compression": "^1.7.4",
"@types/connect-flash": "0.0.39",
"@types/cookie-session": "^2.0.46",
"@types/csurf": "^1.11.4",
"@types/express-session": "^1.17.9",
"@types/http-errors": "^2.0.3",
"@types/jest": "^29.5.6",
"@types/jsonwebtoken": "^9.0.4",
"@types/node": "^20.8.9",
"@types/nunjucks": "^3.2.5",
"@types/passport": "^1.0.14",
"@types/passport-oauth2": "^1.4.14",
"@types/superagent": "^4.1.20",
"@types/supertest": "^2.0.15",
"@types/uuid": "^9.0.6",
"@typescript-eslint/eslint-plugin": "^6.9.0",
"@typescript-eslint/parser": "^6.9.0",
"audit-ci": "^6.6.1",
"cheerio": "^1.0.0-rc.12",
"concurrently": "^8.2.1",
"concurrently": "^8.2.2",
"cookie-session": "^2.0.0",
"cypress": "^13.3.1",
"cypress-multi-reporters": "^1.6.3",
"cypress": "^13.3.3",
"cypress-multi-reporters": "^1.6.4",
"dotenv": "^16.3.1",
"eslint": "^8.51.0",
"eslint": "^8.52.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^9.0.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-cypress": "^2.15.1",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-no-only-tests": "^3.1.0",
"eslint-plugin-prettier": "^5.0.1",
"husky": "^8.0.3",
"jest": "^29.7.0",
"jest-html-reporter": "^3.10.2",
"jest-junit": "^16.0.0",
"jsonwebtoken": "^9.0.2",
"lint-staged": "^15.0.1",
"lint-staged": "^15.0.2",
"mocha-junit-reporter": "^2.2.1",
"nock": "^13.3.4",
"nock": "^13.3.6",
"nodemon": "^3.0.1",
"prettier": "^3.0.3",
"prettier-plugin-jinja-template": "^1.3.1",
"sass": "^1.69.3",
"sass": "^1.69.5",
"supertest": "^6.3.3",
"ts-jest": "^29.1.1",
"typescript": "^5.2.2"
Expand Down
2 changes: 1 addition & 1 deletion server/middleware/authorisationMiddleware.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import jwtDecode from 'jwt-decode'
import { jwtDecode } from 'jwt-decode'
import type { RequestHandler } from 'express'
tpmcgowan marked this conversation as resolved.
Show resolved Hide resolved

import logger from '../../logger'
Expand Down
Loading