2026.08.13.1¶
Under the C++
RECORDheterogeneous strategy, nested sibling maps that fall back to a plain map no longer wrap every value in aLiteralizerRecordValuealias when all of their scalars share one concrete C++ type. The maps now render asstd::map<std::string, T>with bare values, and the alias (with its per-value wrappers) is only emitted when the widened scalars genuinely mix types. On C++14, whose fallback carrier wraps every widened value, the alias now always names the carrier type; it previously named the shared scalar type while the values were still carrier-wrapped, which emitted code that failed to compile.Under the Rust, Go, Kotlin, and Scala
RECORDheterogeneous strategies, nested sibling maps that fall back to a widened plain map now narrow to the concrete value type when all of their scalars share one type. Rust drops the generated single-variant value enum and rendersHashMap<&'static str, T>with bare values, Go rendersmap[string]T, Kotlin rendersMap<String, T>/mapOf<String, T>(...), and Scala rendersMap[String, T]. The widenedany/Any?/Any/ value-enum forms remain for widened maps whose scalars genuinely mix types.The Scala
RECORDheterogeneous strategy now returns its generatedcase classdeclarations viaLiteralizeResult.preamble, matching every otherRECORD-capable language, soLiteralizeResult.codeholds just the record literal and can be spliced into a surrounding collection literal. Previously the declarations were prepended tocode, which produced a syntax error in that embedding.wrap_in_file=Trueoutput is unchanged: the declarations still land inside the generatedobject.Under the Go, Java, and Kotlin
RECORDheterogeneous strategies, a list whose every element is rendered as one shared record type now uses that type as the list’s element type instead of widening: Go renders[]RecordN{...}, Java rendersnew RecordN[]{...}, and Kotlin renderslistOf<RecordN>(...). This applies both to a top-level list and to a list-valued record field, and to externally suppliedrecord_shape_namestypes. The widened[]any/Object[]/listOf<Any?>forms remain for lists that mix records with other values.Narrow empty nested maps from corresponding maps in sibling records.
Keep quotes around non-identifier Ruby hash keys in
SYMBOLentry style so keys containing punctuation, spaces, quotes, or no characters remain valid labels.Reject JavaScript integer literals outside the safe
Numberrange instead of emitting values that silently lose precision when parsed.Render finite Raku floating-point values with exponent syntax so they evaluate as
Numvalues and preserve negative zero.Preserve backticks around Swift
RECORDinitializer labels that are reserved words, includinginout, so generated initializers compile.Quote Scala keywords used as
RECORDcase-class field names so the generated declarations and constructor calls compile.Reject TOML integers outside the signed 64-bit range.
Reject Elm integer literals outside the exact JavaScript safe-integer range.
Preserve leading spaces in Java multiline string values.
Use Apache’s canonical archive to install the pinned Groovy release in lint CI.
Rust,GoandCppaccept arecord_map_value_typingconstructor argument choosing the value type of aRECORDstrategy field whose dict has no record shape of its own and so renders as a plain map. The defaultrecord_map_value_typings.NARROWkeeps today’s behavior, spelling the concrete type every widened scalar in that input shares.record_map_value_typings.WIDEalways spells the strategy’s value carrier instead –HashMap<&'static str, Value>,map[string]any, orstd::map<std::string, LiteralizerRecordValue>– so two inputs sharing one record shape declare the field identically and one input’s literals compile against the other input’s declaration.