| OLD | NEW |
| 1 ## 1.13.0 | 1 ## 1.13.0 |
| 2 | 2 |
| 3 * `dart:core` | 3 * `dart:core` |
| 4 * `Uri` added `removeFragment` method. | 4 * `Uri` added `removeFragment` method. |
| 5 * `String.allMatches` (implementing `Pattern.allMatches`) is now lazy, | 5 * `String.allMatches` (implementing `Pattern.allMatches`) is now lazy, |
| 6 as all `allMatches` implementations are intended to be. | 6 as all `allMatches` implementations are intended to be. |
| 7 | 7 |
| 8 * `dart:io` | 8 * `dart:io` |
| 9 * `HttpClient` no longer sends URI fragments in the requeust. This is not | 9 * `HttpClient` no longer sends URI fragments in the requeust. This is not |
| 10 allowed by the HTTP protocol. | 10 allowed by the HTTP protocol. |
| 11 The `HttpServer` still gracefully receives fragments, but discards them | 11 The `HttpServer` still gracefully receives fragments, but discards them |
| 12 before delivering the request. | 12 before delivering the request. |
| 13 | 13 |
| 14 * `dart:async` | 14 * `dart:async` |
| 15 * `StreamTransformer`s created with `fromHandlers` with no `handleError` | 15 * `StreamTransformer`s created with `fromHandlers` with no `handleError` |
| 16 callback now forward stack traces along with errors to the resulting | 16 callback now forward stack traces along with errors to the resulting |
| 17 streams. | 17 streams. |
| 18 | 18 |
| 19 ## 1.12.1 |
| 20 |
| 21 ### Tool changes |
| 22 |
| 23 * Pub |
| 24 |
| 25 * Pub will now respect `.gitignore` when validating a package before it's |
| 26 published. For example, if a `LICENSE` file exists but is ignored, that is |
| 27 now an error. |
| 28 |
| 29 * If the package is in a subdirectory of a Git repository and the entire |
| 30 subdirectory is ignored with `.gitignore`, pub will act as though nothing |
| 31 was ignored instead of uploading an empty package. |
| 32 |
| 33 * The heuristics for determining when `pub get` needs to be run before various |
| 34 commands have been improved. There should no longer be false positives when |
| 35 non-dependency sections of the pubspec have been modified. |
| 36 |
| 19 ## 1.12.0 | 37 ## 1.12.0 |
| 20 | 38 |
| 21 ### Language changes | 39 ### Language changes |
| 22 | 40 |
| 23 * Null-aware operators | 41 * Null-aware operators |
| 24 * `??`: if null operator. `expr1 ?? expr2` evaluates to `expr1` if not `null
`, otherwise `expr2`. | 42 * `??`: if null operator. `expr1 ?? expr2` evaluates to `expr1` if not `null
`, otherwise `expr2`. |
| 25 * `??=`: null-aware assignment. `v ??= expr` causes `v` to be assigned `expr
` only if `v` is `null`. | 43 * `??=`: null-aware assignment. `v ??= expr` causes `v` to be assigned `expr
` only if `v` is `null`. |
| 26 * `x?.p`: null-aware access. `x?.p` evaluates to `x.p` if `x` is not `null`,
otherwise evaluates to `null`. | 44 * `x?.p`: null-aware access. `x?.p` evaluates to `x.p` if `x` is not `null`,
otherwise evaluates to `null`. |
| 27 * `x?.m()`: null-aware method invocation. `x?.m()` invokes `m` only if `x` i
s not `null`. | 45 * `x?.m()`: null-aware method invocation. `x?.m()` invokes `m` only if `x` i
s not `null`. |
| 28 | 46 |
| (...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 539 they will keep the Dart process alive until they time out. This fixes the | 557 they will keep the Dart process alive until they time out. This fixes the |
| 540 handling of persistent connections. Previously, the client would shut down | 558 handling of persistent connections. Previously, the client would shut down |
| 541 immediately after a request. | 559 immediately after a request. |
| 542 | 560 |
| 543 * **Breaking change:** `HttpServer` no longer compresses all traffic by | 561 * **Breaking change:** `HttpServer` no longer compresses all traffic by |
| 544 default. The new `autoCompress` property can be set to `true` to re-enable | 562 default. The new `autoCompress` property can be set to `true` to re-enable |
| 545 compression. | 563 compression. |
| 546 | 564 |
| 547 * `dart:isolate`: `Isolate.spawnUri` added the optional `packageRoot` argument, | 565 * `dart:isolate`: `Isolate.spawnUri` added the optional `packageRoot` argument, |
| 548 which controls how it resolves `package:` URIs. | 566 which controls how it resolves `package:` URIs. |
| OLD | NEW |