OLD | NEW |
1 ## 1.19.0 | 1 ## 1.19.0 |
2 | 2 |
3 ### Language changes | 3 ### Language changes |
4 | 4 |
5 * The language now allows a trailing comma after the last argument of a call and | 5 * The language now allows a trailing comma after the last argument of a call and |
6 the last parameter of a function declaration. This can make long argument or | 6 the last parameter of a function declaration. This can make long argument or |
7 parameter lists easier to maintain, as commas can be left as-is when | 7 parameter lists easier to maintain, as commas can be left as-is when |
8 reordering lines. For details, see SDK issue | 8 reordering lines. For details, see SDK issue |
9 [26644](https://github.com/dart-lang/sdk/issues/26644). | 9 [26644](https://github.com/dart-lang/sdk/issues/26644). |
10 | 10 |
11 ### Tool Changes | 11 ### Tool Changes |
12 | 12 |
13 * `dartfmt` - upgraded to v0.2.9+1 | 13 * `dartfmt` - upgraded to v0.2.9+1 |
14 * Support trailing commas in argument and parameter lists. | 14 * Support trailing commas in argument and parameter lists. |
15 * Gracefully handle read-only files. | 15 * Gracefully handle read-only files. |
16 * About a dozen other bug fixes. | 16 * About a dozen other bug fixes. |
17 | 17 |
18 * Pub | 18 * Pub |
| 19 * Added a `--no-packages-dir` flag to `pub get`, `pub upgrade`, and `pub |
| 20 downgrade`. When this flag is passed, pub will not generate a `packages/` |
| 21 directory, and will remove that directory and any symlinks to it if they |
| 22 exist. Note that this replaces the unsupported `--no-package-symlinks` flag. |
| 23 |
19 * Added the ability for packages to declare a constraint on the [Flutter][] | 24 * Added the ability for packages to declare a constraint on the [Flutter][] |
20 SDK: | 25 SDK: |
21 | 26 |
22 ```yaml | 27 ```yaml |
23 environment: | 28 environment: |
24 flutter: ^0.1.2 | 29 flutter: ^0.1.2 |
25 sdk: >=1.19.0 <2.0.0 | 30 sdk: >=1.19.0 <2.0.0 |
26 ``` | 31 ``` |
27 | 32 |
28 A Flutter constraint will only be satisfiable when pub is running in the | 33 A Flutter constraint will only be satisfiable when pub is running in the |
(...skipping 18 matching lines...) Expand all Loading... |
47 This fixes a crash when publishing packages while using Active Directory. | 52 This fixes a crash when publishing packages while using Active Directory. |
48 | 53 |
49 * Fixed a bug where packages from a hosted HTTP URL were considered the same | 54 * Fixed a bug where packages from a hosted HTTP URL were considered the same |
50 as packages from an otherwise-identical HTTPS URL. | 55 as packages from an otherwise-identical HTTPS URL. |
51 | 56 |
52 * Fixed timer formatting for timers that lasted longer than a minute. | 57 * Fixed timer formatting for timers that lasted longer than a minute. |
53 | 58 |
54 * Eliminate some false negatives when determining whether global executables | 59 * Eliminate some false negatives when determining whether global executables |
55 are on the user's executable path. | 60 are on the user's executable path. |
56 | 61 |
57 * dart2dart (aka `dart2js --output-type=dart`) has been removed (this was | 62 * `dart2js` |
58 deprecated in Dart 1.11) | 63 * `dart2dart` (aka `dart2js --output-type=dart`) has been removed (this was de
precated in Dart 1.11). |
59 | 64 |
60 [Flutter]: https://flutter.io/ | 65 [Flutter]: https://flutter.io/ |
61 | 66 |
62 ### Dart VM | 67 ### Dart VM |
63 | 68 |
64 * The dependency on BoringSSL has been rolled forward. Going forward, builds | 69 * The dependency on BoringSSL has been rolled forward. Going forward, builds |
65 of the Dart VM including secure sockets will require a compiler with C++11 | 70 of the Dart VM including secure sockets will require a compiler with C++11 |
66 support. For details, see the | 71 support. For details, see the |
67 [Building wiki page](https://github.com/dart-lang/sdk/wiki/Building). | 72 [Building wiki page](https://github.com/dart-lang/sdk/wiki/Building). |
68 | 73 |
(...skipping 1122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1191 they will keep the Dart process alive until they time out. This fixes the | 1196 they will keep the Dart process alive until they time out. This fixes the |
1192 handling of persistent connections. Previously, the client would shut down | 1197 handling of persistent connections. Previously, the client would shut down |
1193 immediately after a request. | 1198 immediately after a request. |
1194 | 1199 |
1195 * **Breaking change:** `HttpServer` no longer compresses all traffic by | 1200 * **Breaking change:** `HttpServer` no longer compresses all traffic by |
1196 default. The new `autoCompress` property can be set to `true` to re-enable | 1201 default. The new `autoCompress` property can be set to `true` to re-enable |
1197 compression. | 1202 compression. |
1198 | 1203 |
1199 * `dart:isolate`: `Isolate.spawnUri` added the optional `packageRoot` argument, | 1204 * `dart:isolate`: `Isolate.spawnUri` added the optional `packageRoot` argument, |
1200 which controls how it resolves `package:` URIs. | 1205 which controls how it resolves `package:` URIs. |
OLD | NEW |