What's Changed
Compared with hooks2:2.2.1 (hooks2_2.2.1).
Hooks
- Add
useSsefor SSE and streaming connections. - Add the
useTableheadless table hook and declarativeTablecomponent, including sorting, filtering, grouping, expansion, row selection, column visibility, column sizing, and pagination support. - Add
useTableRequestfor paginated table requests, with fixes for cache keys, filter handling, and page-switch behavior. - Improve
useFormwith touched/dirty state, validation trigger control, submit handling, and expanded form instance/ref APIs. - Improve
useStateMachinewith action-only events, defect fixes, and expanded test coverage. - Fix
useRequestFetch/plugin behavior, nullable parameter handling, and related cache/polling cases. - Fix
useReducerstale closure issues,dispatchAsync,usePrevious, debounce/throttle timing, timeout/countdown behavior, and related edge cases.
AI Hooks
- Add
useChat,useGenerateObject,useAgent,useAsr, anduseTts. - Add multimodal input support, streaming parsing, JSON healing, tool calling, Anthropic Messages API support, and DeepSeek/MiMo reasoning-content compatibility.
- Add multi-provider support with load balancing, failover, provider metrics, retry configuration, and reusable HTTP engine abstractions.
- Add token usage tracking and update preset model IDs.
Build, Examples, and Docs
- Upgrade Kotlin, KSP, AGP, Gradle, Compose Multiplatform, navigation, and related dependencies; align JVM targets to 17.
- Add and update showcase examples for AI hooks, SSE, table, table requests, and existing hooks.
- Add broader test coverage for hooks, table features,
useRequestplugins, form behavior, and AI flows. - Expand documentation and local contributor/agent guidance.
Full Changelog: hooks2_2.2.1...v2.3.0