Skip to content

Commit 3755067

Browse files
committed
Fix TypeScript build errors by upgrading to TypeScript 5.9.3 and adding DOM types
The @datocms/cda-client dependency uses the RequestPriority type which requires TypeScript 5.4+ and DOM types. This upgrade also adds @types/node to resolve compatibility issues with the newer TypeScript version.
1 parent 00e6ace commit 3755067

File tree

3 files changed

+58
-16
lines changed

3 files changed

+58
-16
lines changed

package-lock.json

Lines changed: 53 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@
115115
"@types/enzyme": "^3.10.8",
116116
"@types/enzyme-to-json": "^1.5.4",
117117
"@types/jest": "^29.5.11",
118+
"@types/node": "^25.0.10",
118119
"@types/raf": "^3.4.0",
119120
"@types/react": "^17.0.3",
120121
"@types/react-dom": "^17.0.3",
@@ -132,7 +133,7 @@
132133
"resize-observer-polyfill": "^1.5.1",
133134
"rimraf": "^3.0.2",
134135
"ts-jest": "^29.2.5",
135-
"typescript": "^5.0.0"
136+
"typescript": "^5.9.3"
136137
},
137138
"scripts": {
138139
"build": "rimraf dist && npm run tsc:types && npm run tsc:cjs && npm run tsc:esm",
@@ -146,12 +147,12 @@
146147
"tsc:esm": "tsc --project ./tsconfig.esnext.json"
147148
},
148149
"peerDependencies": {
149-
"react": ">= 16.12.0 || ^19.0.0-rc"
150+
"react": ">= 16.12.0"
150151
},
151152
"dependencies": {
152153
"@datocms/content-link": "^0.3.7",
153154
"@mux/mux-player-react": "*",
154-
"datocms-listen": "^0.1.9",
155+
"datocms-listen": "^1.0.2",
155156
"datocms-structured-text-generic-html-renderer": "^5.0.0",
156157
"datocms-structured-text-utils": "^5.1.6",
157158
"react-intersection-observer": "^9.4.3",

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"noImplicitAny": true,
4040
"resolveJsonModule": true,
4141
"strictNullChecks": true,
42-
"lib": ["ESNext"],
42+
"lib": ["ESNext", "DOM"],
4343

4444
// React specific
4545
"jsx": "react"

0 commit comments

Comments
 (0)