Skip to content

Bump mockito from 5.6.4 to 5.8.1 - #17

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pub/mockito-5.8.1
Closed

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pub/mockito-5.8.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

Bumps mockito from 5.6.4 to 5.8.1.

Release notes

Sourced from mockito's releases.

package:mockito v5.8.1

  • Cast dummy values for extension types to the extension type so they satisfy static type checking in generic return types like Future<ExtensionType>. #4590
  • Use canonical asset path in generated header comments so symlink paths are excluded. #4545
  • Deterministically select library to import when multiple libraries export the same type. #4549
  • Prefer importing public entrypoints over /src/ implementation libraries when multiple libraries export the same type. #4551
  • Throw InvalidMockitoAnnotationException with a clear message when @GenerateMocks customMocks or @GenerateNiceMocks mocks is not a list literal, instead of crashing with a type cast exception. #4428
  • Remove redundant per-class // ignore: must_be_immutable comment to prevent duplicate_ignore warnings. #4588
  • Clarify in README.md that generated .mocks.dart filenames are based on the source file name. #4599
  • Suppress experimental_member_use warnings in generated mock files. #4602
  • Document missing stub behavior for void and Future<void>.

package:mockito v5.8.0

  • Add support for JS interop extension type mock generation to mockito.
  • It is now an error to generate mocks for non-JS interop extension types. Instead, mock the representation type and cast to the extension type where needed.
  • Remove Mockito version number from generated output.
  • Allow analyzer 14.0.0.

package:mockito v5.7.0

  • Handle JS interop extension types and provide dummy values for them. #4498

package:mockito v5.6.5

  • Require analyzer 13.0.0.
Commits

@dependabot dependabot Bot added dart Pull requests that update dart code dependencies Pull requests that update a dependency file labels Sep 1, 2026
Bumps [mockito](https://github.com/dart-lang/build/tree/master/builder_pkgs) from 5.6.4 to 5.8.1.
- [Release notes](https://github.com/dart-lang/build/releases)
- [Commits](https://github.com/dart-lang/build/commits/mockito-v5.8.1/builder_pkgs)

---
updated-dependencies:
- dependency-name: mockito
  dependency-version: 5.8.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/pub/mockito-5.8.1 branch from 82012e4 to 278f695 Compare September 6, 2026 10:20
@Dhi13man

Dhi13man commented Sep 9, 2026

Copy link
Copy Markdown
Owner

Cannot land mockito 5.8.1 on CI Flutter 3.44.8.

flutter pub get fails because mockito 5.8.1 requires analyzer >=13.3.0 <15.0.0, and analyzer >=13.1.0 needs meta ^1.18.3, while flutter_test pins meta 1.18.0.

Last analyzer-12 release is mockito 5.6.4 (already on main; 5.6.5+ requires analyzer 13). Holding here means there is no bump to merge. Not merging.

@Dhi13man

Dhi13man commented Sep 9, 2026

Copy link
Copy Markdown
Owner

Superseded by #22. mockito 5.8.1 and build_runner 2.16.1 both jump to analyzer 13, which cannot resolve on Flutter 3.44.8 (flutter_test pins meta 1.18.0). #22 pins Flutter stable 3.47.2 (first compatible line is 3.47.0, whose flutter_test allows meta ^1.18.3) and lands both upgrades together.

@Dhi13man Dhi13man closed this Sep 9, 2026
@dependabot @github

dependabot Bot commented on behalf of github Sep 9, 2026

Copy link
Copy Markdown
Contributor Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot
dependabot Bot deleted the dependabot/pub/mockito-5.8.1 branch September 9, 2026 04:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dart Pull requests that update dart code dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant