Skip to content

mobx-tanstack-query-api

0.58.0

Minor Changes

  • c85c803 Thanks @js2me! - add MockHttpResponse.fromEndpoint static method

Patch Changes

0.57.4

Patch Changes

  • 147e7c4 Thanks @js2me! - update deps to latest

  • 147e7c4 Thanks @js2me! - migrate to new fresh documentation (docusite)

  • e09d85c Thanks @js2me! - fix intercepting requests from mockEndpointRequest and stubEndpointThrow when endpoint is calling as function

  • 6c985e6 Thanks @js2me! - fix type guards for http response (cross realm)

  • 72e7644 Thanks @js2me! - migration npm publish to trusted gh actions

0.57.3

Patch Changes

0.57.2

Patch Changes

  • bd62a2e Thanks @js2me! - Fix cleanOutput wiping files when swagger fetch fails, add debug option

    • cleanOutput now runs after swagger fetch succeeds, preventing data loss when input URL is unreachable
    • Add debug option to show full error details (stack trace, cause chain) for troubleshooting
    • Error messages are now user-friendly and compact by default (no stack trace in output)

0.57.1

Patch Changes

  • 9845537 Thanks @js2me! - Do not wipe output when OpenAPI parsing fails; run cleanOutput cleanup only after swagger succeeds.

0.57.0

Minor Changes

Patch Changes

  • 2844ca3 Thanks @js2me! - Fix duplicate enum keys in Tag/Group when tag names differ only by casing or separators

0.56.3

Patch Changes

  • 52d1000 Thanks @js2me! - Fix data-contracts exclusion for externally-aliased types referenced from shared contracts

    Types with external prefixes (e.g. Openapi*DC) that are referenced by other shared contracts were incorrectly excluded from data-contracts.ts, causing import errors. The exclusion logic now iteratively checks cross-references and keeps such types in data-contracts. The logic was also extracted into a dedicated data-contract-exclusion utility with support for both string and array content types.

  • 3bb5a9e Thanks @js2me! - Update mobx-tanstack-query to ^7.1.1

0.56.2

Patch Changes

  • 9855578 Thanks @js2me! - Update swagger-typescript-api to ^13.11.1

0.56.1

Patch Changes

0.56.0

Minor Changes

  • e63677b Thanks @js2me! - Add top-level enumStyle codegen option (enum, union, const) forwarded to swagger-typescript-api for data contracts, and apply the same styles to Group / Tag in meta-info.ts with matching endpoint references.

Patch Changes

  • 6b73c4d Thanks @js2me! - Return the promise from Endpoint.invalidateQuery() so callers can await invalidation like with queryClient.invalidateQueries().

0.55.0

Minor Changes

  • 8454694 Thanks @js2me! - add Definements type to enhance internal typings by user

  • e63677b Thanks @js2me! - support enumStyle from swagger-typescript-api for internal codegen

Patch Changes

0.54.1

Patch Changes

  • 47e516c Thanks @js2me! - fixed codegen path prefix suffix (jsdoc comment)

  • 4cba0e7 Thanks @js2me! - update swagger-typescript-api to 13.9.3

  • a80d875 Thanks @js2me! - more user friendly catch exception during codegne

0.54.0

Minor Changes

  • #81 c819c75 Thanks @js2me! - Refactor endpoint query runtime: remove internal MobX reaction / lazyObserve from EndpointQuery and EndpointInfiniteQuery. State (params, uniqKey, dynamic options, response) is synced via a compact _sync model inside the options callback; the public response field is updated directly—fewer redundant writes and reaction-loop risk, and more reliable initialization order in derived classes (including function queryOptions and structural comparers).

  • #81 c819c75 Thanks @js2me! - Infinite queries: when mergePageParam is a string shortcut ('params' | 'body' | 'query' | 'headers'), pageParam must be an object; otherwise a documented error is thrown (minified #1 in production). Infinite-query docs now include an errors section with examples; tests expanded.

Patch Changes

0.53.0

Minor Changes

  • b57b661 Thanks @js2me! - added 'skip' for queryClient and httpClient codegen

Patch Changes

  • 63b58e2 Thanks @js2me! - sanitizing input param names for request to fix codegen

  • 63b58e2 Thanks @js2me! - support type: text in openapi

0.52.9

Patch Changes

0.52.8

Patch Changes

0.52.7

Patch Changes

  • 7e2ebb2 Thanks @js2me! - fixed codegen with wrong http status codes for HttpMultistatusResponse

0.52.6

Patch Changes

  • b0b4d53 Thanks @js2me! - passing endpointMeta to EndpointQueryMeta type

  • f655231 Thanks @js2me! - update swagger-typescript-api to 13.9.0 local fragment ref partial support

0.52.5

Patch Changes

  • f9a267a Thanks @js2me! - fixed external refs usage (e.g. gitlab refs)

0.52.4

Patch Changes

  • 3def9fa Thanks @js2me! - update all deps to mihor latest + swagger-typescript-api to 13.8.0

0.52.3

