Repository navigation
Releases: jonathangaldino/kouch
Releases · jonathangaldino/kouch
Release list
Kouch 0.1.0
First release: a behavioral port of TanStack Query (@tanstack/query-core 5.104.3,
@tanstack/query-persist-client-core 5.104.3 and @tanstack/query-async-storage-persister 5.104.3). It is checked
by 176 scenarios that run against both TanStack and Kouch.
Added
Kouchcore:- Query keys, query state,
Query,QueryCache,QueryClientandQueryObserver, including
getOptimisticResultand anAsyncStreamof results. - Stale time, garbage collection, deduplication, retries and backoff, cancellation (including abort when the last
observer leaves) and invalidation. - Network modes and focus/reconnect refetching (
OnlineManagerbacked byNWPathMonitor,FocusManager). - Mutations:
Mutation,MutationCache,MutationObserver, scopes, and defaults set withsetMutationDefaults. - Infinite queries:
InfiniteQueryObserver,fetchInfiniteQuery,maxPages. QueriesObserverwithcombine.- Streamed queries:
streamedQuerywith the reset, append and replace modes. dehydrate/hydrate.- Persistence:
restore,save,subscribePersistence,persist, andStoragePersisterwith throttling and
removeOldestQueryretry. Storage options areFileQueryStorageandInMemoryQueryStorage. Persisted data is
Codableand decoded lazily. - Options:
meta, and function contexts carryingclient,metaandmutationKey.- Values computed per query:
StaleTime.dynamic,RefetchTrigger.dynamic,RefetchInterval.dynamic,
.enabled { },.initialData { }. retryOnMount,skipToken, andthrowOnErroron refetches.getQueriesData/setQueriesData,mutationCache.find.
- Query keys, query state,
KouchSwiftUI:.queryClient(_:)and.queryClient(_:persister:), which restores the cache before queries mount.@ObservedQuery,@ObservedSelectQuery,@ObservedInfiniteQuery,@ObservedQueries,@ObservedMutation,
@ObservedIsFetching,@ObservedIsMutatingand@ObservedMutationState.
Installation
.package(url: "https://github.com/jonathangaldino/kouch.git", from: "0.1.0")Thanks
Kouch is a behavioral port of TanStack Query. All of its behavior is TanStack Query's design, checked against the real implementation. Thank you, Tanner Linsley and every TanStack contributor.