| OLD | NEW |
| 1 ## 1.23.0 | 1 ## 1.23.0 |
| 2 | 2 |
| 3 ### Language | 3 ### Language |
| 4 * Allow using URI strings in `part of` declarations to refer to the | 4 * Allow using URI strings in `part of` declarations to refer to the |
| 5 importing library. | 5 importing library. |
| 6 | 6 |
| 7 ### Core library changes | 7 ### Core library changes |
| 8 * `dart:core`: Added `Uri.isScheme` function to check the scheme of a URI. | 8 * `dart:core`: Added `Uri.isScheme` function to check the scheme of a URI. |
| 9 Example: `uri.isScheme("http")`. Ignores case when comparing. | 9 Example: `uri.isScheme("http")`. Ignores case when comparing. |
| 10 * `dart:core`: Make `UriData.parse` validate its input better. | 10 * `dart:core`: Make `UriData.parse` validate its input better. |
| 11 If the data is base-64 encoded, the data is normalized wrt. | 11 If the data is base-64 encoded, the data is normalized wrt. |
| 12 alphabet and padding, and it contains invalid base-64 data, | 12 alphabet and padding, and it contains invalid base-64 data, |
| 13 parsing fails. Also normalizes non-base-64 data. | 13 parsing fails. Also normalizes non-base-64 data. |
| 14 * `dart:io`: Added functions `File.lastAccessed`, `File.lastAccessedSync`, | 14 * `dart:io`: Added functions `File.lastAccessed`, `File.lastAccessedSync`, |
| 15 `File.setLastModified`, `File.setLastModifiedSync`, `File.setLastAccessed`, | 15 `File.setLastModified`, `File.setLastModifiedSync`, `File.setLastAccessed`, |
| 16 and `File.setLastAccessedSync`. | 16 and `File.setLastAccessedSync`. |
| 17 * `dart:io`: Added `Platform.ansiSupported`. |
| 17 | 18 |
| 18 ### Dart VM | 19 ### Dart VM |
| 19 * Calls to `print()` and `Stdout.write*()` now correctly print unicode | 20 * Calls to `print()` and `Stdout.write*()` now correctly print unicode |
| 20 characters to the console on Windows. Calls to `Stdout.add*()` behave as | 21 characters to the console on Windows. Calls to `Stdout.add*()` behave as |
| 21 before. | 22 before. |
| 22 | 23 |
| 23 ### Tool changes | 24 ### Tool changes |
| 24 | 25 |
| 25 * Analysis | 26 * Analysis |
| 26 | 27 |
| 27 * The `dartanalyzer` now follows the same rules as the analysis server to find
an analysis options file, | 28 * The `dartanalyzer` now follows the same rules as the analysis server to find
an analysis options file, |
| 28 stopping when an analysis options file is found: | 29 stopping when an analysis options file is found: |
| 29 * Search up the directory hierarchy looking for an analysis options file. | 30 * Search up the directory hierarchy looking for an analysis options file. |
| 30 * If analyzing a project referencing the [Flutter](https://flutter.io/) pack
age, then use the | 31 * If analyzing a project referencing the [Flutter](https://flutter.io/) pack
age, then use the |
| 31 [default Flutter analysis options](https://github.com/flutter/flutter/blob
/master/packages/flutter/lib/analysis_options_user.yaml) | 32 [default Flutter analysis options](https://github.com/flutter/flutter/blob
/master/packages/flutter/lib/analysis_options_user.yaml) |
| 32 found in `package:flutter`. | 33 found in `package:flutter`. |
| 33 * If in a Bazel workspace, then use the analysis options in `package:dart.an
alysis_options/default.yaml` if it exists. | 34 * If in a Bazel workspace, then use the analysis options in `package:dart.an
alysis_options/default.yaml` if it exists. |
| 34 * Use the default analysis options rules. | 35 * Use the default analysis options rules. |
| 35 * In addition, specific to `dartanalyzer`: | 36 * In addition, specific to `dartanalyzer`: |
| 36 * an analysis options file can be specified on the command line via `--optio
ns` | 37 * an analysis options file can be specified on the command line via `--optio
ns` |
| 37 and that file will be used instead of searching for an analysis options fi
le. | 38 and that file will be used instead of searching for an analysis options fi
le. |
| 38 * any analysis option specified on the command line (e.g. `--strong` or `--n
o-strong`) | 39 * any analysis option specified on the command line (e.g. `--strong` or `--n
o-strong`) |
| 39 takes precedence over any corresponding value specified in the analysis op
tions file. | 40 takes precedence over any corresponding value specified in the analysis op
tions file. |
| 40 | 41 |
| 41 | 42 |
| 42 ## 1.22.0 | 43 ## 1.22.0 |
| 43 | 44 |
| 44 ### Language | 45 ### Language |
| 45 | 46 |
| 46 * Breaking change: ['Generalized tear-offs'](https://github.com/gbracha/genera
lizedTearOffs/blob/master/proposal.md) | 47 * Breaking change: ['Generalized tear-offs'](https://github.com/gbracha/genera
lizedTearOffs/blob/master/proposal.md) |
| 47 are no longer supported, and will cause errors. We updated the language spec | 48 are no longer supported, and will cause errors. We updated the language spec |
| 48 and added warnings in 1.21, and are now taking the last step to fully | 49 and added warnings in 1.21, and are now taking the last step to fully |
| (...skipping 1655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1704 they will keep the Dart process alive until they time out. This fixes the | 1705 they will keep the Dart process alive until they time out. This fixes the |
| 1705 handling of persistent connections. Previously, the client would shut down | 1706 handling of persistent connections. Previously, the client would shut down |
| 1706 immediately after a request. | 1707 immediately after a request. |
| 1707 | 1708 |
| 1708 * **Breaking change:** `HttpServer` no longer compresses all traffic by | 1709 * **Breaking change:** `HttpServer` no longer compresses all traffic by |
| 1709 default. The new `autoCompress` property can be set to `true` to re-enable | 1710 default. The new `autoCompress` property can be set to `true` to re-enable |
| 1710 compression. | 1711 compression. |
| 1711 | 1712 |
| 1712 * `dart:isolate`: `Isolate.spawnUri` added the optional `packageRoot` argument, | 1713 * `dart:isolate`: `Isolate.spawnUri` added the optional `packageRoot` argument, |
| 1713 which controls how it resolves `package:` URIs. | 1714 which controls how it resolves `package:` URIs. |
| OLD | NEW |