Skip to content

Releases: udecode/zustand-x

[email protected]

08 Jan 12:25
6bb9405
Compare
Choose a tag to compare

Patch Changes

[email protected]

05 Jan 19:07
fd4b351
Compare
Choose a tag to compare

Major Changes

  • #92 by @imarabinda

    • Added support for Zustand 4.5.0+.
    • mutative support. Pass mutative: true in the options.

    Migration Instructions

    Update the Store Initialization:

    1. Replace the old method of initializing the store with the new API.

      const store = createStore(
        () => ({
          name: 'zustandX',
          stars: 0,
        }),
        {
          name: 'repo',
          immer: true,
        }
      );

      or

      const store = createStore(
        {
          name: 'zustandX',
          stars: 0,
        },
        {
          name: 'repo',
          immer: true,
        }
      );
    2. Ensure to pass the configuration object with name and other options as needed.

    3. If your application relies on immer, enable it by passing immer: true in the configuration object.

      const store = createStore(
        () => ({
          name: 'zustandX',
          stars: 0,
        }),
        {
          name: 'repo',
          immer: true,
        }
      );
    4. With the new version, integrating middlewares has also changed. Here's how to upgrade your middleware usage:

      const store = createStore(
        middlewareWrapHere(() => ({
          name: 'zustandX',
          stars: 0,
        })),
        {
          name: 'repo',
          immer: true,
        }
      );

[email protected]

05 Jul 21:52
9054812
Compare
Choose a tag to compare

Patch Changes

[email protected]

18 Apr 21:15
e644c91
Compare
Choose a tag to compare

Patch Changes

  • #73 by @marbemac – Support partial state objects in the persist typings

[email protected]

29 Dec 12:32
22dab88
Compare
Choose a tag to compare

Patch Changes

[email protected]

10 Dec 16:32
8186cac
Compare
Choose a tag to compare

Patch Changes

[email protected]

08 Dec 10:40
Compare
Choose a tag to compare

Major Changes

  • #66 by @zbeyens
    • Rename @udecode/zustood package to zustand-x
    • createZustandStore: new alias for createStore

@udecode/[email protected]

08 Jul 16:35
b6aad93
Compare
Choose a tag to compare

Major Changes

  • #57 2b1dbeb Thanks @enchorb! - Upgraded zustand to version 4, bringing in several new features and improvements.
    • Deprecated types in zustand v4+ were addressed by including them in the package itself.
    • Upgraded immer to the latest version.
    • The upgrade to zustand v4 and immer introduces enhancements, bug fixes, and performance optimizations to your application.
    • Please make sure to review the official documentation of zustand v4 and immer for any additional changes and updates.

@udecode/[email protected]

08 Sep 19:49
7667b99
Compare
Choose a tag to compare

Patch Changes

@udecode/[email protected]

08 Sep 15:40
cd2b1e3
Compare
Choose a tag to compare

Patch Changes