Skip to content

Releases: astahmer/typed-openapi

typed-openapi@3.0.1

Choose a tag to compare

@github-actions github-actions released this 22 Jul 15:56
9b710e9

Patch Changes

  • 6150bd7: Stop installing runtime packages with the CLI; generated clients require only their selected runtime.

typed-openapi@3.0.0

Choose a tag to compare

Major Changes

  • Replace @sinclair/typebox-codegen with 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|strict controls 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-factory
    • openApiSchemaToTs / ts-factory / Sinclair TypeBox bridge helpers

    Peer dependencies (all optional): install only the runtime you generate for.

    Runtime Peer
    zod zod ^4
    zod3 zod ^3
    effect effect ^4 (built-in Schema)
    effect3 @effect/schema (+ nested effect ^3)
    valibot valibot ^1
    arktype arktype ^2 (also a hard dep for CLI validation)
    typebox @sinclair/typebox
    typia typia

typed-openapi@2.2.7

Choose a tag to compare

@astahmer astahmer released this 01 Jun 08:29
e28fdc5

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

Choose a tag to compare

@github-actions github-actions released this 28 Oct 10:46
94a8848

Patch Changes

  • c40f9ad: Fix recursive record type generation

typed-openapi@2.2.2

Choose a tag to compare

@github-actions github-actions released this 02 Sep 09:22
473f234

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

Choose a tag to compare

@github-actions github-actions released this 01 Sep 15:26
ce0739d

Patch Changes

  • e8526b5: fix: tanstack inference in some edge cases

typed-openapi@2.2.0

Choose a tag to compare

@github-actions github-actions released this 28 Aug 21:58
efbef40

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

Choose a tag to compare

@github-actions github-actions released this 25 Aug 21:31
2b24b36

Patch Changes

  • 057e156: Fix type inference on success calls when not using withResponse: true while having multiple responses (ex:
    one for status 200 and another or status 304) with one that has a resulting schema of unknown

typed-openapi@2.1.1

Choose a tag to compare

@github-actions github-actions released this 25 Aug 17:28
0046d5d

Patch Changes

  • 2923a0f: Fix responseHeaders generation by inlining the type instead of referencing it.

typed-openapi@2.1.0

Choose a tag to compare

@github-actions github-actions released this 25 Aug 01:08
db7abfd

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: TypedHeaders

    refactor: rename+export success/error interfaces