toonizasion 1.0.1
toonizasion: ^1.0.1 copied to clipboard
A Dart implementation of Token-Oriented Object Notation (TOON), a compact and LLM-friendly data format.
Changelog #
All notable changes to this project will be documented in this file.
1.0.0 - 2026-04-11 #
Added #
- Core TOON Engine: Full implementation of the Token-Oriented Object Notation encoder and decoder for Dart.
- Deep Tabularization: Automatic flattening of nested uniform objects into single-line tabular headers (e.g.,
user.address.street). Achieves ~40% token savings on complex datasets. - Smart Sequences: Support for non-tabular lists of objects without markers, using "Duplicate Key" detection to identify item boundaries.
- Validation & Linting API: Added
validateToonandToonLintErrorto catch structural issues like inconsistent indentation or truncated arrays. - CLI Tool: A command-line utility for developers (
bin/toon.dart):validate: Quick structural check.lint: Inline error reporting with comments on problematic lines.decode: Parse and view resulting JSON structure.
- Improved Examples: Added
example.dart(simple hikes) andusers_example.dart(complex nested users) to demonstrate different output modes. - Documentation: Detailed
README.mdand a comprehensiveusage.mdguide.
Fixed #
- Type Fidelity: Fixed an issue where strings starting with numbers were misinterpreted as numeric types; these are now correctly quoted.
- Key Stability: Removed automatic alphabetical sorting of keys to preserve the original insertion order of the data.
- Indentation Strictness: Improved the decoder to be more graceful with root-level indentation in certain CLI edge cases.