Skip to content

v2.3.0

Latest

Choose a tag to compare

@junerver junerver released this 18 Jun 00:40

What's Changed

Compared with hooks2:2.2.1 (hooks2_2.2.1).

Hooks

  • Add useSse for SSE and streaming connections.
  • Add the useTable headless table hook and declarative Table component, including sorting, filtering, grouping, expansion, row selection, column visibility, column sizing, and pagination support.
  • Add useTableRequest for paginated table requests, with fixes for cache keys, filter handling, and page-switch behavior.
  • Improve useForm with touched/dirty state, validation trigger control, submit handling, and expanded form instance/ref APIs.
  • Improve useStateMachine with action-only events, defect fixes, and expanded test coverage.
  • Fix useRequest Fetch/plugin behavior, nullable parameter handling, and related cache/polling cases.
  • Fix useReducer stale closure issues, dispatchAsync, usePrevious, debounce/throttle timing, timeout/countdown behavior, and related edge cases.

AI Hooks

  • Add useChat, useGenerateObject, useAgent, useAsr, and useTts.
  • 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, useRequest plugins, form behavior, and AI flows.
  • Expand documentation and local contributor/agent guidance.

Full Changelog: hooks2_2.2.1...v2.3.0