2.10.1

(fix): Use autogenerated error examples if user does not provide error examples for generating wire tests.

2.10.0

(fix): Do not set a default Content-Type header when creating a HTTP response for wire test mocking.

(feat): Generate wire tests for HTTP endpoint error examples.

2.9.5

(feat): Introduce a custom configuration called exportAllRequestsAtRoot which exposes all request types through the root-level namespace.

2.9.4

(fix): Grab overrideable root header value from Client as default.

2.9.2

(fix): Do not throw an error if example properties are mismatched with the schema definition.

2.9.1

(fix): Introduce a custom configuration called flattenRequestParameters which collapses referenced bodies into the request instead of nesting under a body key.

Before:

1client.users.create({
2 userId: "...",
3 body: {
4 "name": "Joe Scott"
5 }
6});

After

1client.users.create({
2 userId: "...",
3 "name": "Joe Scott"
4});

2.8.4

(feat): Add flattenRequestParameters to the SDK generator config. flattenRequestParameters is a boolean that controls whether to flatten request parameters. When false (default), the legacy flattening logic is used. When true, the new flattening logic is used.

1# In generators.yml
2groups:
3 ts-sdk:
4 generators:
5 - name: fernapi/fern-typescript-sdk
6 config:
7 flattenRequestParameters: true

2.8.3

(fix): Set Authorization header for WebSocket connects when auth is available on the generated SDK client. This will happen regardless of whether the AsyncAPI server or channel is marked for auth.

(fix): Add support for inferred bearer authentication in WebSocket connects.

2.8.2

(feat): Log warning when noSerdeLayer is false and enableInlineTypes is true.

2.8.1

(fix): Properly assert responses in wire tests when the neverThrowErrors flag is enabled.

2.8.0

(feat): Choose to use pnpm or yarn as the package manager for the generated SDK. Configure this in generators.yml like so:

1# In generators.yml
2groups:
3 ts-sdk:
4 generators:
5 - name: fernapi/fern-typescript-sdk
6 config:
7 packageManager: pnpm

The default is yarn.