cell_memory_firebase 1.0.2
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 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.