Skip to content

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 16, 2025

This PR contains the following updates:

Package Update Change
dart (source) minor 3.8.3 -> 3.9.0

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

dart-lang/sdk (dart)

v3.9.0

Compare Source

Released on: 2025-08-13

Language

Dart 3.9 assumes null safety when computing type promotion, reachability, and
definite assignment. This makes these features produce more accurate results for
modern Dart programs. As a result of this change, more dead_code warnings may be
produced. To take advantage of these improvements, set your package's SDK
constraint
lower bound to 3.9 or greater (sdk: '^3.9.0').

Tools
Analyzer
  • The dart command-line tool commands that use the analysis server now run
    the AOT-compiled analysis server snapshot. These include dart analyze,
    dart fix, and dart language-server.

    There is no functional difference when using the AOT-compiled analysis server
    snapshot. But various tests indicate that there is a significant speedup in
    the time to analyze a project.

    In case of an incompatibility with the AOT-compiled snapshot, a
    --no-use-aot-snapshot flag may be passed to these commands. (Please file an
    issue with the appropriate project if you find that you need to use this
    flag! It will be removed in the future.) This flag directs the tool to revert
    to the old behavior, using the JIT-compiled analysis server snapshot. To
    direct the Dart Code plugin for VS Code to pass this flag, use the
    dart.analyzerAdditionalArgs setting. To direct the Dart
    IntelliJ plugin to pass this flag, use the dart.server.additional.arguments
    registry property, similar to these steps.

  • Add the switch_on_type lint rule.

  • Add the unnecessary_unawaited lint rule.

  • Add an assist to convert a field formal parameter to a normal parameter.

Dart build
  • Breaking change of feature in preview: dart build -f exe <target> is now
    dart build cli --target=<target>. See dart build cli --help for more info.
Dart Development Compiler (dartdevc)
  • Outstanding async code now checks and cancels itself after a hot restart if
    it was started in a different generation of the application before the
    restart. This includes outstanding Futures created by calling
    JSPromise.toDart from thedart:js_interop and the underlying the
    dart:js_util helper promiseToFuture. Dart callbacks will not be run, but
    callbacks on the JavaScript side will still be executed.

  • Fixed a soundness issue that allowed direct invocation of the value returned
    from a getter without any runtime checks when the getter's return type was a
    generic type argument instantiated as dynamic or Function.

    A getter defined as:

    class Container<T> {
      T get value => _value;
      ...
    }

    Could trigger the issue with a direct invocation:

    Container<dynamic>().value('Invocation with missing runtime checks!');
Dart native compiler

Added cross-compilation support for
target architectures of arm (ARM32) and riscv64 (RV64GC)
when the target OS is Linux.

Pub
  • Git dependencies can now be version-solved based on git tags.

    Use a tag_pattern in the descriptor and a version constraint, and all
    commits matching the pattern will be considered during resolution. For
    example:

    dependencies:
      my_dependency:
        git:
          url: https://github.com/example/my_dependency
          tag_pattern: v{{version}}
        version: ^2.0.1
  • Starting from language version 3.9 the flutter constraint upper bound is now
    respected in your root package. For example:

    name: my_app
    environment:
      sdk: ^3.9.0
      flutter: 3.33.0

    Results in dart pub get failing if invoked with a version of
    the Flutter SDK different from 3.33.0.

    The upper bound of the flutter constraint is still ignored in
    packages used as dependencies.
    https://github.com/flutter/flutter/issues/954725472 for details.


Configuration

📅 Schedule: Branch creation - "after 4pm on friday,before 9am on monday,every weekend" in timezone Europe/Paris, Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, 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 requested a review from a team as a code owner August 16, 2025 19:00
@renovate renovate bot requested review from Fluf22 and millotp and removed request for a team August 16, 2025 19:00
@algolia-bot
Copy link
Collaborator

algolia-bot commented Aug 16, 2025

✔️ Code generated!

Name Link
🪓 Triggered by 0bc5d80a93e233d6830d167fa4c5739fe53ba2c6
🍃 Generated commit a38de8030e8689c605672620deaa7f88fd814928
🌲 Generated branch generated/renovate/dart-3.x

@renovate renovate bot force-pushed the renovate/dart-3.x branch 3 times, most recently from 589a47a to a4d947d Compare August 16, 2025 19:55
@renovate renovate bot force-pushed the renovate/dart-3.x branch from a4d947d to 8662663 Compare August 16, 2025 20:20
@renovate renovate bot merged commit 2d2b63a into chore/renovateBaseBranch Aug 17, 2025
13 checks passed
@renovate renovate bot deleted the renovate/dart-3.x branch August 17, 2025 03:21
algolia-bot added a commit that referenced this pull request Aug 17, 2025
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Fluf22 pushed a commit that referenced this pull request Aug 25, 2025
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant