From 4391ed23f994db8be743fc99b36a94fc361e6a93 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 17 Oct 2026 20:33:45 +0200 Subject: [PATCH] CHANGELOG: the old CultPhasor reader decodes zeros by default and throws under Disallow Co-Authored-By: Claude Opus 5.5 --- unity/org.gamecult.cultlib/CHANGELOG.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/unity/org.gamecult.cultlib/CHANGELOG.md b/unity/org.gamecult.cultlib/CHANGELOG.md index 7b0093d2..097fcada 100644 --- a/unity/org.gamecult.cultlib/CHANGELOG.md +++ b/unity/org.gamecult.cultlib/CHANGELOG.md @@ -7,9 +7,10 @@ All notable changes to this package are documented in this file. ### Breaking - `CultMathJson` writes `CultPhasor` as `{"cosine":..,"sine":..}` and still reads - the old `cos`/`sin` keys. A reader from before this change skips the new keys - and decodes zeros, so upgrade readers before writers. MessagePack bytes are - unchanged. + the old `cos`/`sin` keys. A reader from before this change does not know the + new keys: with default options it skips them and decodes zeros, and with + `UnmappedMemberHandling.Disallow` it throws. Upgrade readers before writers. + MessagePack bytes are unchanged. - CultCache refuses an unknown union arm on read and an unnamed union subtype on write. A payload whose arm key the union does not declare used to decode to `null` (and the next save wrote the loss back); a value whose type the union