1.4.0

(feat): You can now pass in headers to the root client. These headers will be merged with service and endpoint specific headers.

(internal): Reduce duplicate code generation by passing headers from the root client down to the subpackage clients.

1.3.2

(fix): Fix dynamic imports in the built dist/esm code.

1.3.1

(fix): MSW is used for generated wire tests, but inadvertently also captures real HTTP request, for example in integration tests. When the HTTP request does not match any of the configured predicates, it would throw an error, including in the unrelated integration tests. In this version MSW is configured to bypass instead of throw an error when HTTP requests do not match the configured predicates.

1.3.0

(feat): Add support for generating the full project when using the filesystem output mode.

1.1.1

(fix): Fix an issue where attempting to access a property with an invalid property name would lead to a broken output SDK.

1.2.4

(feat): Generate tests to verify the SDK sends and receives HTTP requests as expected. You can turn of these tests by setting generateWireTests to false in the config of your generator configuration.

1.1.0

(feat): Add support for HEAD HTTP method.

1.0.1

(fix): Fix property lookup in inherited schemas during snippet generation for object schemas.

1.0.0

(feat): This release changes the defaults for the following custom configuration in generators.yml.

OptionBeforeNow
inlineFilePropertiesfalsetrue
inlinePathParametersfalsetrue
enableInlineTypesfalsetrue
noSerdeLayerfalsetrue
omitUndefinedfalsetrue
skipResponseValidationfalsetrue
useLegacyExportstruefalse

To avoid breaking changes, explicitly set the options above with the Before values in the config of your generator in generators.yml.

(fix): When generating properties for interfaces and classes, we only surround the property name with quotes if necessary. In some cases where the property name wasn’t a valid identifier before, we now surround it with quotes too.

0.51.7

(fix): If an object extends an alias, the generator now visits the alias that is being extended (instead of throwing an error).

0.51.5

(fix): Fixed an issue with ts-morph where creating an ifStatement with empty conditions array caused errors in multipart form data handling.

0.51.3

(fix): Fix minor type issue for polyfilling Headers in Node 16 and below.

0.51.2

(fix): When uploading files, extract the filename from the path property if present on the given object. This will extract the filename for fs.createReadStream() for example.

0.51.1

(fix): Fallback to a custom Headers class implementation if the native Headers class is not available. Versions of Node 16 and below do not support the native Headers class, so this fallback is necessary to ensure compatibility.

0.51.0

(feat): Add rawResponse property to JavaScript errors.

1try {
2 const fooBar = await client.foo.bar("id", options);
3} catch (e) {
4 if (error instanceof FooError) {
5 console.log(error.rawResponse);
6 } else {
7 // ...
8 }
9}