Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(336)

Side by Side Diff: CHANGELOG.md

Issue 2859703004: Re-remove ad hoc Future.then inference. (Closed)
Patch Set: rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/resolver.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 ## 1.24.0 1 ## 1.24.0
2 2
3 ### Language 3 ### Language
4 4
5 #### Strong Mode 5 #### Strong Mode
6 6
7 * 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
9 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
11 been removed now that FutureOr has been added.
12
13 Packages that implement `Future` must either type the `onValue` parameter to
14 `.then` as returning `FutureOr<T>`, or else must leave the type of the parameter
15 entirely to allow inference to fill in the type.
16
17
7 ### Core library changes 18 ### Core library changes
8 19
9 * `dart:io` 20 * `dart:io`
10 * Added `Platform.localeName`, needed for accessing the locale on platforms 21 * Added `Platform.localeName`, needed for accessing the locale on platforms
11 that don't store it in an environment variable. 22 that don't store it in an environment variable.
12 * Added `ProcessInfo.currentRss` and `ProcessInfo.maxRss` for inspecting 23 * Added `ProcessInfo.currentRss` and `ProcessInfo.maxRss` for inspecting
13 the Dart VM process current and peak resident set size. 24 the Dart VM process current and peak resident set size.
14 * Added 'RawSynchronousSocket', a basic synchronous socket implementation. 25 * Added 'RawSynchronousSocket', a basic synchronous socket implementation.
15 * `dart:convert` 26 * `dart:convert`
16 * Removed deprecated `ChunkedConverter` class. 27 * Removed deprecated `ChunkedConverter` class.
(...skipping 1866 matching lines...) Expand 10 before | Expand all | Expand 10 after
1883 they will keep the Dart process alive until they time out. This fixes the 1894 they will keep the Dart process alive until they time out. This fixes the
1884 handling of persistent connections. Previously, the client would shut down 1895 handling of persistent connections. Previously, the client would shut down
1885 immediately after a request. 1896 immediately after a request.
1886 1897
1887 * **Breaking change:** `HttpServer` no longer compresses all traffic by 1898 * **Breaking change:** `HttpServer` no longer compresses all traffic by
1888 default. The new `autoCompress` property can be set to `true` to re-enable 1899 default. The new `autoCompress` property can be set to `true` to re-enable
1889 compression. 1900 compression.
1890 1901
1891 * `dart:isolate`: `Isolate.spawnUri` added the optional `packageRoot` argument, 1902 * `dart:isolate`: `Isolate.spawnUri` added the optional `packageRoot` argument,
1892 which controls how it resolves `package:` URIs. 1903 which controls how it resolves `package:` URIs.
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698