Releases: tus/tus-node-server
Releases · tus/tus-node-server
@tus/s3-store@2.0.1
Patch Changes
- 011ac76: Fix offset being returned as
NaNwhen there are no S3 parts found
@tus/server@2.3.0
Minor Changes
- 6e5e57e: Update srvx
@tus/server@2.2.1
Patch Changes
- 7b719ea: Handle request cancellation gracefully on Node.js runtime
@tus/server@2.2.0
Minor Changes
- 1768b06: Introduce
exposedHeadersoption for custom Access-Control-Expose-Headers
@tus/server@2.1.0
Minor Changes
- a128e97: Use srvx for convert Node.js req/res to Request/Response. When using
server.handle()in a Node.js environment, you can now access the orignal req/res viareq.node.req/req.node.res.
Patch Changes
@tus/utils@0.6.0
Minor Changes
- 0f063d9: Change required Node.js version from 16 to 20.19.0
- f190875: -
POST_RECEIVE_V2has been renamed toPOST_RECEIVE. The deprecated version ofPOST_RECEIVEhas 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/server@2.0.0
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/Responseinstead ofhttp.IncomingMessage/http.ServerResponse. - The function version of the options
maxSize,generateUrl,getFileIdFromRequest,namingFunction,locker
also now useRequest/Response. - Your
onUploadCreateandonUploadFinishhooks no longer need to return the response object.- If you want to change the metadata in
onUploadCreateyou can returnPromise<{ metadata: Record<string, string> }>.
This will will internally merge the existing metadata with the new metadata. onUploadFinishcan 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_V2has been renamed toPOST_RECEIVE. The deprecated version ofPOST_RECEIVEhas 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
@tus/s3-store@2.0.0
@tus/gcs-store@2.0.0
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.