Patch Changes

  • caeaf56 Thanks @js2me! - missing forwarding hook from otherCodegenParams to codegen

  • d095ffa Thanks @js2me! - widen GenerateQueryApiParams types: removeUnusedTypes accepts boolean or options object (replacing narrow false / literal true in the public typings)

  • 8e94d54 Thanks @js2me! - fixed filterGroups and filterEndpoints leaking filtered-out routes/types into generated output:

    • filterGroups: operation-level alias types (e.g. Op*DataDC, Op*ErrorDC) of routes from filtered-out groups no longer appear in data-contracts.ts
    • filterEndpoints with outputType: 'endpoints-per-file' (with or without groupBy): filtered-out endpoints are no longer emitted into endpoints.ts, and their operation-level alias types no longer leak into data-contracts.ts
  • cf6cb86 Thanks @js2me! - fixed bug with not existed responses types in data contracts

  • 76813da Thanks @js2me! - add more log messages

0.52.2

Patch Changes

0.52.1

Patch Changes

  • ddbf7d1 Thanks @js2me! - fixed binary export local endpoint types

  • 4c3fbbb Thanks @js2me! - fix endpoint data/error alias generation and keep generated aliases out of shared data-contract exports

  • 2ebec4c Thanks @js2me! - allow chooseServer to return false to skip openapi server selection and omit baseUrl from servers

0.52.0

Minor Changes

  • 90026f2 Thanks @js2me! - passing swaggerSchema to all dynamic functions for codegen

  • d936b44 Thanks @js2me! - new chooseServer option to choose openapi server for route

0.51.1

Patch Changes

  • 96fb793 Thanks @js2me! - fixed circular updates due to react accessing

0.51.0

Minor Changes

  • c6d4ec4 Thanks @js2me! - improved isHttpResponse isHttpBadResponse with passing generic types (+ add unit tests)

0.50.0

Minor Changes

  • baa9d2a Thanks @js2me! - added ability to modify type suffix for all (default 'DC')

0.49.2

Patch Changes

  • c0687ca Thanks @js2me! - fixed removed endpoint only data contracts in files

0.49.1

Patch Changes

  • dd1fc10 Thanks @js2me! - fixed resolving duplicate output data contracts

0.49.0

Minor Changes

  • 0462f4d Thanks @js2me! - add warning about skipping codegen due to input missing

  • 0462f4d Thanks @js2me! - add moduleResolution for codegen

  • 03b9cd0 Thanks @js2me! - Add overrideRequestParams codegen option: a static Partial<FullRequestParams>, a non-empty string (inserted as a TypeScript expression in ...(<expr>),), or a (routeInfo: RouteBaseInfo) => … factory evaluated at codegen time. The result is spread into each generated endpoint params return value before ...requestParams, so runtime requestParams can still override those keys. Falsy values and whitespace-only strings emit nothing.

Patch Changes

  • 050927b Thanks @js2me! - fix yummies usage

  • 118f36b Thanks @js2me! - Add documentation link for zodContracts in GenerateQueryApiParams JSDoc (points to the codegen config guide).

0.48.1

Patch Changes

0.48.0

Minor Changes

0.47.0

Minor Changes

  • f9186b6 Thanks @js2me! - passing abortSignal to restorable testing utils

Patch Changes

  • f9186b6 Thanks @js2me! - fixed bug with incorrect work of captureInvalidations testing helper

0.46.0

Minor Changes

0.45.1

Patch Changes

  • 73d2be1 Thanks @js2me! - fixed MockHttpResponse handling dut to create .error .data

0.45.0

Minor Changes

0.44.0

Minor Changes

  • 30ffd01 Thanks @js2me! - Improved tmplData accepts objects for getRequestMeta, getEndpointMeta

  • fa1828e Thanks @js2me! - [docs] improve docs for options codegen

  • fa1828e Thanks @js2me! - improved meta info passing for requests and endpoints

0.43.1

Patch Changes

0.43.0

Minor Changes

  • 3abe927 Thanks @js2me! - [internal] update all deps to latest

  • eb45f85 Thanks @js2me! - enhance requestPathSuffix requestPathPrefix options

0.42.0

Minor Changes

  • 04be7f8 Thanks @js2me! - rewrite EndpointInfiniteQuery and toInfiniteQuery to solve problem with working with pageParam + add docs

  • 394cc3a Thanks @js2me! - update mobx-tanstack-query to 6.13.0

0.41.1

Patch Changes

0.41.0

Minor Changes

  • 6924304 Thanks @js2me! - improve zod contracts and runtime codegen based on it

0.40.1

Patch Changes

0.40.0

Minor Changes

0.39.1

Patch Changes

0.39.0

Minor Changes

  • c00b34f Thanks @js2me! - update swagger-typescript-api (binary types)

  • 5e2ec12 Thanks @js2me! - added appendRule function for zodContracts

0.38.2

Patch Changes

0.38.1

Patch Changes

  • a929d45 Thanks @js2me! - fixes zod contracts (recursive, better parsing)

