d_serializer 1.1.2 copy "d_serializer: ^1.1.2" to clipboard
d_serializer: ^1.1.2 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.2 - 2026-05-30 #

Added #

  • New complete example with semantic project structure under lib/example/.
  • End-to-end example coverage for:
    • nested models
    • lists, sets, and maps
    • enum fallback (unknownEnumValue)
    • @JsonKey(requiredKey/defaultValue/ignore/converter)
    • @Format.trim() + @Format.custom('TitleCase')
    • @Serializable(strict/naming/typeField/discriminator)

Changed #

  • example/example.dart now demonstrates a realistic model graph and production-like usage.
  • Analyzer configuration now excludes generated files (**/*.g.dart) from warnings.

1.1.1 - 2026-05-30 #

Fixed #

  • Example flow now uses generated initializeDSerializer() instead of per-model manual registration.
  • Packaging configuration cleaned up after local release validation (removed temporary dependency overrides).

Changed #

  • Release workflow documentation hardened with a pre-publish checklist.

1.1.0 - 2026-05-30 #

Added #

  • New field formatter annotation @Format(...):
    • trim, uppercase, lowercase
    • date('yyyy-MM-dd'), date('iso8601')
    • custom('X') with XFormatToJson / 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>() and Serializer.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.

1.0.1 - 2026-05-29 #

Added #

  • Initial static serializer API and registration mechanism.

1.0.0 - 2026-05-29 #

Added #

  • Initial release.
1
likes
70
points
97
downloads

Documentation

API reference

Publisher

verified publishertorogoz.tech

Weekly Downloads

Static JSON serializer with annotation-based generation for Dart

Repository (GitHub)
View/report issues

Topics

#serialization #json #codegen

License

MIT (license)

Dependencies

meta

More

Packages that depend on d_serializer