Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions .changeset/small-context-types.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tus/server": patch
---

Use the existing `CancellationContext` return type for `Server.createContext` so declaration generation succeeds with newer Node.js typings. This preserves the existing context shape and runtime behavior.
28 changes: 14 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/azure-store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"devDependencies": {
"@types/debug": "^4.1.12",
"@types/mocha": "^10.0.6",
"@types/node": "^22.13.7",
"@types/node": "^26.2.0",
"mocha": "^12.0.3",
"should": "^13.2.3"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/file-store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"devDependencies": {
"@types/debug": "^4.1.12",
"@types/mocha": "^10.0.6",
"@types/node": "^22.13.7",
"@types/node": "^26.2.0",
"mocha": "^12.0.3",
"should": "^13.2.3"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/gcs-store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@tus/server": "^2.4.0",
"@types/debug": "^4.1.12",
"@types/mocha": "^10.0.6",
"@types/node": "^22.13.7",
"@types/node": "^26.2.0",
"mocha": "^12.0.3",
"should": "^13.2.3"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/s3-store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@types/debug": "^4.1.12",
"@types/mocha": "^10.0.6",
"@types/multistream": "^4.1.3",
"@types/node": "^22.13.7",
"@types/node": "^26.2.0",
"mocha": "^12.0.3",
"should": "^13.2.3"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@types/debug": "^4.1.12",
"@types/lodash.throttle": "^4.1.9",
"@types/mocha": "^10.0.6",
"@types/node": "^22.13.7",
"@types/node": "^26.2.0",
"@types/set-cookie-parser": "^2.4.10",
"@types/sinon": "^17.0.3",
"@types/supertest": "^7.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ export class Server extends EventEmitter {
return this.datastore.deleteExpired()
}

protected createContext() {
protected createContext(): CancellationContext {
// Initialize two AbortControllers:
// 1. `requestAbortController` for instant request termination, particularly useful for stopping clients to upload when errors occur.
// 2. `abortWithDelayController` to introduce a delay before aborting, allowing the server time to complete ongoing operations.
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"devDependencies": {
"@types/debug": "^4.1.12",
"@types/mocha": "^10.0.6",
"@types/node": "^22.13.7",
"@types/node": "^26.2.0",
"ioredis": "^5.4.1",
"mocha": "^12.0.3",
"should": "^13.2.3"
Expand Down
2 changes: 1 addition & 1 deletion test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"devDependencies": {
"@types/mocha": "^10.0.6",
"@types/node": "^22.13.7",
"@types/node": "^26.2.0",
"@types/rimraf": "^3.0.2",
"@types/sinon": "^17.0.3",
"@types/supertest": "^7.2.0",
Expand Down
Loading