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 ### Core library changes | 11 ### Tool Changes |
12 | 12 |
13 * `dart:io` | 13 * `dartfmt` - upgraded to v0.2.9+1 |
14 * `Socket.connect` with source-address argument is now non-blocking | 14 * Support trailing commas in argument and parameter lists. |
15 on Mac. Was already non-blocking on all other platforms. | 15 * Gracefully handle read-only files. |
16 * Report a better error when a bind fails because of a bad source address. | 16 * About a dozen other bug fixes. |
17 * Handle HTTP header `charset` parameter with empty value. | 17 |
| 18 * Pub |
| 19 * Added the ability for packages to declare a constraint on the [Flutter][] |
| 20 SDK: |
| 21 |
| 22 ```yaml |
| 23 environment: |
| 24 flutter: ^0.1.2 |
| 25 sdk: >=1.19.0 <2.0.0 |
| 26 ``` |
| 27 |
| 28 A Flutter constraint will only be satisfiable when pub is running in the |
| 29 context of the `flutter` executable, and when the Flutter SDK version |
| 30 matches the constraint. |
| 31 |
| 32 * Added `sdk` as a new package source that fetches packages from a hard-coded |
| 33 SDK. Currently only the `flutter` SDK is supported: |
| 34 |
| 35 ```yaml |
| 36 dependencies: |
| 37 flutter_driver: |
| 38 sdk: flutter |
| 39 version: ^0.0.1 |
| 40 ``` |
| 41 |
| 42 A Flutter `sdk` dependency will only be satisfiable when pub is running in |
| 43 the context of the `flutter` executable, and when the Flutter SDK contains a |
| 44 package with the given name whose version matches the constraint. |
| 45 |
| 46 * `tar` files on Linux are now created with `0` as the user and group IDs. |
| 47 This fixes a crash when publishing packages while using Active Directory. |
| 48 |
| 49 * Fixed a bug where packages from a hosted HTTP URL were considered the same |
| 50 as packages from an otherwise-identical HTTPS URL. |
| 51 |
| 52 * Fixed timer formatting for timers that lasted longer than a minute. |
| 53 |
| 54 * Eliminate some false negatives when determining whether global executables |
| 55 are on the user's executable path. |
| 56 |
| 57 * dart2dart (aka `dart2js --output-type=dart`) has been removed (this was |
| 58 deprecated in Dart 1.11) |
| 59 |
| 60 [Flutter]: https://flutter.io/ |
| 61 |
| 62 ### Dart VM |
| 63 |
| 64 * 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 |
| 66 support. For details, see the |
| 67 [Building wiki page](https://github.com/dart-lang/sdk/wiki/Building). |
18 | 68 |
19 ### Strong Mode | 69 ### Strong Mode |
20 | 70 |
21 * New feature - an option to disable implicit casts | 71 * New feature - an option to disable implicit casts |
22 (SDK issue [26583](https://github.com/dart-lang/sdk/issues/26583)), | 72 (SDK issue [26583](https://github.com/dart-lang/sdk/issues/26583)), |
23 see the [documentation](https://github.com/dart-lang/dev_compiler/blob/maste
r/doc/STATIC_SAFETY.md#disable-implicit-casts) | 73 see the [documentation](https://github.com/dart-lang/dev_compiler/blob/maste
r/doc/STATIC_SAFETY.md#disable-implicit-casts) |
24 for usage instructions and examples. | 74 for usage instructions and examples. |
25 | 75 |
26 * New feature - an option to disable implicit dynamic | 76 * New feature - an option to disable implicit dynamic |
27 (SDK issue [25573](https://github.com/dart-lang/sdk/issues/25573)), | 77 (SDK issue [25573](https://github.com/dart-lang/sdk/issues/25573)), |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 ```dart | 132 ```dart |
83 void test() async { | 133 void test() async { |
84 List<int> x = await [4]; // was previously inferred | 134 List<int> x = await [4]; // was previously inferred |
85 List<int> y = await new Future.value([4]); // now inferred too | 135 List<int> y = await new Future.value([4]); // now inferred too |
86 } | 136 } |
87 ``` | 137 ``` |
88 | 138 |
89 * Breaking change - sideways casts are no longer allowed | 139 * Breaking change - sideways casts are no longer allowed |
90 (SDK issue [26120](https://github.com/dart-lang/sdk/issues/26120)). | 140 (SDK issue [26120](https://github.com/dart-lang/sdk/issues/26120)). |
91 | 141 |
92 ### Dart VM | |
93 | |
94 * The dependency on BoringSSL has been rolled forward. Going forward, builds | |
95 of the Dart VM including secure sockets will require a compiler with C++11 | |
96 support, and to link against glibc 2.16 or newer. For details, see the | |
97 [Building wiki page](https://github.com/dart-lang/sdk/wiki/Building). | |
98 | |
99 ### Tool Changes | |
100 | |
101 * `dartfmt` - upgraded to v0.2.9 | |
102 * Support trailing commas in argument and parameter lists. | |
103 * Gracefully handle read-only files. | |
104 * About a dozen other bug fixes. | |
105 | |
106 * Pub | |
107 * Added the ability for packages to declare a constraint on the [Flutter][] | |
108 SDK: | |
109 | |
110 environment: | |
111 flutter: ^0.1.2 | |
112 sdk: >=1.19.0 <2.0.0 | |
113 | |
114 A Flutter constraint will only be satisfiable when pub is running in the | |
115 context of the `flutter` executable, and when the Flutter SDK version | |
116 matches the constraint. | |
117 | |
118 * Added `sdk` as a new package source that fetches packages from a hard-coded | |
119 SDK. Currently only the `flutter` SDK is supported: | |
120 | |
121 dependencies: | |
122 flutter_driver: | |
123 sdk: flutter | |
124 version: ^0.0.1 | |
125 | |
126 A Flutter `sdk` dependency will only be satisfiable when pub is running in | |
127 the context of the `flutter` executable, and when the Flutter SDK contains a | |
128 package with the given name whose version matches the constraint. | |
129 | |
130 * Added a `--no-packages-dir` flag to `pub get`, `pub upgrade`, and `pub | |
131 downgrade`. When this flag is passed, pub will not generate a `packages/` | |
132 directory, and will remove that directory and any symlinks to it if they | |
133 exist. Note that this replaces the unsupported `--no-package-symlinks` flag. | |
134 | |
135 * `tar` files on Linux are now created with `0` as the user and group IDs. | |
136 This fixes a crash when publishing packages while using Active Directory. | |
137 | |
138 * Fixed a bug where packages from a hosted HTTP URL were considered the same | |
139 as packages from an otherwise-identical HTTPS URL. | |
140 | |
141 * Fixed timer formatting for timers that lasted longer than a minute. | |
142 | |
143 * Eliminate some false negatives when determining whether global executables | |
144 are on the user's executable path. | |
145 | |
146 * dart2dart (aka `dart2js --output-type=dart`) has been removed (this was | |
147 deprecated in Dart 1.11) | |
148 | |
149 [Flutter]: https://flutter.io/ | |
150 | |
151 ## 1.18.1 - 2016-08-02 | 142 ## 1.18.1 - 2016-08-02 |
152 | 143 |
153 Patch release, resolves two issues and improves performance: | 144 Patch release, resolves two issues and improves performance: |
154 | 145 |
155 * Debugger: Fixes a bug that crashes the VM | 146 * Debugger: Fixes a bug that crashes the VM |
156 (SDK issue [26941](https://github.com/dart-lang/sdk/issues/26941)) | 147 (SDK issue [26941](https://github.com/dart-lang/sdk/issues/26941)) |
157 | 148 |
158 * VM: Fixes an optimizer bug involving closures, try, and await | 149 * VM: Fixes an optimizer bug involving closures, try, and await |
159 (SDK issue [26948](https://github.com/dart-lang/sdk/issues/26948)) | 150 (SDK issue [26948](https://github.com/dart-lang/sdk/issues/26948)) |
160 | 151 |
(...skipping 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1200 they will keep the Dart process alive until they time out. This fixes the | 1191 they will keep the Dart process alive until they time out. This fixes the |
1201 handling of persistent connections. Previously, the client would shut down | 1192 handling of persistent connections. Previously, the client would shut down |
1202 immediately after a request. | 1193 immediately after a request. |
1203 | 1194 |
1204 * **Breaking change:** `HttpServer` no longer compresses all traffic by | 1195 * **Breaking change:** `HttpServer` no longer compresses all traffic by |
1205 default. The new `autoCompress` property can be set to `true` to re-enable | 1196 default. The new `autoCompress` property can be set to `true` to re-enable |
1206 compression. | 1197 compression. |
1207 | 1198 |
1208 * `dart:isolate`: `Isolate.spawnUri` added the optional `packageRoot` argument, | 1199 * `dart:isolate`: `Isolate.spawnUri` added the optional `packageRoot` argument, |
1209 which controls how it resolves `package:` URIs. | 1200 which controls how it resolves `package:` URIs. |
OLD | NEW |