Skip to content

Commit 5815449

Browse files
committed
Version 2.9.0-14.1.beta
Merge commit '35cf8c3aa096037aa00a8d1bad3102c5d2cfc7ff' into beta
2 parents 14c6a93 + 35cf8c3 commit 5815449

File tree

9,243 files changed

+336568
-145314
lines changed

Some content is hidden

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

9,243 files changed

+336568
-145314
lines changed

.dart_tool/package_config.json

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"constraint, update this by running tools/generate_package_config.dart."
1212
],
1313
"configVersion": 2,
14-
"generated": "2020-04-27T16:42:25.459210",
14+
"generated": "2020-05-15T15:16:14.438097",
1515
"generator": "tools/generate_package_config.dart",
1616
"packages": [
1717
{
@@ -36,7 +36,7 @@
3636
"name": "analysis_server_client",
3737
"rootUri": "../pkg/analysis_server_client",
3838
"packageUri": "lib/",
39-
"languageVersion": "2.1"
39+
"languageVersion": "2.8"
4040
},
4141
{
4242
"name": "analysis_tool",
@@ -137,7 +137,7 @@
137137
"name": "crypto",
138138
"rootUri": "../third_party/pkg/crypto",
139139
"packageUri": "lib/",
140-
"languageVersion": "2.0"
140+
"languageVersion": "2.3"
141141
},
142142
{
143143
"name": "csslib",
@@ -191,7 +191,7 @@
191191
"name": "dartfix",
192192
"rootUri": "../pkg/dartfix",
193193
"packageUri": "lib/",
194-
"languageVersion": "2.3"
194+
"languageVersion": "2.8"
195195
},
196196
{
197197
"name": "dds",
@@ -219,8 +219,7 @@
219219
{
220220
"name": "ffi",
221221
"rootUri": "../third_party/pkg/ffi",
222-
"packageUri": "lib/",
223-
"languageVersion": "2.6"
222+
"packageUri": "lib/"
224223
},
225224
{
226225
"name": "fixnum",
@@ -254,6 +253,11 @@
254253
"rootUri": "../pkg/front_end/testcases/nnbd",
255254
"packageUri": ".nonexisting/"
256255
},
256+
{
257+
"name": "front_end_nnbd_mixed",
258+
"rootUri": "../pkg/front_end/testcases/nnbd_mixed",
259+
"packageUri": ".nonexisting/"
260+
},
257261
{
258262
"name": "front_end_nonfunction_type_aliases",
259263
"rootUri": "../pkg/front_end/testcases/nonfunction_type_aliases",
@@ -265,12 +269,6 @@
265269
"packageUri": "lib/",
266270
"languageVersion": "2.7"
267271
},
268-
{
269-
"name": "gardening",
270-
"rootUri": "../tools/gardening",
271-
"packageUri": "lib/",
272-
"languageVersion": "2.7"
273-
},
274272
{
275273
"name": "glob",
276274
"rootUri": "../third_party/pkg/glob",
@@ -305,7 +303,7 @@
305303
"name": "http_parser",
306304
"rootUri": "../third_party/pkg/http_parser",
307305
"packageUri": "lib/",
308-
"languageVersion": "2.0"
306+
"languageVersion": "2.3"
309307
},
310308
{
311309
"name": "http_retry",
@@ -328,8 +326,7 @@
328326
{
329327
"name": "js",
330328
"rootUri": "../pkg/js",
331-
"packageUri": "lib/",
332-
"languageVersion": "2.0"
329+
"packageUri": "lib/"
333330
},
334331
{
335332
"name": "js_ast",
@@ -585,7 +582,7 @@
585582
"name": "string_scanner",
586583
"rootUri": "../third_party/pkg/string_scanner",
587584
"packageUri": "lib/",
588-
"languageVersion": "1.8"
585+
"languageVersion": "2.0"
589586
},
590587
{
591588
"name": "telemetry",

.gitattributes

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
*.md text
1414
*.yaml text
1515

16-
# Files that should not be converted.
17-
tests/compiler/dart2js_extra/eof_line_ending_test.dart -text
18-
tests/compiler/dart2js_extra/string_interpolation_test.dart -text
19-
tests/compiler/dart2js_extra/string_interpolation_dynamic_test.dart -text
20-
tests/compiler/dart2js_extra/literal_string_juxtaposition_test.dart -text
16+
# File that should not be converted.
17+
tests/dart2js_2/eof_line_ending_test.dart -text
18+
tests/dart2js_2/string_interpolation_test.dart -text
19+
tests/dart2js_2/string_interpolation_dynamic_test.dart -text
20+
tests/dart2js_2/literal_string_juxtaposition_test.dart -text
2121
tests/language_2/string/raw_string_test.dart -text
2222
tests/language_2/string/multiline_strings_test.dart -text
2323
tests/language_2/string/multiline_newline_cr.dart -text

.packages

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ ffi:third_party/pkg/ffi/lib
4444
fixnum:third_party/pkg/fixnum/lib
4545
frontend_server:pkg/frontend_server/lib
4646
front_end:pkg/front_end/lib
47-
gardening:tools/gardening/lib
4847
glob:third_party/pkg/glob/lib
4948
html:third_party/pkg/html/lib
5049
http:third_party/pkg/http/lib

BUILD.gn

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ group("runtime") {
5757
"runtime/vm:kernel_platform_files($host_toolchain)",
5858
"utils/kernel-service:kernel-service",
5959
]
60+
61+
# TODO(bkonyi): this dep causes a segfault on Android XARM_X64 builds.
62+
# See issue #41776.
63+
if (dart_target_arch != "arm") {
64+
deps += [ "utils/dartdev:dartdev" ]
65+
}
6066
}
6167

6268
group("runtime_kernel") {
@@ -74,13 +80,23 @@ group("runtime_precompiled") {
7480
]
7581
}
7682

77-
if (use_nnbd) {
83+
if (dont_use_nnbd) {
7884
group("create_sdk") {
79-
public_deps = [ "sdk_nnbd:create_sdk" ]
85+
public_deps = [ "sdk:create_sdk" ]
8086
}
8187
} else {
8288
group("create_sdk") {
83-
public_deps = [ "sdk:create_sdk" ]
89+
public_deps = [ "sdk_nnbd:create_sdk" ]
90+
}
91+
}
92+
93+
if (dont_use_nnbd) {
94+
group("create_platform_sdk") {
95+
public_deps = [ "sdk:create_platform_sdk" ]
96+
}
97+
} else {
98+
group("create_platform_sdk") {
99+
public_deps = [ "sdk_nnbd:create_platform_sdk" ]
84100
}
85101
}
86102

CHANGELOG.md

Lines changed: 80 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44

55
### Core libraries
66

7+
#### `dart:io`
8+
9+
* [#42006][]: The signature of `exit` has been changed to return the
10+
`Never`type instead of `void`. since no code will run after it,
11+
12+
[#42006]: https://github.com/dart-lang/sdk/issues/42006
13+
714
#### `dart:convert`
815

916
* **Breaking Change** [#41100][]: When encoding a string containing unpaired
@@ -23,11 +30,28 @@
2330
null-safe changes in the `Set` interface, it will now return `false`
2431
instead. The same applies for `CssClassSet.toggle`.
2532

33+
* `EventStreamSubscription.cancel` method used to return `null`, but since
34+
`StreamSubscription.cancel` has changed to be non-nullable, this method
35+
returns an empty `Future` instead. Due to an optimization on `null`
36+
`Future`s, this method used to complete synchronously, but now that the
37+
`Future` is empty instead, it completes asynchronously, therefore
38+
potentially invalidating code that relied on the synchronous side-effect.
39+
This change will only affect code using sound null-safety. See issue
40+
[41653][] for more details.
41+
42+
[41653]: https://github.com/dart-lang/sdk/issues/41653
43+
44+
2645
#### `dart:io`
2746

2847
* Class `OSError` now implements `Exception`. This change means `OSError` will
2948
now be caught in catch clauses catching `Exception`s.
3049
* Added `InternetAddress.tryParse`.
50+
* [Abstract Unix Domain Socket][] is supported on Linux/Android now. Using an
51+
`InternetAddress` with `address` starting with '@' and type being
52+
`InternetAddressType.Unix` will create an abstract Unix Domain Socket.
53+
54+
[Abstract Unix Domain Socket]: http://man7.org/linux/man-pages/man7/unix.7.html
3155

3256
### Tools
3357

@@ -44,9 +68,15 @@
4468

4569
#### Linter
4670

47-
Updated the Linter to `0.1.115`, which includes:
71+
Updated the Linter to `0.1.116`, which includes:
4872

49-
* Updated `avoid_types_as_parameter_names` to check catch-clauses.
73+
* New lint: `no_default_cases` (experimental).
74+
* New lint: `exhaustive_cases`.
75+
* Updated `type_annotate_public_apis` to allow inferred types in final field assignments.
76+
* Updated `prefer_mixin` to allow "legacy" SDK abstract class mixins.
77+
* New lint: `use_is_even_rather_than_modulo`.
78+
* Updated `unsafe_html` to use a `SecurityLintCode` (making it un-ignorable).
79+
* Improved `sized_box_for_whitespace` to address false-positives.
5080
* Fixed `unsafe_html` to check attributes and methods on extensions.
5181
* Extended `unsafe_html` to include `Window.open`, `Element.html` and
5282
`DocumentFragment.html` in unsafe API checks.
@@ -56,6 +86,50 @@ Updated the Linter to `0.1.115`, which includes:
5686

5787
### Dart VM
5888

89+
### Pub
90+
* `pub run` and `pub global run` accepts a `--enable-experiment` flag enabling
91+
experiments in the Dart VM (and language).
92+
* Publishing Flutter plugins using the old plugin format is no longer allowed.
93+
Plugins using the old plugin format can still be consumed.
94+
* Introduce `pub outdated --mode=null-safety` that will report which of your
95+
dependencies you can upgrade to fully support null safety.
96+
* Fix `pub run` precompilation with relative `PUB_CACHE` paths (#2486)
97+
* Warn at publishing first time a package version opts in to null-safety.
98+
* Preserve Windows line endings in pubspec.lock if they are already there (#2489)
99+
* Better terminal color-detection. Use colors in terminals on Windows.
100+
* `pub outdated`: If the current version of a dependency is a prerelease
101+
version, use prereleases for latest if no newer stable.
102+
* `pub outdated` now works without a lockfile. In that case the 'Current'
103+
column will be empty.
104+
* `pub upgrade`: Show summary count of outdated packages after running.
105+
106+
## 2.8.4 - 2020-06-04
107+
108+
This is a patch release that fixes potential memory leaks in the Dart front-end
109+
(issues [#42111][] and [#42112][]).
110+
111+
[#42111]: https://github.com/dart-lang/sdk/issues/42111
112+
[#42112]: https://github.com/dart-lang/sdk/issues/42112
113+
114+
## 2.8.3 - 2020-05-28
115+
116+
This is a patch release that fixes the following issues:
117+
* crashes in Flutter apps (issue [flutter/flutter#57318][]).
118+
* a regression in stack traces (issue [#41907][]).
119+
* re-canonicalization of constants with unboxed fields (issue
120+
[flutter/flutter#57190][]).
121+
122+
[flutter/flutter#57318]: https://github.com/flutter/flutter/issues/57318
123+
[#41907]: https://github.com/dart-lang/sdk/issues/41907
124+
[flutter/flutter#57190]: https://github.com/flutter/flutter/issues/57190
125+
126+
## 2.8.2 - 2020-05-13
127+
128+
This is a patch release that fixes an AOT compilation bug in global
129+
transformations which manifests as a NoSuchMethod exception
130+
(issue [flutter/flutter#56479][]).
131+
132+
[flutter/flutter#56479]: https://github.com/flutter/flutter/issues/56479
59133

60134
## 2.8.1 - 2020-05-06
61135

@@ -267,6 +341,10 @@ minor breaking changes:
267341
`runZonedGuarded()` functions from `dart:async` directly if needing to
268342
specify those.
269343
344+
* Class `HttpClient` and `HttpServer`, when receiving `HttpRequest` or
345+
`HttpClientResponse`, will now put a 8K size limit on its header fields and
346+
values.
347+
270348
[#33501]: https://github.com/dart-lang/sdk/issues/33501
271349
[#40702]: https://github.com/dart-lang/sdk/issues/40702
272350
[#40483]: https://github.com/dart-lang/sdk/issues/40483

CONTRIBUTING.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Want to contribute? Great! First, read this page (including the small print at t
22

33
## Ways you can contribute
44

5-
You can help the Dart project in many ways, in addition to contributing code. For example, you can [report bugs](http://dartbug.com), ask and answer [Dart questions on StackOverflow](http://stackoverflow.com/questions/tagged/dart), and improve the documentation.
5+
You can help the Dart project in many ways, in addition to contributing code. For example, you can [report bugs](https://dartbug.com), ask and answer [Dart questions on StackOverflow](https://stackoverflow.com/questions/tagged/dart), and improve the documentation.
66

77
If you'd like to improve the documentation, you have three options:
88

@@ -69,7 +69,7 @@ Upload the patch for review:
6969
git cl upload -s
7070
```
7171

72-
The above command returns a URL for the review. Attach this review to your issue in http://dartbug.com
72+
The above command returns a URL for the review. Attach this review to your issue in https://dartbug.com
7373

7474
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:
7575

@@ -84,7 +84,7 @@ git cl web # opens your review on https://dart-review.googlesource.com
8484

8585
If you do not have commit access, a Dart engineer will commit on your behalf, assuming the patch is reviewed and accepted.
8686

87-
More detailed instructions for the `git cl` tools available on http://commondatastorage.googleapis.com/chrome-infra-docs/flat/depot_tools/docs/html/depot_tools_tutorial.html#_creating_uploading_a_cl
87+
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
8888

8989
## For committers: Merging external contributions
9090

@@ -99,7 +99,7 @@ Once a patch gets an LGTM, it's easy for a committer to merge it in.
9999
The source code of Dart follows the:
100100

101101
* [Google C++ style guide](https://google.github.io/styleguide/cppguide.html)
102-
* [Dart style guide](https://www.dartlang.org/articles/style-guide/)
102+
* [Dart style guide](https://dart.dev/guides/language/effective-dart/style)
103103

104104
You should familiarize yourself with those guidelines.
105105

@@ -114,6 +114,6 @@ All files in the Dart project must start with the following header. If you add a
114114

115115
## The small print
116116

117-
Contributions made by corporations are covered by a different agreement than the one above, the [Software Grant and Corporate Contributor License Agreement](http://code.google.com/legal/corporate-cla-v1.0.html).
117+
Contributions made by corporations are covered by a different agreement than the one above, the [Software Grant and Corporate Contributor License Agreement](https://cla.developers.google.com/about/google-corporate).
118118

119119
We pledge to maintain an open and welcoming environment. For details, see our [code of conduct](https://dart.dev/code-of-conduct).

0 commit comments

Comments
 (0)