From 103fb521c8124d56dd9b67efd59b9363a1748a7f Mon Sep 17 00:00:00 2001 From: Swimburger <3382717+Swimburger@users.noreply.github.com> Date: Wed, 24 Sep 2025 17:59:01 +0000 Subject: [PATCH] update changelogs --- .../cli-changelog/2025-09-22.mdx | 2 +- .../typescript/changelog/2025-09-24.mdx | 24 +++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/fern/products/cli-api-reference/cli-changelog/2025-09-22.mdx b/fern/products/cli-api-reference/cli-changelog/2025-09-22.mdx index 57a099503..614e22d32 100644 --- a/fern/products/cli-api-reference/cli-changelog/2025-09-22.mdx +++ b/fern/products/cli-api-reference/cli-changelog/2025-09-22.mdx @@ -7,7 +7,7 @@ ## 0.78.4 -**`(fix):`** Collapse any combination of optional and nullable to `optional>`. +**`(fix):`** Collapse any combination of optional and nullable to optional>. ## 0.78.3 **`(chore):`** Support IR v59 in the Rust SDK generator. diff --git a/fern/products/sdks/overview/typescript/changelog/2025-09-24.mdx b/fern/products/sdks/overview/typescript/changelog/2025-09-24.mdx index 3a438b8be..1a64d35d6 100644 --- a/fern/products/sdks/overview/typescript/changelog/2025-09-24.mdx +++ b/fern/products/sdks/overview/typescript/changelog/2025-09-24.mdx @@ -1,3 +1,27 @@ +## 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. +```ts +const client = new Foo({ + ..., + token: ({ endpointMetadata }) => { + // generate token based on endpoint metadata + } +}); +``` + +To enable this, set `generateEndpointMetadata` to `true` in the `config` of your generator configuration. +```yml +# In generators.yml +groups: + ts-sdk: + generators: + - name: fernapi/fern-typescript-sdk + config: + generateEndpointMetadata: true +``` + + ## 3.1.2 **`(fix):`** Pin `msw` dependency to `2.11.2` because newer version introduces jest/vitest compatibility issues.