Skip to content

1.4.0

Choose a tag to compare

@unadlib unadlib released this 14 Mar 01:05
· 576 commits to main since this release

coaction v1.4.0

This release includes core async-store improvements, compatibility fixes for the 1.x line, expanded browser E2E coverage, and a tooling refresh across the workspace.

Highlights

  • Added executeSyncTimeoutMs to coaction so async clients can control how long they wait for sequence catch-up before falling back to fullSync.
  • Preserved 1.x middleware and worker compatibility by keeping deprecated patch, trace, and workerType hooks/options available while introducing
    MiddlewareStore as the preferred middleware-facing type.
  • Kept sliceMode: 'auto' backward-compatible for object-of-functions inputs, while adding a development warning for that ambiguous shape and recommending explicit sliceMode usage.
  • Refactored getRawState internals into smaller modules without intended behavior changes.

Testing and CI

  • Expanded browser E2E coverage for middleware scenarios.
  • Added real browser E2E coverage for Web Worker and Shared Worker flows.
  • Wired browser E2E into the pull request workflow.
  • Migrated the repo lint workflow to ESLint and removed the legacy TSLint config.

Package Notes

  • @coaction/logger
    • Updated middleware typings to align with MiddlewareStore without changing runtime behavior.
  • @coaction/react
    • Clarified the continued use of use-sync-external-store/shim to keep a single build compatible with React 17, 18, and 19.
  • Other adapters and middleware packages
    • Aligned peer dependency ranges with coaction@^1.4.0.

Upgrade Notes

  • No breaking runtime changes are intended in the 1.x line.
  • If you create stores from an object whose enumerable values are all functions, set sliceMode explicitly to avoid the new development warning.
  • If you use async client stores under heavy load, consider configuring executeSyncTimeoutMs for your transport latency profile.

Full Changelog: v1.3.0...v1.4.0