Skip to content

Releases: dart-lang/dart_style

package:dart_style v2.3.7

10 Sep 00:50
5d35f4d
Compare
Choose a tag to compare
  • Allow passing a language version to DartFomatter(). Formatted code will be
    parsed at that version. If omitted, defaults to the latest version. In a
    future release, this parameter will become required.
  • Allow opting out of formatting for a region of code using // dart format off
    and // dart format on comments. Note: This only works using the new tall
    style and requires passing the --enable-experiment=tall-style experiment
    flag (#361).
  • Preserve type parameters on old-style function-typed formals that also use
    this. or super. (#1321).
  • Correctly format imports with both as and if clauses (#1544).
  • Remove temporary work around for analyzer 6.2.0 from dart_style 2.3.6.
  • Require package:analyzer >=6.5.0 <7.0.0.

package:dart_style v2.3.6

29 Feb 19:00
c644037
Compare
Choose a tag to compare
  • Fix compile error when using dart_style with analyzer 6.2.0.

package:dart_style v2.3.5

29 Feb 00:51
13a3a51
Compare
Choose a tag to compare
  • Ensure switch expressions containing line comments split (#1404).
  • Use language version 3.3 to parse so that code with extension types can be
    formatted.
  • Support formatting the macro modifier when the macros experiment flag
    is passed.

package:dart_style v2.3.4

21 Nov 19:25
8df008e
Compare
Choose a tag to compare
  • Add tall-style experiment flag to enable the in-progress unstable new
    formatting style (#1253).
  • Format extension types.
  • Normalize ignored whitespace and "escaped whitespace" on first line
    of multiline string literals. (#1235)

package:dart_style v2.3.2

29 Jun 16:27
3ddfba5
Compare
Choose a tag to compare
  • Don't indent parameters that have metadata annotations. Instead, align them
    with the metadata and other parameters.
  • Allow metadata annotations on parameters to split independently of annotations
    on other parameters (#1212).
  • Don't split before . following a record literal (#1213).
  • Don't force split on a line comment before a switch expression case (#1215).
  • Require package:analyzer >=5.12.0 <7.0.0.
  • Preserve ? on nullable empty record types (#1224).