3.2.0

(feat): Add generateEndpointMetadata configuration to generate endpoint metadata for each endpoints. When you use a callback function to generate headers or auth tokens, the endpoint metadata will be passed to the callback.

1const client = new Foo({
2 ...,
3 token: ({ endpointMetadata }) => {
4 // generate token based on endpoint metadata
5 }
6});

To enable this, set generateEndpointMetadata to true in the config of your generator configuration.

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

3.1.2

(fix): Pin msw dependency to 2.11.2 because newer version introduces jest/vitest compatibility issues.