Release notes
@openapi-chain/query
0.7.0
Minor Changes
- Align the version with
openapi-chain0.7.0. The adapter itself is unchanged. - The package README opens with the openapi-chain logo, a one-line summary and links to the integration guide on the documentation website.
0.6.0
Minor Changes
- 2c0d80e: Expose recursively readonly types for Query fetcher inputs and the input stored at the
end of operation keys. This matches the existing frozen runtime snapshots and prevents typed
fetchers from mutating cached request data. Annotate fetcher inputs with
ReadonlyQueryInput<T>or readonly fields; copy readonly arrays when forwarding them to generated operation types that require mutable arrays.
0.5.2
Patch Changes
- Align the version with
openapi-chain0.5.2. The adapter itself is unchanged. - Since
openapi-chain0.5.1, a fetcher that passes anOperationInputForvalue straight to an operation with an optional request body failed type checking. Upgradeopenapi-chainto 0.5.2 for the fix; this package does not depend on it.
0.5.1
Patch Changes
- 3542d64: Reject statically identifiable non-JSON input types when defining
createQuery(). Runtime validation remains responsible for values such as cycles,NaN, and explicitundefinedfields.
0.5.0
Package migration
- Rename the adapter package from
openapi-chain-queryto@openapi-chain/queryand align its version with the 0.5.0 release. Update dependencies andcreateQueryimports to@openapi-chain/query. - Move the package into
packages/querywith Turbo builds and independent ESM, CommonJS, declaration and browser bundle checks. The adapter remains free of runtime dependencies; install TanStack Query or SWR separately as needed. - Preserve the existing
createQueryAPI, immutable JSON input snapshots, TanStack Query cancellation forwarding, SWR fetchers and cache-key validation. This package migration introduces no additional query runtime behavior changes beyond those recorded in 0.2.0.
0.2.0
Minor Changes
- 7d3168b: Introduce a separate dependency-free query adapter with explicit operation keys, immutable JSON input snapshots, TanStack Query cancellation forwarding and SWR fetchers. Keep cache scope, retries, mutations and invalidation under application control.
Patch Changes
- ee9b70e: Reject
__proto__object keys in query inputs and prefixes before TanStack Query can hash them into another input's cache entry. Reject arrays with extra properties instead of silently discarding fetch inputs, and snapshot array elements by index.
