Skip to content

Releases: colorfy-software/zfy

Release 1.0.0

14 Feb 10:04
Compare
Choose a tag to compare

1.0.0 (2022-02-14)

  • chore!: bump minimal zustand version (916a039)
  • refactor!: simplify createStore() type signature (e4b9867)
  • refactor!: use an array to provide stores to useRehydrate()/<PersistGate/> (5f751c5)
  • feat!: switch to zustand official persistence middleware (3b29dd6)
  • refactor!: remove lazy rehydration (55e6a96)

Features

  • add example app (eb3a5c0)
  • add store name to createStore() returned object (e82fe1f)
  • implement initStores() (f8e0b1b)
  • implement store.subscribeWithSelector() (dc019b6)
  • update example (41091c6)
  • update initStores() docs & tests (d933ae3)

BREAKING CHANGES

  • Updated the minimal zustand version accepted by zfy from 3.0.0 to 3.6.0.
  • createStore<StoresDataType, StoreNameType>() has been simplified to createStore<StoreDataType>(). In other words, createStore() only care about receiving the type of its data directly and nothing else anymore.
  • Now that each store can return its name (store.getState().name), we can switch from objects to using an array to provide stores to useRehydrate()/<PersistGate />.
  • The persistence feature will now be bound the zustand persistence middleware API itself. zfy's solution has been built when zustand did not provide that ability. Therefore, it has no reason to still exist now. This change also lead to the removal of initZfy() method as its not required anymore.
  • Remove the lazy rehydration feature for now as it's not properly working

Release 0.1.3

23 Apr 19:34
Compare
Choose a tag to compare

0.1.3 (2021-04-23)

Bug Fixes

  • add some placeholder values to default config to prevent crash on app mount (35831fa)
  • update types in package.json with correct path (d3dc3a6)

Release 0.1.2

23 Apr 15:23
Compare
Choose a tag to compare

0.1.2 (2021-04-23)

Bug Fixes

  • update npm version badge (87f51ac)

Release 0.1.1

23 Apr 15:08
Compare
Choose a tag to compare

0.1.1 (2021-04-23)

Bug Fixes

  • update README with quick examples in Usage section (7e9dccc)
  • update package.json (6d150fc)
  • update install instructions (7623377)

Release 0.1.0

23 Apr 14:11
Compare
Choose a tag to compare

0.1.0 (2021-04-23)

Features