This repository was archived by the owner on Dec 30, 2024. It is now read-only.
Update dependency dart to ^3.6.0 - #38
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
renovate
Bot
force-pushed
the
renovate/dart-3.x
branch
from
June 5, 2024 14:52
f414071 to
90df600
Compare
renovate
Bot
force-pushed
the
renovate/dart-3.x
branch
from
June 12, 2024 20:07
90df600 to
9ba961c
Compare
renovate
Bot
force-pushed
the
renovate/dart-3.x
branch
from
August 6, 2024 13:44
9ba961c to
9e3a974
Compare
renovate
Bot
force-pushed
the
renovate/dart-3.x
branch
from
August 16, 2024 14:33
9e3a974 to
5de4a20
Compare
renovate
Bot
force-pushed
the
renovate/dart-3.x
branch
from
August 28, 2024 13:07
5de4a20 to
e73ea14
Compare
renovate
Bot
force-pushed
the
renovate/dart-3.x
branch
from
September 12, 2024 17:01
e73ea14 to
f39bc7a
Compare
renovate
Bot
force-pushed
the
renovate/dart-3.x
branch
from
October 17, 2024 19:42
f39bc7a to
90efea7
Compare
renovate
Bot
force-pushed
the
renovate/dart-3.x
branch
from
December 11, 2024 15:39
90efea7 to
bba31d6
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.1->^3.6.0Release Notes
dart-lang/sdk (dart)
v3.6.0Compare Source
Language
Dart 3.6 adds digit separators to the language. To use them, set your
package's [SDK constraint][language version] lower bound to 3.6 or greater
(
sdk: '^3.6.0').Digit separators
Digits in number literals (decimal integer literals, double literals,
scientific notation literals, and hexadecimal literals) can now include
underscores between digits, as "digit separators." The separators do not change
the value of a literal, but can serve to make the number more readable.
Separators are not allowed at the start of a number (this would be parsed as an
identifier), at the end of a number, or adjacent to another character in a
number, like
.,x, or theein scientific notation.to perform type inference on the operand of a
throwexpression has beenchanged from the "unknown type" to
Object. This makes the type system moreself-consistent, because it reflects the fact that it's not legal to throw
null. This change is not expected to make any difference in practice.Libraries
dart:ioBreaking Change #52444: Removed the
Platform()constructor, whichhas been deprecated since Dart 3.1.
Breaking Change #53618:
HttpClientnow responds to a redirectthat is missing a "Location" header by throwing
RedirectException, insteadof
StateError.dart:js_interopJSArrayBuffer,JSDataView, and concrete typed arraytypes e.g.
JSInt8Array.lengthand[]/[]=operators toJSArray.toJSCaptureThissothisis passed in from JavaScript to thecallback as the first parameter.
frommethod onJSArrayto create aJSArrayfrom a givenJavaScript iterable or array-like object.
Tools
CFE
DOWN algorithms in the CFE are changed to match the specification
and the corresponding implementations in the Analyzer. The upper and
lower closures of type schemas are now computed just before they are
passed into the subtype testing procedure instead of at the very
beginning of the UP and DOWN algorithms.
Dart format
this.orsuper..asandifclauses.Wasm compiler (dart2wasm)
dart.library.jsis now false on conditional imports indart2wasm. Note that it was already a static error to import
dart:jsdirectly (see #55266).
Pub
Support for workspaces. This allows you to develop and resolve multiple
packages from the same repo together. See https://dart.dev/go/pub-workspaces
for more info.
New command
dart pub bump. Increments the version number of the currentpackage.
For example:
dart pub bump minorwill change the version from1.2.3to1.3.0.New validation:
dart pub publishwill warn if yourgit statusis notclean.
New flag
dart pub upgrade --unlock-transitive.dart pub upgrade --unlock-transitive pkg, will unlock and upgrade all thedependencies of
pkginstead of justpkg.Analyzer
use_truncating_division][use_truncating_division] lint rule.omit_obvious_local_variable_types][omit_obvious_local_variable_types] lint rule.specify_nonobvious_local_variable_types][specify_nonobvious_local_variable_types] lint rule.avoid_futureor_void][avoid_futureor_void] lint rule."invert conditional expression".
v3.5.4Compare Source
v3.5.3Compare Source
issue resulting in a missing tab bar when DevTools is embedded in
IntelliJ and Android Studio (issue#56607).
DevTools is opened instead of only the first time (issue#56607).
embedded in IntelliJ and Android Studio (issue#56607).
v3.5.2Compare Source
ZLibDecoderwould incorrectly attempt to decompress datapast the end of the zlib footer (issue #56481).
dartfromPATHcould result in some commands notworking as expected (issues #56080, #56306, #56499).
setContextRootsrequests orbeing provided incorrect context roots in multi-package workspaces (issue
#56475).
v3.5.1Compare Source
include:inanalysis_options.yamlfile in a nestedfolder in the workspace (issue#56464).
dart compile wasmwhen optimizations areenabled (issue #56423).
dart2wasmcompiler in unsound-O3/-O4modes where aimplicit setter for a field of generic type will store
nullinstead of thefield value (issue #56374).
dart2wasmcompiler that can trigger in certain situationswhen using partial instantiations of generic tear-offs (constructors or static
methods) in constant expressions (issue #56440).
also known is UP, is provided the missing implementation for
StructuralParameterTypeobjects. In some corner cases cases thelacking implementation resulted in a crash of the compiler (issue #56457).
v3.5.0Compare Source
Language
Breaking Change #55418: The context used by the compiler to perform
type inference on the operand of an
awaitexpression 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:coreDateTimeon 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
DateTimevalue without rounding the lowerdigits. This change might be breaking for apps that rely in some way on the
.microsecondcomponent 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)
microsecondsSinceEpochoutside the safe range,corresponding to dates with a year outside of 1685..2255, and (2) arithmetic
(
add,subtract,difference) where theDurationargument or resultexceeds 570 years.
dart:ioBreaking Change #55786:
SecurityContextis nowfinal. This meansthat
SecurityContextcan no longer be subclassed.SecurityContextsubclasses were never able to interoperate with other parts of
dart:io.A
ConnectionTaskcan now be created using an existingFuture<Socket>.Fixes #55562.
dart:typed_dataBreaking 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
TypedDataListto typed data lists, implementing bothListandTypedData. Allows abstracting over all such lists without losingaccess to either the
Listor theTypedDatamembers.A
ByteDatais still only aTypedData, not a list.dart:js_interopBreaking Change #55508:
importModulenow accepts aJSAnyinsteadof a
Stringto support other JS values as well, likeTrustedScriptURLs.Breaking Change #55267:
isTruthyandnotnow returnJSBooleaninstead of
boolto be consistent with the other operators.Breaking Change
ExternalDartReferenceno longer implementsObject.ExternalDartReferencenow accepts a type parameterTwith a bound ofObject?to capture the type of the Dart object that is externalized.ExternalDartReferenceToObject.toDartObjectnow returns aT.ExternalDartReferenceToObjectandObjectToExternalDartReferenceare nowextensions on
TandExternalDartReference<T>, respectively, whereT extends Object?. See #55342 and #55536 for more details.Fixed some consistency issues with
Function.toJSacross all compilers.Specifically, calling
Function.toJSon 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
Analyzer
unintended_html_in_doc_comment][unintended_html_in_doc_comment] lint rule.invalid_runtime_check_with_js_interop_types][invalid_runtime_check_with_js_interop_types] lint rule.document_ignores][document_ignores] lint rule.the switch becomes exhaustive.
constkeywords to child nodes, whereappropriate.
Pub
dart pub downgrade --tightento 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-safetyhas been removed.Dart_NewListOfandDart_IsLegacyTypefunctions areremoved from Dart C API.
Dart_DefaultCanonicalizeUrlis removed from the Dart C API.v3.4.4Compare Source
This is a patch release that:
Fixes an issue where pub would crash when failing to fetch advisories from
the server. (issue pub#4269).
Fixes an issue where
const bool.fromEnvironment('dart.library.ffi')is trueand conditional import condition
dart.library.ffiis true in dart2wasm.(issue #55948).
Fixes an issue where FFI calls with variadic arguments on MacOS Arm64
would mangle the arguments. (issue #55943).
v3.4.3Compare Source
This is a patch release that:
Fixes an issue where
DART_VM_OPTIONSwere not correctly parsed forstandalone Dart executables created with
dart compile exe(issue#55818).
Fixes a bug in dart2wasm that can result in a runtime error that says
array.new_fixed()has a constant larger than 10000 (issue #55873).Adds support for
--enable-experimentflag todart compilewasm(issue #55894).
Fixes an issue in dart2wasm compiler that can result in incorrect
nullability of type parameter (see #55895).
Disallows
dart:ffiimports in user code in dart2wasm (e.g. issue[#53910]) as dart2wasm's currently only supports a small subset of
dart:ffi(issue #55890).v3.4.2Compare Source
This is a patch release that:
Marks
dart compile wasmas no longer experimental.Fixes two bugs in exception handling in
asyncfunctions in dart2wasm(issues #55347, #55457).
Fixes restoration of
thisvariable insync*andasyncfunctions indart2wasm.
Implements missing control flow constructs (exceptions, switch/case with
yields) in
sync*in dart2wasm (issues #51342, #51343).Fixes a bug dart2wasm compiler that surfaces as a compiler crash when indexing
lists where the compiler proofs the list to be constant and the index is
out-of-bounds (issue #55817).
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), 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.
This PR was generated by Mend Renovate. View the repository job log.