diff --git a/packages/css_colors/CHANGELOG.md b/packages/css_colors/CHANGELOG.md index e0cad34b67b1..141ad09236ed 100644 --- a/packages/css_colors/CHANGELOG.md +++ b/packages/css_colors/CHANGELOG.md @@ -1,6 +1,7 @@ -## NEXT +## 1.1.5 * Updates minimum supported SDK version to Flutter 3.13/Dart 3.1. +* Moves flutter_test and test dependencies to dev_dependencies. ## 1.1.4 diff --git a/packages/css_colors/pubspec.yaml b/packages/css_colors/pubspec.yaml index 9be487079870..bdccb399303f 100644 --- a/packages/css_colors/pubspec.yaml +++ b/packages/css_colors/pubspec.yaml @@ -2,7 +2,7 @@ name: css_colors description: Defines constant dart:ui Color objects for CSS colors (for use in Flutter code). repository: https://github.com/flutter/packages/tree/main/packages/css_colors issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+css_colors%22 -version: 1.1.4 +version: 1.1.5 environment: sdk: ^3.1.0 @@ -11,6 +11,8 @@ environment: dependencies: flutter: sdk: flutter + +dev_dependencies: flutter_test: sdk: flutter diff --git a/packages/web_benchmarks/CHANGELOG.md b/packages/web_benchmarks/CHANGELOG.md index 02e11be9976d..ff4ca85cf25c 100644 --- a/packages/web_benchmarks/CHANGELOG.md +++ b/packages/web_benchmarks/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.2.2 + +* Moves flutter_test and test dependencies to dev_dependencies. + ## 1.2.1 * Removes a few deprecated API usages. diff --git a/packages/web_benchmarks/pubspec.yaml b/packages/web_benchmarks/pubspec.yaml index af66a69c9088..cbf15b25c1d3 100644 --- a/packages/web_benchmarks/pubspec.yaml +++ b/packages/web_benchmarks/pubspec.yaml @@ -2,7 +2,7 @@ name: web_benchmarks description: A benchmark harness for performance-testing Flutter apps in Chrome. repository: https://github.com/flutter/packages/tree/main/packages/web_benchmarks issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+web_benchmarks%22 -version: 1.2.1 +version: 1.2.2 environment: sdk: ^3.3.0 @@ -12,18 +12,20 @@ dependencies: collection: ^1.18.0 flutter: sdk: flutter - flutter_test: - sdk: flutter logging: ^1.0.2 meta: ^1.7.0 path: ^1.8.0 process: ">=4.2.4 <6.0.0" shelf: ^1.2.0 shelf_static: ^1.1.0 - test: ^1.19.5 web: ^0.5.0 webkit_inspection_protocol: ^1.0.0 +dev_dependencies: + flutter_test: + sdk: flutter + test: ^1.19.5 + topics: - benchmarking - performance diff --git a/script/tool/lib/src/pubspec_check_command.dart b/script/tool/lib/src/pubspec_check_command.dart index 008dc2df3b63..08360aae181c 100644 --- a/script/tool/lib/src/pubspec_check_command.dart +++ b/script/tool/lib/src/pubspec_check_command.dart @@ -556,7 +556,7 @@ class PubspecCheckCommand extends PackageLoopingCommand { } // Ensure that dev-only dependencies aren't in `dependencies`. - const List devOnlyDependencies = ['integration_test']; + const Set devOnlyDependencies = {'integration_test', 'test', 'flutter_test'}; // Non-published packages like pidgeon subpackages are allowed to violate // the dev only dependencies rule. if (pubspec.publishTo != 'none') { diff --git a/script/tool/test/pubspec_check_command_test.dart b/script/tool/test/pubspec_check_command_test.dart index 8427ea3dcbb0..7e575a30412c 100644 --- a/script/tool/test/pubspec_check_command_test.dart +++ b/script/tool/test/pubspec_check_command_test.dart @@ -1735,7 +1735,7 @@ ${_topicsSection()} ); }); - test('fails when integration_test is used in non dev dependency', + test('fails when integration_test, flutter_test or test are used in non dev dependency', () async { final RepositoryPackage package = createFakePackage('a_package', packagesDir, examples: []); @@ -1743,7 +1743,11 @@ ${_topicsSection()} package.pubspecFile.writeAsStringSync(''' ${_headerSection('a_package')} ${_environmentSection()} -${_dependenciesSection(['integration_test: \n sdk: flutter'])} +${_dependenciesSection([ + 'integration_test: \n sdk: flutter', + 'flutter_test: \n sdk: flutter', + 'test: 1.0.0' + ])} ${_devDependenciesSection()} ${_topicsSection()} '''); @@ -1761,14 +1765,16 @@ ${_topicsSection()} containsAllInOrder([ contains( 'The following unexpected non-local dependencies were found:\n' + ' test\n' ' integration_test\n' + ' flutter_test\n' 'Please see https://github.com/flutter/flutter/wiki/Contributing-to-Plugins-and-Packages#Dependencies ' 'for more information and next steps.'), ]), ); }); - test('passes when integration_test is used in non published package', + test('passes when integration_test or flutter_test are used in non published package', () async { final RepositoryPackage package = createFakePackage('a_package', packagesDir, examples: []); @@ -1776,7 +1782,10 @@ ${_topicsSection()} package.pubspecFile.writeAsStringSync(''' ${_headerSection('a_package', publishable: false)} ${_environmentSection()} -${_dependenciesSection(['integration_test: \n sdk: flutter'])} +${_dependenciesSection([ + 'integration_test: \n sdk: flutter', + 'flutter_test: \n sdk: flutter' + ])} ${_devDependenciesSection()} ${_topicsSection()} ''');