Skip to main content

cell_memory_firebase 1.0.2 copy "cell_memory_firebase: ^1.0.2" to clipboard
cell_memory_firebase: ^1.0.2 copied to clipboard

Cloud Firestore MemoryStore for cell_memory: durable Cell records in Firestore with transactions and compare-and-swap revisions. Flutter only.

1.0.2 #

  • Raise the Firebase floor to the latest majors (cloud_firestore ^7.0.0, firebase_core ^5.0.0, firebase_auth ^7.0.0) so every dependency constraint supports the newest stable release for the full 160-point pub.dev score.

1.0.1 #

  • Raise the Firebase floor to the supported majors (cloud_firestore ^6.0.0, firebase_core ^4.0.0) and add the walk-through Flutter example (example/) for the full 160-point pub.dev score.

Changelog #

Memory-Firebase (1.0.0) #

The first public release; the Unreleased notes from the protocol and store workstreams become this section. The breaking list: documents carry generation (frozen on update), kind == 'value' only, the canonical payload string, generation-matched set branches with MemoryConflict carrying stored, transaction outcomes returned rather than thrown, the shared StoreLifecycle shutdown barrier, and fail-closed list.

  • Breaking (protocol): documents carry generation (^[0-9a-f]{32}$); a document without one does not decode, and 0.1.0 rules reject writes from this change until the updated firestore.rules is deployed (ship both together). kind == 'value' only. The payload string is the canonical JSON (JsonPayloadKey.canonical), so a reversed-key retry matches the stored string. firestore.rules freezes generation on update and enforces the id grammar.
  • Breaking (CAS): the set branch requires stored.generation == envelope.generation; every other present-document outcome is MemoryConflict(..., stored: storedRow), returned out of the transaction callback. A stale generation after remove-and-recreate conflicts instead of winning the revision.
  • Breaking (stores): the shared StoreLifecycle is the admission and shutdown barrier (a call that entered run finishes; a late call and a second close throw StateError). MemoryCorrupt is returned out of the transaction callback — a thrown MemoryCorrupt inside runTransaction is a bug; FirebaseException stays the only exception mapped to MemoryIoException. list fails closed: an id that fails the grammar fails the whole call and deletes nothing.
0
likes
160
points
0
downloads

Documentation

API reference

Publisher

verified publisheropencell.dev

Weekly Downloads

Cloud Firestore MemoryStore for cell_memory: durable Cell records in Firestore with transactions and compare-and-swap revisions. Flutter only.

Repository (GitHub)
View/report issues

License

Apache-2.0, MIT (license)

Dependencies

cell_memory, cloud_firestore, firebase_core, flutter

More

Packages that depend on cell_memory_firebase