OLD | NEW |
1 ## 1.12.0 | 1 ## 1.12.0 |
2 | 2 |
3 ### Core library changes | 3 ### Core library changes |
4 | 4 |
5 * `dart:async` | 5 * `dart:async` |
6 * `StreamController` added setters for the `onListen`, `onPause`, `onResume` | 6 * `StreamController` added setters for the `onListen`, `onPause`, `onResume` |
7 and `onCancel` callbacks. | 7 and `onCancel` callbacks. |
8 | 8 |
9 * `dart:convert` | 9 * `dart:convert` |
10 * `LineSplitter` added a `split` static method returning an `Iterable`. | 10 * `LineSplitter` added a `split` static method returning an `Iterable`. |
11 | 11 |
12 * `dart:core` | 12 * `dart:core` |
13 * `Uri` class now perform path normalization when a URI is created. | 13 * `Uri` class now perform path normalization when a URI is created. |
14 This removes most `..` and `.` sequences from the URI path. | 14 This removes most `..` and `.` sequences from the URI path. |
15 Purely relative paths (no scheme or authority) are allowed to retain | 15 Purely relative paths (no scheme or authority) are allowed to retain |
16 some leading "dot" segments. | 16 some leading "dot" segments. |
| 17 Also added `hasAbsolutePath`, `hasEmptyPath`, and `hasScheme` properties. |
17 | 18 |
18 * `dart:html` | 19 * `dart:html` |
19 * `NodeTreeSanitizer` added the `const trusted` field. It can be used | 20 * `NodeTreeSanitizer` added the `const trusted` field. It can be used |
20 instead of defining a `NullTreeSanitizer` class when calling | 21 instead of defining a `NullTreeSanitizer` class when calling |
21 `setInnerHtml` or other methods that create DOM from text. It is | 22 `setInnerHtml` or other methods that create DOM from text. It is |
22 also more efficient, skipping the creation of a `DocumentFragment`. | 23 also more efficient, skipping the creation of a `DocumentFragment`. |
23 | 24 |
24 * `dart:io` | 25 * `dart:io` |
25 * Added two new file modes, `WRITE_ONLY` and `WRITE_ONLY_APPEND` for | 26 * Added two new file modes, `WRITE_ONLY` and `WRITE_ONLY_APPEND` for |
26 opening a file write only. | 27 opening a file write only. |
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 they will keep the Dart process alive until they time out. This fixes the | 453 they will keep the Dart process alive until they time out. This fixes the |
453 handling of persistent connections. Previously, the client would shut down | 454 handling of persistent connections. Previously, the client would shut down |
454 immediately after a request. | 455 immediately after a request. |
455 | 456 |
456 * **Breaking change:** `HttpServer` no longer compresses all traffic by | 457 * **Breaking change:** `HttpServer` no longer compresses all traffic by |
457 default. The new `autoCompress` property can be set to `true` to re-enable | 458 default. The new `autoCompress` property can be set to `true` to re-enable |
458 compression. | 459 compression. |
459 | 460 |
460 * `dart:isolate`: `Isolate.spawnUri` added the optional `packageRoot` argument, | 461 * `dart:isolate`: `Isolate.spawnUri` added the optional `packageRoot` argument, |
461 which controls how it resolves `package:` URIs. | 462 which controls how it resolves `package:` URIs. |
OLD | NEW |