OLD | NEW |
---|---|
1 ## 1.19.0 | 1 ## 1.19.0 |
2 | 2 |
3 ### Core library changes | 3 ### Core library changes |
4 | 4 |
5 * `dart:io` | 5 * `dart:io` |
6 * Report a better error when a bind fails because of a bad source address. | 6 * Report a better error when a bind fails because of a bad source address. |
7 | 7 |
8 ### Analyzer | |
9 | |
10 * Strong mode breaking change - infer generic type arguments from the onstruct or invocation arguments (SDK issue [25220](https://github.com/dart-lang/sdk/issu es/25220)) | |
Leaf
2016/08/04 21:43:58
line length?
Leaf
2016/08/04 21:43:58
onstructor -> constructor
Jennifer Messerly
2016/08/04 22:11:12
hmmm. Not sure if it matters. I saw a few examples
| |
11 | |
12 ```dart | |
13 var map = new Map<String, String>(); | |
14 | |
15 // infer: Map<String, String> | |
16 var otherMap = new Map.from(map); | |
17 ``` | |
18 | |
19 * Strong mode breaking change - infer local function return type (SDK issue [2 6414](https://github.com/dart-lang/sdk/issues/26414)) | |
Leaf
2016/08/04 21:43:58
line length?
Jennifer Messerly
2016/08/04 22:11:12
Done.
| |
20 | |
21 ```dart | |
22 void main() { | |
23 // infer: return type is int | |
24 f() { return 40; } | |
25 int y = f() + 2; // type checks | |
26 print(y); | |
27 } | |
28 ``` | |
29 | |
8 ### Tool Changes | 30 ### Tool Changes |
9 | 31 |
10 * `dartfmt` - upgraded to v0.2.9 | 32 * `dartfmt` - upgraded to v0.2.9 |
11 * Support trailing commas in argument and parameter lists. | 33 * Support trailing commas in argument and parameter lists. |
12 * Gracefully handle read-only files. | 34 * Gracefully handle read-only files. |
13 * About a dozen other bug fixes. | 35 * About a dozen other bug fixes. |
14 | 36 |
15 * Pub | 37 * Pub |
16 * Added the ability for packages to declare a constraint on the [Flutter][] | 38 * Added the ability for packages to declare a constraint on the [Flutter][] |
17 SDK: | 39 SDK: |
(...skipping 1077 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1095 they will keep the Dart process alive until they time out. This fixes the | 1117 they will keep the Dart process alive until they time out. This fixes the |
1096 handling of persistent connections. Previously, the client would shut down | 1118 handling of persistent connections. Previously, the client would shut down |
1097 immediately after a request. | 1119 immediately after a request. |
1098 | 1120 |
1099 * **Breaking change:** `HttpServer` no longer compresses all traffic by | 1121 * **Breaking change:** `HttpServer` no longer compresses all traffic by |
1100 default. The new `autoCompress` property can be set to `true` to re-enable | 1122 default. The new `autoCompress` property can be set to `true` to re-enable |
1101 compression. | 1123 compression. |
1102 | 1124 |
1103 * `dart:isolate`: `Isolate.spawnUri` added the optional `packageRoot` argument, | 1125 * `dart:isolate`: `Isolate.spawnUri` added the optional `packageRoot` argument, |
1104 which controls how it resolves `package:` URIs. | 1126 which controls how it resolves `package:` URIs. |
OLD | NEW |