Skip to content

Commit 81bfa47

Browse files
authored
Merge pull request #157 from davemfish/task/156-node-package-upgrades
node package upgrades to address vulnerabilities
2 parents 3a82804 + 8a59c94 commit 81bfa47

File tree

5 files changed

+2932
-2254
lines changed

5 files changed

+2932
-2254
lines changed

.github/workflows/frontend-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Set up node
1919
uses: actions/setup-node@v4
2020
with:
21-
node-version: 18
21+
node-version: 22
2222

2323
- name: Restore node_modules cache
2424
id: nodemodules-cache

frontend/package.json

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,32 +13,33 @@
1313
},
1414
"dependencies": {
1515
"@blueprintjs/core": "^5.12.0",
16-
"dotenv": "^16.0.0",
17-
"jsts": "^2.9.3",
16+
"dotenv": "^17.2.4",
17+
"jsts": "^2.12.1",
1818
"localforage": "^1.10.0",
1919
"ol": "^6.15.1",
2020
"react": "^18.2.0",
2121
"react-dom": "^18.2.0"
2222
},
2323
"devDependencies": {
24-
"@babel/eslint-parser": "^7.18.2",
25-
"@testing-library/jest-dom": "^5.16.5",
26-
"@testing-library/react": "^14.0.0",
27-
"@testing-library/user-event": "^14.4.3",
28-
"@vitejs/plugin-react": "^4.0.1",
29-
"@vitest/coverage-v8": "^0.32.2",
30-
"c8": "^7.11.3",
31-
"cross-env": "^7.0.3",
32-
"eslint": "^7.32.0 || ^8.2.0",
24+
"@babel/eslint-parser": "^7.28.6",
25+
"@testing-library/dom": "^10.4.1",
26+
"@testing-library/jest-dom": "^6.9.1",
27+
"@testing-library/react": "^16.3.2",
28+
"@testing-library/user-event": "^14.6.1",
29+
"@vitejs/plugin-react": "^5.1.4",
30+
"@vitest/coverage-v8": "^4.0.18",
31+
"c8": "^10.1.3",
32+
"cross-env": "^10.1.0",
33+
"eslint": "^10.0.0",
3334
"eslint-config-airbnb": "^19.0.4",
34-
"eslint-plugin-import": "^2.25.3",
35-
"eslint-plugin-jsx-a11y": "^6.5.1",
36-
"eslint-plugin-react": "^7.28.0",
37-
"eslint-plugin-react-hooks": "^4.3.0",
38-
"happy-dom": "^9.20.3",
39-
"jsdom": "^22.1.0",
40-
"puppeteer": "^20.7.4",
41-
"vite": "^4.4.9",
42-
"vitest": "^0.34.0"
35+
"eslint-plugin-import": "^2.32.0",
36+
"eslint-plugin-jsx-a11y": "^6.10.2",
37+
"eslint-plugin-react": "^7.37.5",
38+
"eslint-plugin-react-hooks": "^7.0.1",
39+
"happy-dom": "^20.6.1",
40+
"jsdom": "^28.0.0",
41+
"puppeteer": "^24.37.2",
42+
"vite": "^7.3.1",
43+
"vitest": "^4.0.18"
4344
}
4445
}

frontend/tests/app.test.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { test, expect, vi } from 'vitest';
22
import React from 'react';
33
import { render, within } from '@testing-library/react';
44
import userEvent from '@testing-library/user-event';
5-
import '@testing-library/jest-dom/extend-expect';
5+
import '@testing-library/jest-dom/vitest';
66

77
import TileLayer from 'ol/layer/Tile';
88
import VectorTileLayer from 'ol/layer/VectorTile';

frontend/tests/edit.test.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { test, expect, vi } from 'vitest';
22
import React from 'react';
33
import { render, waitFor, within } from '@testing-library/react';
44
import userEvent from '@testing-library/user-event';
5-
import '@testing-library/jest-dom/extend-expect';
5+
import '@testing-library/jest-dom/vitest';
66

77
import Edit from '../src/edit/edit';
88
import STUDY_AREA from './fixtures/studyArea.json';

0 commit comments

Comments
 (0)