| OLD | NEW |
| 1 ## 1.22.0 | 1 ## 1.22.0 |
| 2 | 2 |
| 3 ### Language | 3 ### Language |
| 4 | 4 |
| 5 * Breaking change: ['Generalized tear-offs'](https://github.com/gbracha/genera
lizedTearOffs/blob/master/proposal.md) | 5 * Breaking change: ['Generalized tear-offs'](https://github.com/gbracha/genera
lizedTearOffs/blob/master/proposal.md) |
| 6 are no longer supported, and will cause errors. We updated the language spec | 6 are no longer supported, and will cause errors. We updated the language spec |
| 7 and added warnings in 1.21, and are now taking the last step to fully | 7 and added warnings in 1.21, and are now taking the last step to fully |
| 8 de-support them. They were previously supported in the VM only. | 8 de-support them. They were previously supported in the VM only. |
| 9 | 9 |
| 10 * The `assert()` statement has been expanded to support an optional second | 10 * The `assert()` statement has been expanded to support an optional second |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 * Properly close the standard input stream of child processes started using | 64 * Properly close the standard input stream of child processes started using |
| 65 `pub run`. | 65 `pub run`. |
| 66 | 66 |
| 67 * Handle parse errors from the package cache more gracefully. A package whose | 67 * Handle parse errors from the package cache more gracefully. A package whose |
| 68 pubspec can't be parsed will now be ignored by `pub get --offline` and | 68 pubspec can't be parsed will now be ignored by `pub get --offline` and |
| 69 deleted by `pub cache repair`. | 69 deleted by `pub cache repair`. |
| 70 | 70 |
| 71 * Make `pub run` run executables in spawned isolates. This lets them handle | 71 * Make `pub run` run executables in spawned isolates. This lets them handle |
| 72 signals and use standard IO reliably. | 72 signals and use standard IO reliably. |
| 73 | 73 |
| 74 * Fix source-maps produced by dart2js when running in `pub serve`: URL |
| 75 references to assets from packages match the location where `pub serve` |
| 76 serves them (`packages/package_name/` instead of |
| 77 `../packages/package_name/`). |
| 78 |
| 74 ### Infrastructure changes | 79 ### Infrastructure changes |
| 75 | 80 |
| 76 * The SDK now uses GN rather than gyp to generate its build files, which will | 81 * The SDK now uses GN rather than gyp to generate its build files, which will |
| 77 now be exclusively ninja flavored. Documentation can be found on our | 82 now be exclusively ninja flavored. Documentation can be found on our |
| 78 [wiki](https://github.com/dart-lang/sdk/wiki/Building-with-GN). Also see the | 83 [wiki](https://github.com/dart-lang/sdk/wiki/Building-with-GN). Also see the |
| 79 help message of `tools/gn.py`. This change is in response to the deprecation | 84 help message of `tools/gn.py`. This change is in response to the deprecation |
| 80 of gyp. Build file generation with gyp will continue to be available in this | 85 of gyp. Build file generation with gyp will continue to be available in this |
| 81 release by setting the environment variable `DART_USE_GYP` before running | 86 release by setting the environment variable `DART_USE_GYP` before running |
| 82 `gclient sync` or `gclient runhooks`, but this will be removed in a future | 87 `gclient sync` or `gclient runhooks`, but this will be removed in a future |
| 83 release. | 88 release. |
| (...skipping 1405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1489 they will keep the Dart process alive until they time out. This fixes the | 1494 they will keep the Dart process alive until they time out. This fixes the |
| 1490 handling of persistent connections. Previously, the client would shut down | 1495 handling of persistent connections. Previously, the client would shut down |
| 1491 immediately after a request. | 1496 immediately after a request. |
| 1492 | 1497 |
| 1493 * **Breaking change:** `HttpServer` no longer compresses all traffic by | 1498 * **Breaking change:** `HttpServer` no longer compresses all traffic by |
| 1494 default. The new `autoCompress` property can be set to `true` to re-enable | 1499 default. The new `autoCompress` property can be set to `true` to re-enable |
| 1495 compression. | 1500 compression. |
| 1496 | 1501 |
| 1497 * `dart:isolate`: `Isolate.spawnUri` added the optional `packageRoot` argument, | 1502 * `dart:isolate`: `Isolate.spawnUri` added the optional `packageRoot` argument, |
| 1498 which controls how it resolves `package:` URIs. | 1503 which controls how it resolves `package:` URIs. |
| OLD | NEW |