Releases: astahmer/typed-openapi
Release list
typed-openapi@3.0.1
Patch Changes
- 6150bd7: Stop installing runtime packages with the CLI; generated clients require only their selected runtime.
typed-openapi@3.0.0
Major Changes
-
Replace
@sinclair/typebox-codegenwith a first-party Schema IR and pluggable runtime adapters.- Runtimes:
none|zod(v4) |zod3|effect(Effect Schema v4) |effect3(@effect/schema) |valibot|
arktype|typebox|typia - New CLI
--validation loose|formats|strictcontrols how deep OpenAPI constraints are applied - Subpath exports:
typed-openapi/runtimes,typed-openapi/runtimes/* - Dropped shipped yup / io-ts emitters (re-add via the adapter contract if needed); TypeBox/Typia ship again
Removed public exports (use Schema IR +
generateFile/ runtime adapters instead):Box/createBoxFactory/box-factoryopenApiSchemaToTs/ts-factory/ Sinclair TypeBox bridge helpers
Peer dependencies (all optional): install only the runtime you generate for.
Runtime Peer zodzod^4zod3zod^3effecteffect^4 (built-in Schema)effect3@effect/schema(+ nestedeffect^3)valibotvalibot^1arktypearktype^2 (also a hard dep for CLI validation)typebox@sinclair/typeboxtypiatypia - Runtimes:
typed-openapi@2.2.7
What's Changed
- fix: descriminated unions with nullable wasn't working by @ZoxDev in #119
- Version Packages by @github-actions[bot] in #120
- chore: update deps + format with oxc instead of prettier in CLI by @astahmer in #122
- Version Packages by @github-actions[bot] in #123
- fix: 4xx http code + oxfmt bundling by @astahmer in #124
- Version Packages by @github-actions[bot] in #126
- chore: setup oxfmt by @astahmer in #125
- fix: parameter $ref schema inlined instead of referencing named schema by @ptbrowne in #127
- Version Packages by @github-actions[bot] in #128
New Contributors
Full Changelog: https://github.com/astahmer/typed-openapi/compare/typed-openapi@2.2.3...typed-openapi@2.2.7
typed-openapi@2.2.3
Patch Changes
- c40f9ad: Fix recursive record type generation
typed-openapi@2.2.2
Patch Changes
-
b564cd5: chore(BREAKING): rm tanstack local withResponse option cause useMutation cant infer the generics passed at
this point so it doesnt have any effect on the output type (it works at runtime but desynchronized with its typing)chore: rename TypedResponseError -> TypedStatusError (happens on expected error status code) to distinguish it better
from TypedErrorResponse
typed-openapi@2.2.1
Patch Changes
- e8526b5: fix: tanstack inference in some edge cases
typed-openapi@2.2.0
Minor Changes
- 04a41a6: feat: allow specifying overrides on any request fix: infer/narrow response with multiple json media types
fix: properly handle mutation errors while retaining genericity on output based on mutationFn withResponse: true/false
feat: decodePathParams/encodeSearchParams/parseResponseData feat: allow passing overrides/withResponse even if there's
no endpoint parameters
typed-openapi@2.1.2
Patch Changes
- 057e156: Fix type inference on success calls when not using
withResponse: truewhile having multiple responses (ex:
one for status 200 and another or status 304) with one that has a resulting schema ofunknown
typed-openapi@2.1.1
Patch Changes
- 2923a0f: Fix responseHeaders generation by inlining the type instead of referencing it.
typed-openapi@2.1.0
Minor Changes
-
213f6ee: fix: make a union of multiple responses on the same status code (due to different media types)
refactor: remove Endpoint["response"] arbitrarly choosen "main" response in favor of listing all possible success code
refactor: responseHeaders now uses a Record<StatusCode, Headers> instead of simply being the typed headers of the
"main" response feat: TypedHeadersrefactor: rename+export success/error interfaces