chore(example/deps): update dependency dart to >=3.13.0 <4.0.0 - #969
Open
renovate[bot] wants to merge 1 commit into
Open
chore(example/deps): update dependency dart to >=3.13.0 <4.0.0#969renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
renovate
Bot
force-pushed
the
renovate/dart-3.x
branch
from
August 16, 2026 14:32
29d79c0 to
8763702
Compare
renovate
Bot
force-pushed
the
renovate/dart-3.x
branch
from
August 16, 2026 17:46
8763702 to
5cfacab
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
>=3.12.2 <4.0.0→>=3.13.0 <4.0.0Release Notes
dart-lang/sdk (dart)
v3.13.0Compare Source
Released on: Unreleased
Language
Dart 3.13 adds primary constructors to the language.
To use this feature, set your package's [SDK constraint][language version] lower
bound to 3.13 or greater (
sdk: '^3.13.0').Primary constructors
The primary constructors feature is a brevity feature. There are no new
semantics, but it lets you express declarations in a less verbose way.
This feature lets you specify one constructor and a set of instance variables
in the header of a declaration.
Currently, you write a declaration with a constructor and some fields as:
Now you can write:
If a primary constructor needs an initializer list, a body, or both,
you can specify them inside the class using the
thisbody syntax:As part of this feature, you can also use the
newandfactorykeywords todeclare constructors in the class body without repeating the class name:
To learn more about the feature, check out the
feature specification.
Other changes
unsound behavior. See SDK issue #62889 for details.
Libraries
dart:asyncFuture.pauseas an alternative toFuture.delayedwith no callback.dart:coreList.unmodifiableOfwith better typing thanList.unmodifiable.Map.unmodifiableOfwith better typing thanMap.unmodifiable.intfor efficient bit-counting:trailingZeroBitCount(ctz) andoneBitCount(popcount). On nativeplatforms they operate on the full 64-bit two's-complement
representation; on the web they operate on the least-significant 32 bits.
For more details, see SDK issue #52673.
dart:ioThe cookie-date parser now uses the correct algorithm again.
A change to the parsing made it only accept the formats that
cookie dates should have, but the RFC specifies a very
permissive algorithm for what should be accepted.
Behavioral change: File access and modification timestamps
(
File.lastModified,FileStat,lastAccessed,lastModified,setLastAccessed,setLastModified) now preserve microsecond precisioninstead of truncating or rounding to millisecond accuracy. See SDK issue
#42444.
Breaking change:
Added
InterfaceAddress, a subtype ofInternetAddressthat exposes aprefixLengthfield and abroadcastgetter for network interface addresses.NetworkInterface.addressesnow returnsList<InterfaceAddress>instead of
List<InternetAddress>. Code that implementsNetworkInterfaceand overrides
addresseswill need to update the return type.For more details, see SDK issue #63216.
The
InternetAddress.lookupfunction no longer accepts invalidIPv4 addresses that are traditionally accepted by
inet_aton.dart:isolateIsolate:Isolate.runSync,Isolate.create,Isolate.shutdownSync,Isolate.pinToCurrentThread,Isolate.isPinnedToCurrentThread,Isolate.runEventLoopSync,Isolate.onEvent, andIsolate.handleEvent.dart:js_interopJSFunctionandJSExportedDartFunctionare now generic.JSExportedDartFunction<T>.toDartnow casts the original wrapped function tothe type argument
T. Calls toisA<JSExportedDartFunction<T>>now alsocheck that the wrapped function is a
T. Otherwise, this type argument ispurely descriptive and intended for increased static type safety. Importantly,
the runtime types of
JSFunctionandJSExportedDartFunctiondo not change.For more details, see SDK issue #54557.
JSObject.getPrototypeOfis added.Tools
Analyzer
textDocument/inlineValue), allowingIDEs and debuggers to render inline variable evaluations during active
debugging sessions.
dart/textDocument/getFlutterWidgetPreviewsand
dart/workspace/getFlutterWidgetPreviews) to serve Flutter WidgetPreview metadata to editor clients.
dart/connectToDtdenabling language serverclients to pair the Analysis Server with the Dart Tooling Daemon (DTD).
no_raw_typeslint rule is introduced, which replaces thestrict-raw-typesanalysis option, offering a more consistent approach.no_dynamic_castslint rule is introduced, which replaces thestrict-castsanalysis option, offering a more consistent approach.deprecated:
avoid_private_typedef_functions, andone_member_abstracts.If there is desire to keep using these, they can be re-implemented with
analyzer plugins.
Linter
async_return_with_no_await: Warns onasyncfunctions returning anon-Future value without using
await.empty_container_bodies: Highlights empty bodies in classes, enums,mixins, or extensions.
initialize_in_field_declaration: Recommends initializing fields at theirdeclaration site where applicable.
unnecessary_const_in_enum_constructor: Flags redundantconstkeywordsin enum constructors.
unnecessary_primary_constructor_body: Flags unnecessary or empty bodieson primary constructors.
unnecessary_type_name_in_constructor: Flags redundant explicit typenames in constructor declarations.
use_declaring_parameters: Encourages declaring parameters in primaryconstructors.
use_primary_constructorsto encourageadopting primary constructor syntax when Dart 3.13 primary constructor
feature is enabled.
Formatter
dart format --version --verbose.analysis_options.yamlfile has anincludethat points toa non-existent or unreadable file (dart_style #1840).
The following minor style bug fixes are not language versioned and apply to all
formatted code:
Fix a bug in eager splitting optimization that in rare cases would lead to a
collection or argument list splitting unnecessarily (dart_style #1809).
Don't add a blank line before a comment at the end of a compilation unit or
braced body (dart_style #1644).
Format extension type representation clauses the same way primary constructor
formal parameter lists are formatted.
When trailing commas are preserved, don't insert a newline before the
;inan enum with members unless there actually is a trailing comma.
(Fix by @Barbirosha.)
The following changes only apply when formatting code at language version 3.13
or higher:
Write a trailing comma in split extension type representation clauses when
formatting code at language version 3.13 or higher (dart_style #1845).
Fix a bug in an eager splitting optimization that would led the formatter to
prefer less desirable solutions (dart_style #1847).
Prefer to split call chains for single-element targets (dart_style #1732).
Allow block formatting parameter lists (dart_style #1693).
Allow
as,is, andis!expressions to be block formatted(dart_style #1542).
Separate imports into sections (dart_style #1120).
In if-case pieces, split the guard if the pattern block-splits
(dart_style #1596).
When no solution fits the page width, prefer solutions where the overflowing
lines have trailing string literals or comments (dart_style #1802,
dart_style #1803, dart_style #1837).
Force blank lines around a mixin or extension type declaration if it doesn't
have a
;body.Pub
dart pub workspace listcommand to list all packages in theworkspace along with their directory paths, with support for JSON output via
--json.dart pub check-resolution-up-to-dateinternal command for fasttimestamp-based package resolution validation without contacting remote
servers.
dart pub cache preloadcommand for installing packages intoPUB_CACHEdirectly from.tar.gzarchives.Dart CLI
dart build clicommand via the--target-osand--target-archflags.dart buildanddart compilenow support using locally-built targetbinaries from a local SDK build directory (identifiable by the presence of a
build.ninjafile), avoiding the need to download them from Google CloudStorage.
Dart Runtime
found are no longer included. The existing
--root-certs-fileand--root-certs-cacheoptions to the standalone VM may be used to providecertificates if the system certificates cannot be found.
C Embedder API
Dart_FileModifiedCallbackinruntime/include/dart_tools_api.hto passint64_t sincein microsecondssince epoch (matching
FileStatmicrosecond precision), updated frommilliseconds.
Dart_SetCurrentThreadOwnsIsolateandDart_GetCurrentThreadOwnsIsolatefunctions inruntime/include/dart_api.h(and
dart_api_dl.h), allowing custom embedders to bind and query isolatethread ownership.
Configuration
📅 Schedule: (in timezone Australia/Sydney)
🚦 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.
This PR was generated by Mend Renovate. View the repository job log.