chore(deps): update dependency typed-openapi to v2#135
Open
renovate[bot] wants to merge 1 commit intomasterfrom
Open
chore(deps): update dependency typed-openapi to v2#135renovate[bot] wants to merge 1 commit intomasterfrom
renovate[bot] wants to merge 1 commit intomasterfrom
Conversation
380ae27 to
1d30589
Compare
1d30589 to
8a92650
Compare
8a92650 to
fc16bfa
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^0.5.0→^2.0.0Release Notes
astahmer/typed-openapi (typed-openapi)
v2.2.4Patch Changes
5d58477: fix broken nullable in disriminated unionsv2.2.3Compare Source
Patch Changes
c40f9ad: Fix recursive record type generationv2.2.2Compare Source
Patch Changes
b564cd5: chore(BREAKING): rm tanstack local withResponse option cause useMutation cant infer the generics passed atthis 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
v2.2.1Compare Source
Patch Changes
e8526b5: fix: tanstack inference in some edge casesv2.2.0Compare Source
Minor Changes
04a41a6: feat: allow specifying overrides on any request fix: infer/narrow response with multiple json media typesfix: 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
v2.1.2Compare Source
Patch Changes
057e156: Fix type inference on success calls when not usingwithResponse: truewhile having multiple responses (ex:one for status 200 and another or status 304) with one that has a resulting schema of
unknownv2.1.1Compare Source
Patch Changes
2923a0f: Fix responseHeaders generation by inlining the type instead of referencing it.v2.1.0Compare Source
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
v2.0.2Compare Source
Patch Changes
f1f0e89: Allow any response type with media type containing application + jsonv2.0.1Compare Source
Patch Changes
e1de70a: Fix Schemas namespace missing for schema refs within parameter arrays #51#51
47243f1: Accept any response content type of '/' as successful response#52
abbab94: fix: Wrong codegen for additionalProperties #57 #578a4c6c9: - New CLI option allow generating a fetcher and a standalone API client file (matching the example inapi-client.example.ts).api.client.ts). -> This makes it easier to startusing the generated API clients
v2.0.0Compare Source
Major Changes
8f1eaa5: Add comprehensive type-safe error handling and configurable status codesSafeApiResponseandInferResponseByStatustypes that distinguish between success and error responses based on HTTP status codesTypedResponseErrorthat extends the native Error class to include typedresponse data for easier error handling
successStatusCodesanderrorStatusCodesarrays on the generated API client instance for runtime accessobject for advanced use cases
throwOnStatusErroroption to automatically throwTypedResponseErrorforerror status codes, simplifying error handling in async/await patterns, defaulting to
true(unlesswithResponseis set to true)
withResponseandselectFnparametersdataproperty for consistency--success-status-codesand--error-status-codesCLI optionsGeneratorOptionsnow acceptssuccessStatusCodesanderrorStatusCodesarrays--include-clientto control whether to generate API client types and implementation--include-client=falseto only generate the schemas and endpointsSuccessStatusCode/ErrorStatusCodetype and their matching runtime typed arraysThis release significantly improves the type safety and flexibility of generated API clients, especially for error
handling scenarios.
v1.5.1Compare Source
Patch Changes
4d21f2e: Allow transforming schema & endpoint names; automatically prevents generating reserved TS/JS keyords namesFix #90
v1.5.0Compare Source
Minor Changes
734c5d0: Add response headers in endpoint typesv1.4.5Compare Source
Patch Changes
0749aff: closes #85. Adds support for extended types with allOf.v1.4.4Compare Source
Patch Changes
326124b: closes: #82 by supporting enum without typev1.4.3Compare Source
Patch Changes
fb0fe07: closes: #79 by handling singleton enum of type numberv1.4.2Compare Source
Patch Changes
9f70b13: Ensure dir is created before generating filesv1.4.1Compare Source
Patch Changes
f367a04: Treat boolean values as literal in enumv1.4.0Compare Source
Minor Changes
dad912c: feat: add build-and-test github workflow0440b2b: add?:to get optional parameters instead of having to set those to undefineda718a33: Add CLI option--schemas-onlyto allow generation of only the schema without endpoints and api clientv1.3.2Compare Source
Patch Changes
ceb15f6: Export generateClientFiles fn (same used as in the CLI)v1.3.1Compare Source
Patch Changes
86a384f: add mutation selectFn + endpoint type-only property in .mutationv1.3.0Compare Source
Minor Changes
91b005f: add parenthesis to handle priority between union/intersectionthis fixes an issue where
(A | B | C) & Dwould be ambiguous and could be interpreted asA | B | (C & Dv1.2.0Compare Source
Minor Changes
ed15081: Rename .options to .queryOptionsv1.1.2Compare Source
Patch Changes
4846bc4: fix mutationOptions parameters typingsv1.1.1Compare Source
Patch Changes
73c1ef1: feat: mutationOptions + .mutation (if input is not available before)v1.1.0Compare Source
Minor Changes
f029e94: Fetcher is now expected to return a Response, so that the api client can have a .request method that returnsthe raw object
all methods (get post etc) will be parsed using the overridable "parseResponse" api client fn property
c1b9dcb: fix: anyOf to ts#31
Patch Changes
d7eda3d: rm AllEndpoints type2abc8b4: chore: export Fetcher type6dfbd19: fix: tanstack client output pathf66571d: chore: make "endpoint" a type-only property93bd157: better endpoint aliasda6af35: fix: unused QueryClient importv1.0.1Compare Source
Patch Changes
4a909eb: Fix CLI & package.json by removing CJS usagev1.0.0Compare Source
Major Changes
8ec5d0b: bump all depsMinor Changes
8ec5d0b: Add @tanstack/react-query generated client8ec5d0b: FixSchemas.nullreferences in TS output8ec5d0b: Better output when usingschema.additionalProperties, especially when specifyingadditionalProperties.typev0.10.1Compare Source
Patch Changes
dd91027: Move changesets to devDepsv0.10.0Compare Source
Minor Changes
be0ba5f: Bump @sinclair/typebox-codegen versionPatch Changes
739e5b5: Add options toMethodtype ingenerateApiClientfunction as fix for#55
v0.9.0Compare Source
Minor Changes
b122616: Add requestFormat property to endpoint schema.v0.8.0Compare Source
Minor Changes
d260cd4: Fix zod and yup runtime generated endpoint schema type errors due to long operationIdv0.7.0Compare Source
Minor Changes
cf83e52: Add type cast in ApiClient methods to match the desired typev0.6.0Compare Source
Minor Changes
c5daa58: Upgraded codegen dependency to provide newer runtime validator outputThis is a BREAKING CHANGE for valibot/yup users
Configuration
📅 Schedule: Branch creation - "before 9am on monday" in timezone Europe/Amsterdam, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.