OLD | NEW |
| 1 ## 1.25.0 |
| 2 |
| 3 ### Core library changes |
| 4 |
| 5 * `dart:async`, `dart:io` |
| 6 * Adding to a closed sink, including `IOSink`, now throws. |
| 7 |
1 ## 1.24.0 | 8 ## 1.24.0 |
2 | 9 |
3 ### Language | 10 ### Language |
4 * During a dynamic type check, `void` is not required to be `null` anymore. | 11 * During a dynamic type check, `void` is not required to be `null` anymore. |
5 In practice, this makes overriding `void` functions with non-`void` functions | 12 In practice, this makes overriding `void` functions with non-`void` functions |
6 safer. | 13 safer. |
7 | 14 |
8 #### Strong Mode | 15 #### Strong Mode |
9 | 16 |
10 * Removed ad hoc Future.then inference in favor of using FutureOr. Prior to | 17 * Removed ad hoc Future.then inference in favor of using FutureOr. Prior to |
(...skipping 21 matching lines...) Expand all Loading... |
32 `Map<dynamic, dynamic>`. A JSON-map is not a `HashMap` or `LinkedHashMap` | 39 `Map<dynamic, dynamic>`. A JSON-map is not a `HashMap` or `LinkedHashMap` |
33 anymore (but just a `Map`). | 40 anymore (but just a `Map`). |
34 * `dart:async` | 41 * `dart:async` |
35 * Add `groupBy` to `Stream`. Allows splitting a string into separate streams | 42 * Add `groupBy` to `Stream`. Allows splitting a string into separate streams |
36 depending on "key" property computed from the individual events. | 43 depending on "key" property computed from the individual events. |
37 * `dart:async`, `dart:io`, `dart:core` | 44 * `dart:async`, `dart:io`, `dart:core` |
38 * Adding to a closed sink, including `IOSink`, is not allowed anymore. In | 45 * Adding to a closed sink, including `IOSink`, is not allowed anymore. In |
39 1.24, violations are only reported (on stdout or stderr), but a future | 46 1.24, violations are only reported (on stdout or stderr), but a future |
40 version of the Dart SDK will change this to throwing a `StateError`. | 47 version of the Dart SDK will change this to throwing a `StateError`. |
41 | 48 |
42 | |
43 ### Dart VM | 49 ### Dart VM |
44 | 50 |
45 ### Tool Changes | 51 ### Tool Changes |
46 | 52 |
47 * Pub | 53 * Pub |
48 * `pub build` will use a failing exit code if there are errors in any | 54 * `pub build` will use a failing exit code if there are errors in any |
49 transformer. | 55 transformer. |
50 * Allow publishing packages that depend on the Flutter SDK. | 56 * Allow publishing packages that depend on the Flutter SDK. |
51 | 57 |
52 * dartfmt | 58 * dartfmt |
(...skipping 1852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1905 they will keep the Dart process alive until they time out. This fixes the | 1911 they will keep the Dart process alive until they time out. This fixes the |
1906 handling of persistent connections. Previously, the client would shut down | 1912 handling of persistent connections. Previously, the client would shut down |
1907 immediately after a request. | 1913 immediately after a request. |
1908 | 1914 |
1909 * **Breaking change:** `HttpServer` no longer compresses all traffic by | 1915 * **Breaking change:** `HttpServer` no longer compresses all traffic by |
1910 default. The new `autoCompress` property can be set to `true` to re-enable | 1916 default. The new `autoCompress` property can be set to `true` to re-enable |
1911 compression. | 1917 compression. |
1912 | 1918 |
1913 * `dart:isolate`: `Isolate.spawnUri` added the optional `packageRoot` argument, | 1919 * `dart:isolate`: `Isolate.spawnUri` added the optional `packageRoot` argument, |
1914 which controls how it resolves `package:` URIs. | 1920 which controls how it resolves `package:` URIs. |
OLD | NEW |