Skip to content

v13.0.4

Choose a tag to compare

@maxholman maxholman released this 11 May 05:28
· 149 commits to master since this release

Breaking

  • Removed validateResponses config flag. Schema presence on the Command class is now the sole validation trigger. The flag was an unnecessary opt-in gate — if a Command has static responseSchema, responses are validated; otherwise they pass through unchanged.

This unlocks a dev/prod alias pattern for consumer.

A code generator (e.g. @block65/openapi-codegen v10.0.4+) can emit a lean commands.ts with no schema imports for prod bundles, and a parallel commands-validated.ts that subclasses with attached schemas for dev. Bundler-level alias swaps the import path between environments — no per-call config, no flag plumbing, valibot lazy-loads only when validation actually runs.

Migration

Drop validateResponses: true from RestServiceClient config. If you previously relied on the flag to disable validation, you can now skip attaching static responseSchema to the relevant Command instead.

Also

  • Added repo-level oxfmt config for formatter consistency.