Releases: OpenAPI-Qraft/openapi-qraft
Releases · OpenAPI-Qraft/openapi-qraft
@openapi-qraft/[email protected]
Patch Changes
- Updated dependencies [8c77eb2]
- @openapi-qraft/[email protected]
@openapi-qraft/[email protected]
Major Changes
-
8c77eb2: Generate comprehensive operation names with consideration of the
--service-name-base
option. Operation names now
include all path parts and parameters, and the structure can be customized based on the--service-name-base
value.Breaking Changes:
- Operation names now include all path parts and parameters by default.
/api/v{api-version}
is no longer automatically removed from the path when generating operation names.- The
--service-name-base
option now influences the generated operation names with a new structure.
Examples:
- With
--service-name-base=endpoint[0]
:
POST /v1/users/{id}
→api.v1.postUsersId
- With
--service-name-base=endpoint[1]
:
GET /v1/users/{id}
→api.users.getId
- With
--service-name-base=endpoint[1]
:
POST /v1/users/suspend
→api.users.postSuspend
- With
--service-name-base=endpoint[1]
:
POST /v1/users/{id}/{key}
→api.postIdKey
- With
--service-name-base=tags
:
POST /v1/users/{id}/{key}
→api.<tag>.postV1UsersIdKey
This change provides more flexibility in operation name generation and allows for better customization based on project
requirements.
Patch Changes
- Updated dependencies [8c77eb2]
- @openapi-qraft/[email protected]
- @openapi-qraft/[email protected]
- @openapi-qraft/[email protected]
@openapi-qraft/[email protected]
@openapi-qraft/[email protected]
@openapi-qraft/[email protected]
Patch Changes
- 4ef9ce0: Clarified
FetchInfiniteQueryOptions
type to align with the latest TanStack Query version (5.56.2). - 78638a5: Extended TSDoc generation for existing
useQuery
,useMutation
,useInfiniteQuery
,useIsFetching
anduseIsMutating
hooks, now including detailed usage examples.- @openapi-qraft/[email protected]
@openapi-qraft/[email protected]
Patch Changes
- 4ef9ce0: Clarified
FetchInfiniteQueryOptions
type to align with the latest TanStack Query version (5.56.2). - 9dc1918: Simplified
TParams
type for conditional expressions. - 78638a5: Extended TSDoc generation for existing
useQuery
,useMutation
,useInfiniteQuery
,useIsFetching
anduseIsMutating
hooks, now including detailed usage examples. - 1168760: Marked
RequestFnPayload
as deprecated in favor ofRequestFnInfo
for a more descriptive and consistent API.- @openapi-qraft/[email protected]
@openapi-qraft/[email protected]
@openapi-qraft/[email protected]
@openapi-qraft/[email protected]
Patch Changes
- 9dc1918: Simplified
TParams
type for conditional expressions.- @openapi-qraft/[email protected]
@openapi-qraft/[email protected]
Patch Changes
- Updated dependencies [4ef9ce0]
- Updated dependencies [9dc1918]
- Updated dependencies [78638a5]
- @openapi-qraft/[email protected]
- @openapi-qraft/[email protected]
- @openapi-qraft/[email protected]
@openapi-qraft/[email protected]
@openapi-qraft/[email protected]
@openapi-qraft/[email protected]
Major Changes
- 5b64278: Refactored service method generation in OpenAPI Qraft v2 with improved DX, including full TSDoc support and optimized autocomplete performance.
Patch Changes
- @openapi-qraft/[email protected]