Skip to content

Commit 42b66f0

Browse files
committed
Update dependencies
Not updated: * Apollo client V3 → V4: A major upgrade * Headless UI + Tailwind: Major upgrades, separate ticket * Rollup commonjs/ts plugins: need config changes * React: Sticking to V8 * Cypress: Major upgrade, needs coordination with node version * next: Possibly staright upgrade, held for now * zod: Major upgrade Other notes: * react-hook-form: Bound to version 7.66.1, 7.67 has a typing bug, which is fixed in main, but has not been published to NPM yet. * uuid: Bound to version 11.1.0, 12+ versions have problems with CJS/MJS import styles, and just don't work proerly with our setup. Eventually should be repalced with `crypto.randonUUID()` calls, but we need HTTPS support in the CI test runs before we can do that.
1 parent 56d6ef3 commit 42b66f0

File tree

23 files changed

+5814
-5442
lines changed

23 files changed

+5814
-5442
lines changed

codegen/package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@
99
"ts:check": "echo No need to check syntax of generated TS && exit 0"
1010
},
1111
"dependencies": {
12-
"@babel/core": "^7.28.3",
13-
"@graphql-codegen/add": "^5.0.3",
14-
"@graphql-codegen/cli": "^5.0.7",
15-
"@graphql-codegen/introspection": "^4.0.3",
16-
"@graphql-codegen/typescript": "^4.1.6",
17-
"@graphql-codegen/typescript-operations": "^4.6.1",
12+
"@babel/core": "^7.28.5",
13+
"@graphql-codegen/add": "^6.0.0",
14+
"@graphql-codegen/cli": "^6.1.0",
15+
"@graphql-codegen/introspection": "^5.0.0",
16+
"@graphql-codegen/typescript": "^5.0.6",
17+
"@graphql-codegen/typescript-operations": "^5.0.6",
1818
"@graphql-codegen/typescript-react-apollo": "^4.3.3",
19-
"@graphql-tools/load": "^8.1.2",
20-
"@graphql-tools/merge": "^9.1.1",
21-
"@graphql-tools/schema": "^10.0.25",
19+
"@graphql-tools/load": "^8.1.7",
20+
"@graphql-tools/merge": "^9.1.6",
21+
"@graphql-tools/schema": "^10.0.30",
2222
"@parcel/watcher": "^2.5.0",
23-
"graphql": "^16.11.0",
23+
"graphql": "^16.12.0",
2424
"graphql-tag": "^2.12.6"
2525
}
2626
}

cypress/cypress.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
22
// @ts-ignore
3-
import cypressGrepPlugin from '@cypress/grep/src/plugin';
3+
import { plugin as cypressGrepPlugin } from '@cypress/grep/plugin';
44
import { defineConfig } from 'cypress';
55
import { GenerateCtrfReport } from 'cypress-ctrf-json-reporter';
66
import cypressSplit from 'cypress-split';

cypress/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,21 @@
1313
"cy:run:video": "CYPRESS_BASE_URL=${CYPRESS_BASE_URL:-http://localhost:3300} cypress run --browser chrome --config-file ./cypress.config.video.ts"
1414
},
1515
"dependencies": {
16-
"@4tw/cypress-drag-drop": "^2.2.5",
17-
"@cypress/grep": "^4.1.1",
16+
"@4tw/cypress-drag-drop": "^2.3.1",
17+
"@cypress/grep": "^5.0.0",
1818
"@hsl/jore4-test-db-manager": "1.0.0",
1919
"@hsl/timetables-data-inserter": "1.0.0",
2020
"cypress": "^14.5.4",
21-
"cypress-ctrf-json-reporter": "^0.0.12",
22-
"cypress-split": "^1.24.21",
21+
"cypress-ctrf-json-reporter": "^0.0.13",
22+
"cypress-split": "^1.24.25",
2323
"lodash": "^4.17.21",
24-
"luxon": "^3.7.1",
24+
"luxon": "^3.7.2",
2525
"qs": "^6.14.0"
2626
},
2727
"devDependencies": {
28-
"@types/lodash": "^4.17.20",
28+
"@types/lodash": "^4.17.21",
2929
"@types/luxon": "^3.7.1",
3030
"@types/qs": "^6.14.0",
31-
"find-test-names": "^1.29.18"
31+
"find-test-names": "^1.29.19"
3232
}
3333
}

cypress/pageObjects/RoutePropertiesForm.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ import { TerminusNameInputs, TerminusValues } from './TerminusNameInputs';
1010
import { ValidityPeriodFormInfo } from './ValidityPeriodForm';
1111

1212
export interface RouteFormInfo
13-
extends ValidityPeriodFormInfo,
14-
PriorityFormInfo {
13+
extends ValidityPeriodFormInfo, PriorityFormInfo {
1514
finnishName?: string;
1615
label?: string;
1716
variant?: string;

cypress/pageObjects/StopForm.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ import { PriorityForm, PriorityFormInfo } from './PriorityForm';
55
import { ValidityPeriodFormInfo } from './ValidityPeriodForm';
66

77
export interface BaseStopFormInfo
8-
extends ValidityPeriodFormInfo,
9-
PriorityFormInfo {
8+
extends ValidityPeriodFormInfo, PriorityFormInfo {
109
locationFin?: string;
1110
locationSwe?: string;
1211
longitude?: string;

cypress/support/e2e.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import './commands';
1818

1919
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
2020
// @ts-ignore
21-
import registerCypressGrep from '@cypress/grep';
21+
import { register as registerCypressGrep } from '@cypress/grep';
2222
import { Settings } from 'luxon';
2323

2424
registerCypressGrep();

cypress/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"noEmit": true,
55
// be explicit about types included
66
// to avoid clashing with Jest types
7-
"types": ["cypress", "./support", "@cypress/grep"],
7+
"types": ["cypress", "./support", "@cypress/grep/dist"],
88
"allowJs": false,
99
"strict": true,
1010
"strictNullChecks": true,

eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function getExtends({
8282
? [
8383
react.configs.flat['recommended'],
8484
react.configs.flat['jsx-runtime'],
85-
reactHooks.configs['recommended-latest'],
85+
reactHooks.configs.flat['recommended-latest'],
8686
jsxA11y.flatConfigs['recommended'],
8787
]
8888
: []),

eslint/rules/react-hooks.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,14 @@ module.exports = {
33
// Verify the list of the dependencies for Hooks like useEffect and similar
44
// https://github.com/facebook/react/blob/main/packages/eslint-plugin-react-hooks/src/rules/ExhaustiveDeps.ts
55
'react-hooks/exhaustive-deps': 'error',
6+
7+
// Allow refs to be accessed in render bodies
8+
'react-hooks/refs': 0,
9+
10+
// Allow calling setState in useEffect
11+
'react-hooks/set-state-in-effect': 0,
12+
13+
// We are not using React Compiler, don't warn about react-hook-form
14+
'react-hooks/incompatible-library': 0,
615
},
716
};

0 commit comments

Comments
 (0)