Skip to content

4.0.0 - Oct 23, 2026

Latest

Choose a tag to compare

@github-actions github-actions released this 23 Oct 19:33
· 1 commit to master since this release
Immutable release. Only release title and notes can be modified.

https://pub.dev/packages/rx_storage/versions/4.0.0

Dependencies

  • Update dependencies:

    • rxdart_ext from ^0.3.0 to ^0.4.0.
    • stack_trace from ^1.10.0 to ^1.11.1.
  • Breaking: require Dart SDK >=3.0.0 <4.0.0; Dart 2 is no longer supported.

Changes

  • Breaking: enforce inheritance and implementation restrictions with Dart 3
    class modifiers:

    • Storage, TransactionalStorage, RxStorage, RxStorageLogger, and
      RxStorageLoggerEvent are now abstract interface classes. Implement these
      contracts instead of extending them.
    • RealRxStorage, RxStorageDefaultLogger, and RxStorageEmptyLogger are now
      base classes. Extend them to reuse their implementation, and mark subclasses
      as base, final, or sealed.
    • KeyAndValue, RxStorageError, and the concrete logger event classes are now
      final. Define custom logger events by implementing RxStorageLoggerEvent.
  • Breaking: remove the deprecated RxStorage.executeUpdate API and its
    RealRxStorage implementation. Use update with named arguments (key,
    decoder, transformer, encoder, and optional options) instead.

  • Breaking: Storage.readAll() and RxStorage.observeAll() now require
    an EntryDecoder<Key> callback and return maps of decoded values. The
    callback receives both the key and its stored value and supports asynchronous
    decoding. Pass (key, raw) => raw to retain the previous raw-value behavior.
    Null decoding results retain their keys; removed keys are omitted from maps.

  • Add the built-in InMemoryStorage<Key> adapter with synchronous and
    asynchronous encoder/decoder support. Encoded null values retain their keys;
    remove() deletes entries, and readAll() decodes a shallow entry
    snapshot into a new map.

Fixes

  • Reject queued writes with StateError on disposal instead of leaving their
    futures pending. Started operations can finish without further notifications
    or logs.
  • Retain asynchronous adapter initialization failures for later operations
    without emitting an uncaught error before the first operation starts.
  • Run external disposal cleanup at most once and share its result across
    concurrent and repeated dispose() calls.
  • Release idle write queues after synchronous task failures.

Docs

  • Clarify the README and illustrate stream emissions with a timeline diagram.
  • Exclude repository tooling, image prompts, and generated output from the
    published package.

What's Changed

Full Changelog: 3.0.0...4.0.0