fix(encode): keep a []any of tables in the value-array form
Assisted-by: GLM 5.3
This commit is contained in:
@@ -71,6 +71,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
cannot be carried verbatim by the literal form: a run of three single quotes,
|
||||
a control character, or a lone carriage return. Such values previously
|
||||
produced output that did not re-parse.
|
||||
- A `[]any` holding only tables marshals in the value-array form with inline
|
||||
tables, keeping the type `Parse` produces for such an array. It previously
|
||||
took the `[[header]]` form, so a round-trip changed the value's type from
|
||||
`[]any` to `[]map[string]any`.
|
||||
- Decoding into a `uint` destination checks the type's platform width instead
|
||||
of only the fixed widths, so a 32-bit `uint` no longer truncates silently;
|
||||
decoding a finite float beyond the `float32` range is an overflow error
|
||||
|
||||
Reference in New Issue
Block a user