Union guard: name an out-of-range or non-integer arm key, pin interface unions, name the schema on a variant refusal, changelog the exception type

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-10 23:48:49 +02:00
commit 3042757701
4 changed files with 204 additions and 6 deletions

View file

@ -12,6 +12,13 @@ All notable changes to this package are documented in this file.
does not name used to be written as `nil`. Both now throw, naming the union and
the key or type, and a store pull names the record key and schema id. Known arms
encode to the same bytes as before.
- A payload that fails to decode during a store pull (single-file or directory)
now throws `InvalidDataException` naming the record key and schema id, with the
original exception (for example `MessagePackSerializationException`) as its
`InnerException`. Callers that caught the codec's exception type around a store
open or pull must catch `InvalidDataException`. An arm key outside Int32 or not
an integer is refused with the same union-naming refusal, and a variant
override holding an unknown arm names the schema id.
## [1.0.60]