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 * `Socket.connect` with source-address argument is now non-blocking | 6 * `Socket.connect` with source-address argument is now non-blocking |
7 on Mac. Was already non-blocking on all other platforms. | 7 on Mac. Was already non-blocking on all other platforms. |
8 * Report a better error when a bind fails because of a bad source address. | 8 * Report a better error when a bind fails because of a bad source address. |
9 | 9 |
10 ### Strong Mode | 10 ### Strong Mode |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 ```dart | 48 ```dart |
49 void fn/*<T>*/(/*=T*/ object) { | 49 void fn/*<T>*/(/*=T*/ object) { |
50 if (object is String) { | 50 if (object is String) { |
51 // Treat `object` as `String` inside this block. | 51 // Treat `object` as `String` inside this block. |
52 // But it will require a cast to pass it to something that expects `T`. | 52 // But it will require a cast to pass it to something that expects `T`. |
53 print(object.substring(1)); | 53 print(object.substring(1)); |
54 } | 54 } |
55 } | 55 } |
56 ``` | 56 ``` |
57 | 57 |
| 58 ### Dart VM |
| 59 |
| 60 * The dependency on BoringSSL has been rolled forward. Going forward, builds |
| 61 of the Dart VM including secure sockets will require a compiler with C11 |
| 62 support, and to link against glib 2.16 or newer. |
| 63 |
58 ### Tool Changes | 64 ### Tool Changes |
59 | 65 |
60 * `dartfmt` - upgraded to v0.2.9 | 66 * `dartfmt` - upgraded to v0.2.9 |
61 * Support trailing commas in argument and parameter lists. | 67 * Support trailing commas in argument and parameter lists. |
62 * Gracefully handle read-only files. | 68 * Gracefully handle read-only files. |
63 * About a dozen other bug fixes. | 69 * About a dozen other bug fixes. |
64 | 70 |
65 * Pub | 71 * Pub |
66 * Added the ability for packages to declare a constraint on the [Flutter][] | 72 * Added the ability for packages to declare a constraint on the [Flutter][] |
67 SDK: | 73 SDK: |
(...skipping 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1148 they will keep the Dart process alive until they time out. This fixes the | 1154 they will keep the Dart process alive until they time out. This fixes the |
1149 handling of persistent connections. Previously, the client would shut down | 1155 handling of persistent connections. Previously, the client would shut down |
1150 immediately after a request. | 1156 immediately after a request. |
1151 | 1157 |
1152 * **Breaking change:** `HttpServer` no longer compresses all traffic by | 1158 * **Breaking change:** `HttpServer` no longer compresses all traffic by |
1153 default. The new `autoCompress` property can be set to `true` to re-enable | 1159 default. The new `autoCompress` property can be set to `true` to re-enable |
1154 compression. | 1160 compression. |
1155 | 1161 |
1156 * `dart:isolate`: `Isolate.spawnUri` added the optional `packageRoot` argument, | 1162 * `dart:isolate`: `Isolate.spawnUri` added the optional `packageRoot` argument, |
1157 which controls how it resolves `package:` URIs. | 1163 which controls how it resolves `package:` URIs. |
OLD | NEW |