Skip to content

fix(deps): update dependency dart_style to v3.1.8#35

Open
renovate[bot] wants to merge 1 commit intodevelopfrom
renovate/dart_style-3.x
Open

fix(deps): update dependency dart_style to v3.1.8#35
renovate[bot] wants to merge 1 commit intodevelopfrom
renovate/dart_style-3.x

Conversation

@renovate
Copy link
Copy Markdown

@renovate renovate Bot commented May 25, 2025

This PR contains the following updates:

Package Type Update Change
dart_style dependencies minor 3.0.13.1.8

Release Notes

dart-lang/dart_style (dart_style)

v3.1.8

Compare Source

Style changes
  • Format extension type representation clauses the same way primary constructor
    formal parameter lists are formatted. This rarely makes a difference but
    produces better formatting when the representation type is long and there are
    other clauses on the extension type, as in:

    // Before:
    extension type JSExportedDartFunction._(
      JSExportedDartFunctionRepType _jsExportedDartFunction
    )
        implements JSFunction {}
    
    // After:
    extension type JSExportedDartFunction._(
      JSExportedDartFunctionRepType _jsExportedDartFunction
    ) implements JSFunction {}

    This change is not language versioned. (The old style is always worse, and
    continuing to support it would add complexity to the formatter.)

  • Force blank lines around a mixin or extension type declaration if it doesn't
    have a ; body:

    // Before:
    int above;
    extension type Inches(int x) {}
    mixin M {}
    int below;
    
    // After:
    int above;
    
    extension type Inches(int x) {}
    
    mixin M {}
    
    int below;

    The formatter already forces blank lines around class, enum, and extension
    declarations. Mixins and extension types were overlooked. This makes them
    consistent. This style change is language versioned and only affects
    libraries at 3.13 or higher.

    Note that the formatter allows classes and extension types whose body is ;
    to not have a blank line above or below them.

Internal changes
  • Support upcoming Dart language version 3.13.
  • Support formatting primary constructors.
  • Require analyzer: '^12.0.0'.

v3.1.7

Compare Source

  • Require analyzer: '>=10.0.0 <12.0.0'.

v3.1.6

Compare Source

Style changes
  • When trailing commas are preserved, don't insert a newline before the ; in
    an enum with members unless there actually is a trailing comma.
    (Fix by @​Barbirosha.)
Internal changes
  • Support upcoming Dart language version 3.12.
  • Stop using experiment flags for features released in 3.10.
  • Require sdk: ^3.10.0.

v3.1.5

Compare Source

  • Support upcoming Dart language version 3.11.

v3.1.4

Compare Source

  • Remove dependencies on analyzer internal implementation.
  • Require analyzer: '^10.0.0'.

v3.1.3

Compare Source

  • No longer format imports with configurations and a prefix in the wrong order.
    The parser used to accept this without error even though it violated the
    language spec. The parser is being fixed, so the formatter will no longer
    accept or format code like:

    import 'foo.dart' as prefix if (cond) 'bar.dart';
  • Don't force a space between ? and . if a null-aware element contains a
    dot shorthand.

  • Require analyzer: '>=8.2.0 <10.0.0'.

  • Require args: ^2.5.0.

  • Require sdk: ^3.9.0.

