diff --git a/CHANGELOG.md b/CHANGELOG.md index b7294ff..e19732d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,19 @@ +## 0.4.1 + +* Added a fix for [#24890](https://github.com/dart-lang/sdk/issues/24890). + * All constants in all libraries will once again be resolved by default. + * Added a new `resolveAllLibraries` option to `Resolver#resolve` and + `Resolvers#get`. If `false` is passed then constants will not be resolved in + non entry points. This saves significant time if constants are not needed. +* Added a `useSharedSources` option to `Resolvers`. This gives a significant + speed increase, but must be used carefully. + * If used, then all `Resolver` instances created from the same `Resolvers` + instance will share the same sources cache. + * This should be generally safe to use if the `Resolvers` instance is created + in the constructor of your `Transformer`. + * This option should probably not be used with a static or shared `Resolvers` + instance. + ## 0.4.0 * Remove dependency on `test`, and move all test related apis to a new diff --git a/pubspec.yaml b/pubspec.yaml index 45178c8..9bd6f0d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: code_transformers -version: 0.4.0 +version: 0.4.1 author: Dart Team description: Collection of utilities related to creating barback transformers. homepage: https://github.com/dart-lang/code-transformers diff --git a/test/remove_sourcemap_comment_test.dart b/test/remove_sourcemap_comment_test.dart index 3231546..e34faef 100644 --- a/test/remove_sourcemap_comment_test.dart +++ b/test/remove_sourcemap_comment_test.dart @@ -1,12 +1,12 @@ // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. - @TestOn('vm') library code_transformers.test.remove_sourcemap_comment_test; import 'package:barback/barback.dart'; import 'package:code_transformers/src/remove_sourcemap_comment.dart'; +import 'package:test/test.dart'; import 'package:transformer_test/utils.dart'; final phases = [