Skip to content

Releases: dart-lang/source_gen

package:source_gen v4.2.0

20 Jan 08:11
739fe33

Choose a tag to compare

  • Add header configuration to CombiningBuilder.

package:source_gen v4.1.2

13 Jan 18:21
e1fbddb

Choose a tag to compare

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

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