d_serializer 1.1.0
d_serializer: ^1.1.0 copied to clipboard
Static JSON serializer with annotation-based generation for Dart
Changelog #
All notable changes to this project will be documented in this file.
1.1.0 - 2026-05-30 #
Added #
- New field formatter annotation
@Format(...):trim,uppercase,lowercasedate('yyyy-MM-dd'),date('iso8601')custom('X')withXFormatToJson/XFormatFromJson
- Date formatting/parsing helpers:
Serializer.formatDate(...)Serializer.parseDate(...)
- Formatter tests for supported patterns and error paths.
Changed #
- README expanded with formatter matrix, pipeline order, build-time validation rules, and custom formatter contract.
1.0.2 - 2026-05-29 #
Added #
- Static API usage path:
Serializer.toJson<T>()andSerializer.fromJson<T>(). - Annotation-driven generation with
@Serializable()and@JsonKey(). - Advanced annotation options:
@Serializable(strict, naming, discriminator, typeField, rename)@JsonKey(requiredKey, defaultValue, converter, unknownEnumValue, useEnumIndex)
- Support for additional types:
Uri,BigInt,Duration,Set<T>.
Changed #
- Expanded documentation and converter contract.
- Publication metadata alignment and package cleanup.