Releases: tus/tus-node-server
@tus/[email protected]
What's Changed
- @tus/server: fix header exception when using a load balancer by @dmitriiz in #381
- @tus/server: handle non-ASCII file IDs by @mitjap in #385
- @tus/server: refactor and improve request validator by @Murderlon in #402
- Bump cookiejar from 2.1.3 to 2.1.4 by @dependabot in #383
- Bump http-cache-semantics from 4.1.0 to 4.1.1 by @dependabot in #393
New Contributors
Full Changelog: https://github.com/tus/tus-node-server/compare/@tus/[email protected]...@tus/[email protected]
@tus/[email protected]
What's Changed
- Fixes for new metadata structure by @Murderlon in #379
Full Changelog: https://github.com/tus/tus-node-server/compare/@tus/[email protected]...@tus/[email protected]
@tus/[email protected]
What's Changed
- @tus/server: use consistent code formatting in README.md by @yuriyyakym in #377
Breaking changes
- @tus/server: save decoded metadata in Upload model by @Murderlon in #376
The onUploadCreate
,onUploadFinish
, and all EVENTS
now expose upload.metadata
as an decoded object. Previously, you would get a large string.
// Previously in hooks and events
console.log(upload.metadata) // 'is_confidential,foo YmFy'
// Now (base64 values are decoded)
console.log(upload.metadata) // {is_confidential: undefined, foo: 'bar'}
New Contributors
- @yuriyyakym made their first contribution in #377
Full Changelog: https://github.com/tus/tus-node-server/compare/@tus/[email protected]...@tus/[email protected]
@tus/[email protected]
Breaking changes
- @tus/s3-store: add
s3ClientConfig
option by @Murderlon in #370
The options for the store and the options passed to the AWS S3 SDK used to live in the same root config.
You now have to pass the options you want to pass to the SDK explicitly via s3ClientConfig
.
const s3Store = new S3Store({
partSize: 8 * 1024 * 1024,
- bucket: process.env.AWS_BUCKET,
- region: process.env.AWS_REGION,
- accessKeyId: process.env.AWS_ACCESS_KEY_ID,
- secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY,
+ s3ClientConfig: {
+ bucket: process.env.AWS_BUCKET,
+ region: process.env.AWS_REGION,
+ accessKeyId: process.env.AWS_ACCESS_KEY_ID,
+ secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY,
+ },
})
Full Changelog: https://github.com/tus/tus-node-server/compare/@tus/[email protected]...@tus/[email protected]
@tus/[email protected]
What's Changed
- @tus/server: add Next.js example by @toddgeist in #364
- @tus/server: improve
getFileIdFromRequest
by @Murderlon in #367 - @tus/server: fix casing in forwarded headers by @Murderlon in #368
- @tus/server: document get handlers by @Murderlon in #369
New Contributors
- @toddgeist made their first contribution in #364
Full Changelog: https://github.com/tus/tus-node-server/compare/@tus/[email protected]...@tus/[email protected]
v1.0.0-beta.1
A brand new tus-node-server
- 🔒 Completely rewritten in TypeScript
- 📦 Split into separate packages
- 🪝New events and hooks system
- 📝 New elaborate docs with examples.
- ♾️ Many fixes and small new features
This is an aggregated GitHub release. After this releases will be published per package.
What's Changed
- Start TypeScript migration & new formatting and tooling by @Murderlon in #308
- Implement TS types properly & fix eslint errors by @Murderlon in #317
- Rename
getOffset
togetUpload
by @Murderlon in #318 - Make datastore a constructor option by @Murderlon in #328
- Rename File model to Upload by @Murderlon in #329
- Update node versions for CI by @Murderlon in #332
- Clean up
S3Store
by @Murderlon in #331 - Add the
Expiration
extension, implement it inFileStore
by @bypie5 in #320 - Respect forwarded headers by @Murderlon in #322
- S3Store: calculate optimal part size by @Murderlon in #335
- Fix log in
write
method ofFileStore
by @zhang3xing1 in #340 - Use
node-http-mocks
in tests by @Murderlon in #338 - S3Store: handle chunks under the minimum S3 part size by @Murderlon in #341
- Remove bucket existance check in S3 & GCS stores by @Murderlon in #342
- Overhaul the events and hook callback system by @Murderlon in #344
- Split packages & use monorepo setup with Turborepo by @Murderlon in #351
- Merge
1.x
intomaster
by @Murderlon in #352 - Different attempt to fix CI by @Murderlon in #354
- Improve all README's by @Murderlon in #360
New Contributors
- @bypie5 made their first contribution in #320
- @zhang3xing1 made their first contribution in #340
Full Changelog: https://github.com/tus/tus-node-server/compare/v0.9.0...@tus/[email protected]
v0.9.0
What's Changed
- Clarify example for Fastify by @piranna in #311
- Allow
credentials
instead of key/secret for the S3 store by @phillip-causing in #282
New Contributors
- @piranna made their first contribution in #311
- @phillip-causing made their first contribution in #282
Full Changelog: v0.8.1...v0.9.0
v0.8.1
What's Changed
Bug fixes
- Fix issue where there is no error checking bucket exists in GCSDataStore by @angelsk in #299
- Emit upload complete event when using creation-with-upload extension by @mitjap in #301
- Fix validation of upload-length header in patch handler by @mitjap in #303
Dependencies
- Revert "Bump tus-js-client from 2.3.1 to 3.0.0" by @mitjap in #302
- Bump aws-sdk from 2.1206.0 to 2.1227.0 by @dependabot in #305
- Bump @google-cloud/storage from 6.4.1 to 6.5.2 by @dependabot in #304
New Contributors
Full Changelog: v0.8.0...v0.8.1
v0.8.0
What's Changed
Breaking changes
Redesign stores for better separation of concerns by @mitjap in #186
FileStore
now accepts adirectory
instead ofpath
.
- new FileStore({ path: './files' });
+ new FileStore({ directory: './files' });
- DataStores don't emit events anymore, instead the request handlers do.
Bug fixes
- Fix creation-defer-length extension for all stores by @Murderlon in #297
- Fix too small parts with S3 datastore by @mitjap in #284
- GCS: ignore insufficient access error by @mitjap in #294
- Fix upload ID when using S3 store with Digital Ocean Spaces by @manelio in #296
Dependencies
- Bump @google-cloud/storage from 6.2.3 to 6.4.1 by @dependabot in #286
- Bump tus-js-client from 2.3.1 to 3.0.0 by @dependabot in #289
- Bump aws-sdk from 2.1166.0 to 2.1206.0 by @dependabot in #288
- Bump eslint-plugin-promise from 6.0.0 to 6.0.1 by @dependabot in #287
Meta
- Do not run GitHub Actions in parallel by @Murderlon in #298
New Contributors
Full Changelog: v0.7.1...v0.8.0
v0.7.1
What's Changed
- Correctly throw error in S3 store and check for file ID in GCSDataStore by @mitjap in #269
- S3Store: fix broken upload with deferred length or without metadata by @mitjap in #270
Meta
- GitHub Actions: allow PRs from forks to run with secrets by @Murderlon in #267
- GitHub Actions: Add
paths
topull_request_target
by @Murderlon in #268 - Try to fix GH Actions for PRs from forks again by @Murderlon in #271
- Fix actions checkout by @Murderlon in #280
- Fix eslint errors by @Murderlon in #279
Dependencies
- Bump @google-cloud/storage from 5.19.4 to 6.2.2 by @dependabot in #266
- Bump aws-sdk from 2.1125.0 to 2.1166.0 by @dependabot in #264
- Bump @google-cloud/storage from 6.2.2 to 6.2.3 by @dependabot in #277
- Bump supertest from 6.2.3 to 6.2.4 by @dependabot in #278
Full Changelog: v0.7.0...v0.7.1