0.38.0

Minor Changes

0.37.1

Patch Changes

  • 4ccb805 Thanks @js2me! - updated swagger-typescript-api to 13.3.1

0.37.0

Minor Changes

  • 7ad0ecc Thanks @js2me! - better processing fields: consumes, produces (pass more correct format, contentType fields)

  • 7ad0ecc Thanks @js2me! - more jsdoc content for endpoints

0.36.1

Patch Changes

0.36.0

Minor Changes

  • 2c461c9 Thanks @js2me! - [internal] update all deps to latest

  • db30774 Thanks @js2me! - update swagger-typescript-api (13.3.0) support paths/urls in refs

0.35.1

Patch Changes

  • 23844d6 Thanks @js2me! - fixed strange http response with non response input

0.35.0

Minor Changes

  • dcd89c9 Thanks @js2me! - better throw\catch errors during processing http response (HttpClient)

0.34.1

Patch Changes

0.34.0

Minor Changes

  • 67b8305 Thanks @js2me! - add HttpResponse as own class for http responses with using composition

0.33.1

Patch Changes

  • 12efd58 Thanks @js2me! - try to fix rewrite data error request fields for Response class instance

0.33.0

Minor Changes

  • c766f3d Thanks @js2me! - [internal] refresh dependecies (add new http status codes, update qs, yummies)

0.32.1

Patch Changes

  • 20e5099 Thanks @js2me! - fixed empty responses should ignore transforming response body

0.32.0

Minor Changes

  • 7bf4717 Thanks @js2me! - added ContentType object with predefined content types

Patch Changes

0.31.0

Minor Changes

0.30.0

Minor Changes

0.29.0

Minor Changes

  • 426365a Thanks @js2me! - added exclude parameter for invalidateEndpoints method in QueryClient

0.28.0

Minor Changes

  • aff5a80 Thanks @js2me! - [internal] update yummies to latest (7.x)

0.27.0

Minor Changes

  • b0e5192 Thanks @js2me! - added checkResponse() method for Endpoint

0.26.3

Patch Changes

  • 55b8ad9 Thanks @js2me! - error typings for multi status http response in queries

0.26.2

Patch Changes

  • 0307872 Thanks @js2me! - fix typings for multi status http response

0.26.1

Patch Changes

0.26.0

Minor Changes

  • 757b34f Thanks @js2me! - [internal] build modification (use vite)

Patch Changes

  • 4459943 Thanks @js2me! - try to fix bug #30 (missing shebang in the binary)

0.25.0

Minor Changes

0.24.0

Minor Changes

  • 058dc9c Thanks @js2me! - better support stringify the query params (use qs)

0.23.4

Patch Changes

0.23.3

Patch Changes

0.23.2

Patch Changes

0.23.1

Patch Changes

0.23.0

Minor Changes

  • 254588e Thanks @js2me! - added ability to filter type (filterTypes option)

Patch Changes

  • 2358aef Thanks @js2me! - fix sorting types with use mixinInput property

0.22.1

Patch Changes

0.22.0

Minor Changes

0.21.1

Patch Changes

0.21.0

Minor Changes

  • 22401be Thanks @js2me! - add ability to stay output dir (cleanOutput: false option)

0.20.0

Minor Changes

  • bdab7c3 Thanks @js2me! - added ToEndpointMutation and ToEndpointQuery utility types

0.19.1

Patch Changes

  • d9c58dc Thanks @js2me! - update yummies to latest (better treeshaking)

0.19.0

Minor Changes

  • b9d4f71 Thanks @js2me! - pass endpoint to request mehtod in HttpClient from Endpoint

0.18.1

Patch Changes

0.18.0

Minor Changes

  • a17a540 Thanks @js2me! - support new mobx-tanstack-query version (6.7.0)

  • a52efbe Thanks @js2me! - support newest version of @tanstack/query-core (5.90.2)

  • a52efbe Thanks @js2me! - support newest version of mobx-tanstack-query (6.8.2)

0.17.3

Patch Changes

0.17.2

Patch Changes

  • 5d10f8f Thanks @js2me! - added getParamsFromContext for Endpoint class

0.17.1

Patch Changes

0.17.0

Minor Changes

0.16.0

Minor Changes

  • 07786f7 Thanks @js2me! - update mobx-tanstack-query to latest (6.6.1)

0.15.0

Minor Changes

0.14.0

Minor Changes

  • c101099 Thanks @js2me! - update mobx-tanstack-query to latest (remove() methods and removeOnDestroy option)

0.13.3

Patch Changes

  • 880f119 Thanks @js2me! - fixed missing passing requestParams for endpoint queries/mutations

0.13.2

Patch Changes

  • 44da419 Thanks @js2me! - fixes missing doc links in api codegen params

0.13.1

Patch Changes

0.13.0

Minor Changes

Patch Changes

0.12.0

Minor Changes

0.11.0

Minor Changes

  • a355703 Thanks @js2me! - make queryClient and httpClient public for endpoint

Released under the MIT License.