Skip to content

Releases: dart-lang/source_gen

package:source_gen v4.1.1

19 Nov 15:52
3c0fca3

Choose a tag to compare

  • Allow analyzer: '>=8.1.1 <10.0.0'.

package:source_gen v4.1.0

18 Nov 17:13
f813cea

Choose a tag to compare

  • Add TypeChecker.typeNamedLiterally. It's like TypeChecker.typeNamed,
    but takes a String instead of a Type.

package:source_gen v4.0.2

09 Oct 16:06
1fc3fb7

Choose a tag to compare

  • Bug fix: fix possible null pointer exception in TypeChecker.typeNamed on
    invalid code.

package:source_gen v4.0.1

04 Sep 06:57
3b319fb

Choose a tag to compare

  • Require analyzer: '>=8.1.1 <9.0.0'.
  • Allow build: '>=3.0.0 <5.0.0'.

package:source_gen v4.0.0

27 Aug 16:38
2af6081

Choose a tag to compare

  • Breaking Change: remove TypeChecker.fromRuntime, use
    TypeChecker.typeNamed instead. This removes all use of dart:mirror, so
    builders using source_gen can be AOT compiled for better performance.
  • Keep // GENERATED FILE comments on the first line.

package:source_gen v3.0.0

17 Jul 17:14
4c0d088

Choose a tag to compare

package:source_gen v3.0.0-dev

27 Jun 06:36
6c9702e

Choose a tag to compare

package:source_gen v2.0.0

17 Dec 17:41
947a0e2

Choose a tag to compare

  • Breaking Change: Change formatOutput function to accept a language
    version parameter.
  • Formatting Change: Generated code will no longer apply any fixes by
    default (previously it would apply the single cascades statements fix). The
    new formatter does not support applying fixes.
  • Document deduplication behavior for the output of
    GeneratorForAnnotation.generateForAnnotatedElement.
  • Support all the glob quotes.
  • Require analyzer: '>=6.9.0 <8.0.0'
  • Support the latest package:dart_style
  • LibraryBuilder, PartBuilder, and SharedPartBuilder now take an optional
    writeDescriptions boolean. When set to false, headers and generator
    descriptions for the files will not be included in the builder output.
  • Include //dart format width=80 comments in files generated by a
    LibraryBuilder or PartBuilder and formatted with the default callback.
  • Require Dart 3.6.0

package:source_gen v1.5.0

13 Dec 22:52
241e050

Choose a tag to compare

  • Add throwOnUnresolved configuration to the GeneratorForAnnotation
    constructor.
  • Rename InvalidGenerationSourceError to InvalidGenerationSource. Change
    from a subtype of Error to a subtype of Exception. This may be breaking if
    a builder relies on a on Exception catch to ignore this error.

package:source_gen v1.4.0

29 Jun 18:47
8e53b9d

Choose a tag to compare

  • Require Dart 3.0
  • Support the latest package:analyzer.
  • Add a node argument to InvalidGenerationSourceError to allow finding the source location from an AstNode over an Element.