cell_memory_firebase 1.0.0
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 updatedfirestore.rulesis 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.rulesfreezesgenerationon update and enforces the id grammar. - Breaking (CAS): the set branch requires
stored.generation == envelope.generation; every other present-document outcome isMemoryConflict(..., 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
StoreLifecycleis the admission and shutdown barrier (a call that enteredrunfinishes; a late call and a secondclosethrowStateError).MemoryCorruptis returned out of the transaction callback — a thrownMemoryCorruptinsiderunTransactionis a bug;FirebaseExceptionstays the only exception mapped toMemoryIoException.listfails closed: an id that fails the grammar fails the whole call and deletes nothing.