Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(sdk): update dependency dart to >=3.4.0 <4.0.0 #388

Merged
merged 1 commit into from
May 14, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 14, 2024

Mend Renovate

This PR contains the following updates:

Package Update Change
dart (source) minor >=3.3.4 <4.0.0 -> >=3.4.0 <4.0.0

Release Notes

dart-lang/sdk (dart)

v3.4.0

Compare Source

Language

Dart 3.4 makes improvements to the type analysis of conditional expressions
(e1 ? e2 : e3), if-null expressions (e1 ?? e2), if-null assignments
(e1 ??= e2), and switch expressions (switch (e) { p1 => e1, ... }). To take
advantage of these improvements, set your package's
SDK constraint lower bound to 3.4 or greater
(sdk: '^3.4.0').

  • Breaking Change #​54640: The pattern context type schema for
    cast patterns has been changed from Object? to _ (the unknown
    type), to align with the specification. This change is not expected
    to make any difference in practice.

  • Breaking Change #​54828: The type schema used by the compiler front end
    to perform type inference on the operand of a null-aware spread operator
    (...?) in map and set literals has been made nullable, to match what
    currently happens in list literals. This makes the compiler front end behavior
    consistent with that of the analyzer. This change is expected to be very low
    impact.

Libraries
dart:async
  • Added option for ParallelWaitError to get some meta-information that
    it can expose in its toString, and the Iterable<Future>.wait and
    (Future,...,Future).wait extension methods now provide that information.
    Should make a ParallelWaitError easier to log.
