unstale

npm / @toon-format/toon

@toon-format/toon

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

12 breaking2 security11 new APIs and options2 performance3 behavior and defaults4 tooling34 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 434 changes

Breaking changes 7

  • 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

  • Strict decoding rejects indentation depth jumps.

    4.0.0release notes

  • Key folding and path expansion have been removed.

    4.0.0release notes

New APIs and options 4

Behavior and default changes 1

  • The decoder supports comment lines, and the encoder quotes strings beginning with #.

    4.0.0release notes

Fixes and other changes 22

  • 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

  • Decoding no longer falsely detects array headers for unquoted keys.

    4.0.0release notes

  • The decoder rejects inline content after fields-bearing headers.

    4.0.0release notes

  • Objects of uniform objects can use keyed tabular form.

    4.0.0release notes

  • The decoder rejects keyless headers outside root and list-item positions.

    4.0.0release notes

  • The encoder quotes numeric-like strings beginning with a plus sign.

    4.0.0release notes

  • Strict decoding rejects over-indented orphan lines and trailing root content.

    4.0.0release notes

  • A trailing carriage return is treated as part of the line terminator.

    4.0.0release notes

  • The decoder trims value tokens using U+0020 only.

    4.0.0release notes

@toon-format/toon 217 changes

Breaking changes 4

  • Strict mode now covers errors for §§6, 9.1, and 14.

    2.3.0release notes

  • Encoding emits the canonical empty-array form key: [].

    2.3.0release notes

  • Deprecated bare list item decoding logic has been removed.

    2.2.0release notes

  • Encoding for list-item objects was standardized to spec v3, which may change the encoded output.

    2.0.0release notes

Security 2

  • Encoding and decoding are hardened against prototype pollution.

    2.3.1release notes

  • TOON: Prototype pollution when decoding untrusted TOON input

    2.3.1security advisory

New APIs and options 2

  • Decode errors now throw ToonDecodeError, giving applications a specific error type to handle.

    2.2.0release notes

  • Adds a replacer function for encoding transformations and filtering.

    2.1.0release notes

Behavior and default changes 1

  • Supports the toJSON method for custom serialization.

    2.1.0release notes

Tooling 1

  • The CLI renders decode errors with line context, source, and a caret.

    2.2.0release notes

Fixes and other changes 7

  • Key-value rest is sliced at the key token end offset.

    2.3.1release notes

  • Quoted spans are treated as opaque during line classification.

    2.3.1release notes

  • Decoding now supports \uXXXX escapes as specified in §7.1.

    2.3.0release notes

  • Decoding rejects whitespace gaps in array headers, as required by §6.

    2.3.0release notes

  • Decoding rejects array headers with trailing content between the bracket and colon.

    2.2.0release notes

  • Empty-string keys in array headers are preserved across encoding and decoding.

    2.2.0release notes

  • Negative numbers with leading zeros are now rejected during decoding.

    2.2.0release notes

@toon-format/toon 18 changes

Breaking changes 1

  • The optional length marker [#N] is removed in favor of [N].

    1.0.0release notes

New APIs and options 2

  • Adds streaming decode functionality with event-based parsing.

    1.3.0release notes

  • Adds encodeLines for streaming encoding to TOON.

    1.1.0release notes

Performance 2

  • The CLI uses memory-efficient streaming for encoding.

    1.2.0release notes

  • Empty object checks are improved for better performance.

    1.0.0release notes

Behavior and default changes 1

  • Parsing now supports nested tabular arrays in list items with a bare hyphen, as specified in spec v2.1.

    1.4.0release notes

Tooling 1

  • Adds stream output for both encoding and decoding.

    1.3.0release notes

Fixes and other changes 1

  • Fixes encoding mixed-format arrays at the root level.

    1.1.0release notes

@toon-format/toon 0.92 changes

New APIs and options 1

Fixes and other changes 1

  • Path expansion now overwrites with the new value.

    0.9.0release notes

@toon-format/toon 0.81 changes

Fixes and other changes 1

@toon-format/toon 0.75 changes

New APIs and options 1

  • The SPEC was moved to @toon-format/spec, making it available as a separate package.

    0.7.1release notes

Tooling 2

  • The CLI supports stdin for input handling.

    0.7.2release notes

  • The CLI package is published under this name; developers should use it to access the CLI.

    0.7.0release notes

Fixes and other changes 2

  • Handling was fixed for empty list items and nested objects in list items.

    0.7.1release notes

  • The package is published under this name; developers should use it to access the package.

    0.7.0release notes

@toon-format/toon 0.61 changes

New APIs and options 1