Skip to content

v0.1.1

Choose a tag to compare

@davidesantangelo davidesantangelo released this 18 Nov 17:06
· 8 commits to master since this release

Changed

  • Performance: Refactored Encoder to use StringIO and Decoder to use StringScanner for significantly improved performance and memory usage.
  • Architecture: Split Cton module into dedicated Cton::Encoder and Cton::Decoder classes for better maintainability.

Fixed

  • Parsing: Fixed an issue where unterminated strings were not correctly detected.
  • Whitespace: Improved whitespace handling in the decoder, specifically fixing issues with whitespace between keys and structure markers.

Added

  • Type Safety: Added comprehensive RBS signatures (sig/cton.rbs) for better IDE support and static analysis.
  • Tests: Expanded test coverage for validation, complex tables, mixed arrays, unicode values, and error cases.