Skip to content

v0.2.0 – Comments, EncodeOptions & Better Errors

Choose a tag to compare

@manojrammurthy manojrammurthy released this 14 Nov 10:43
· 7 commits to main since this release

Added

  • EncodeOptions for configurable indentation and optional trailing newline in Toon::encode().
  • Comment support in decoder (# and //, both full-line and inline).
  • Improved DecodeException messages with line numbers and offending lines.

Notes

This should be backwards compatible with existing usage:

  • Toon::encode($data) still behaves the same.
  • New features are opt-in via EncodeOptions.