CultLib/packages/cultcache-rs/CHANGELOG.md
Meta Vens f54472e5fe Merge origin/main (cultcache-rs 0.3.1, the whole-store writer fix) into the C2a landing branch
The stamp functions (Rust refuse_unread_format, TS refuseUnreadFormat) are the single owner of the stamp rule, accept v1 and v3, and are called only from the one reader every whole-store write runs under the lock. The fix's header peek (TS refuseUnreadStoreBytes, peekHeader) is deleted. Its tests that v3 is refused and that a stampless file is healed are dropped; the reversal is a Breaking line in the Rust and TS CHANGELOGs. The 0xff-after-stamp test now runs over v1 and v3.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-23 00:44:59 +02:00

1.3 KiB

Changelog

All notable changes to cultcache-rs are recorded here, following Keep a Changelog. Earlier releases are recorded only in git history.

Unreleased

Breaking

  • A single-file store written as cultcache.store.v3 is read and written: a record that holds an element id (an owned list element with an [CultElementId] member, carried through every write) marks the store v3, and a v3 store is carried through a rewrite with its ids. A runtime from before this change refuses a v3 store by name.
  • A write over a file the reader refuses (a zero-byte file, a truncated store, a stamp this runtime does not read) refuses with CultCacheStoreUnreadable and leaves the file as it is. A whole-store write used to replace such a file. This reverses 0.3.1, where push_all replaced a file with no readable stamp (healing it); the stamp rule now has one owner, the reader every write asks under the lock, and it accepts v1 and v3 (0.3.1 refused v3).

[0.3.1]

Fixed

  • push_all reads the store's header under the lock and refuses a format this runtime does not read, with CultCacheStoreUnreadable UnsupportedFormat, leaving the file as it was. A file with no readable stamp is still replaced, so a whole write heals it.