3.52.6

(fix): Fix TypeScript generator crash when discriminated union discriminant values start with digits (e.g., “1foo”, “1bar”). The generated code now prefixes such identifiers with an underscore to produce valid TypeScript.

3.52.5

(fix): Fix Edge Runtime compatibility warning in Next.js. The runtime detection code previously used process.versions.node directly, which caused Next.js bundlers (Turbopack/webpack) to emit “A Node.js API is used which is not supported in the Edge Runtime” warnings during static analysis, even though the code path was guarded by an Edge Runtime check. The fix assigns process to a local variable first, preventing bundlers from flagging the indirect property access.

3.52.4

(fix): Fix publint warning for ambiguous types in package.json exports. Remove the top-level types condition from export entries in package.json so that import and require conditions each resolve to their own correctly-typed declaration file (.d.mts for ESM, .d.ts for CJS). This eliminates the publint warning about CJS types being used when resolving with the “import” condition.

3.52.3

(fix): Handle nullable header types by converting null to undefined. HTTP headers don’t have a “null” concept — they’re either present with a value or absent. When a header’s type is nullable (explicitly via nullable: true in the spec), the generated code now wraps the value with ?? undefined to ensure null values are treated as “don’t send the header” instead of causing type errors.

3.52.2

(fix): Fix biome formatting not being applied in github output mode. The generator was calling checkFix() (biome) without first installing biome, causing formatting to silently fail. Now installs checkFix dependencies when tools are not globally available, matching the existing behavior in downloadFiles mode.

3.52.1

(feat): Add JSDoc availability annotations for SDK endpoint methods. Endpoints marked as deprecated in the Fern definition now generate a @deprecated JSDoc tag, causing IDEs to show strikethrough and deprecation warnings. Endpoints marked as in-development or pre-release generate a @beta JSDoc annotation. This applies to all endpoint types (default, file download, and streaming).