-
-
Notifications
You must be signed in to change notification settings - Fork 172
Commit e836f19
authored
upgrade: update dependency dart to v3.6.0 (#614)
This PR contains the following updates:
| Package | Update | Change |
|---|---|---|
| [dart](https://dart.dev/)
([source](https://redirect.github.com/dart-lang/sdk)) | minor | `3.5.4`
-> `3.6.0` |
---
### Release Notes
<details>
<summary>dart-lang/sdk (dart)</summary>
###
[`v3.6.0`](https://redirect.github.com/dart-lang/sdk/blob/HEAD/CHANGELOG.md#360)
[Compare
Source](https://redirect.github.com/dart-lang/sdk/compare/3.5.4...3.6.0)
##### 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
[digit separators]:
https://redirect.github.com/dart-lang/language/issues/2
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.
```dart
100__000_000__000_000__000_000 // one hundred million million millions!
0x4000_0000_0000_0000
0.000_000_000_01
0x00_14_22_01_23_45 // MAC address
```
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 the `e` in scientific notation.
- **Breaking Change** [#​56065][]: The context used by the
compiler and analyzer
to perform type inference on the operand of a `throw` expression has
been
changed from the "unknown type" to `Object`. This makes the type system
more
self-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.
[#​56065]: https://redirect.github.com/dart-lang/sdk/issues/56065
##### Libraries
##### `dart:io`
- **Breaking Change** [#​52444][]: Removed the `Platform()`
constructor, which
has been deprecated since Dart 3.1.
- **Breaking Change** [#​53618][]: `HttpClient` now responds to a
redirect
that is missing a "Location" header by throwing `RedirectException`,
instead
of `StateError`.
[#​52444]: https://redirect.github.com/dart-lang/sdk/issues/52444
[#​53618]: https://redirect.github.com/dart-lang/sdk/issues/53618
##### `dart:js_interop`
- Added constructors for `JSArrayBuffer`, `JSDataView`, and concrete
typed array
types e.g. `JSInt8Array`.
- Added `length` and `[]`/`[]=` operators to `JSArray`.
- Added `toJSCaptureThis` so `this` is passed in from JavaScript to the
callback as the first parameter.
- Added a static `from` method on `JSArray` to create a `JSArray` from a
given
JavaScript iterable or array-like object.
##### Tools
##### CFE
- **Breaking Change** [#​56466][]: The implementation of the UP
and
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.
[#​56466]: https://redirect.github.com/dart-lang/sdk/issues/56466
##### Dart format
- Preserve type parameters on old-style function-typed formals that also
use
`this.` or `super.`.
- Correctly format imports with both `as` and `if` clauses.
##### Wasm compiler (dart2wasm)
- The condition `dart.library.js` is now false on conditional imports in
dart2wasm. Note that it was already a static error to import `dart:js`
directly (see [#​55266][]).
[#​55266]: https://redirect.github.com/dart-lang/sdk/issues/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
current
package.
For example: `dart pub bump minor` will change the version from `1.2.3`
to
`1.3.0`.
- New validation: `dart pub publish` will warn if your `git status` is
not
clean.
- New flag `dart pub upgrade --unlock-transitive`.
- `dart pub upgrade --unlock-transitive pkg`, will unlock and upgrade
all the
dependencies of `pkg` instead of just `pkg`.
##### Analyzer
- Add the [`use_truncating_division`][use_truncating_division] lint
rule.
- Add the experimental
[`omit_obvious_local_variable_types`][omit_obvious_local_variable_types]
lint rule.
- Add the experimental
[`specify_nonobvious_local_variable_types`][specify_nonobvious_local_variable_types]
lint rule.
- Add the experimental [`avoid_futureor_void`][avoid_futureor_void] lint
rule.
- Add quick fixes for more than 14 diagnostics.
- Add new assists: "add digit separators", "remove digit separators",
and
"invert conditional expression".
[`use_truncating_division`]:
https://dart.dev/lints/use_truncating_division
[`omit_obvious_local_variable_types`]:
https://dart.dev/lints/omit_obvious_local_variable_types
[`specify_nonobvious_local_variable_types`]:
https://dart.dev/lints/specify_nonobvious_local_variable_types
[`avoid_futureor_void`]: https://dart.dev/lints/avoid_futureor_void
</details>
---
### Configuration
📅 **Schedule**: Branch creation - "every weekend" in timezone
Asia/Tokyo, Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
♻ **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.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/FlutterGen/flutter_gen).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS41OC4xIiwidXBkYXRlZEluVmVyIjoiMzkuNTguMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>1 parent 88dd7c7 commit e836f19Copy full SHA for e836f19
File tree
Expand file treeCollapse file tree
1 file changed
+1
-1
lines changedOpen diff view settings
Filter options
Expand file treeCollapse file tree
1 file changed
+1
-1
lines changedOpen diff view settings
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
0 commit comments