diff --git a/pkg/analyzer/CHANGELOG.md b/pkg/analyzer/CHANGELOG.md index d25a9bb7475..8d9ed607c85 100644 --- a/pkg/analyzer/CHANGELOG.md +++ b/pkg/analyzer/CHANGELOG.md @@ -1,3 +1,27 @@ +## 0.32.0 + +* Allow annotations on enum constants. +* Analyzer fully supports being run on the VM with --preview-dart-2. +* Fix heap usage regression by not storing bytes in the file cache. +* Add AnalysisSessionHelper.getTopLevelPropertyAccessor(). +* Don't infer types when there's an irreconcilable type mismatch (#32305) +* Many fasta parser improvements. +* Use @isTest and @isTestGroup to understand executable element as a + test/group. To use, add `@isTest` annotations (from package:meta) + to the methods in their package which define a test. +```dart +@isTest +void myMagicTest(String name, FutureOr Function() body) { + test(name, body); +} +``` + When subscribed to [notifications for outlines of a test file](https://htmlpreview.github.io/?https://github.com/dart-lang/sdk/blob/master/pkg/analysis_server/doc/api.html#notification_analysis.outline), + they will include elements for UNIT_TEST_GROUP and UNIT_TEST_TEST. +* Improve guess for type name identifier. (#32765) +* Fix LineInfo.getOffsetOfLineAfter(). +* Remove some flutter specific analysis code. +* Fix resolution tests when run locally. + ## 0.31.2-alpha.2 * Refactoring to make element model logic sharable with diff --git a/pkg/analyzer/pubspec.yaml b/pkg/analyzer/pubspec.yaml index 9e721536505..e1ac2c96c45 100644 --- a/pkg/analyzer/pubspec.yaml +++ b/pkg/analyzer/pubspec.yaml @@ -1,5 +1,5 @@ name: analyzer -version: 0.31.2-alpha.2 +version: 0.32.0 author: Dart Team description: Static analyzer for Dart. homepage: https://github.com/dart-lang/sdk/tree/master/pkg/analyzer @@ -11,10 +11,10 @@ dependencies: collection: ^1.10.1 convert: ^2.0.0 crypto: '>=1.1.1 <3.0.0' - front_end: 0.1.0-alpha.12 + front_end: 0.1.0 glob: ^1.0.3 html: '>=0.12.0 <1.14.0' - kernel: 0.3.0-alpha.12 + kernel: 0.3.0 meta: ^1.0.2 package_config: '>=0.1.5 <2.0.0' path: '>=0.9.0 <2.0.0' diff --git a/pkg/front_end/README.md b/pkg/front_end/README.md index fd5aed25702..6c4e0edf924 100644 --- a/pkg/front_end/README.md +++ b/pkg/front_end/README.md @@ -13,4 +13,6 @@ Integrators that want to write tools that analyze Dart code should use the [analyzer] package. _Note:_ The APIs in this package are in an early state; developers should be -careful about depending on this package. +careful about depending on this package. In particular, there is no semver +contract for release versions of this package. Please depend directly on individual +versions. diff --git a/pkg/front_end/pubspec.yaml b/pkg/front_end/pubspec.yaml index 1f9aa7310c8..ef1204575cd 100644 --- a/pkg/front_end/pubspec.yaml +++ b/pkg/front_end/pubspec.yaml @@ -1,5 +1,7 @@ name: front_end -version: 0.1.0-alpha.12 +# Currently, front_end API is not stable and users should not +# depend on semver semantics when depending on this package. +version: 0.1.0 author: Dart Team description: Front end for compilation of Dart code. homepage: https://github.com/dart-lang/sdk/tree/master/pkg/front_end @@ -9,14 +11,14 @@ dependencies: charcode: '^1.1.1' convert: '^2.0.1' crypto: '^2.0.2' - kernel: 0.3.0-alpha.12 + kernel: 0.3.0 meta: '^1.1.1' package_config: '^1.0.1' path: '^1.3.9' source_span: '^1.2.3' yaml: '^2.1.12' dev_dependencies: - analyzer: '>=0.30.0 <0.32.0' + analyzer: '>=0.31.0 <0.33.0' args: '>=0.13.0 <2.0.0' dart_style: '^1.0.7' json_rpc_2: ^2.0.4 diff --git a/pkg/kernel/README.md b/pkg/kernel/README.md index fd485744a92..778bcc71b01 100644 --- a/pkg/kernel/README.md +++ b/pkg/kernel/README.md @@ -15,7 +15,9 @@ This package contains the Dart part of the implementation and contains: - Serialization of kernel code _Note:_ The APIs in this package are in an early state; developers should be -careful about depending on this package. +careful about depending on this package. In particular, there is no semver +contract for release versions of this package. Please depend directly +on individual versions. Getting Kernel ------------ diff --git a/pkg/kernel/pubspec.yaml b/pkg/kernel/pubspec.yaml index 9e5e4f87eaf..f827fc8162c 100644 --- a/pkg/kernel/pubspec.yaml +++ b/pkg/kernel/pubspec.yaml @@ -1,5 +1,7 @@ name: kernel -version: 0.3.0-alpha.12 +# Currently, kernel API is not stable and users should +# not depend on semver semantics when depending on this package. +version: 0.3.0 author: Dart Team description: Dart IR (Intermediate Representation) homepage: https://github.com/dart-lang/sdk/tree/master/pkg/kernel @@ -11,8 +13,8 @@ dependencies: logging: ^0.11.2 package_config: ^1.0.0 dev_dependencies: - analyzer: '>=0.30.0 <0.32.0' - front_end: 0.1.0-alpha.12 + analyzer: '>=0.31.0 <0.33.0' + front_end: 0.1.0 test: ^0.12.15+6 stack_trace: ^1.6.6 ansicolor: ^0.0.9