data_class_plugin 0.1.0 copy "data_class_plugin: ^0.1.0" to clipboard
data_class_plugin: ^0.1.0 copied to clipboard

A tool that uses Dart's Analyzer to generate code on-the-fly.

0.1.0 #

  • Fixes a crash on file generation mode when adding a new dependency to a target file (issue #215)
  • Regenerate all dataclasses/unions in a file (issue #210)
  • Lower "path" dependency to version 1.8.2 (issue #214)

0.0.9 #

  • General
    • Update README.md
    • Update pub packages
    • Improve logging for file gen mode
  • Fixes/Enhancements
    • Add support for unmodifiable collections in file gen mode (issue #196)
    • Add constructor name option for file gen mode (issue #202)
    • Automatically convert final fields to getters (issue #200)
    • Update generated code for file gen mode (issue #198)
    • File gen watch mode not working on windows (issue #194)
    • Actions for unions in file gen mode are not updating code correctly (issue #191)
    • Fix nullability checks in toJson generation (issue #190)
    • Main union classes should be abstract (issue #188)
    • Missing '?' on nullable objects when generating 'toJson()' (issue #186)
    • Add override annotation on 'toJson' method when extending a class that has it (issue #184)
    • Fix error message for 'Exception: No json converter found for Type' (issue #181)

0.0.8 #

  • Bump data_class_plugin version in tools/analyzer_plugin

0.0.7 #

0.0.6 #

  • Introduce new code generation mode: "file" (like build runner). See README
  • Add CLI command (issue #156)
  • Code cleanup

0.0.5 #

0.0.4 #

0.0.3 #

  • Update README.md

0.0.2 #

Resolved issues

  • Fix enum assists not being displayed when there are no fields declared (issue #118)
  • Add // ignore: prefer_const_constructors on copyWith method if there no fields declared and constructor is const (issue #103)
  • Update fromJson json parameter type from Map<String, dynamic> to Map<dynamic, dynamic> (issue #120)
  • Fix Union assist creating a fromJson method instead of a factory constructor (issue #101)

Other changes

  • Updates for README.md
  • Updated examples

0.0.1 #

  • Initial release