Skip to content

Releases: cubux-net/effector-persistent

v0.8.0

22 Jul 13:05
3971f41
Compare
Choose a tag to compare
  • Add: onBeforeWakeUp and onAfterWakeUp callback options.

v0.7.0

17 Dec 04:07
9a95e6a
Compare
Choose a tag to compare
  • Fix: Both withPersistent() and withPersistentMap(), when wakeUp options is defined, now allow a Store rather then StoreWritable.

v0.6.0

11 Dec 14:56
bb8282a
Compare
Choose a tag to compare
  • BREAKING: Drop Node < 18.
  • BREAKING: Require effector@^23. Using ^23 range rather than >= as
    before. Upgrade to new Effector API, dropping previous versions. This cause
    the following changes:
    • WithPersistentFlushEvent
      • onFlushStart, onFlushDone, onFlushFail and onFlushFinally was changed from Event to EventCallable.
      • wakeUp: A Store case was changed to StoreWritable.
    • Both withPersistent() and withPersistentMap() changed their 1st argument from Store to StoreWritable.
  • BREAKING: Require @cubux/storage-driver@^0.4
  • Add: Allow TypeScript 5 in peerDependencies.

v0.5.0

23 May 12:49
015624f
Compare
Choose a tag to compare
  • Add: flushDelayed() options:
    • flushDelay now can be Store<number>;
    • filter - optional Store<boolean> to conditionally disable flushes.
  • Doc: flushDelayed() was not documented in README.

v0.4.0

13 Dec 03:46
Compare
Choose a tag to compare
  • BREAKING: withPersistentMap() now requires the given Driver to be StoreDriver rather then StoreDriverMapped as before. This is how it should to work, but it wasn't before.
  • Fix: withPersistentMap() now tracks changed elements in underlying Map and writes to Driver only what was changed. Before this a whole Map was sent to overwrite on every update.

v0.3.0

11 Dec 17:26
Compare
Choose a tag to compare
  • BREAKING: Bump effector in peerDependencies to ~20.4.0 || >=21 for guard().
  • May be BREAKING: Prevent unnecessary writing to Driver when it's triggered on "wake up" phase.
  • Add: Option readOnly of type Store<boolean> to disable writes to storage.
  • Add: Options onFlushStart, onFlushDone, onFlushFail and onFlushFinally to track flushes into Driver.

v0.2.0

09 Sep 16:40
Compare
Choose a tag to compare
  • BREAKING: Remove generic type parameter 3 in withPersistent() call.
  • BREAKING: Remove generic type parameter 3 in withPersistentMap() call.
  • Fix: Improve type inference in withPersistentMap() call in some cases.
  • Fix: Update peerDependencies for @cubux/storage-driver.
  • Upd: Interface WithPersistentOptions is now generic with 3 optional type parameters.
  • Add: Options serialize for serialization before writing to driver and unserialize for unserialization after reading from driver.
  • Add: Option wakeUp to set alternative target which will receive initial state read from driver on initialization.

v0.1.0

06 Sep 04:06
Compare
Choose a tag to compare

First release.