OLD | NEW |
1 ## 1.24.0 | 1 ## 1.24.0 |
2 | 2 |
3 ### Language | 3 ### Language |
| 4 * 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 |
| 6 safer. |
4 | 7 |
5 #### Strong Mode | 8 #### Strong Mode |
6 | 9 |
7 * Removed ad hoc Future.then inference in favor of using FutureOr. Prior to | 10 * Removed ad hoc Future.then inference in favor of using FutureOr. Prior to |
8 adding FutureOr to the language, the analyzer implented an ad hoc type inference | 11 adding FutureOr to the language, the analyzer implented an ad hoc type inference |
9 for Future.then (and overrides) treating it as if the onValue callback was typed | 12 for Future.then (and overrides) treating it as if the onValue callback was typed |
10 to return FutureOr for the purposes of inference. This ad hoc inference has | 13 to return FutureOr for the purposes of inference. This ad hoc inference has |
11 been removed now that FutureOr has been added. | 14 been removed now that FutureOr has been added. |
12 | 15 |
13 Packages that implement `Future` must either type the `onValue` parameter to | 16 Packages that implement `Future` must either type the `onValue` parameter to |
(...skipping 1880 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1894 they will keep the Dart process alive until they time out. This fixes the | 1897 they will keep the Dart process alive until they time out. This fixes the |
1895 handling of persistent connections. Previously, the client would shut down | 1898 handling of persistent connections. Previously, the client would shut down |
1896 immediately after a request. | 1899 immediately after a request. |
1897 | 1900 |
1898 * **Breaking change:** `HttpServer` no longer compresses all traffic by | 1901 * **Breaking change:** `HttpServer` no longer compresses all traffic by |
1899 default. The new `autoCompress` property can be set to `true` to re-enable | 1902 default. The new `autoCompress` property can be set to `true` to re-enable |
1900 compression. | 1903 compression. |
1901 | 1904 |
1902 * `dart:isolate`: `Isolate.spawnUri` added the optional `packageRoot` argument, | 1905 * `dart:isolate`: `Isolate.spawnUri` added the optional `packageRoot` argument, |
1903 which controls how it resolves `package:` URIs. | 1906 which controls how it resolves `package:` URIs. |
OLD | NEW |