Releases: cubux-net/effector-persistent
Releases · cubux-net/effector-persistent
v0.8.0
v0.7.0
v0.6.0
- BREAKING: Drop Node < 18.
- BREAKING: Require
effector@^23. Using^23range rather than>=as
before. Upgrade to new Effector API, dropping previous versions. This cause
the following changes:WithPersistentFlushEventonFlushStart,onFlushDone,onFlushFailandonFlushFinallywas changed fromEventtoEventCallable.wakeUp: AStorecase was changed toStoreWritable.
- Both
withPersistent()andwithPersistentMap()changed their 1st argument fromStoretoStoreWritable.
- BREAKING: Require
@cubux/storage-driver@^0.4 - Add: Allow TypeScript 5 in
peerDependencies.
v0.5.0
v0.4.0
- BREAKING:
withPersistentMap()now requires the given Driver to beStoreDriverrather thenStoreDriverMappedas before. This is how it should to work, but it wasn't before. - Fix:
withPersistentMap()now tracks changed elements in underlyingMapand writes to Driver only what was changed. Before this a wholeMapwas sent to overwrite on every update.
v0.3.0
- BREAKING: Bump
effectorinpeerDependenciesto~20.4.0 || >=21forguard(). - May be BREAKING: Prevent unnecessary writing to Driver when it's triggered on "wake up" phase.
- Add: Option
readOnlyof typeStore<boolean>to disable writes to storage. - Add: Options
onFlushStart,onFlushDone,onFlushFailandonFlushFinallyto track flushes into Driver.
v0.2.0
- 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
peerDependenciesfor@cubux/storage-driver. - Upd: Interface
WithPersistentOptionsis now generic with 3 optional type parameters. - Add: Options
serializefor serialization before writing to driver andunserializefor unserialization after reading from driver. - Add: Option
wakeUpto set alternative target which will receive initial state read from driver on initialization.