Bug fixes
  • Respect @dart= version comments when determining which >3.7 style to apply.
    The formatter correctly used those comments to switch between the old short
    and new tall style, but ignored them for language versioned style rule changes
    after 3.7. Now the language version of the file is consistently respected for
    all style rules (#​1762).

v3.1.2

Compare Source

  • Support dot shorthand syntax.
  • Update to the latest package:analyzer.
  • Enable language version 3.10.
Bug fixes
  • Preserved trailing commas (trailing_commas: preserve) applies to record
    type annotations too (#​1721).
Style changes

This change only applies to code whose language version is 3.10 or higher:

  • When trailing_commas is preserve, preserve a trailing comma after the last
    enum constant when members are present (#​1678, #​1729).

    // Before formatting:
    enum { constant, ; member() {} }
    
    // After formatting at language version 3.9 or lower:
    enum {
      constant;
    
      member() {}
    }
    
    // After formatting at language version 3.10 or higher:
    enum {
      constant,
      ;
    
      member() {}
    }

    (Thanks to jellynoone@ for this change.)

v3.1.1

Compare Source

  • Update to latest analyzer and enable language version 3.9.

v3.1.0

Compare Source

This release contains a fairly large number of style changes in response to
feedback we got from shipping the new tall style formatter.

Features
  • Allow preserving trailing commas and forcing the surrounding construct to
    split even when it would otherwise fit on one line. This is off by default
    (because it breaks reversibility among other reasons) but can be enabled
    by adding this to a surrounding analysis_options.yaml file:

    formatter:
      trailing_commas: preserve

    This is similar to how trailing commas work in the old short style formatter
    applied to code before language version 3.7.

Bug fixes
  • Don't add a trailing comma in lists that don't allow it, even when there is
    a trailing comment (#​1639).
Style changes

The following style changes are language versioned and only affect code whose
language version is 3.8 or later. Dart code at 3.7 or earlier is formatted the
same as it was before.

  • Allow more code on the same line as a named argument or => (#​1536, #​1545,
    #​1668, #​1679).

    // Before:
    function(
      name:
          (param, another) =>
              veryLongBody,
    );
    
    function(
      name:
          (param) => another(
            argument1,
            argument2,
            argument3,
          ),
    );
    
    // After:
    function(
      name: (param, another) =>
          veryLongBody,
    );
    
    function(
      name: (param) => another(
        argument1,
        argument2,
        argument3,
      ),
    );
  • Avoid splitting chains containing only properties.

    // Before:
    variable = target
        .property
        .another;
    
    // After:
    variable =
        target.property.another;

    Note that this only applies to . chains that are only properties. If there
    are method calls in the chain, then it prefers to split the chain instead of
    splitting at =, :, or =>.

  • Allow the target or property chain part of a split method chain on the RHS of
    =, :, and => (#​1466).

    // Before:
    variable =
        target.property
            .method()
            .another();
    
    // After:
    variable = target.property
        .method()
        .another();
  • Allow the condition part of a split conditional expression on the RHS of =,
    :, and => (#​1465).

    // Before:
    variable =
        condition
        ? longThenBranch
        : longElseBranch;
    
    // After:
    variable = condition
        ? longThenBranch
        : longElseBranch;
  • Don't indent conditional branches redundantly after =, :, and =>.

    // Before:
    function(
      argument:
          condition
              ? thenBranch
              : elseBranch,
    )
    
    // After:
    function(
      argument:
          condition
          ? thenBranch
          : elseBranch,
    )
  • Indent conditional branches past the operators (#​1534).

    // Before:
    condition
        ? thenBranch +
            anotherOperand
        : elseBranch(
          argument,
        );
    
    // After:
    condition
        ? thenBranch +
              anotherOperand
        : elseBranch(
            argument,
          );
  • Block format record types in typedefs (#​1651):

    // Before:
    typedef ExampleRecordTypedef =
        (
          String firstParameter,
          int secondParameter,
          String thirdParameter,
          String fourthParameter,
        );
    
    // After:
    typedef ExampleRecordTypedef = (
      String firstParameter,
      int secondParameter,
      String thirdParameter,
      String fourthParameter,
    );
  • Eagerly split argument lists whose contents are complex enough to be easier
    to read spread across multiple lines even if they would otherwise fit on a
    single line (#​1660). The rules are basically:

    • If an argument list contains at least three named arguments, at least one
      of which must be directly in the argument list and at least one of which
      must be nested in an inner argument list, then force the outer one to split.
      We make an exception where a named argument whose expression is a simple
      number, Boolean, or null literal doesn't count as a named argument.

    • If a list, set, or map literal is the immediate expression in a named
      argument and contains any argument lists with a named argument, then force
      the collection to split.

    // Before:
    TabBar(tabs: [Tab(text: 'A'), Tab(text: 'B')], labelColor: Colors.white70);
    
    // After:
    TabBar(
      tabs: [
        Tab(text: 'A'),
        Tab(text: 'B'),
      ],
      labelColor: Colors.white70,
    );

Configuration

📅 Schedule: Branch creation - "before 10am on Monday" in timezone Asia/Tokyo, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the deps label May 25, 2025
@renovate renovate Bot force-pushed the renovate/dart_style-3.x branch from 32ca5b5 to 26a1211 Compare July 26, 2025 16:02
@renovate renovate Bot changed the title fix(deps): update dependency dart_style to v3.1.0 fix(deps): update dependency dart_style to v3.1.1 Jul 26, 2025
@renovate renovate Bot force-pushed the renovate/dart_style-3.x branch from 26a1211 to 95f5e91 Compare August 8, 2025 03:05
@renovate renovate Bot changed the title fix(deps): update dependency dart_style to v3.1.1 fix(deps): update dependency dart_style to v3.1.2 Aug 8, 2025
@renovate
Copy link
Copy Markdown
Author

renovate Bot commented Aug 8, 2025

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: pubspec.lock
Command failed: flutter pub upgrade dart_style
Because pana 0.22.19 depends on analyzer >=6.11.0 <8.0.0 and dart_style >=3.1.8 depends on analyzer ^12.0.0, pana 0.22.19 is incompatible with dart_style >=3.1.8.
So, because shirley depends on both dart_style 3.1.8 and pana 0.22.19, version solving failed.
Failed to update packages.

@renovate renovate Bot force-pushed the renovate/dart_style-3.x branch from 95f5e91 to 1fccdd5 Compare November 16, 2025 11:50
@renovate renovate Bot changed the title fix(deps): update dependency dart_style to v3.1.2 fix(deps): update dependency dart_style to v3.1.3 Nov 16, 2025
@renovate renovate Bot force-pushed the renovate/dart_style-3.x branch from 1fccdd5 to 3a8d415 Compare January 14, 2026 23:49
@renovate renovate Bot changed the title fix(deps): update dependency dart_style to v3.1.3 fix(deps): update dependency dart_style to v3.1.4 Jan 14, 2026
@renovate renovate Bot force-pushed the renovate/dart_style-3.x branch from 3a8d415 to 28afac5 Compare January 29, 2026 07:47
@renovate renovate Bot changed the title fix(deps): update dependency dart_style to v3.1.4 fix(deps): update dependency dart_style to v3.1.5 Jan 29, 2026
@renovate renovate Bot force-pushed the renovate/dart_style-3.x branch from 28afac5 to cf2d3a8 Compare March 1, 2026 08:13
@renovate renovate Bot changed the title fix(deps): update dependency dart_style to v3.1.5 fix(deps): update dependency dart_style to v3.1.6 Mar 1, 2026
@renovate renovate Bot force-pushed the renovate/dart_style-3.x branch from cf2d3a8 to 790c5e8 Compare March 8, 2026 10:38
@renovate renovate Bot changed the title fix(deps): update dependency dart_style to v3.1.6 fix(deps): update dependency dart_style to v3.1.7 Mar 8, 2026
@renovate renovate Bot force-pushed the renovate/dart_style-3.x branch from 790c5e8 to aeb6227 Compare March 31, 2026 18:33
@renovate renovate Bot changed the title fix(deps): update dependency dart_style to v3.1.7 fix(deps): update dependency dart_style to v3.1.8 Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants