unstale

npm / @toon-format/toon

@toon-format/toon

What changed in @toon-format/toon 2 to 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-19.

5 breaking1 security3 new APIs and options14 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

@toon-format/toon 422 changes

Breaking changes 5

  • Normalizes sparse array holes to null during encoding.

    4.4.0release notes

  • Decoding rejects a bare token line outside root primitive position.

    4.1.0release notes

  • Encoding rejects unpaired surrogates and invalid delimiters.

    4.1.0release notes

  • Decoding omits leaf fields that have no cell instead of yielding undefined.

    4.1.0release notes

  • Ill-formed UTF-8 input now produces an error in strict mode.

    4.1.0release notes

New APIs and options 3

Fixes and other changes 14

  • Keeps usage output off stdout.

    4.4.0release notes

  • Fixes three decoder cases that diverged from the spec.

    4.4.0release notes

  • Updates the decoder to follow spec 4.2 rules.

    4.4.0release notes

  • When decoding with --no-strict, keeps the last duplicate key.

    4.4.0release notes

  • Quotes a root string that starts with U+FEFF.

    4.4.0release notes

  • Fixes how short option values are split.

    4.4.0release notes

  • CLI diagnostics are written to stderr so stdout contains results only.

    4.1.1release notes

  • File output now terminates its last line with a newline.

    4.1.1release notes

  • A raw string with a comment marker following a byte-order mark is rejected.

    4.1.1release notes

  • A tab-indented hash line is treated as content rather than a comment.

    4.1.1release notes

  • Decoding no longer truncates at a declared [N].

    4.1.0release notes

  • Decoding strips a byte-order mark and trailing spaces.

    4.1.0release notes

  • Accepts the indentSize option named by the spec.

    4.1.0release notes

  • A quoted colon is kept inside an unquoted key during decoding.

    4.1.0release notes

@toon-format/toon 21 changes

Security 1