dart:cli
  • Breaking change [#​52121][]: waitFor is removed in 3.4.
dart:ffi
  • Added Struct.create and Union.create to create struct and union views
    of the sequence of bytes stored in a subtype of TypedData.
dart:io
  • Breaking change #​53863: Stdout has a new field lineTerminator,
    which allows developers to control the line ending used by stdout and
    stderr. Classes that implement Stdout must define the lineTerminator
    field. The default semantics of stdout and stderr are not changed.

  • Deprecates FileSystemDeleteEvent.isDirectory, which always returns
    false.

dart:js_interop
  • Fixes an issue with several comparison operators in JSAnyOperatorExtension
    that were declared to return JSBoolean but really returned bool. This led
    to runtime errors when trying to use the return values. The implementation now
    returns a JSBoolean to align with the interface. See issue #​55024 for
    more details.

  • Added ExternalDartReference and related conversion functions
    toExternalReference and toDartObject. This is a faster alternative to
    JSBoxedDartObject, but with fewer safety guarantees and fewer
    interoperability capabilities. See #​55187 for more details.

  • On dart2wasm, JSBoxedDartObject now is an actual JS object that wraps the
    opaque Dart value instead of only externalizing the value. Like the JS
    backends, you'll now get a more useful error when trying to use it in another
    Dart runtime.

  • Added isA helper to make type checks easier with interop types. See
    #​54138 for more details.

dart:typed_data
  • BREAKING CHANGE #​53218 #​53785: The unmodifiable view classes for
    typed data are deprecated.

    To create an unmodifiable view of a typed-data object, use the
    asUnmodifiableView() methods added in Dart 3.3:

    Uint8List data = ...;
    final readOnlyView = data.asUnmodifiableView();
    // readOnlyView has type Uint8List, and throws if attempted modified.

    The reason for this change is to allow more flexibility in the implementation
    of typed data, so the native and web platforms can use different strategies
    to ensure that typed data has good performance.

    The deprecated types will be removed in Dart 3.5.

Tools
Analyzer
  • Improved code completion. Fixed over 50% of completion correctness bugs,
    tagged analyzer-completion-correctness in the issue
    tracker
    .

  • Support for new annotations introduced in version 1.14.0 of the meta
    package.

    • Support for the [@doNotSubmit][@​doNotSubmit] annotation, noting that any usage of an
      annotated member should not be submitted to source control.

    • Support for the [@mustBeConst][@​mustBeConst] annotation, which indicates that an
      annotated parameter only accepts constant arguments.

Linter
  • Added the [unnecessary_library_name][unnecessary_library_name] lint.
  • Added the [missing_code_block_language_in_doc_comment][missing_code_block_language_in_doc_comment] lint.
Compilers
  • The compilation environment will no longer pretend to contain entries with
    value "" for all dart.library.foo strings, where dart:foo is not an
    available library. Instead there will only be entries for the available
    libraries, like dart.library.core, where the value was, and still is,
    "true". This should have no effect on const bool.fromEnvironment(...) or
    const String.fromEnvironment(...) without a defaultValue argument, an
    argument which was always ignored previously. It changes the behavior of
    const bool.hasEnvironment(...) on such an input, away from always being
    true and therefore useless.
DevTools
  • Updated DevTools to version 2.33.0 from 2.31.1.
    To learn more, check out the release notes for versions
    2.32.0 and 2.33.0.
Pub
  • Dependency resolution and dart pub outdated will now surface if a dependency
    is affected by a security advisory, unless the advisory is listed under a
    ignored_advisories section in the pubspec.yaml file. To learn more about
    pub's support for security advisories, visit
    dart.dev/go/pub-security-advisories.

  • path-dependencies inside git-dependencies are now resolved relative to the
    git repo.

  • All dart pub commands can now be run from any subdirectory of a project. Pub
    will find the first parent directory with a pubspec.yaml and operate
    relative it.

  • New command dart pub unpack that downloads a package from pub.dev and
    extracts it to a subfolder of the current directory.

    This can be useful for inspecting the code, or playing with examples.

Dart Runtime
  • Dart VM flags and options can now be provided to any executable generated
    using dart compile exe via the DART_VM_OPTIONS environment variable.
    DART_VM_OPTIONS should be set to a list of comma-separated flags and options
    with no whitespace. Options that allow for multiple values to be provided as
    comma-separated values are not supported (e.g.,
    --timeline-streams=Dart,GC,Compiler).

    Example of a valid DART_VM_OPTIONS environment variable:

    DART_VM_OPTIONS=--random_seed=42,--verbose_gc
  • Dart VM no longer supports external strings: Dart_IsExternalString,
    Dart_NewExternalLatin1String and Dart_NewExternalUTF16String functions are
    removed from Dart C API.


Configuration

📅 Schedule: Branch creation - "after 6pm every weekday,every weekend" in timezone Australia/Sydney, Automerge - "after 6pm every weekday,every weekend" in timezone Australia/Sydney.

🚦 Automerge: Enabled.

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 has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot enabled auto-merge (squash) May 14, 2024 12:17
@renovate renovate bot merged commit 3f9ec86 into main May 14, 2024
10 checks passed
@renovate renovate bot deleted the renovate/dart-minor-patch-version branch May 14, 2024 12:20
zeshuaro-bot bot pushed a commit that referenced this pull request May 25, 2024
## [4.1.0](v4.0.3...v4.1.0) (2024-05-25)

### Features

* **sdk:** update dependency flutter to >=3.22.0 ([#387](#387)) ([65b6970](65b6970))

### Bug Fixes

* **sdk:** update dependency dart to >=3.4.0 <4.0.0 ([#388](#388)) ([3f9ec86](3f9ec86))
* **sdk:** update dependency dart to >=3.4.1 <4.0.0 ([#397](#397)) ([b77da94](b77da94))

### Reverts

* **deps:** downgrade `conventional-changelog-conventionalcommits` to 7.0.2 ([#399](#399)) ([52729bb](52729bb))

### Documentation

* **license:** update copyright ([#400](#400)) ([b0fa3d5](b0fa3d5))

### Miscellaneous Chores

* **deps:** lock file maintenance ([#385](#385)) ([795c8d6](795c8d6))
* **deps:** lock file maintenance ([#393](#393)) ([8776b98](8776b98))
* **deps:** update dependency build_runner to v2.4.10 ([#396](#396)) ([2ade146](2ade146))
* **deps:** update dependency conventional-changelog-conventionalcommits to v8 ([#380](#380)) ([c2bbae1](c2bbae1))
* **deps:** update dependency flutter_lints to v4 ([#391](#391)) ([17649ac](17649ac))
* **deps:** update dependency semantic-release to v23.1.1 ([#386](#386)) ([1963352](1963352))
* **deps:** update dependency semantic-release-pub to v0.8.12 ([#381](#381)) ([35ea9aa](35ea9aa))
* **deps:** update dependency semantic-release-pub to v0.8.13 ([#390](#390)) ([0aefd09](0aefd09))
* **deps:** update dependency semantic-release-pub to v0.8.14 ([#395](#395)) ([abacf7d](abacf7d))
* **node:** update dependency node to v20.13.0 ([#382](#382)) ([768f921](768f921))
* **node:** update dependency node to v20.13.1 ([#384](#384)) ([2cbe0e9](2cbe0e9))

### Continuous Integration

* **deps:** update zeshuaro/github-actions-workflows digest to 1b5adcd ([#392](#392)) ([7e395e5](7e395e5))
* **deps:** update zeshuaro/github-actions-workflows digest to 4d0c74a ([#389](#389)) ([a8e3b7f](a8e3b7f))
* **deps:** update zeshuaro/github-actions-workflows digest to c2ec562 ([#394](#394)) ([71a9874](71a9874))
* **deps:** update zeshuaro/github-actions-workflows digest to f618163 ([#383](#383)) ([0a00c09](0a00c09))
@zeshuaro-bot
Copy link

zeshuaro-bot bot commented May 25, 2024

🎉 This PR is included in version 4.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants