Skip to content

Commit f694709

Browse files
committed
Version 2.17.0-266.1.beta
Merge '2.17.0-266.0.dev' into beta
2 parents c582d09 + 760722f commit f694709

File tree

4,707 files changed

+134606
-70847
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,707 files changed

+134606
-70847
lines changed

.dart_tool/package_config.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@
326326
"name": "frontend_server",
327327
"rootUri": "../pkg/frontend_server",
328328
"packageUri": "lib/",
329-
"languageVersion": "2.7"
329+
"languageVersion": "2.15"
330330
},
331331
{
332332
"name": "frontend_server_client",
@@ -415,13 +415,13 @@
415415
"name": "linter",
416416
"rootUri": "../third_party/pkg/linter",
417417
"packageUri": "lib/",
418-
"languageVersion": "2.12"
418+
"languageVersion": "2.15"
419419
},
420420
{
421421
"name": "lints",
422422
"rootUri": "../third_party/pkg/lints",
423423
"packageUri": "lib/",
424-
"languageVersion": "2.12"
424+
"languageVersion": "2.17"
425425
},
426426
{
427427
"name": "logging",
@@ -580,7 +580,7 @@
580580
"name": "shelf",
581581
"rootUri": "../third_party/pkg/shelf",
582582
"packageUri": "lib/",
583-
"languageVersion": "2.12"
583+
"languageVersion": "2.16"
584584
},
585585
{
586586
"name": "shelf_packages_handler",
@@ -688,7 +688,7 @@
688688
"name": "test",
689689
"rootUri": "../third_party/pkg/test/pkgs/test",
690690
"packageUri": "lib/",
691-
"languageVersion": "2.12"
691+
"languageVersion": "2.14"
692692
},
693693
{
694694
"name": "test_api",
@@ -700,7 +700,7 @@
700700
"name": "test_core",
701701
"rootUri": "../third_party/pkg/test/pkgs/test_core",
702702
"packageUri": "lib/",
703-
"languageVersion": "2.12"
703+
"languageVersion": "2.14"
704704
},
705705
{
706706
"name": "test_descriptor",

BUILD.gn

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ group("runtime") {
3939
# Fuchsia has run_vm_tests marked testonly.
4040
testonly = true
4141
}
42+
4243
deps = [
4344
"runtime/bin:dart",
4445
"runtime/bin:entrypoints_verification_test",
@@ -59,6 +60,16 @@ group("runtime") {
5960
]
6061
}
6162

63+
# We do not support AOT on ia32 and should therefore not provide native
64+
# snapshot tooling.
65+
if (dart_target_arch != "ia32" && dart_target_arch != "x86") {
66+
if (dart_runtime_mode == "release") {
67+
deps += [ "runtime/bin:analyze_snapshot_product" ]
68+
} else {
69+
deps += [ "runtime/bin:analyze_snapshot" ]
70+
}
71+
}
72+
6273
if (is_linux || is_android) {
6374
deps += [ "runtime/bin:abstract_socket_test" ]
6475
}

CHANGELOG.md

Lines changed: 74 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@
2727
`Element.scrollIntoViewIfNeeded` should use the new `scrollIntoViewIfNeeded`
2828
definition instead.
2929

30+
- Change `Performance.mark` and `Performance.measure` to accept their different
31+
overloads. `mark` can now accept a `markOptions` map, and `measure` can now
32+
accept a `startMark` and `endMark`, or a `measureOptions` map. Both methods
33+
return their correct return types now as well - `PerformanceEntry?` and
34+
`PerformanceMeasure?`, respectively.
35+
3036
#### `dart:indexed_db`
3137

3238
- `IdbFactory.supportsDatabaseNames` has been deprecated. It will always return
@@ -57,15 +63,20 @@
5763
throw UnsupportedError("keyLog not implemented");
5864
```
5965

66+
- **Breaking Change** [#34218](https://github.com/dart-lang/sdk/issues/34218):
67+
Constants in `dart:io` following the `SCREAMING_CAPS` convention have been
68+
removed (they were previously deprecated). Please use the corresponding
69+
`lowerCamelCase` constants instead.
70+
6071
- Add a optional `keyLog` parameter to `SecureSocket.connect` and
6172
`SecureSocket.startConnect`.
6273

6374
- Deprecate `SecureSocket.renegotiate` and `RawSecureSocket.renegotiate`,
6475
which were no-ops.
6576

66-
#### `dart:isolate`
67-
68-
- Add `Isolate.run` to run a function in a new isolate.
77+
- **Breaking Change** [#48513](https://github.com/dart-lang/sdk/issues/48513):
78+
Add a new `allowLegacyUnsafeRenegotiation` poperty to `SecurityContext`,
79+
which allows TLS renegotiation for client secure sockets.
6980

7081
### Tools
7182

@@ -101,6 +112,49 @@
101112
[web] A web app that uses only core Dart libraries.
102113
```
103114

115+
#### Linter
116+
117+
Updated the Linter to `1.22.0`, which includes changes that
118+
119+
- fixes null-safe variance exceptions in `invariant_booleans`
120+
- updates `depend_on_referenced_packages` to treat `flutter_gen` as a virtual
121+
package, not needing an explicit dependency.
122+
- updates `unnecessary_null_checks` and
123+
`null_check_on_nullable_type_parameter` to handle
124+
list/set/map literals, and `yield` and `await` expressions.
125+
- fixes `unnecessary_null_aware_assignments` property-access
126+
false positives.
127+
- adds new lint: `use_super_parameters`.
128+
- adds new lint: `use_enums`.
129+
- adds new lint: `use_colored_box`.
130+
- improves performance for `sort_constructors`.
131+
- improves docs for `always_use_package_imports`,
132+
`avoid_print`, and `avoid_relative_lib_imports` .
133+
- updates `avoid_void_async` to skip `main` functions.
134+
- updates `prefer_final_parameters` to not super on super params.
135+
- updates lints for enhanced-enums and super-initializer language
136+
features.
137+
- updates `unnecessary_late` to report on variable names.
138+
- marks `null_check_on_nullable_type_parameter` stable.
139+
140+
#### Dartdoc
141+
142+
Updated dartdoc to 5.1.0, which includes changes that
143+
144+
- support the enhanced enums feature
145+
- remove superfluous `[...]` links
146+
- fix `categoryOrder` option
147+
- display categorized extensions
148+
- add annotations to extensions
149+
- make minor improvements to performance
150+
151+
## 2.16.2 - 2022-03-24
152+
153+
This is a patch release that fixes a dart2js crash when building some Flutter
154+
web apps (issue [#47916][]).
155+
156+
[#47916]: https://github.com/dart-lang/sdk/issues/47916
157+
104158
## 2.16.1 - 2022-02-09
105159

106160
This is a patch release that fixes an AOT precompiler crash when building some
@@ -167,6 +221,14 @@ in 2018, as it doesn't work with any Dart 2.x release.
167221

168222
[an issue]: https://github.com/dart-lang/sdk/issues/new
169223

224+
- **Breaking Change** [#46100](https://github.com/dart-lang/sdk/issues/46100):
225+
The deprecated standalone `pub` tool has been removed.
226+
Its replacement is the `dart pub` command.
227+
Should you find any issues, or missing features, in the replacement
228+
command, kindly file [an issue][].
229+
230+
[an issue]: https://github.com/dart-lang/pub/issues/new
231+
170232
#### Pub
171233

172234
- Fixed race conditions in `dart pub get`, `dart run` and `dart pub global run`.
@@ -176,8 +238,16 @@ in 2018, as it doesn't work with any Dart 2.x release.
176238
tracker.
177239

178240
`dart --verbose pub [command]` will also cause the log file to be written.
241+
- `dart pub global activate --source=git` now takes arguments `--git-path` to
242+
specify the path of the activated package in the pubspec and `--git-ref` to
243+
specify the branch or revision to check out.
179244
- `dart pub add` can now add multiple packages in one command.
180-
245+
- `dart pub token add` can now add a token for [pub.dev](https://pub.dev).
246+
- `dart pub uploader` has been removed. To manage uploaders for a package use
247+
the `https://pub.dev/<packagename>/admin` web-interface.
248+
- Pub now supports a separate `pubspec_overrides.yaml` file that can contain
249+
`dependency_overrides`. This makes it easier to avoid checking the local
250+
overrides into version control.
181251
#### Linter
182252

183253
Updated the Linter to `1.18.0`, which includes changes that

CONTRIBUTING.md

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,23 @@ All submissions, including submissions by project members, require review. We u
2424

2525
We occasionally take pull requests, e.g., for comment changes, but the main flow is to use the Gerrit review system as explained below.
2626

27-
## Setting up Environment
27+
## Submitting patches directly from GitHub
2828

29-
In order to submit a patch, you need to get the [depot\_tools](http://dev.chromium.org/developers/how-tos/depottools).
29+
This repository uses Gerrit for code reviews, rather than GitHub PRs. However, you may submit a GitHub PR from the GitHub interface, e.g. to edit some API documentation, and it will be automatically converted into a Gerrit CL by copybara. You can find the link to that CL from the GitHub "checks" interface, it will be the "details" of the "copybara" check. The PR will be automatically closed when the CL is reviewed and landed.
30+
31+
## Setting up the environment
32+
33+
In order to submit a patch from a local workspace, you need to get the [depot\_tools](http://dev.chromium.org/developers/how-tos/depottools).
3034

3135
## Getting the code
3236

33-
To work with the Dart code, you need to download and build the development branch. Active development of Dart takes place on the `main` branch, from which we push "green" versions that have passed all tests to `dev` branch. Complete instructions are found at [Getting The Source](https://github.com/dart-lang/sdk/wiki/Building#getting-the-source)
37+
To work with the Dart code, you need to download and build the development branch. Active development of Dart takes place on the `main` branch, from which we push "green" versions that have passed all tests to `dev` branch. Complete instructions are found at [Getting The Source](https://github.com/dart-lang/sdk/wiki/Building#getting-the-source). **You must use the `gclient` tool (`fetch`), using `git clone` will not get you a functional environment!**
3438

3539
## Starting a patch with git
3640

37-
Note: you can be in any branch when you run `git new-branch`
41+
Create a new branch using `git new-branch` (this is a command added by the aforementioned depot_tools).
42+
43+
You can be in any branch when you run `git new-branch`.
3844

3945
```bash
4046
git new-branch <feature name>
@@ -51,13 +57,13 @@ As you work, and before you send a patch for review, you should
5157
ensure your branch is merging cleanly to `origin/main`.
5258

5359
There are multiple ways to do this, but we generally recommend
54-
running:
60+
using `git rebase-update` (another feature added by depot_tools):
5561

5662
```bash
5763
git rebase-update
5864
```
5965

60-
Note: you can run this command from any branch.
66+
You can run this command from any branch.
6167

6268
This command will fetch
6369
`origin/main`, rebase all your open branches, and delete
@@ -67,15 +73,15 @@ Your local workflow may vary.
6773

6874
## Uploading the patch for review
6975

70-
Upload the patch for review:
76+
Upload the patch to Gerrit for review using `git cl upload`:
7177

7278
```bash
7379
git cl upload -s
7480
```
7581

7682
The above command returns a URL for the review. Attach this review to your issue in https://dartbug.com.
7783

78-
To update the cl, just commit your changes and run `git cl upload -s` for your branch.
84+
To update the cl, just commit your changes and run `git cl upload -s` for your branch again.
7985

8086
If you have commit access, when the review is done and the patch is good to go, submit the patch on https://dart-review.googlesource.com:
8187

@@ -92,7 +98,7 @@ If you do not have commit access, a Dart engineer will commit on your behalf, as
9298

9399
More detailed instructions for the `git cl` tools available on https://commondatastorage.googleapis.com/chrome-infra-docs/flat/depot_tools/docs/html/depot_tools_tutorial.html#_creating_uploading_a_cl
94100

95-
## For committers: Merging external contributions
101+
## For committers: Merging contributions from non-members
96102

97103
If the author of a patch is not a committer, they will need help landing the patch.
98104
Once a patch gets an LGTM, it's easy for a committer to merge it in.
@@ -109,7 +115,7 @@ The source code of Dart follows the:
109115

110116
You should familiarize yourself with those guidelines.
111117

112-
All files in the Dart project must start with the following header. If you add a new file please also add this. The year should be a single number (not a range; don't use "2011-2012", even if the original code did). If you edit an existing file you don't have to update the year
118+
All files in the Dart project must start with the following header. If you add a new file please also add this. The year should be a single number (not a range; don't use "2011-2012", even if the original code did). If you edit an existing file you don't have to update the year.
113119

114120
```dart
115121
// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file

0 commit comments

Comments
 (0)