3.31.1

(fix): Fix generator to not generate CONTRIBUTING.md file if config.whitelabel is true.

3.31.0

(feat): Add generateSubpackageExports configuration option to enable direct imports of subpackage clients. This allows JavaScript bundlers to tree-shake and include only the imported subpackage code, resulting in much smaller bundle sizes.

Example:

1import { BarClient } from '@acme/sdk/foo/bar';
2
3const client = new BarClient({...});

To enable this feature, add the following configuration to your generators.yml file:

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