Skip to content

@persevie/statemanjs@1.7.1

Latest
Compare
Choose a tag to compare

Added

  • Custom Comparators: Introduced support for custom comparator functions in the set and update methods. This allows developers to define how states should be compared, providing greater flexibility in state management.
  • Extended Subscription Options: Added new subscription options, including property-based notifications and notifyCondition callbacks. This enables more efficient state updates and reduces unnecessary recalculations or re-renders.
  • Enhanced Computed State API: Improved the createSelector function to accept additional configuration options, such as custom and default comparators. This ensures computed states are more efficiently managed.

Changed

  • Optimized Core Logic: Refactored the internal state management logic to improve performance, particularly in how state changes are tracked and handled. This includes the introduction of a proxy cache to reduce the overhead of accessing nested properties.
  • Improved Error Handling: Enhanced error handling mechanisms across the state management system, providing clearer feedback when issues occur during state updates or subscriptions.
  • Refined Update Process: The update process now better handles property changes, ensuring that only necessary updates trigger notifications to subscribers.

Fixed

  • Vulnerability Fixes: Addressed potential vulnerabilities in state management by tightening control over how state modifications are performed and by improving access controls.

This release focuses on improving the performance, flexibility, and security of the statemanjs library, offering developers greater control and efficiency in managing application state.