Skip to main content

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

Cloud Firestore MemoryStore for cell_memory. Flutter only.

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
0
points
0
downloads

Publisher

verified publisheropencell.dev

Weekly Downloads

Cloud Firestore MemoryStore for cell_memory. Flutter only.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

cell_memory, cloud_firestore, firebase_core, flutter

More

Packages that depend on cell_memory_firebase