0.2.0
SunKit 0.2.0
SunKit 0.2.0 continues the pre-1.0 SwiftUI-first mobile server-state runtime direction. This release expands the SwiftUI adapter surface, improves infinite/paginated query behavior, and updates documentation around the 0.2 positioning.
Highlights
- Added
MutationBindingfor SwiftUI mutation flows. - Added examples demonstrating mutation-driven invalidation.
- Added convenience overloads for
QueryBinding. - Added a state-backed paginated query example and documented page ownership styles.
- Improved infinite query page refetch behavior.
- Updated README and DocC wording from the v0.1 preview positioning to the 0.2 line.
SwiftUI
@MutationBindingnow owns a stableMutationStateand readsQueryClientfrom the SwiftUI environment.- Paginated query docs now explain when the page should be owned by
PaginatedQueryBindingversus regular SwiftUI@State. - Examples now cover mutation invalidation and state-backed pagination patterns.
Core / Infinite Query
- Infinite query refetching now aligns loaded page behavior more clearly with the documented API semantics.
- Infinite query docs and tests were updated around accumulated page data and refetch behavior.
Documentation
- README and DocC now describe 0.2 as a SwiftUI-first, mobile Apple platform line.
- Completion-based fetcher cancellation and infinite/parallel query limitations are documented as outside the 0.2 API surface where relevant.
- Korean README link/path casing was corrected.
Not Included
The following remain outside the 0.2 scope:
- Process-global
QueryClientoptions - Disk persistence / offline mutation resume
- Optimistic updates
- UIKit observer
- Global
isFetching/isMutating
Installation
.package(url: "https://github.com/sunkeydokey/SunKit", from: "0.2.0")