| OLD | NEW |
| 1 ## 1.25.0 | 1 ## 1.25.0 |
| 2 | 2 |
| 3 ### Language | 3 ### Language |
| 4 * A string in a `part of` declaration may now be used to refer to the library | 4 * A string in a `part of` declaration may now be used to refer to the library |
| 5 this file is part of. | 5 this file is part of. |
| 6 A library part can now declare its library either as: | 6 A library part can now declare its library either as: |
| 7 `part of name.of.library;` or as `part of "uriReferenceOfLibrary.dart";`. | 7 `part of name.of.library;` or as `part of "uriReferenceOfLibrary.dart";`. |
| 8 This allows libraries with no library declarations (and therefore no name) | 8 This allows libraries with no library declarations (and therefore no name) |
| 9 to have parts, and it allows tools to easily find the library of a part | 9 to have parts, and it allows tools to easily find the library of a part |
| 10 file. | 10 file. |
| 11 | 11 |
| 12 #### Strong Mode | 12 #### Strong Mode |
| 13 | 13 |
| 14 ### Core library changes | 14 ### Core library changes |
| 15 | 15 |
| 16 * `dart:io` | 16 * `dart:io` |
| 17 * Unified backends for `SecureSocket`, `SecurityContext`, and | 17 * Unified backends for `SecureSocket`, `SecurityContext`, and |
| 18 `X509Certificate` to be consistent across all platforms. All | 18 `X509Certificate` to be consistent across all platforms. All |
| 19 `SecureSocket`, `SecurityContext`, and `X509Certificate` properties and | 19 `SecureSocket`, `SecurityContext`, and `X509Certificate` properties and |
| 20 methods are now supported on iOS and OSX. | 20 methods are now supported on iOS and OSX. |
| 21 * Deprecated `SecurityContext.alpnSupported` as ALPN is now supported on all | 21 * Deprecated `SecurityContext.alpnSupported` as ALPN is now supported on all |
| 22 platforms. | 22 platforms. |
| 23 * Added 'timeout' parameter to 'Socket.connect', 'RawSocket.connect', | 23 * Added 'timeout' parameter to 'Socket.connect', 'RawSocket.connect', |
| 24 'SecureSocket.connect' and 'RawSecureSocket.connect. If a connection attempt | 24 'SecureSocket.connect' and 'RawSecureSocket.connect. If a connection attempt |
| 25 takes longer than the duration specified in 'timeout', a 'SocketException' | 25 takes longer than the duration specified in 'timeout', a 'SocketException' |
| 26 will be thrown. Note: if the duration specified in 'timeout' is greater than | 26 will be thrown. Note: if the duration specified in 'timeout' is greater than |
| 27 the system level timeout duration, a timeout may occur sooner than specified | 27 the system level timeout duration, a timeout may occur sooner than specified |
| 28 in 'timeout'. | 28 in 'timeout'. |
| 29 * Added `Platform.operatingSystemVersion` that gives a platform-specific |
| 30 String describing the version of the operating system. |
| 29 | 31 |
| 30 * `dart:core` | 32 * `dart:core` |
| 31 * The `Uri` class now correctly handles paths while running on Node.js on | 33 * The `Uri` class now correctly handles paths while running on Node.js on |
| 32 Windows. | 34 Windows. |
| 33 | 35 |
| 34 * `dart:developer` | 36 * `dart:developer` |
| 35 * `Timeline.startSync` and `Timeline.timeSync` now accept an optional | 37 * `Timeline.startSync` and `Timeline.timeSync` now accept an optional |
| 36 parameter `flow` of type `Flow`. The `flow` parameter is used to generate | 38 parameter `flow` of type `Flow`. The `flow` parameter is used to generate |
| 37 flow timeline events that are enclosed by the slice described by | 39 flow timeline events that are enclosed by the slice described by |
| 38 `Timeline.{start,finish}Sync` and `Timeline.timeSync`. | 40 `Timeline.{start,finish}Sync` and `Timeline.timeSync`. |
| (...skipping 2143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2182 they will keep the Dart process alive until they time out. This fixes the | 2184 they will keep the Dart process alive until they time out. This fixes the |
| 2183 handling of persistent connections. Previously, the client would shut down | 2185 handling of persistent connections. Previously, the client would shut down |
| 2184 immediately after a request. | 2186 immediately after a request. |
| 2185 | 2187 |
| 2186 * **Breaking change:** `HttpServer` no longer compresses all traffic by | 2188 * **Breaking change:** `HttpServer` no longer compresses all traffic by |
| 2187 default. The new `autoCompress` property can be set to `true` to re-enable | 2189 default. The new `autoCompress` property can be set to `true` to re-enable |
| 2188 compression. | 2190 compression. |
| 2189 | 2191 |
| 2190 * `dart:isolate`: `Isolate.spawnUri` added the optional `packageRoot` argument, | 2192 * `dart:isolate`: `Isolate.spawnUri` added the optional `packageRoot` argument, |
| 2191 which controls how it resolves `package:` URIs. | 2193 which controls how it resolves `package:` URIs. |
| OLD | NEW |