Skip to content

Commit b079d7b

Browse files
authored
Chore: Update to Node 16 (#365)
* Chore: Update dependencies * Update lint-staged step * Update to Node 16 * Update Node in CI config
1 parent 276d9dd commit b079d7b

File tree

5 files changed

+1104
-1015
lines changed

5 files changed

+1104
-1015
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ aliases:
1313
defaults: &defaults
1414
working_directory: ~/grafana-image-renderer
1515
docker:
16-
- image: cimg/node:14.18.3
16+
- image: cimg/node:16.17.0
1717

1818
commands:
1919
install-grabpl:

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:14-alpine AS base
1+
FROM node:16-alpine AS base
22

33
ENV CHROME_BIN="/usr/bin/chromium-browser"
44
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD="true"

debian.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:14-slim AS base
1+
FROM node:16-slim AS base
22

33
ENV CHROME_BIN="google-chrome-unstable"
44
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD="true"

package.json

Lines changed: 18 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -43,38 +43,33 @@
4343
"multer": "^1.4.5-lts.1"
4444
},
4545
"devDependencies": {
46-
"@grafana/eslint-config": "^2.5.0",
46+
"@grafana/eslint-config": "5.0.0",
4747
"@types/multer": "1.4.7",
4848
"@types/express": "^4.11.1",
4949
"@types/node": "^14.14.41",
50-
"@types/dompurify": "^2.3.3",
51-
"@types/jsdom": "16.2.14",
52-
"@typescript-eslint/eslint-plugin": "^4.32.0",
53-
"@typescript-eslint/parser": "^4.32.0",
50+
"@types/dompurify": "2.3.4",
51+
"@types/jsdom": "20.0.0",
52+
"@typescript-eslint/eslint-plugin": "5.16.0",
53+
"@typescript-eslint/parser": "5.31.0",
5454
"axios": "0.26.0",
5555
"cross-env": "7.0.3",
56-
"eslint": "^7.32.0",
57-
"eslint-config-prettier": "^8.3.0",
58-
"eslint-plugin-jsdoc": "^36.1.0",
59-
"eslint-plugin-prettier": "^4.0.0",
60-
"eslint-plugin-react": "^7.26.1",
61-
"eslint-plugin-react-hooks": "^4.2.0",
62-
"husky": "^4.3.8",
63-
"lint-staged": "^11.2.0",
64-
"pkg": "5.5.2",
56+
"eslint": "8.22.0",
57+
"eslint-config-prettier": "8.5.0",
58+
"eslint-plugin-jsdoc": "39.3.3",
59+
"eslint-plugin-prettier": "4.2.1",
60+
"eslint-plugin-react": "7.31.0",
61+
"eslint-plugin-react-hooks": "4.6.0",
62+
"husky": "4.3.8",
63+
"lint-staged": "13.0.3",
64+
"pkg": "5.8.0",
6565
"prettier": "2.2.1",
6666
"ts-node": "10.5.0",
67-
"tsc-watch": "^4.2.3",
68-
"typescript": "^4.3.2"
67+
"tsc-watch": "5.0.3",
68+
"typescript": "4.7.4"
6969
},
7070
"resolutions": {
7171
"jpeg-js": "^0.4.4"
7272
},
73-
"husky": {
74-
"hooks": {
75-
"pre-commit": "lint-staged && npm run precommit"
76-
}
77-
},
7873
"lint-staged": {
7974
"*.ts": [
8075
"prettier --write"
@@ -85,9 +80,6 @@
8580
},
8681
"bin": "build/app.js",
8782
"engines": {
88-
"node": ">=14 <=16"
89-
},
90-
"volta": {
91-
"node": "14.16.1"
83+
"node": ">= 16"
9284
}
93-
}
85+
}

0 commit comments

Comments
 (0)