2.6.3
(fix):
Include root variables in code snippet generation for client instantiation.
2.6.2
(chore):
Update form-data version to 4.0.4 to avoid vulnerability.
2.6.0
(feat):
Users can now pass in queryParams
as part of the request options.
2.5.1
(chore):
Update README.md generation to be more accurate
2.4.11
(chore):
Bump the docker image for the generator to node:22.12-alpine3.20
2.5.0
(feat):
Support uploading file-like types for binary upload endpoints (not multipart-form):
- Buffered types:
Buffer
,Blob
,File
,ArrayBuffer
,ArrayBufferView
, andUint8Array
- Stream types:
fs.ReadStream
,stream.Readable
, andReadableStream
(feat):
Users can configure metadata when uploading a file to a binary upload endpoint using the Uploadable.WithMetadata
type:
The filename
, contentType
, and contentLength
properties are optional.
Alternatively, users can use the Uploadable.FromPath
type to upload directly from a file path:
The metadata is used to set the Content-Length
, Content-Type
, and Content-Disposition
headers. If not provided, the client will attempt to determine them automatically.
For example, fs.ReadStream
has a path
property which the SDK uses to retrieve the file size from the filesystem without loading it into memory:
2.4.10
(fix):
Escape strings containing */
inside of JSDoc comments to avoid premature JSDoc block ending.
2.4.9
(fix):
Preserve trailing slash of URL and path if present
2.4.8
(fix):
Fix ts readme snippet where const was reassigned. Changed to let.
2.4.7
(fix):
Make sure extraDependencies
, extraPeerDependencies
, extraPeerDependenciesMeta
, and extraDevDependencies
are always merged into package.json.
This was previously fixed for shouldBundle: true
, but not for shouldBundle: false
(default).
All dependencies should now come through.
2.4.6
(fix):
Parse HTTP error bodies as JSON if the response content-type header is JSON, otherwise fallback to text.
(fix):
Fix bytes
fetcher test.
(fix):
Fix Jest configuration when a packagePath
is specified in generators.yml config.
2.4.5
(fix):
Make sure extraDependencies
, extraPeerDependencies
, extraPeerDependenciesMeta
, and extraDevDependencies
are always merged into package.json.
2.4.4
(fix):
Make the BinaryResponse.bytes
function optional because some versions of runtimes do not support the function on fetch Response
.
2.4.3
(fix):
Fix an issue where a property set to undefined
would not match with a property that is missing in the withJson
MSW predicate.