@@ -9,28 +9,29 @@ significant changes across all areas of the platform. Large changes include:
9
9
products. Now it is the one official static type system for the entire
10
10
platform and replaces the previous "checked" and "production" modes.
11
11
12
- * The ` new ` keyword is optional and can be omitted. Likewise, ` const ` can be
13
- omitted inside a const context ([ issue 30921] [ ] .
14
-
15
- * ** (Breaking)** Functions marked ` async ` now run synchronously to the first
16
- ` await ` statement instead of returning to the event loop once at the top of
17
- the function body before any code runs ([ issue 30345] [ ] ).
12
+ * ** (Breaking)** Functions marked ` async ` now run synchronously until the
13
+ first ` await ` statement. Previously, they would return to the event loop
14
+ once at the top of the function body before any code runs ([ issue 30345] [ ] ).
18
15
19
16
* ** (Breaking)** Constants in the core libraries have been renamed from
20
- ` SCREAMING_CAPS ` to ` lowercaseWithUnderscores ` .
17
+ ` SCREAMING_CAPS ` to ` lowerCamelCase ` .
21
18
22
19
* ** (Breaking)** Many new methods have been added to core library classes. If
23
20
you implement the interfaces of these classes, you will need to implement
24
21
the new methods.
25
22
26
- * "dart: isolate " and "dart: mirrors " are no longer supported when using Dart
27
- for the web. They are still supported in the command-line VM.
28
-
29
- * Dartium is no longer maintained or supported.
23
+ * ** (Breaking)** "dart: isolate " and "dart: mirrors " are no longer supported
24
+ when using Dart for the web. They are still supported in the command-line
25
+ VM.
30
26
31
27
* ** (Breaking)** Pub's transformer-based build system has been [ replaced by a
32
28
new build system] [ transformers ] .
33
29
30
+ * The ` new ` keyword is optional and can be omitted. Likewise, ` const ` can be
31
+ omitted inside a const context ([ issue 30921] [ ] ).
32
+
33
+ * Dartium is no longer maintained or supported.
34
+
34
35
[ issue 30345 ] : https://github.com/dart-lang/sdk/issues/30345
35
36
[ issue 30921 ] : https://github.com/dart-lang/sdk/issues/30921
36
37
[ strong mode ] : https://www.dartlang.org/guides/language/sound-dart
@@ -60,8 +61,9 @@ significant changes across all areas of the platform. Large changes include:
60
61
to have parts, and it allows tools to easily find the library of a part
61
62
file. The Dart 1.0 syntax is supported but deprecated.
62
63
63
- * Added support for starting `async` functions synchronously. All tools (VM,
64
- dart2js, DDC) support this ([issue 30345][]).
64
+ * Functions marked `async` now run synchronously until the first `await`
65
+ statement. Previously, they would return to the event loop once at the top
66
+ of the function body before any code runs ([issue 30345][]).
65
67
66
68
* The type `void` is now a Top type like `dynamic`, and `Object`. It also now
67
69
has new errors for being used where not allowed (such as being assigned to
@@ -80,9 +82,9 @@ significant changes across all areas of the platform. Large changes include:
80
82
}
81
83
```
82
84
83
- * Invocations of `noSuchMethod()` receive default values for optional args. The
84
- following program used to print "No arguments passed", and now prints "First
85
- argument is 3".
85
+ * Invocations of `noSuchMethod()` receive default values for optional args.
86
+ The following program used to print "No arguments passed", and now prints
87
+ "First argument is 3".
86
88
87
89
```dart
88
90
abstract class B {
@@ -118,19 +120,6 @@ significant changes across all areas of the platform. Large changes include:
118
120
}
119
121
```
120
122
121
- * Inference chooses `void` when combining `Object` or `dynamic` and `void`
122
- ([issue 33341][]). When combining with other top types, inference now
123
- prefers `void`. For example, given:
124
-
125
- ```dart
126
- void foo() {};
127
- dynamic bar() {};
128
- var a = [foo(), bar()];
129
- ```
130
-
131
- The variable `a` would previously have been inferred as `List<dynamic>`, and
132
- is now be inferred as `List<void>`.
133
-
134
123
* Numerous corner case bugs around return statements in synchronous and
135
124
asynchronous functions fixed. Specifically:
136
125
@@ -320,7 +309,7 @@ Still need entries for all changes to dart:html since 1.x
320
309
#### `dart:html`
321
310
322
311
* Removed deprecated `query` and `queryAll`. Use `querySelector` and
323
- `queryAllSelector `.
312
+ `querySelectorAll `.
324
313
325
314
#### `dart:io`
326
315
0 commit comments