data_class_plugin 1.0.0-tachyon.dev data_class_plugin: ^1.0.0-tachyon.dev copied to clipboard
A tool that uses Dart's Analyzer to generate code on-the-fly.
1.0.0-tachyon.dev #
-
Migrate to tachyon for code generation
- Tachyon is the initial implementation of the
data_class_plugin
but now it supports a plugin system, so a project can have multiple code generators usingTachyon
- Tachyon is the initial implementation of the
-
Generated code should remain the same
Breaking changes
-
data_class_plugin_options.yaml now only contains information about the data_class_plugin code generation
- Read about tachyon_config.yaml on how to migrate
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.
- Read about
- 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
- Improve from/to json in JsonKey (issue #234)
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 #
- Bug fix multiple part directives being added (issue #175)
- Add example for file generation mode (issue #177)
0.0.6 #
- Introduce new code generation mode: "file" (like build runner). See README
- Add CLI command (issue #156)
- Code cleanup
0.0.5 #
- General
- Update the supported versions of analyzer and analyzer_plugin (issue #143)
- Annotations
- Create enum annotation (issue #136)
- Configuration
- Add options for enums (issue #138)
- Add options for unions (issue #139)
- Update README.md (issue #139)
- Fix issue with the table of contents links
- Link sample project from meetup
- Testing
- Speed up contributor tests (issue #145)
- Add missing tests (issue #148)
0.0.4 #
- Update README.md (issue #130)
- Fix --no-warnings argument in Publish Package workflow (issue #128)
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 fromMap<String, dynamic>
toMap<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