Skip to content

Commit e03d587

Browse files
JannikBrackjannik brackcioddi
authored
Update dependencies (#206)
Co-authored-by: jannik brack <jannik.brack@wheregroup.com> Co-authored-by: Max Tobias Weber <tobias.weber@wheregroup.com>
1 parent dfa777a commit e03d587

File tree

65 files changed

+7493
-8048
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+7493
-8048
lines changed

.github/workflows/check-formatting.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
strategy:
1313
matrix:
14-
node-versions: [16.x]
14+
node-versions: [20.x]
1515

1616
steps:
1717
- uses: actions/checkout@v2

.github/workflows/cypress_tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ jobs:
1212
steps:
1313
- name: Checkout
1414
uses: actions/checkout@v4
15+
- name: Set up Node.js
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version: '20'
1519
- name: Cypress run
1620
uses: cypress-io/github-action@v6
1721
with:

.github/workflows/node_version_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
node-versions: [16.x,18.x]
15+
node-versions: [20.x,22.x]
1616

1717
steps:
1818
- uses: actions/checkout@v2

.storybook/main.js

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = {
2-
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
2+
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
33

4-
addons: [
4+
addons: [
55
'storybook-source-link',
66
//'@storybook/addon-storysource',
77
'@storybook/addon-links',
@@ -14,27 +14,28 @@ module.exports = {
1414
},
1515
],
1616

17-
framework: {
18-
name: "@storybook/react-webpack5",
19-
options: {}
20-
},
21-
22-
webpackFinal: async (config, { configType }) => {
23-
// split into more chunks
24-
config.optimization = {
25-
splitChunks: {
26-
chunks: 'all',
27-
minSize: 30 * 1024, // 30KB
28-
maxSize: 1024 * 1024, // 1MB
29-
},
30-
};
31-
32-
config.externals = { fs: 'fs' };
17+
framework: {
18+
name: '@storybook/react-webpack5',
19+
options: {},
20+
},
3321

22+
webpackFinal: async (config) => {
23+
config.module.rules.push({
24+
test: /\.(ts|tsx)$/,
25+
use: [
26+
{
27+
loader: require.resolve('babel-loader'),
28+
options: {
29+
presets: [require.resolve('@babel/preset-typescript')],
30+
},
31+
},
32+
],
33+
});
34+
config.resolve.extensions.push('.ts', '.tsx');
3435
return config;
3536
},
3637

37-
typescript: {
38+
typescript: {
3839
check: false,
3940
checkOptions: {},
4041
reactDocgen: 'react-docgen-typescript',
@@ -44,13 +45,13 @@ module.exports = {
4445
},
4546
},
4647

47-
docs: {
48-
autodocs: true
49-
},
48+
docs: {
49+
autodocs: true,
50+
},
5051
staticDirs: [
5152
'../public',
5253
],
5354
features: {
54-
buildStoriesJson: true,
55-
}
55+
buildStoriesJson: true,
56+
},
5657
};

.storybook/preview.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import { themes } from "@storybook/theming";
44

55
import "./style.css";
66

7-
console.log('ReactDOM.render warning is from storybook still using react 17 to render the UI; The components shown are using 18 thoug. See https://github.com/storybookjs/storybook/issues/17831 for more info. The issue will eventually be resolved by upgrading storybook, once it fully supports React 18');
8-
97
export const parameters = {
108
docs: {
119
inlineStories: false,
@@ -30,4 +28,4 @@ export const globalTypes = {
3028
],
3129
},
3230
},
33-
};
31+
};

eslint.config.mjs

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
import react from 'eslint-plugin-react';
2+
import typescriptEslint from '@typescript-eslint/eslint-plugin';
3+
import globals from 'globals';
4+
import tsParser from '@typescript-eslint/parser';
5+
import path from 'node:path';
6+
import { fileURLToPath } from 'node:url';
7+
import js from '@eslint/js';
8+
import { FlatCompat } from '@eslint/eslintrc';
9+
10+
const __filename = fileURLToPath(import.meta.url);
11+
const __dirname = path.dirname(__filename);
12+
const compat = new FlatCompat({
13+
baseDirectory: __dirname,
14+
recommendedConfig: js.configs.recommended,
15+
allConfig: js.configs.all,
16+
});
17+
18+
export default [
19+
{
20+
ignores: [
21+
'**/.cache',
22+
'**/.github',
23+
'**/.storybook',
24+
'**/.vscode',
25+
'**/coverage',
26+
'**/dist',
27+
'**/docs',
28+
'**/docs-build',
29+
'**/js-docs',
30+
'**/node_modules',
31+
'**/storybook-static',
32+
'**/scripts',
33+
],
34+
},
35+
...compat.extends(
36+
'eslint:recommended',
37+
'plugin:react/recommended',
38+
'plugin:@typescript-eslint/recommended',
39+
'prettier',
40+
'plugin:storybook/recommended'
41+
),
42+
{
43+
plugins: {
44+
react,
45+
'@typescript-eslint': typescriptEslint,
46+
},
47+
48+
languageOptions: {
49+
globals: {
50+
...globals.browser,
51+
...globals.node,
52+
...globals.jest,
53+
},
54+
55+
parser: tsParser,
56+
ecmaVersion: 'latest',
57+
sourceType: 'module',
58+
},
59+
60+
settings: {
61+
react: {
62+
version: 'detect',
63+
},
64+
},
65+
66+
rules: {
67+
'react/prop-types': 'off',
68+
'@typescript-eslint/no-empty-function': 'off',
69+
'@typescript-eslint/no-explicit-any': 'off',
70+
'@typescript-eslint/no-unsafe-declaration-merging': 'off',
71+
},
72+
},
73+
];

package.json

Lines changed: 70 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -23,113 +23,121 @@
2323
"@dnd-kit/core": "^6.3.1",
2424
"@dnd-kit/modifiers": "^9.0.0",
2525
"@dnd-kit/sortable": "^10.0.0",
26-
"@emotion/css": "^11.13.0",
27-
"@emotion/react": "^11.13.3",
28-
"@emotion/styled": "^11.13.0",
29-
"@mapbox/mapbox-gl-draw": "^1.4.3",
26+
"@emotion/css": "^11.13.5",
27+
"@emotion/react": "^11.14.0",
28+
"@emotion/styled": "^11.14.0",
29+
"@eslint/eslintrc": "^3.3.0",
30+
"@eslint/js": "^9.22.0",
31+
"@mapbox/mapbox-gl-draw": "1.4.3",
3032
"@mapbox/mapbox-gl-sync-move": "^0.3.1",
31-
"@mui/icons-material": "^6.1.1",
32-
"@mui/material": "^6.1.1",
33-
"@reduxjs/toolkit": "^2.0.1",
33+
"@mui/icons-material": "^6.4.7",
34+
"@mui/material": "^6.4.7",
35+
"@reduxjs/toolkit": "^2.6.1",
3436
"@rollup/plugin-json": "^6.1.0",
35-
"@tmcw/togeojson": "^5.8.1",
36-
"@turf/turf": "^7.1.0",
37+
"@testing-library/dom": "^10.4.0",
38+
"@tmcw/togeojson": "^7.0.0",
39+
"@turf/turf": "^7.2.0",
3740
"@types/d3": "^7.4.3",
38-
"@types/geojson": "^7946.0.14",
39-
"@types/react-color": "^3.0.11",
40-
"@types/topojson-client": "^3.1.4",
41-
"@xmldom/xmldom": "^0.8.10",
41+
"@types/geojson": "^7946.0.16",
42+
"@types/react-color": "^3.0.13",
43+
"@types/topojson-client": "^3.1.5",
44+
"@xmldom/xmldom": "^0.9.8",
4245
"csv2geojson": "^5.1.2",
43-
"d3": "^7.8.5",
44-
"jspdf": "^2.5.1",
45-
"maplibre-gl": "^4.5.2",
46-
"osm2geojson-lite": "^0.9.4",
46+
"d3": "^7.9.0",
47+
"globals": "^16.0.0",
48+
"jspdf": "^3.0.0",
49+
"maplibre-gl": "5.2.0",
50+
"osm2geojson-lite": "^1.0.2",
4751
"pako": "^2.1.0",
4852
"react-color": "^2.19.3",
4953
"react-moveable": "^0.56.0",
50-
"react-redux": "^9.1.2",
54+
"react-redux": "^9.2.0",
5155
"redux": "^5.0.1",
5256
"redux-thunk": "^3.1.0",
53-
"three": "^0.161.0",
57+
"three": "^0.174.0",
5458
"topojson-client": "^3.1.0",
55-
"uuid": "^9.0.1",
59+
"uuid": "^11.1.0",
5660
"wms-capabilities": "^0.6.0"
5761
},
5862
"devDependencies": {
5963
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
60-
"@babel/preset-react": "^7.23.3",
64+
"@babel/preset-react": "^7.26.3",
65+
"@babel/preset-typescript": "^7.26.0",
6166
"@bahmutov/cy-rollup": "^2.0.0",
62-
"@cfaester/enzyme-adapter-react-18": "^0.7.1",
67+
"@cfaester/enzyme-adapter-react-18": "^0.8.0",
6368
"@cypress/react18": "^2.0.1",
6469
"@rollup/plugin-babel": "^6.0.4",
65-
"@rollup/plugin-commonjs": "^25.0.7",
70+
"@rollup/plugin-commonjs": "^28.0.3",
6671
"@rollup/plugin-url": "^8.0.2",
67-
"@storybook/addon-actions": "^7.6.13",
68-
"@storybook/addon-docs": "^7.6.13",
69-
"@storybook/addon-essentials": "^7.6.13",
70-
"@storybook/addon-links": "^7.6.13",
71-
"@storybook/addons": "^7.6.13",
72-
"@storybook/node-logger": "^7.6.13",
73-
"@storybook/react": "^7.6.13",
74-
"@storybook/react-webpack5": "^7.6.13",
72+
"@storybook/addon-actions": "^8.6.4",
73+
"@storybook/addon-docs": "^8.6.4",
74+
"@storybook/addon-essentials": "^8.6.4",
75+
"@storybook/addon-links": "^8.6.4",
76+
"@storybook/addons": "^7.6.17",
77+
"@storybook/node-logger": "^8.6.4",
78+
"@storybook/react": "^8.6.4",
79+
"@storybook/react-webpack5": "^8.6.4",
80+
"@storybook/test": "^8.6.4",
7581
"@storybook/testing-react": "^2.0.1",
76-
"@storybook/theming": "^7.6.13",
82+
"@storybook/theming": "^8.6.4",
7783
"@svgr/rollup": "^8.1.0",
78-
"@testing-library/react": "^14.2.1",
84+
"@testing-library/react": "^16.2.0",
7985
"@types/elasticlunr": "^0.9.5",
8086
"@types/enzyme": "^3.10.18",
81-
"@types/expect": "^24.3.0",
82-
"@types/jest": "^29.5.12",
83-
"@types/mapbox__mapbox-gl-draw": "^1.4.6",
87+
"@types/expect": "^24.3.2",
88+
"@types/jest": "^29.5.14",
89+
"@types/mapbox__mapbox-gl-draw": "^1.4.8",
8490
"@types/mapbox__point-geometry": "^0.1.4",
85-
"@types/mapbox__vector-tile": "^1.3.4",
91+
"@types/mapbox__vector-tile": "^2.0.0",
8692
"@types/pako": "^2.0.3",
87-
"@types/react": "^18.2.55",
88-
"@types/react-dom": "^18.2.19",
93+
"@types/react": "^19.0.10",
94+
"@types/react-dom": "^19.0.4",
8995
"@types/sql.js": "^1.4.9",
90-
"@types/three": "^0.161.2",
91-
"@types/uuid": "^9.0.8",
92-
"@typescript-eslint/eslint-plugin": "^6.21.0",
93-
"@typescript-eslint/parser": "^6.21.0",
96+
"@types/three": "^0.174.0",
97+
"@types/uuid": "^10.0.0",
98+
"@typescript-eslint/eslint-plugin": "^8.26.1",
99+
"@typescript-eslint/parser": "^8.26.1",
94100
"avj": "^0.0.0",
95101
"babel-jest": "^29.7.0",
102+
"babel-loader": "^10.0.0",
96103
"babel-plugin-inline-react-svg": "^2.0.2",
97104
"babel-plugin-styled-components": "^2.1.4",
98-
"babel-preset-react-app": "^10.0.1",
99-
"cypress": "^13.6.4",
105+
"babel-preset-react-app": "^10.1.0",
106+
"cypress": "^14.2.0",
100107
"elasticlunr": "^0.9.5",
101108
"enzyme": "^3.11.0",
102-
"eslint": "^8.56.0",
103-
"eslint-config-prettier": "^9.1.0",
104-
"eslint-plugin-react": "^7.33.2",
105-
"eslint-plugin-storybook": "^0.6.15",
106-
"glob": "^10.3.10",
109+
"eslint": "^9.22.0",
110+
"eslint-config-prettier": "^10.1.1",
111+
"eslint-plugin-react": "^7.37.4",
112+
"eslint-plugin-storybook": "^0.11.4",
113+
"glob": "^11.0.1",
107114
"jest": "29.7.0",
108115
"jest-circus": "29.7.0",
109116
"jest-environment-jsdom": "^29.7.0",
110117
"jest-enzyme": "^7.1.2",
111118
"jest-resolve": "29.7.0",
112119
"jest-watch-typeahead": "2.2.2",
113120
"node-fetch": "^3.3.2",
114-
"postcss": "^8.4.35",
115-
"prettier": "3.2.5",
121+
"postcss": "^8.5.3",
122+
"prettier": "3.5.3",
116123
"react": "^18.2.0",
117124
"react-app-polyfill": "^3.0.0",
118125
"react-dev-utils": "^12.0.1",
119126
"react-dom": "^18.2.0",
120127
"react-draggable": "^4.4.6",
121-
"react-i18next": "^14.0.5",
122-
"rollup": "^4.11.0",
123-
"rollup-plugin-delete": "^2.0.0",
124-
"rollup-plugin-import-css": "^3.4.0",
125-
"rollup-plugin-node-externals": "^7.0.1",
128+
"react-i18next": "^15.4.1",
129+
"rollup": "^4.35.0",
130+
"rollup-plugin-delete": "^3.0.1",
131+
"rollup-plugin-import-css": "^3.5.8",
132+
"rollup-plugin-node-externals": "^8.0.0",
126133
"rollup-plugin-typescript2": "^0.36.0",
127134
"showdown": "^2.1.0",
128-
"sql.js": "^1.10.2",
129-
"storybook": "^7.6.13",
135+
"sql.js": "^1.12.0",
136+
"storybook": "^8.6.4",
130137
"storybook-source-link": "^4.0.1",
131-
"ts-jest": "^29.1.2",
132-
"typescript": "^5.3.3"
138+
"ts-jest": "^29.2.6",
139+
"ts-loader": "^9.5.2",
140+
"typescript": "^5.8.2"
133141
},
134142
"jest": {
135143
"roots": [
@@ -215,6 +223,6 @@
215223
]
216224
},
217225
"resolutions": {
218-
"jackspeak": "2.1.1"
226+
"jackspeak": "4.1.0"
219227
}
220228
}

0 commit comments

Comments
 (0)