From b1edeaffac7bd2ef8aef1548ae27e61c978cd00c Mon Sep 17 00:00:00 2001 From: Sam Rawlins Date: Wed, 4 Dec 2024 09:10:44 -0800 Subject: [PATCH] Bump version to 5.4.5 Also bump some dep constraints: * analyzer ^6.9.0 is required as mockito uses some APIs that were introduced in that version. * That version of analyzer requires a Dart 3.6.0 SDK, so bump that constraint. * build_runner ^6.11.0 is required to avoid an issue looking for the wrong frontend_server snapshot. PiperOrigin-RevId: 702747878 --- CHANGELOG.md | 11 ++++++----- lib/src/version.dart | 2 +- pubspec.yaml | 8 ++++---- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index da6ae6fb..fe2babbf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,13 +1,14 @@ -## 5.4.5-wip +## 5.4.5 * Ignore "must_be_immutable" warning in generated files. Mocks cannot be made immutable anyway, but this way users aren't prevented from using generated mocks altogether. -* Require Dart >= 3.3.0. -* Require analyzer 6.4.1. -* Add support for extension types. -* Require dart_style >= 2.3.7, so that the current Dart language version can be +* Require Dart SDK ^3.6.0-0. +* Require analyzer ^6.9.0. +* Require build_runner ^2.4.11. +* Require dart_style ^2.3.7, so that the current Dart language version can be passed to `DartFormatter`. +* Add support for extension types. * Add topics to `pubspec.yaml`. * Fix a bug where type aliases in type arguments were not correctly resolved. diff --git a/lib/src/version.dart b/lib/src/version.dart index 92fac217..21a36ad6 100644 --- a/lib/src/version.dart +++ b/lib/src/version.dart @@ -1 +1 @@ -const packageVersion = '5.4.5-wip'; +const packageVersion = '5.4.5'; diff --git a/pubspec.yaml b/pubspec.yaml index 56145074..c41ff6c8 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: mockito -version: 5.4.5-wip +version: 5.4.5 description: >- A mock framework inspired by Mockito with APIs for Fakes, Mocks, behavior verification, and stubbing. @@ -10,10 +10,10 @@ topics: - mocking environment: - sdk: ^3.3.0 + sdk: ^3.6.0-0 dependencies: - analyzer: '>=6.4.1 <7.0.0' + analyzer: '>=6.9.0 <7.0.0' build: ^2.0.0 code_builder: ^4.5.0 collection: ^1.15.0 @@ -25,7 +25,7 @@ dependencies: test_api: '>=0.2.1 <0.8.0' dev_dependencies: - build_runner: ^2.0.0 + build_runner: ^2.4.11 build_test: ^2.0.0 build_web_compilers: '>=3.0.0 <5.0.0' http: ^1.0.0