toon_formater 1.0.2
toon_formater: ^1.0.2 copied to clipboard
Token-Oriented Object Notation (TOON) – A compact, deterministic JSON format for LLM prompts (Dart implementation)
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.0.2 2025-01-XX #
Fixed #
- Updated dependencies to latest compatible versions
- Fixed repository URL to point to package directory
- Improved documentation for code generation methods
1.0.1 2025-01-XX #
Fixed #
- Fixed unnecessary cast warnings in tabular array encoding
- Added
.pubignoreto exclude test output files
1.0.0 2025-01-XX #
Added #
- Initial release of TOON formatter for Dart/Flutter
encode()function to convert Dart objects to TOON formatdecode()function to parse TOON format strings- Support for all JSON types: primitives, objects, arrays
- Tabular array format for uniform object arrays
- Code generation support via
@ToonSerializableannotation - Comprehensive test suite (150+ tests)
- Performance benchmarks comparing TOON vs JSON
- Support for custom encoding options (indent, delimiter)
- String escaping and validation utilities
Features #
- Compact format: up to 44% smaller than JSON for structured data
- Fast decoding: up to 18,000x faster than JSON parsing
- Deterministic output for consistent LLM prompts
- Type-safe code generation for model classes