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

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

1.0.2 #

1.0.1 #

  • Update "analyzer" and "tachyon" versions

1.0.0 #

  • Stable release with Tachyon

1.0.0-tachyon.dev.5 #

  • Fix tools/analyzer_plugin dependency version of data_class_plugin

1.0.0-tachyon.dev.4 #

  • Fix automatic conversion for final fields on data classes

1.0.0-tachyon.dev.3 #

  • Update tachyon to 0.0.5

1.0.0-tachyon.dev.2 #

  • Fix tools/analyzer_plugin dependency version of data_class_plugin

1.0.0-tachyon.dev.1 #

Breaking changes:

  • Migration to Tachyon
  • Removed "In place" only code generation

Other:

  • Use sealed instead of abstract for unions if dart 3 is available

0.3.1 #

  • Add support for required positional arguments in Unions (issue #299)
  • Fix generic type constraints on data classes not providing code actions (issue #302)
  • Add better examples for file generation mode (issue #289)

0.3.0 #

  • Breaking change - Add support for deep copyWith (issue #277)
    • Read about resync CLI command as a way to automatically fix any breaking changes.
  • Added resync CLI command for a quick way to resync a whole project (issue #287)
  • Fix crash on File generation mode on windows in certain cases (issue #279)
  • Fix multiple part directives being added on files when the file contains a union class (issue #292)
  • Add better error messaging (issue #278)

Generic improvements #

  • Unified "Generate data class" and "Generate union class" actions
  • Now supports generics with constraints

0.2.2 #

  • Fix deepEquality crashing if Map key type was not a string (issue #265)
  • Fix this keyword string interpolation breaking compilation for dart 2.18.x (issue #267)
  • Add support for multiple UnionJsonKeyValue annotations for a factory (issue #270)

0.2.1 #

  • Add null value support on copyWith for nullable fields (issue #258)
  • Deprecate "in_place" mode
  • Set "file" mode as default option

0.2.0 #

  • Override runtimeType for generated classes (issue #228)
  • Simplify the json methods for primitive types (issue #231)
  • Fix nullable immutable collections (issue #227)
  • Remove union parameter in when/maybeWhen when union has no fields (issue #235)

Breaking change

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
19
likes
0
pub points
85%
popularity

Publisher

verified publisherptsakoulis.com

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

Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (license)

Dependencies

analyzer, analyzer_plugin, args, dart_style, file, glob, meta, path, tachyon, yaml

More

Packages that depend on data_class_plugin