OLD | NEW |
---|---|
1 ## 1.22.0 | 1 ## 1.22.0 |
2 | 2 |
3 ### Language | 3 ### Language |
4 | 4 |
5 * Breaking change: ['Generalized tear-offs'](https://github.com/gbracha/genera lizedTearOffs/blob/master/proposal.md) | 5 * Breaking change: ['Generalized tear-offs'](https://github.com/gbracha/genera lizedTearOffs/blob/master/proposal.md) |
6 are no longer supported, and will cause errors. We updated the language spec | 6 are no longer supported, and will cause errors. We updated the language spec |
7 and added warnings in 1.21, and are now taking the last step to fully | 7 and added warnings in 1.21, and are now taking the last step to fully |
8 de-support them. They were previously supported in the VM only. | 8 de-support them. They were previously supported in the VM only. |
9 | 9 |
10 * The `assert()` statement has been expanded to support an optional second | 10 * The `assert()` statement has been expanded to support an optional second |
(...skipping 11 matching lines...) Expand all Loading... | |
22 | 22 |
23 ``` | 23 ``` |
24 Unhandled exception: | 24 Unhandled exception: |
25 'file:///Users/mit/tmp/tool/bin/main.dart': Failed assertion: line 9 pos 10: | 25 'file:///Users/mit/tmp/tool/bin/main.dart': Failed assertion: line 9 pos 10: |
26 'configFile != null': Tool config missing. Please see https://goo.gl/k8iAi f or details. | 26 'configFile != null': Tool config missing. Please see https://goo.gl/k8iAi f or details. |
27 #0 _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:33) | 27 #0 _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:33) |
28 #1 _AssertionError._throwNew (dart:core-patch/errors_patch.dart:29) | 28 #1 _AssertionError._throwNew (dart:core-patch/errors_patch.dart:29) |
29 #2 main (file:///Users/mit/tmp/tool/bin/main.dart:9:10) | 29 #2 main (file:///Users/mit/tmp/tool/bin/main.dart:9:10) |
30 ``` | 30 ``` |
31 | 31 |
32 * The `Null` type has been moved to the bottom of the type hierarchy. As such, | |
33 it is considered a subtype of every other type. | |
Lasse Reichstein Nielsen
2017/01/19 13:58:47
(Not technically true, since bottom exists, but le
floitsch
2017/01/19 14:18:53
Acknowledged.
| |
34 | |
35 Examples: | |
36 ``` | |
37 Null foo() => null; | |
38 int x = foo(); | |
39 String x = foo(); | |
40 | |
41 List<Null> bar() => []; | |
Lasse Reichstein Nielsen
2017/01/19 13:58:47
Add the type parameter to the literal as well, jus
floitsch
2017/01/19 14:18:54
Done.
| |
42 List<int> = bar(); | |
43 List<String> = bar(); | |
44 ``` | |
45 | |
32 ### Tool changes | 46 ### Tool changes |
33 | 47 |
34 * Dart2Js | 48 * Dart2Js |
35 | 49 |
36 * Remove support for (long-time deprecated) mixin typedefs. | 50 * Remove support for (long-time deprecated) mixin typedefs. |
37 | 51 |
38 * Pub | 52 * Pub |
39 | 53 |
40 * Avoid using a barback asset server for executables unless they actually use | 54 * Avoid using a barback asset server for executables unless they actually use |
41 transformers. This makes precompilation substantially faster, produces | 55 transformers. This makes precompilation substantially faster, produces |
(...skipping 1422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1464 they will keep the Dart process alive until they time out. This fixes the | 1478 they will keep the Dart process alive until they time out. This fixes the |
1465 handling of persistent connections. Previously, the client would shut down | 1479 handling of persistent connections. Previously, the client would shut down |
1466 immediately after a request. | 1480 immediately after a request. |
1467 | 1481 |
1468 * **Breaking change:** `HttpServer` no longer compresses all traffic by | 1482 * **Breaking change:** `HttpServer` no longer compresses all traffic by |
1469 default. The new `autoCompress` property can be set to `true` to re-enable | 1483 default. The new `autoCompress` property can be set to `true` to re-enable |
1470 compression. | 1484 compression. |
1471 | 1485 |
1472 * `dart:isolate`: `Isolate.spawnUri` added the optional `packageRoot` argument, | 1486 * `dart:isolate`: `Isolate.spawnUri` added the optional `packageRoot` argument, |
1473 which controls how it resolves `package:` URIs. | 1487 which controls how it resolves `package:` URIs. |
OLD | NEW |