Skip to content

Commit 877e7ec

Browse files
lv10claude
andauthored
chore(deps): consolidate Dependabot updates (#1263)
* chore(deps): consolidate Dependabot updates * fix(deps): bump typescript to 5.9 to repair the build `.npmrc` sets `package-lock=false`, so `@types/node` floats and has drifted to a version whose .d.ts files typescript@4.9.5 cannot parse: @types/node/ffi.d.ts(260,9): error TS1109: Expression expected. These are syntax errors, so the existing `skipLibCheck: true` does not suppress them, and `packages/graphql-hooks/tsconfig.json` sets no `types` array so tsc auto-loads the drifted @types/node into the declaration emit. Because `build:types` hangs off `postinstall` -> `build:packages`, this failed `npm install` itself and took down ci, acceptance-tests and the Netlify deploy preview together, on master as well as on every open PR. Bumps typescript to ^5.9.0 at the root and in the three example workspaces still on 4.x. `examples/persisted-queries/server` matters beyond tidiness: its `ts-node-dev` type-checks at boot and it is the server the acceptance-tests job starts. Two pre-existing problems were masked behind the install failure and surface once it is fixed: - react-scripts@5.0.1 declares `peerOptional typescript@"^3.2.1 || ^4"`, which ERESOLVEs against TS 5. CRA is unmaintained, so relax it with an `overrides` entry. - examples/typescript pinned `@types/react@^18` while using react@^19 and `@types/react-dom@^19`. The duplicate @types/react copies caused `TS2786: 'ClientContext.Provider' cannot be used as a JSX component`. Aligned to ^19, matching every other workspace. Pins stay within the 5.x line: TypeScript 6 drops `moduleResolution: node`, which `config/tsconfig.base.json` still uses. Refs #1265 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Luis Villamarin <luis.villamarin@nearform.com> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent 9f10f18 commit 877e7ec

9 files changed

Lines changed: 18 additions & 13 deletions

File tree

‎.github/workflows/acceptance-tests.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ jobs:
1717
- name: Install root
1818
run: npm install
1919
- name: Cypress create-react-app
20-
uses: cypress-io/github-action@v6
20+
uses: cypress-io/github-action@v7
2121
with:
2222
browser: chrome
2323
install: false
2424
spec: cypress/e2e/create-react-app.cy.ts
2525
start: npm start --prefix ./examples/create-react-app
2626
- name: Cypress persisted-queries Mercurius
27-
uses: cypress-io/github-action@v6
27+
uses: cypress-io/github-action@v7
2828
with:
2929
browser: chrome
3030
install: false
@@ -36,7 +36,7 @@ jobs:
3636
PORT: 3002
3737
CYPRESS_CLIENT_PORT: 3002
3838
- name: Cypress persisted-queries Apollo Server
39-
uses: cypress-io/github-action@v6
39+
uses: cypress-io/github-action@v7
4040
with:
4141
install: false
4242
spec: cypress/e2e/persisted-queries.cy.ts

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v6
1515
- name: Cache node modules
16-
uses: actions/cache@v3
16+
uses: actions/cache@v5
1717
with:
1818
path: ~/.npm
1919
key: npm-${{ hashFiles('**/package.json') }}

‎examples/fastify-ssr/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"prop-types": "^15.7.2",
3636
"react": "^19.0.0",
3737
"react-dom": "^19.0.0",
38-
"react-router-dom": "^6.0.2"
38+
"react-router-dom": "^7.9.6"
3939
},
4040
"devDependencies": {
4141
"@babel/cli": "^7.4.4",

‎examples/persisted-queries/client/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"react": "^19.0.0",
1313
"react-dom": "^19.0.0",
1414
"react-scripts": "^5.0.0",
15-
"typescript": "^4.1.2"
15+
"typescript": "^5.9.0"
1616
},
1717
"scripts": {
1818
"start": "react-scripts start",

‎examples/persisted-queries/server/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
"@tsconfig/node16": "^16.1.0",
2222
"@types/node": "^22.10.5",
2323
"ts-node-dev": "^2.0.0",
24-
"typescript": "^4.7.4"
24+
"typescript": "^5.9.0"
2525
}
2626
}

‎examples/subscription/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"graphql-hooks-memcache": "^3.2.0",
2525
"lowdb": "^7.0.1",
2626
"mercurius": "^14.0.0",
27-
"mqemitter-redis": "^5.0.0",
27+
"mqemitter-redis": "^7.2.0",
2828
"react": "^19.0.0",
2929
"react-dom": "^19.0.0",
3030
"subscriptions-transport-ws": "^0.11.0"

‎examples/typescript/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"dependencies": {
66
"@types/jest": "^29.0.3",
77
"@types/node": "^22.10.5",
8-
"@types/react": "^18.0.0",
8+
"@types/react": "^19.0.0",
99
"@types/react-dom": "^19.0.2",
1010
"graphql-hooks": "^8.2.0",
1111
"graphql-hooks-memcache": "^3.2.0",
@@ -38,6 +38,6 @@
3838
"@graphql-codegen/client-preset": "^4.1.0",
3939
"graphql": "^16.8.1",
4040
"graphql-codegen-typescript-client": "0.18.2",
41-
"typescript": "^4.9.5"
41+
"typescript": "^5.9.0"
4242
}
4343
}

‎package.json‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"@babel/preset-env": "^7.14.1",
2525
"@babel/preset-react": "^7.13.13",
2626
"@babel/preset-typescript": "^7.18.6",
27-
"@commitlint/cli": "^19.3.0",
27+
"@commitlint/cli": "^20.2.0",
2828
"@commitlint/config-conventional": "^19.2.2",
2929
"@rollup/plugin-babel": "^6.0.4",
3030
"@rollup/plugin-commonjs": "^26.0.1",
@@ -54,7 +54,12 @@
5454
"rollup-plugin-replace": "^2.2.0",
5555
"rollup-plugin-size-snapshot": "^0.12.0",
5656
"ts-jest": "^29.0.1",
57-
"typescript": "^4.9.5"
57+
"typescript": "^5.9.0"
58+
},
59+
"overrides": {
60+
"react-scripts": {
61+
"typescript": "^5.9.0"
62+
}
5863
},
5964
"lint-staged": {
6065
"**/*.js": [

‎packages/babel-plugin-extract-gql/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"dependencies": {
3232
"@fastify/cors": "^9.0.1",
3333
"fastify": "^4.2.0",
34-
"pkg-dir": "^8.0.0"
34+
"pkg-dir": "^9.0.0"
3535
},
3636
"repository": {
3737
"type": "git",

0 commit comments

Comments
 (0)