source_gen 0.5.8
source_gen: ^0.5.8 copied to clipboard
Automatic sourcecode generation for Dart
0.5.8 #
- Add
formatOutputoptional parameter to theGeneratorBuilderconstructor. This is a lamda of the formString formatOutput(String originalCode)which allows you do do custom formatting.
0.5.7 #
- Support for package:analyzer 0.30.0
0.5.6 #
- Support for package:build 0.9.0
0.5.5 #
- Support package:build 0.8.x
- Less verbose errors when analyzer fails to resolve the input.
0.5.4+3 #
- Support the latest release of
pkg/dart_style.
0.5.4+2 #
- Use the new
logfield instead of the deprecatedbuildStep.logger
0.5.4+1 #
- Give more information when
dartfmtfails.
0.5.4 #
- Update to latest
build,build_runner, andbuild_testreleases.
0.5.3+2 #
- BugFix: Always release the Resolver instance, even when generation does not run
0.5.3+1 #
- Don't throw when running against a non-library asset and getting no LibraryElement
0.5.3 #
- Add matchTypes method. As with anything imported from /src/ this is use-at-your-own-risk since it is not guaranteed to be stable
- Internal cleanup
- Drop some unused utility methods
- Move cli_util to dev_dependencies
- Avoid some deprecated analyzer apis
- Syntax tweaks
- Drop results.dart which had no usages
0.5.2 #
- Use library URIs (not names) to look up annotations in the mirror system.
- Loosen version constraint to allow package:build version 0.6
- Fix a bug against the latest SDK checking whether List implements Iterable
0.5.1+7 #
- Generate valid strong-mode code for typed lists.
0.5.1+6 #
- Support the latest version of
pkg/build.
0.5.1+5 #
- Remove "experimental" comment in
README.md.
0.5.1+4 #
- Support
package:analyzer0.29.0
0.5.1+3 #
- Upgrade to be compatible with the breaking changes in analyzer 0.28.0
0.5.1+2 #
- Avoid calling
computeNode()while instantiating annotation values
0.5.1+1 #
- Support the latest version of
buildpackage.
0.5.1 #
- Added GeneratorBuilder option isStandalone to generate files that aren't part of source file.
0.5.0+3 #
- Fixed multi-line error output.
0.5.0+2 #
-
Remove an outdated work-around.
-
Make strong-mode clean.
0.5.0+1 #
- Support the latest version of
pkg/build.
0.5.0 #
-
Breaking: Switch to the
buildpackage for runningGenerators. This means that the top levelbuildandgeneratefunctions are no longer available, and have been replaced by the top levelbuild,watch, andservefunctions from thebuildpackage, and theGeneratorBuilderclass. Seetool/build.dart,tool/watch.dart, andtool/phases.dartfor usage.- Note that the
buildpackage is experimental, and likely to change.
- Note that the
-
Breaking: The build package provides an abstraction for reading/writing files via the
BuildStepclass, and that is now also provided toGenerator#generateandGeneratorForAnnotation#generateForAnnotatedElementas a second argument. -
Timestamps are no longer included in generated code.
-
There is no longer a need to specify the files related to an individual generator via
AssociatedFileSet. Simply use theBuildStepinstance to read and write files and thebuildpackage will track any files you read in and run incremental rebuilds as necessary.
0.4.8 #
-
Added support for
SymbolandTypein annotations. -
Improved error output when unable to create an instance from an annotation.
0.4.7+2 #
- Upgrade to
analyzer '^0.27.1'and removed a work-around for a fixedanalyzerissue.
0.4.7+1 #
- Upgrade to
analyzer '^0.27.0'.
0.4.7 #
JsonSerializableGeneratornow supports classes with read-only properties.
0.4.6 #
-
JsonSerializable: AddedJsonKeyannotation. -
Improved output of generation errors and stack traces.
-
Require
analyzer '^0.26.2'.
0.4.5+1 #
- Handle
nullvalues forListproperties.
0.4.5 #
JsonSerializable: add support forListvalues.
0.4.4+1 #
- Updated
README.mdto highlight thebuild_systempackage and de-emphasize Dart Editor.
0.4.4 #
-
Added
omitGenerateTimestampandfollowLinksnamed args tobuild. -
Added
followLinkstogenerate.
0.4.3+1 #
- Update tests to use a more reliable method to find the current package root.
0.4.3 #
-
Require Dart
1.12. -
Add implicit support for
.packages. If the file exists, it is used. If not, we fall back to using thepackagesdirectory. -
Support the latest releases of
analyzeranddart_stylepackages.
0.4.2 #
- Use
fromJsonif it's defined in a child field.
0.4.0+1 #
- Support the latest release of
analyzerandargs.
0.4.0 #
- Analysis no longer parses function bodies. This greatly speeds up generation, but it could break any usage that needs function bodies.
0.3.0+2 #
- Fixed
README.md.
0.3.0+1 #
- Updates for move to
dart-langorg on GitHub.
0.3.0 #
-
BREAKING Returning a descriptive value from
generate. -
BREAKING Fixed incorrectly named argument
omitGenerateTimestamp. -
JsonSerializable: Handledynamicandvaras field types.
0.2.4 #
- Added
associatedFileSettoGenerator. Allows a generator to specify that changes to any file in a directory next to a Dart source file can initiate a generation run.
0.2.3 #
-
Use
async *. Requires SDK >=1.9.0-dev.10 -
Protect against crash during code format.
0.2.2 #
-
Added
omitGenerateTimestamp(incorrectly spelled) named argument togeneratemethod. -
Generator.generateis now called with theLibraryElement, too.
0.2.1 #
-
Fixed critical bug affecting annotation matching. #35
-
Started using published
dart_stylepackage.
0.2.0+1 #
- Updated
README.mdwith new examples. - Fixed sub-bullet indenting in
CHANGELOG.md.
0.2.0 #
- BREAKING Moved and renamed JSON serialization classes.
- Added a
JsonLiteralgenerator. - Improved handling and reporting of Generator errors.
JsonGenerator- Learned how to use constructor arguments.
- Learned how to properly handle
DateTime.
0.1.1 #
- Support for parametrized annotations.
- Add named arguments to
JsonGenerator.
0.1.0+1 #
README.mdupdates.
0.1.0 #
- BREAKING
Generator.generateis now async – returnsFuture<String> - Big update to
README.md.
0.0.1 #
- Ready for experimentation.
0.0.0+1 #
- First play release.