Releases: tus/tus-node-server
Releases · tus/tus-node-server
@tus/[email protected]
Minor Changes
- 0f063d9: Change required Node.js version from 16 to 20.19.0
- f190875: -
POST_RECEIVE_V2
has been renamed toPOST_RECEIVE
. The deprecated version ofPOST_RECEIVE
has been removed. - 7a5a60d: Make this package ESM-only instead of CommonJS. Since Node.js >= 20.19.0 you can
require(esm)
so you can consume this package even if you don't ESM yourself yet.
@tus/[email protected]
Major Changes
- 0f063d9: Change required Node.js version from 16 to 20.19.0
- 51419da: - Introduce
handleWeb(req: Request)
to integrate into meta frameworks
(such as Next.js, Nuxt, React Router, SvelteKit, etc) and other Node.js compatible runtime environments.- All events and hooks now emit
Request
/Response
instead ofhttp.IncomingMessage
/http.ServerResponse
. - The function version of the options
maxSize
,generateUrl
,getFileIdFromRequest
,namingFunction
,locker
also now useRequest
/Response
. - Your
onUploadCreate
andonUploadFinish
hooks no longer need to return the response object.- If you want to change the metadata in
onUploadCreate
you can returnPromise<{ metadata: Record<string, string> }>
.
This will will internally merge the existing metadata with the new metadata. onUploadFinish
can returnPromise<{ status_code?: number headers?: Record<string, string | number> body?: string }>
- If you want to change the metadata in
- All events and hooks now emit
- f190875: -
POST_RECEIVE_V2
has been renamed toPOST_RECEIVE
. The deprecated version ofPOST_RECEIVE
has been removed. - 7a5a60d: Make this package ESM-only instead of CommonJS. Since Node.js >= 20.19.0 you can
require(esm)
so you can consume this package even if you don't ESM yourself yet.
Patch Changes
- Updated dependencies [0f063d9]
- Updated dependencies [f190875]
- Updated dependencies [7a5a60d]
- @tus/[email protected]
@tus/[email protected]
Major Changes
- 0f063d9: Change required Node.js version from 16 to 20.19.0
- 7a5a60d: Make this package ESM-only instead of CommonJS. Since Node.js >= 20.19.0 you can
require(esm)
so you can consume this package even if you don't ESM yourself yet.
Patch Changes
- Updated dependencies [0f063d9]
- Updated dependencies [f190875]
- Updated dependencies [7a5a60d]
- @tus/[email protected]
@tus/[email protected]
Major Changes
- 4a0fe1c: @google-cloud/storage@7 is now required as peer dependency.
- 0f063d9: Change required Node.js version from 16 to 20.19.0
- 7a5a60d: Make this package ESM-only instead of CommonJS. Since Node.js >= 20.19.0 you can
require(esm)
so you can consume this package even if you don't ESM yourself yet.
Patch Changes
- Updated dependencies [0f063d9]
- Updated dependencies [f190875]
- Updated dependencies [7a5a60d]
- @tus/[email protected]
@tus/[email protected]
Major Changes
- 0f063d9: Change required Node.js version from 16 to 20.19.0
- 7a5a60d: Make this package ESM-only instead of CommonJS. Since Node.js >= 20.19.0 you can
require(esm)
so you can consume this package even if you don't ESM yourself yet.
Patch Changes
- Updated dependencies [0f063d9]
- Updated dependencies [f190875]
- Updated dependencies [7a5a60d]
- @tus/[email protected]
@tus/[email protected]
Major Changes
- 0f063d9: Change required Node.js version from 16 to 20.19.0
- 7a5a60d: Make this package ESM-only instead of CommonJS. Since Node.js >= 20.19.0 you can
require(esm)
so you can consume this package even if you don't ESM yourself yet.
Patch Changes
- Updated dependencies [0f063d9]
- Updated dependencies [f190875]
- Updated dependencies [7a5a60d]
- @tus/[email protected]
@tus/[email protected]
Patch Changes
@tus/[email protected]
Patch Changes
- f47f371: Fix error on saving metadata when it contains non-ASCII characters
@tus/[email protected]
Patch Changes
- 06954ac: Don't use AbortSignal.any to fix memory leak in older Node.js versions and to not break version support.
@tus/[email protected]
Minor Changes
- 7db2f17: Add
maxMultipartParts
option. This can be used when using S3-compatible storage provider with different part number limitations.