Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/koa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@koa/router": "12.0.1",
"@sentry/node": "8.9.2",
"dotenv": "^16.4.5",
"koa": "2.15.3"
"koa": "3.1.2"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Type definitions not updated for Koa major version bump

Medium Severity

koa was bumped from v2 to v3 (a major version with breaking API changes), but @types/koa remains at 2.15.0. The correct types for Koa 3.x are @types/koa@3.0.0+. This mismatch means TypeScript will type-check against the v2 API surface while the runtime uses v3, potentially masking real incompatibilities introduced by breaking changes like the switch from querystring to URLSearchParams and changes to ctx.throw signature.

Fix in Cursor Fix in Web

},
"devDependencies": {
"@types/koa": "2.15.0",
Expand Down