Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 ## 1.20.0 | 1 ## 1.20.0 |
| 2 | 2 |
| 3 ### Dart VM | 3 ### Dart VM |
| 4 | 4 |
| 5 * We have improved the way that the VM locates the native code library for a | 5 * We have improved the way that the VM locates the native code library for a |
| 6 native extension (e.g. `dart-ext:` import). We have updated this | 6 native extension (e.g. `dart-ext:` import). We have updated this |
| 7 [article on native extensions](https://www.dartlang.org/articles/dart-vm/nativ e-extensions) | 7 [article on native extensions](https://www.dartlang.org/articles/dart-vm/nativ e-extensions) |
| 8 to reflect the VM's improved behavior. | 8 to reflect the VM's improved behavior. |
| 9 | 9 |
| 10 * We have improved the way the VM searches for trusted root certificates for | |
| 11 secure socket connections on Linux. First, the VM will look for trusted root | |
| 12 certificates in standard locations on the file system | |
| 13 (/etc/pki/tls/certs/ca-bundle.crt followed by /etc/ssl/certs), and only if | |
| 14 these do not exist will it fall back on the builtin trusted root certificates. | |
| 15 This behavior can be overridden on Linux with the new flags | |
| 16 --root-certs-file and --root-certs-cache. | |
|
siva
2016/09/16 01:27:12
Should some documentation about these options be a
zra
2016/09/16 16:08:01
Done.
| |
| 17 | |
| 10 ### Core library changes | 18 ### Core library changes |
| 11 * `dart:core`: Remove deprecated `Resource` class. | 19 * `dart:core`: Remove deprecated `Resource` class. |
| 12 Use the class in `package:resource` instead. | 20 Use the class in `package:resource` instead. |
| 13 * `dart:async` | 21 * `dart:async` |
| 14 * `Future.wait` now catches synchronous errors and returns them in the | 22 * `Future.wait` now catches synchronous errors and returns them in the |
| 15 returned Future. | 23 returned Future. |
| 16 * More aggressively returns a Future on Stream.cancel operations. | 24 * More aggressively returns a Future on Stream.cancel operations. |
| 17 Discourages to return `null` from `cancel`. | 25 Discourages to return `null` from `cancel`. |
| 18 * Fixes a few bugs where the cancel future wasn't passed through | 26 * Fixes a few bugs where the cancel future wasn't passed through |
| 19 transformations. | 27 transformations. |
| 20 * `dart:io` | 28 * `dart:io` |
| 21 * Added `WebSocket.addUtf8Text` to allow sending a pre-encoded text message | 29 * Added `WebSocket.addUtf8Text` to allow sending a pre-encoded text message |
| 22 without a round-trip UTF-8 conversion. | 30 without a round-trip UTF-8 conversion. |
| 23 | 31 |
| 24 ## Strong Mode | 32 ### Strong Mode |
| 25 | 33 |
| 26 * Breaking change - it is an error if a generic type parameter cannot be | 34 * Breaking change - it is an error if a generic type parameter cannot be |
| 27 inferred (SDK issue [26992](https://github.com/dart-lang/sdk/issues/26992)). | 35 inferred (SDK issue [26992](https://github.com/dart-lang/sdk/issues/26992)). |
| 28 | 36 |
| 29 ```dart | 37 ```dart |
| 30 class Cup<T> { | 38 class Cup<T> { |
| 31 Cup(T t); | 39 Cup(T t); |
| 32 } | 40 } |
| 33 main() { | 41 main() { |
| 34 // Error because: | 42 // Error because: |
| (...skipping 1221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1256 they will keep the Dart process alive until they time out. This fixes the | 1264 they will keep the Dart process alive until they time out. This fixes the |
| 1257 handling of persistent connections. Previously, the client would shut down | 1265 handling of persistent connections. Previously, the client would shut down |
| 1258 immediately after a request. | 1266 immediately after a request. |
| 1259 | 1267 |
| 1260 * **Breaking change:** `HttpServer` no longer compresses all traffic by | 1268 * **Breaking change:** `HttpServer` no longer compresses all traffic by |
| 1261 default. The new `autoCompress` property can be set to `true` to re-enable | 1269 default. The new `autoCompress` property can be set to `true` to re-enable |
| 1262 compression. | 1270 compression. |
| 1263 | 1271 |
| 1264 * `dart:isolate`: `Isolate.spawnUri` added the optional `packageRoot` argument, | 1272 * `dart:isolate`: `Isolate.spawnUri` added the optional `packageRoot` argument, |
| 1265 which controls how it resolves `package:` URIs. | 1273 which controls how it resolves `package:` URIs. |
| OLD | NEW |