npm zustand 5.1.0
v5.1.0

4 hours ago

The persist and devtools middleware are improved thanks to @Tnalxmsk and @dgesteves!

Release note

  • The persist middleware now supports PromiseLike results from storage reads, migrations, and migration writes. persist.rehydrate() now returns a native Promise<void>, which you can await to ensure hydration is complete.
  • The devtools middleware now supports dispatching store actions directly from Redux DevTools using the new actionCreators option. It also supports nested actions and arguments.

What's Changed

  • fix(middleware): persist migration supporting promise-like by @dai-shi in #3583
  • fix(middleware): devtools action dispatching by @dai-shi in #3595

Full Changelog: v5.0.16...v5.1.0

Don't miss a new zustand release

NewReleases is sending notifications on new releases.