- Support the latest release of
pkg/dart_style
.
- Use the new
log
field instead of the deprecatedbuildStep.logger
- Give more information when
dartfmt
fails.
- Update to latest
build
,build_runner
, andbuild_test
releases.
- BugFix: Always release the Resolver instance, even when generation does not run
- Don't throw when running against a non-library asset and getting no LibraryElement
- 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
- 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
- Generate valid strong-mode code for typed lists.
- Support the latest version of
pkg/build
.
- Remove "experimental" comment in
README.md
.
- Support
package:analyzer
0.29.0
- Upgrade to be compatible with the breaking changes in analyzer 0.28.0
- Avoid calling
computeNode()
while instantiating annotation values
- Support the latest version of
build
package.
- Added GeneratorBuilder option isStandalone to generate files that aren't part of source file.
- Fixed multi-line error output.
-
Remove an outdated work-around.
-
Make strong-mode clean.
- Support the latest version of
pkg/build
.
-
Breaking: Switch to the
build
package for runningGenerator
s. This means that the top levelbuild
andgenerate
functions are no longer available, and have been replaced by the top levelbuild
,watch
, andserve
functions from thebuild
package, and theGeneratorBuilder
class. Seetool/build.dart
,tool/watch.dart
, andtool/phases.dart
for usage.- Note that the
build
package is experimental, and likely to change.
- Note that the
-
Breaking: The build package provides an abstraction for reading/writing files via the
BuildStep
class, and that is now also provided toGenerator#generate
andGeneratorForAnnotation#generateForAnnotatedElement
as 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 theBuildStep
instance to read and write files and thebuild
package will track any files you read in and run incremental rebuilds as necessary.
-
Added support for
Symbol
andType
in annotations. -
Improved error output when unable to create an instance from an annotation.
- Upgrade to
analyzer '^0.27.1'
and removed a work-around for a fixedanalyzer
issue.
- Upgrade to
analyzer '^0.27.0'
.
JsonSerializableGenerator
now supports classes with read-only properties.
-
JsonSerializable
: AddedJsonKey
annotation. -
Improved output of generation errors and stack traces.
-
Require
analyzer '^0.26.2'
.
- Handle
null
values forList
properties.
JsonSerializable
: add support forList
values.
- Updated
README.md
to highlight thebuild_system
package and de-emphasize Dart Editor.
-
Added
omitGenerateTimestamp
andfollowLinks
named args tobuild
. -
Added
followLinks
togenerate
.
- Update tests to use a more reliable method to find the current package root.
-
Require Dart
1.12
. -
Add implicit support for
.packages
. If the file exists, it is used. If not, we fall back to using thepackages
directory. -
Support the latest releases of
analyzer
anddart_style
packages.
- Use
fromJson
if it's defined in a child field.
- Match annotations defined in parts. Thanks, Greg!
- Support the latest release of
analyzer
andargs
.
- Analysis no longer parses function bodies. This greatly speeds up generation, but it could break any usage that needs function bodies.
- Fixed
README.md
.
- Updates for move to
dart-lang
org on GitHub.
-
BREAKING Returning a descriptive value from
generate
. -
BREAKING Fixed incorrectly named argument
omitGenerateTimestamp
. -
JsonSerializable
: Handledynamic
andvar
as field types.
- Added
associatedFileSet
toGenerator
. Allows a generator to specify that changes to any file in a directory next to a Dart source file can initiate a generation run.
-
Use
async *
. Requires SDK >=1.9.0-dev.10
-
Protect against crash during code format.
-
Added
omitGenerateTimestamp
(incorrectly spelled) named argument togenerate
method. -
Generator.generate
is now called with theLibraryElement
, too.
-
Fixed critical bug affecting annotation matching. #35
-
Started using published
dart_style
package.
- Updated
README.md
with new examples. - Fixed sub-bullet indenting in
CHANGELOG.md
.
- BREAKING Moved and renamed JSON serialization classes.
- Added a
JsonLiteral
generator. - Improved handling and reporting of Generator errors.
JsonGenerator
- Learned how to use constructor arguments.
- Learned how to properly handle
DateTime
.
- Support for parametrized annotations.
- Add named arguments to
JsonGenerator
.
README.md
updates.
- BREAKING
Generator.generate
is now async – returnsFuture<String>
- Big update to
README.md
.
- Ready for experimentation.
- First play release.