Releases: transloadit/node-sdk
Releases · transloadit/node-sdk
v4.1.2
v4.1.1
v4.1.0
Highlights
- Add
signalsupport tocreateAssembly()andawaitAssemblyCompletion()to cancel in-flight HTTP requests and TUS uploads; optionalonPollhook for early exit/watch flows. - Ship the new Clipanion-based
transloaditCLI withassemblies,templates,bills, andassembly-notificationscommands; adds--log-level,--endpoint,--single-assembly, and--concurrencyflags. - Fix file descriptor exhaustion by closing streams eagerly and recreating on demand; tighten lint rules.
- Dependencies: add runtime
dotenv; new CLI deps (clipanion,node-watch,p-queue,recursive-readdir).
Breaking changes
- None. SDK API remains backward compatible.
Notes
- Default
npm testnow runs full coverage including e2e; exportingTRANSLOADIT_KEY/TRANSLOADIT_SECRETis required for a green run.
v4.0.6
v4.0.0-18
v4.0.0-17
Remove accidental tsx dependency
v4.0.0-16
v4.0.0-5
Breaking:
- This module is now ESM.
gotupdated to v14.gotRetryoption no longer acceptsnumber. Instead use{ limit: 0 }. Seegotretryobject documentation.- Requires Node.js v20 or newer. (why not 18 LTS? Because 18 is end-of-life in a few weeks, by the time we make a final v4 release)
See also https://github.com/transloadit/node-sdk/releases/tag/v4.0.0-4
v4.0.0-4
Added:
- Add method for generating signed Smart CDN URLs #201
- Update
tus-js-clientto latest - Use Tus for all uploads #108
- Support Credential API #141
- support HTTP 429 rate limiting #217
Breaking:
- Improve errors #210 #211: Renamed
TransloaditErrortoApiError. Differences betweenTransloaditErrorandApiError:- Make sure errors thrown when status 200 but with
body.errorare also TransloaditError - Moved
TransloaditError.response.bodytoApiError.response - Removed
TransloaditError.assemblyId(can now be found inApiError.response.assembly_id - Removed
TransloaditError.transloaditErrorCode(can now be found inApiError.response.error ApiErrordoes not inherit fromgot.HTTPError, butApiError.causewill be thegot.HTTPErrorinstance that caused this error (except for when Tranloadit API responds with HTTP 200 anderrorprop set in JSON response, in which case cause will beundefined).
- Make sure errors thrown when status 200 but with
- Note that (just like before) when the Transloadit API responds with an error we will always throw a
ApiError- In all other cases (like request timeout, connection error, TypeError etc.), we don't wrap the error inApiError. - Remove list assembly notifications functionality #125 (already removed in backend)
- Remove createAssembly callback support #195
- Remove
isResumableoption #209 - Drop support for Node.js versions older than 18
form-dataupgraded from 3 to 4 - might cause some differences in behavior related to file uploads- Rewritten to Typescript and exported types might have changed