Skip to content

Commit aceb1a6

Browse files
committed
Version 2.12.0-29.1.beta
Merge commit '2.12.0-29.0.dev' into beta
2 parents d93fe00 + 26219fa commit aceb1a6

File tree

4,155 files changed

+298168
-103216
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,155 files changed

+298168
-103216
lines changed

.dart_tool/package_config.json

Lines changed: 27 additions & 21 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-10-09T10:15:45.502457",
14+
"generated": "2020-10-26T09:42:07.748397",
1515
"generator": "tools/generate_package_config.dart",
1616
"packages": [
1717
{
@@ -124,7 +124,7 @@
124124
"name": "benchmark_harness",
125125
"rootUri": "../third_party/pkg/benchmark_harness",
126126
"packageUri": "lib/",
127-
"languageVersion": "2.10"
127+
"languageVersion": "2.12"
128128
},
129129
{
130130
"name": "boolean_selector",
@@ -150,6 +150,12 @@
150150
"packageUri": "lib/",
151151
"languageVersion": "2.0"
152152
},
153+
{
154+
"name": "clock",
155+
"rootUri": "../third_party/pkg/clock",
156+
"packageUri": "lib/",
157+
"languageVersion": "2.10"
158+
},
153159
{
154160
"name": "collection",
155161
"rootUri": "../third_party/pkg/collection",
@@ -222,12 +228,6 @@
222228
"packageUri": "lib/",
223229
"languageVersion": "2.10"
224230
},
225-
{
226-
"name": "dartfix",
227-
"rootUri": "../pkg/dartfix",
228-
"packageUri": "lib/",
229-
"languageVersion": "2.8"
230-
},
231231
{
232232
"name": "dds",
233233
"rootUri": "../pkg/dds",
@@ -254,7 +254,8 @@
254254
{
255255
"name": "ffi",
256256
"rootUri": "../third_party/pkg/ffi",
257-
"packageUri": "lib/"
257+
"packageUri": "lib/",
258+
"languageVersion": "2.12"
258259
},
259260
{
260261
"name": "fixnum",
@@ -295,7 +296,7 @@
295296
"name": "http",
296297
"rootUri": "../third_party/pkg/http",
297298
"packageUri": "lib/",
298-
"languageVersion": "2.4"
299+
"languageVersion": "2.10"
299300
},
300301
{
301302
"name": "http_io",
@@ -313,7 +314,7 @@
313314
"name": "http_parser",
314315
"rootUri": "../third_party/pkg/http_parser",
315316
"packageUri": "lib/",
316-
"languageVersion": "2.3"
317+
"languageVersion": "2.11"
317318
},
318319
{
319320
"name": "http_retry",
@@ -331,7 +332,7 @@
331332
"name": "intl",
332333
"rootUri": "../third_party/pkg/intl",
333334
"packageUri": "lib/",
334-
"languageVersion": "2.5"
335+
"languageVersion": "2.11"
335336
},
336337
{
337338
"name": "js",
@@ -377,7 +378,7 @@
377378
"name": "logging",
378379
"rootUri": "../third_party/pkg/logging",
379380
"packageUri": "lib/",
380-
"languageVersion": "2.0"
381+
"languageVersion": "2.10"
381382
},
382383
{
383384
"name": "markdown",
@@ -443,7 +444,7 @@
443444
"name": "observatory",
444445
"rootUri": "../runtime/observatory",
445446
"packageUri": "lib/",
446-
"languageVersion": "2.2"
447+
"languageVersion": "2.10"
447448
},
448449
{
449450
"name": "observatory_2",
@@ -454,7 +455,7 @@
454455
{
455456
"name": "observatory_test_package",
456457
"rootUri": "../runtime/observatory/tests/service/observatory_test_package",
457-
"languageVersion": "2.7"
458+
"languageVersion": "2.9"
458459
},
459460
{
460461
"name": "observatory_test_package_2",
@@ -467,6 +468,11 @@
467468
"packageUri": "lib/",
468469
"languageVersion": "2.7"
469470
},
471+
{
472+
"name": "package_deps",
473+
"rootUri": "../tools/package_deps",
474+
"languageVersion": "2.8"
475+
},
470476
{
471477
"name": "path",
472478
"rootUri": "../third_party/pkg/path",
@@ -495,7 +501,7 @@
495501
"name": "pub",
496502
"rootUri": "../third_party/pkg/pub",
497503
"packageUri": "lib/",
498-
"languageVersion": "2.9"
504+
"languageVersion": "2.11"
499505
},
500506
{
501507
"name": "pub_semver",
@@ -504,16 +510,16 @@
504510
"languageVersion": "2.0"
505511
},
506512
{
507-
"name": "quiver",
508-
"rootUri": "../third_party/pkg/quiver",
513+
"name": "resource",
514+
"rootUri": "../third_party/pkg/resource",
509515
"packageUri": "lib/",
510516
"languageVersion": "2.0"
511517
},
512518
{
513-
"name": "resource",
514-
"rootUri": "../third_party/pkg/resource",
519+
"name": "scrape",
520+
"rootUri": "../pkg/scrape",
515521
"packageUri": "lib/",
516-
"languageVersion": "2.0"
522+
"languageVersion": "2.10"
517523
},
518524
{
519525
"name": "sdk_library_metadata",

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,11 @@ tools/xcodebuild
103103
/generated/
104104
/crash_logs/
105105
/build/config/gclient_args.gni
106+
/pkg/front_end/testcases/old_dills/
107+
/logs.json
108+
/results.json
109+
/async_lazy_debug.so
110+
/dwarf.so
111+
/dwarf_obfuscate.so
112+
/il_tmp.txt
113+

.packages

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ dart_internal:pkg/dart_internal/lib
3535
dart_style:third_party/pkg_tested/dart_style/lib
3636
dartdev:pkg/dartdev/lib
3737
dartdoc:third_party/pkg/dartdoc/lib
38-
dartfix:pkg/dartfix/lib
3938
dds:pkg/dds/lib
4039
dev_compiler:pkg/dev_compiler/lib
4140
diagnostic:pkg/diagnostic/lib
@@ -79,7 +78,6 @@ pool:third_party/pkg/pool/lib
7978
protobuf:third_party/pkg/protobuf/protobuf/lib
8079
pub:third_party/pkg/pub/lib
8180
pub_semver:third_party/pkg/pub_semver/lib
82-
quiver:third_party/pkg/quiver/lib
8381
resource:third_party/pkg/resource/lib
8482
sdk_library_metadata:sdk/lib/_internal/sdk_library_metadata/lib
8583
shelf:third_party/pkg/shelf/lib

CHANGELOG.md

Lines changed: 106 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,42 @@
1-
## 2.11.0
1+
## 2.12.0
2+
3+
### Language
4+
5+
**Breaking Change** [Null
6+
Safety](https://dart.dev/null-safety/understanding-null-safety) is now enabled
7+
by default in all packages with a lower sdk constraint of 2.12.0 or greater.
8+
Files that are not subject to language versioning (whether because they are not
9+
contained in a pub package, or because the package that they are contained in
10+
has no lower sdk constraint) are treated as opted into to null safety by default
11+
and may report new errors. Pub packages may be opted out of null safety by
12+
setting a min sdk constraint in pubspec.yaml of 2.9.0 or less. Files may be
13+
opted out of null safety by adding `// @dart=2.9` to the beginning of the file.
214

315
### Core libraries
416

517
#### `dart:io`
618

7-
* `HttpRequest` will now correctly follow HTTP 308 redirects
8-
(`HttpStatus.permanentRedirect`).
19+
* `HttpRequest` will now correctly follow HTTP 308 redirects
20+
(`HttpStatus.permanentRedirect`).
21+
22+
#### `dart:isolate`
23+
24+
* Added `debugName` positional parameter to `ReceivePort` and `RawReceivePort`
25+
constructors, a name which can be associated with the port and displayed in
26+
tooling.
927

1028
### Dart VM
1129

30+
* **Breaking Change** [#42312][]: `Dart_WeakPersistentHandle`s will no longer
31+
auto-delete themselves when the referenced object is garbage collected to
32+
avoid race conditions, but they are still automatically deleted when the
33+
isolate group shuts down.
34+
* **Breaking Change** [#42312][]: `Dart_WeakPersistentHandleFinalizer`
35+
is renamed to `Dart_HandleFinalizer` and had its `handle` argument removed.
36+
All api functions using that type have been updated.
37+
38+
[#42312]: https://github.com/dart-lang/sdk/issues/42312
39+
1240
### Dart2JS
1341

1442
* Removed `--no-defer-class-types` and `--no-new-deferred-split`.
@@ -21,13 +49,29 @@
2149
`--enable-assert-initializers` command line options. These options haven't
2250
been supported in a while and were no-ops.
2351

24-
#### Linter
52+
#### dartfmt
2553

26-
Updated the Linter to `0.1.121`, which includes:
54+
* Don't duplicate comments on chained if elements.
55+
* Preserve `?` in initializing formal function-typed parameters.
2756

28-
# 0.1.121
57+
#### Linter
2958

30-
* Performance improvements to `always_use_package_imports`,
59+
Updated the Linter to `0.1.124`, which includes:
60+
61+
* Fixed false positives in `prefer_constructors_over_static_methods`.
62+
* Updates to `package_names` to allow leading underscores.
63+
* Fixed NPEs in `unnecessary_null_checks`.
64+
* A fixed NPE in `missing_whitespace_between_adjacent_strings`.
65+
* Updates to `void_checks` for NNBD.
66+
* A fixed range error in `unnecessary_string_escapes`.
67+
* A fixed false positives in `unnecessary_null_types`.
68+
* Fixes to `prefer_constructors_over_static_methods` to respect type parameters.
69+
* Updates to `always_require_non_null_named_parameters` to be NNBD-aware.
70+
* Updates tp `unnecessary_nullable_for_final_variable_declarations` to allow dynamic.
71+
* Updates `overridden_fields` to not report on abstract parent fields.
72+
* Fixes to `unrelated_type_equality_checks` for NNBD.
73+
* Improvements to `type_init_formals`to allow types not equal to the field type.
74+
* Performance improvements to `always_use_package_imports`,
3175
`avoid_renaming_method_parameters`, `prefer_relative_imports` and
3276
`public_member_api_docs`.
3377
* (internal): updates to analyzer `0.40.4` APIs
@@ -41,6 +85,61 @@ Updated the Linter to `0.1.121`, which includes:
4185
* Fixed `unawaited_futures` to handle `Future` subtypes.
4286
* New lint: `avoid_type_to_string`.
4387

88+
#### Pub
89+
90+
* **Breaking**: The Dart SDK constraint is now **required** in `pubspec.yaml`.
91+
92+
You now have to include a section like:
93+
94+
```yaml
95+
environment:
96+
sdk: '>=2.10.0 <3.0.0'
97+
```
98+
99+
See [#44072][].
100+
* The top level `pub` executable has been deprecated. Use `dart pub` instead.
101+
See [dart tool][].
102+
* New command `dart pub add` that adds new dependencies to your `pubspec.yaml`.
103+
104+
And a corresponding `dart pub remove` that removes dependencies.
105+
* New option `dart pub outdated --mode=null-safety` that will analyze your
106+
dependencies for null-safety.
107+
* `dart pub publish` will now check your pubspec keys for likely typos.
108+
* New command `dart pub login` that logs in to pub.dev.
109+
* The `--server` option to `dart pub publish` and `dart pub uploader` have been
110+
deprecated. Use `publish_to` in your `pubspec.yaml` or set the
111+
`$PUB_HOSTED_URL` environment variable.
112+
113+
[#44072]: https://github.com/dart-lang/sdk/issues/44072
114+
[dart tool]: https://dart.dev/tools/dart-tool
115+
116+
## 2.10.3 - 2020-10-29
117+
118+
This is a patch release that fixes the following issues:
119+
* breaking changes in Chrome 86 that affect DDC (issues [#43750][] and
120+
[#43193][]).
121+
* compiler error causing incorrect use of positional parameters when named
122+
parameters should be used instead (issues [flutter/flutter#65324][] and
123+
[flutter/flutter#68092][]).
124+
* crashes and/or undefined behavor in AOT compiled code (issues [#43770][] and
125+
[#43786][]).
126+
* AOT compilation of classes with more than 64 unboxed fields
127+
(issue [flutter/flutter#67803][]).
128+
129+
[#43750]: https://github.com/dart-lang/sdk/issues/43750
130+
[#43193]: https://github.com/dart-lang/sdk/issues/43193
131+
[flutter/flutter#65324]: https://github.com/flutter/flutter/issues/65324
132+
[flutter/flutter#68092]: https://github.com/flutter/flutter/issues/68092
133+
[#43770]: https://github.com/dart-lang/sdk/issues/43770
134+
[#43786]: https://github.com/dart-lang/sdk/issues/43786
135+
[flutter/flutter#67803]: https://github.com/flutter/flutter/issues/67803
136+
137+
## 2.10.2 - 2020-10-15
138+
139+
This is a patch release that fixes a DDC compiler crash (issue [#43589]).
140+
141+
[#43589]: https://github.com/dart-lang/sdk/issues/43589
142+
44143
## 2.10.1 - 2020-10-06
45144

46145
This is a patch release that fixes the following issues:

0 commit comments

Comments
 (0)