3.52.0

(feat): Enable generateSubpackageExports by default. Generated TypeScript SDKs now include subpackage export entries in package.json, allowing users to import subpackage clients directly (e.g., import { FooClient } from '@acme/sdk/foo'). This enables JavaScript bundlers to tree-shake unused subpackages, resulting in smaller bundle sizes. To opt out, explicitly set generateSubpackageExports: false in your generator config.

(feat): Add tree-shaking smoke test to verify that importing a single subpackage produces a significantly smaller webpack bundle than importing the full SDK.

3.51.6

(chore): In downloadFiles mode, install only the configured formatter/linter packages instead of the full dependency tree when outputting source files only. This replaces the ~1.8s full pnpm install with a targeted pnpm add of just the check:fix packages (e.g. @biomejs/biome, prettier, oxfmt, oxlint).

3.51.5

(fix): Fix duplicate identifier collision in serialization schemas when two different packages define types with the same name. The schema generator now tracks directly imported type names and switches to namespace imports when a collision would occur, preventing “Duplicate identifier” TypeScript errors in cross-package type references.

3.51.4

(fix): Add cache: "no-store" to streaming and SSE fetch requests to prevent Next.js from buffering streamed responses. The option is guarded by a cached runtime feature-detection so it is safely skipped in runtimes that do not support the cache RequestInit option (e.g. Cloudflare Workers).

3.51.3

(fix): Fix duplicate case clauses in error handling switch statements when multiple errors map to the same status code. The generator now deduplicates errors by status code, keeping the first error for each status code.

(fix): Fix test generator to skip error examples whose status code is already handled by a prior error, matching the code generator’s deduplication behavior.

(fix): Fix test generator to include the error discriminant property (e.g., errorName) in mock response bodies for property-discriminated errors, so the generated switch statement can match the correct error case.

(fix): Fix inferred auth provider to handle endpoints without wrapped request types, preventing crashes during generation for non-wrapped endpoints.

3.51.2

(chore): Use generator-cli JS API directly instead of subprocess spawning. Remove generator-cli from Docker image since it is now bundled via esbuild.