Some checks failed
CultMesh QUIC native / Build win32-x64 (pull_request) Has been skipped
CultMesh QUIC native / Build linux-x64 (pull_request) Has been skipped
CultMesh QUIC native / Release native binaries (pull_request) Has been skipped
CultMesh portability and performance / ubuntu-latest one-command multiplayer onboarding (pull_request) Has been cancelled
CultMesh portability and performance / windows-latest one-command multiplayer onboarding (pull_request) Has been cancelled
CultMesh portability and performance / ubuntu-latest reactive semantics and leases (pull_request) Has been cancelled
CultMesh portability and performance / windows-latest reactive semantics and leases (pull_request) Has been cancelled
CultNet cross-runtime interop / C# / TypeScript / Rust / Python / Kotlin (pull_request) Has been cancelled
CultMesh QUIC native / Verify committed binaries match SHA256SUMS (pull_request) Has been cancelled
tests/vectors/slot-nil was read by TS only. The Python reader accepts the same 15 rows and refuses the same 2 as the C# reference and rewrites the reference's bytes. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2.6 KiB
2.6 KiB
Changelog
Unreleased
Changed
msgpackis a hard dependency, aspyproject.tomldeclared it. The optional-import fallbacks and thecultcache-py[msgpack]extra they named (which never existed) are gone: a missing msgpack is anImportErrorat import.- The single-file store's
push,push_allanddeletetake the cross-process lock on<path>.lock(flock; LockFileEx over the whole file on Windows) across the read and the replace, waiting up tolock_timeoutseconds (30 by default,TimeoutErrorafter), and exclude the C#, Rust and TypeScript runtimes' writers. The staged file is<path>.tmp-<pid>-<uuid>, fsynced before the replace, with a directory fsync after it off Windows. A fixed<path>.tmpis no longer used.
Breaking
- A single-file store written as
cultcache.store.v3is 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 (
StoreUnreadableError, frompush,push_allanddelete) refuses and leaves the file as it is. A flush used to replace such a file. A write set cannot merge with a disk it cannot read, so the file is repaired or removed by its owner before the store writes again. - Added
StoreUnreadableError(aValueError) for a store file this runtime cannot read, andSchemaConflictError(aValueError) for a write the catalog cannot describe. A store is exactly three slots; a schema is never recovered from a record's payload. - The single-file writer derives the catalog from the records it writes: one entry per carried schema id, the registered entry over an arrived one, written as chosen and never merged. A cache stamps a record with its registered schema's id.
- Every registration refusal is now a
SchemaConflictError, aValueError, where it was aCultCacheError, aRuntimeError: registering a document type or a schema name twice no longer raises whatexcept CultCacheErrororexcept RuntimeErrorcatches. - Two documents that own one schema id are refused at registration (
SchemaConflictError). 2.0.1 accepted them. A document may still list another's id as compatible. - A loaded record resolves by its schema id first: the document that owns the id, else the one document that lists it as compatible; several listers and no owner refuse the record with
SchemaConflictError. The record's type name resolves it only when its schema id names no registered document. 2.0.1 resolved by the record's type name alone.