chore(deps): update dependency dart to v3.5.0 #50
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.4.4
->3.5.0
Release Notes
dart-lang/sdk (dart)
v3.5.0
Compare Source
Language
Breaking Change #55418: The context used by the compiler to perform
type inference on the operand of an
await
expression has been changed tomatch the behavior of the analyzer. This change is not expected to make any
difference in practice.
Breaking Change #55436: The context used by the compiler to perform
type inference on the right hand side of an "if-null" expression (
e1 ?? e2
)has been changed to match the behavior of the analyzer. change is expected to
have low impact on real-world code. But in principle it could cause
compile-time errors or changes in runtime behavior by changing inferred
types. The old behavior can be restored by supplying explicit types.
Libraries
dart:core
DateTime
on the web platform now storesmicroseconds. The web implementation is now practically compatible with the
native implementation, where it is possible to round-trip a timestamp in
microseconds through a
DateTime
value without rounding the lowerdigits. This change might be breaking for apps that rely in some way on the
.microsecond
component always being zero, for example, expecting only threefractional second digits in the
toString()
representation. Smalldiscrepancies in arithmetic due to rounding of web integers may still occur
for extreme values, (1)
microsecondsSinceEpoch
outside the safe range,corresponding to dates with a year outside of 1685..2255, and (2) arithmetic
(
add
,subtract
,difference
) where theDuration
argument or resultexceeds 570 years.
dart:io
Breaking Change #55786:
SecurityContext
is nowfinal
. This meansthat
SecurityContext
can no longer be subclassed.SecurityContext
subclasses were never able to interoperate with other parts of
dart:io
.A
ConnectionTask
can now be created using an existingFuture<Socket>
.Fixes #55562.
dart:typed_data
Breaking Change #53785: The unmodifiable view classes for typed data
have been removed. These classes were deprecated in Dart 3.4.
To create an unmodifiable view of a typed-data object, use the
asUnmodifiableView()
methods added in Dart 3.3.Added superinterface
TypedDataList
to typed data lists, implementing bothList
andTypedData
. Allows abstracting over all such lists without losingaccess to either the
List
or theTypedData
members.A
ByteData
is still only aTypedData
, not a list.dart:js_interop
Breaking Change #55508:
importModule
now accepts aJSAny
insteadof a
String
to support other JS values as well, likeTrustedScriptURL
s.Breaking Change #55267:
isTruthy
andnot
now returnJSBoolean
instead of
bool
to be consistent with the other operators.Breaking Change
ExternalDartReference
no longer implementsObject
.ExternalDartReference
now accepts a type parameterT
with a bound ofObject?
to capture the type of the Dart object that is externalized.ExternalDartReferenceToObject.toDartObject
now returns aT
.ExternalDartReferenceToObject
andObjectToExternalDartReference
are nowextensions on
T
andExternalDartReference<T>
, respectively, whereT extends Object?
. See #55342 and #55536 for more details.Fixed some consistency issues with
Function.toJS
across all compilers.Specifically, calling
Function.toJS
on the same function gives you a new JSfunction (see issue #55515), the maximum number of arguments that are
passed to the JS function is determined by the static type of the Dart
function, and extra arguments are dropped when passed to the JS function in
all compilers (see #48186).
Tools
Linter
unintended_html_in_doc_comment
][unintended_html_in_doc_comment] lint.invalid_runtime_check_with_js_interop_types
][invalid_runtime_check_with_js_interop_types] lint.document_ignores
][document_ignores] lint.Pub
dart pub downgrade --tighten
to restrict lower bounds ofdependencies' constraints to the minimum that can be resolved.
Dart Runtime
The Dart VM only executes sound null safe code, running of unsound null
safe code using the option
--no-sound-null-safety
has been removed.Dart_NewListOf
andDart_IsLegacyType
functions areremoved from Dart C API.
Dart_DefaultCanonicalizeUrl
is removed from the Dart C API.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 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.
This PR was generated by Mend Renovate. View the repository job log.