cell_memory 1.0.3
cell_memory: ^1.0.3 copied to clipboard
Durable memory cells for the Cell framework. File store. No Flutter.
1.0.3 #
- Rename the walk-through example to the canonical example/cell_memory.dart path that the pub.dev analyzer detects, completing the 160-point score.
1.0.2 #
- Add the walk-through (state + save + reopen hydration) so the package ships a runnable example and scores the full 160 pub points on pub.dev.
Memory (1.0.1) #
Patch release — dependency floor only, no API changes.
cell: ^3.1.0— the unified async error-pulse core release.
Memory (1.0.0) #
The first release of cell_memory: durable memory cells over pluggable
stores, in the domain-owned-value shape.
- Domain binding.
MemoryCell.open(domain, {id, store, codec, read, hydrate, project, restore, persistInitial, ttl, onConflict, ownsStore, ...}): the domain cell owns the value, the memory cell owns the record.valueis aMemorySnapshot(status, revision, generation, flags) — never aT. - One mailbox.
load,save,resolve,unload,attach,detach,close, andremoverun as turns on a single FIFO mailbox;close/unloadlatch admission and queued turns drain; every admitted command's future completes exactly once. A failedopenwith an owned store releases it. - Compare-based flush. Dirtiness is the codec's canonical payload
key against the stored baseline; writes compare-and-swap on
(revision, generation); retryableMemoryIoExceptions retry perMemoryWritePolicy.retry; immediate mode is the default with debounced+maxWait and explicit modes. - Conflict protocol.
fail/overwrite/adopt(default, needs hydrate)/mergepolicies,resolve(keepLocal|takeRemote|merge), TTL-vanished rows recreate once, andconflicted/resolved/failedevents report the path. - Store contract. Schema-2 envelope (
kinddropped; requiredcodecVersion, optionalexpiresAt/sourceCellId/meta; unknown keys and schema 1 areMemoryCorrupt), typed codecs with versions, migrations, and round-trip verification,MemoryDraft/MemoryVersion/MemoryStoreCapabilities/purgeExpired/retryable errors, and oneMemoryCas.deciderule engine shared by the in-memory, file, and Firestore stores. - Seams.
MemoryCell.allowfails closed for unknown objects, deputies can only narrow, andunmodifiableviews complete withUnsupportedErrorfutures. - Front doors.
remember/rememberStaterestore throughhydrateand follow the domain;restore/persistInitialcontrol the open; injectable clock and virtual-time scheduler for tests. - Firestore.
cell_memory_firebaseimplements the same contract:MemoryDraftwrites with the shared CAS decision inside the transaction,remove(ifVersion),purgeExpired, and schema-2firestore.rules.