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 * Linux builds of the VM will now use the tcmalloc library for memory | 10 * Linux builds of the VM will now use the tcmalloc library for memory |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 var b = new Future<B>.value(new B()); | 100 var b = new Future<B>.value(new B()); |
101 var c = new Future<C>.value(new C()); | 101 var c = new Future<C>.value(new C()); |
102 var/*infer List<Future<A>>*/ list = [b, c]; | 102 var/*infer List<Future<A>>*/ list = [b, c]; |
103 var/*infer List<A>*/ result = await Future.wait(list); | 103 var/*infer List<A>*/ result = await Future.wait(list); |
104 } | 104 } |
105 class A {} | 105 class A {} |
106 class B extends A {} | 106 class B extends A {} |
107 class C extends A {} | 107 class C extends A {} |
108 ``` | 108 ``` |
109 | 109 |
| 110 * Breaking change - ingore `dynamic` when doing inference. |
| 111 |
| 112 ```dart |
| 113 main() { |
| 114 dynamic d = 42; |
| 115 List<int> list = /*infer <int>*/[123, /*implicit cast*/d]; |
| 116 } |
| 117 ``` |
| 118 |
110 ## 1.19.0 | 119 ## 1.19.0 |
111 | 120 |
112 ### Language changes | 121 ### Language changes |
113 | 122 |
114 * The language now allows a trailing comma after the last argument of a call and | 123 * The language now allows a trailing comma after the last argument of a call and |
115 the last parameter of a function declaration. This can make long argument or | 124 the last parameter of a function declaration. This can make long argument or |
116 parameter lists easier to maintain, as commas can be left as-is when | 125 parameter lists easier to maintain, as commas can be left as-is when |
117 reordering lines. For details, see SDK issue | 126 reordering lines. For details, see SDK issue |
118 [26644](https://github.com/dart-lang/sdk/issues/26644). | 127 [26644](https://github.com/dart-lang/sdk/issues/26644). |
119 | 128 |
(...skipping 1185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1305 they will keep the Dart process alive until they time out. This fixes the | 1314 they will keep the Dart process alive until they time out. This fixes the |
1306 handling of persistent connections. Previously, the client would shut down | 1315 handling of persistent connections. Previously, the client would shut down |
1307 immediately after a request. | 1316 immediately after a request. |
1308 | 1317 |
1309 * **Breaking change:** `HttpServer` no longer compresses all traffic by | 1318 * **Breaking change:** `HttpServer` no longer compresses all traffic by |
1310 default. The new `autoCompress` property can be set to `true` to re-enable | 1319 default. The new `autoCompress` property can be set to `true` to re-enable |
1311 compression. | 1320 compression. |
1312 | 1321 |
1313 * `dart:isolate`: `Isolate.spawnUri` added the optional `packageRoot` argument, | 1322 * `dart:isolate`: `Isolate.spawnUri` added the optional `packageRoot` argument, |
1314 which controls how it resolves `package:` URIs. | 1323 which controls how it resolves `package:` URIs. |
OLD | NEW |