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
7 changes: 0 additions & 7 deletions .changeset/cache-declared-upload-length.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/completed-upload-expiration.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/empty-uploads-finish.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/forward-content-encoding.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/gcs-content-type-preserved.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/idempotent-file-kv-delete.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/preserve-completed-file-uploads.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/remove-unused-cookie-parser.md

This file was deleted.

30 changes: 15 additions & 15 deletions package-lock.json

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

8 changes: 8 additions & 0 deletions packages/file-store/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @tus/file-store

## 2.1.2

### Patch Changes

- 670e47b: Preserve completed uploads during expiration cleanup by checking the actual file size instead of the persisted metadata offset. Skip uploads that disappear during cleanup.
- Updated dependencies [15e647e]
- @tus/utils@0.7.3

## 2.1.1

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/file-store/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@tus/file-store",
"version": "2.1.1",
"version": "2.1.2",
"description": "Local file storage for @tus/server",
"main": "./dist/index.js",
"exports": "./dist/index.js",
Expand All @@ -21,7 +21,7 @@
"test": "mocha './dist/test/*.js' --exit"
},
"dependencies": {
"@tus/utils": "^0.7.1",
"@tus/utils": "^0.7.3",
"debug": "^4.3.4"
},
"devDependencies": {
Expand Down
8 changes: 8 additions & 0 deletions packages/gcs-store/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @tus/gcs-store

## 2.0.2

### Patch Changes

- a7bfaa4: Preserve the explicit `contentType` from upload metadata when a write at offset 0 replaces the GCS object, including empty writes.
- Updated dependencies [15e647e]
- @tus/utils@0.7.3

## 2.0.1

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/gcs-store/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@tus/gcs-store",
"version": "2.0.1",
"version": "2.0.2",
"description": "Google Cloud Storage for @tus/server",
"main": "./dist/index.js",
"exports": "./dist/index.js",
Expand All @@ -21,12 +21,12 @@
"test": "mocha './dist/test/*.js' --exit --timeout 30000"
},
"dependencies": {
"@tus/utils": "^0.7.0",
"@tus/utils": "^0.7.3",
"debug": "^4.3.4"
},
"devDependencies": {
"@google-cloud/storage": "^7.19.0",
"@tus/server": "^2.4.0",
"@tus/server": "^2.4.7",
"@types/debug": "^4.1.12",
"@types/mocha": "^10.0.6",
"@types/node": "^26.2.0",
Expand Down
14 changes: 14 additions & 0 deletions packages/s3-store/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# @tus/s3-store

## 2.1.0

### Minor Changes

- 697bebf: Forward the `contentEncoding` upload metadata to S3 as `Content-Encoding` when creating the multipart upload, matching `contentType` and `cacheControl`.

### Patch Changes

- 15e647e: Update cached metadata after declaring a deferred upload length so uploads can finish with caches that return copies such as RedisKvStore, IoRedisKvStore and FileKvStore.
`remove` now awaits cache eviction so a failing cache rejects the termination instead of causing an unhandled rejection.
Expiration cleanup also evicts cached metadata.
- Updated dependencies [15e647e]
- @tus/utils@0.7.3

## 2.0.9

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/s3-store/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@tus/s3-store",
"version": "2.0.9",
"version": "2.1.0",
"description": "AWS S3 store for @tus/server",
"main": "./dist/index.js",
"exports": "./dist/index.js",
Expand All @@ -22,12 +22,12 @@
},
"dependencies": {
"@aws-sdk/client-s3": "^3.1045.0",
"@tus/utils": "^0.7.2",
"@tus/utils": "^0.7.3",
"debug": "^4.3.4",
"multistream": "^4.1.0"
},
"devDependencies": {
"@tus/server": "^2.4.0",
"@tus/server": "^2.4.7",
"@types/debug": "^4.1.12",
"@types/mocha": "^10.0.6",
"@types/multistream": "^4.1.3",
Expand Down
10 changes: 10 additions & 0 deletions packages/server/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @tus/server

## 2.4.7

### Patch Changes

- b4da88a: Allow HEAD requests for completed uploads after their original expiration deadline. Unfinished uploads continue to return 410 Gone after expiration.
- a7bfaa4: Finalize zero-length uploads before calling `onUploadFinish` or emitting `POST_FINISH`. Ordinary POST requests with `Upload-Length: 0` now call the store's `write` method with an empty stream at offset 0, so stores can complete the empty object.
- 4f7b9ad: Remove the unused `set-cookie-parser` dependency.
- Updated dependencies [15e647e]
- @tus/utils@0.7.3

## 2.4.6

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/server/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@tus/server",
"version": "2.4.6",
"version": "2.4.7",
"description": "Tus resumable upload protocol in Node.js",
"main": "./dist/index.js",
"exports": "./dist/index.js",
Expand All @@ -21,7 +21,7 @@
"test": "mocha './dist/test/*.js' --exit --timeout 30000"
},
"dependencies": {
"@tus/utils": "^0.7.1",
"@tus/utils": "^0.7.3",
"debug": "^4.3.4",
"lodash.throttle": "^4.1.1",
"srvx": "~0.11.15"
Expand Down
6 changes: 6 additions & 0 deletions packages/utils/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @tus/utils

## 0.7.3

### Patch Changes

- 15e647e: Define `KvStore.delete` to succeed for missing keys and implement it in `FileKvStore`.

## 0.7.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@tus/utils",
"version": "0.7.2",
"version": "0.7.3",
"description": "Internal utils for tus Node.js server and stores",
"main": "./dist/index.js",
"exports": "./dist/index.js",
Expand Down
8 changes: 4 additions & 4 deletions test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"./stores.test": "./dist/stores.test.js"
},
"dependencies": {
"@tus/file-store": "^2.1.1",
"@tus/gcs-store": "^2.0.1",
"@tus/s3-store": "^2.0.9",
"@tus/server": "^2.4.6"
"@tus/file-store": "^2.1.2",
"@tus/gcs-store": "^2.0.2",
"@tus/s3-store": "^2.1.0",
"@tus/server": "^2.4.7"
},
"devDependencies": {
"@types/mocha": "^10.0.6",
Expand Down