Skip to content

v1.0.0

Latest

Choose a tag to compare

@mikhaelesa mikhaelesa released this 29 Jun 09:09
· 1 commit to main since this release
b3c3d27

Release Summary: Store v1.0 - Async Action Support

We are excited to announce the release of Store v1.0, which includes robust support for asynchronous actions, enhancing the flexibility and power of state management in your applications.

Key Features:

Async Action Support:

The Store class now supports asynchronous actions, allowing you to perform async operations (e.g., API calls) seamlessly within your state management logic.
Asynchronous actions can be defined using async functions, enabling straightforward handling of complex state changes that depend on external data or processes.

Type Safety:

Our implementation ensures type safety, maintaining strong TypeScript support for both synchronous and asynchronous actions.
Type definitions (IStoreConfigs, TAction, TSubscriber, TMiddleware) have been updated to accommodate async actions without compromising on type safety.

Middleware Integration:

Middleware continues to operate seamlessly with async actions, allowing you to intercept, modify, or log actions as needed.
The middleware chain correctly handles asynchronous operations, ensuring that your middleware logic remains consistent and reliable.

Subscriber Notifications:

Subscribers are notified of state changes triggered by async actions, ensuring that your UI and other dependent components are always in sync with the latest state.
The notify method ensures subscribers receive updates once the async action completes and the state is updated.

Backward Compatibility:

Existing synchronous actions and their dispatch mechanisms continue to work without any modifications, ensuring a smooth transition to v1