Skip to content

v3.2.1

Latest

Choose a tag to compare

@HelgeSverre HelgeSverre released this 08 Jul 15:56

Changes in v3.2.1

Patch release fixing a decoder round-trip regression introduced in v3.2.0.

Fixed

  • Decoder round-trip regression: quoted string values containing [ or { — for example k: "a[3]b", or log lines carrying ANSI escape sequences such as "�[31m…" — were misread as array headers and raised SyntaxException: Unterminated quoted string on decode, so the encoder's own output could not be decoded back. Header detection now locates the : separator and the [/{ markers outside quoted spans, so encoder output round-trips through Toon::decode() for every string value. The regression was introduced in v3.2.0; v3.1.0 was unaffected.

Internal

  • Added comprehensive bidirectional round-trip test coverage (tests/Spec/RoundTripSpecialStringsTest.php, tests/Spec/ComprehensiveRoundTripTest.php, tests/Spec/MalformedHeaderDecodeTest.php); line coverage raised from 90% to 96%.
  • Removed dead code (an orphaned validator cluster and unused DelimiterParser helpers) with no change to the public decode path.

Full Changelog: v3.2.0...v3.2.1