FilledStacks / flutter-tutorials

The repo contains the source code for all the tutorials on the FilledStacks Youtube channel.
MIT License
4.74k stars 1.76k forks source link

Bump http and mockito in /024-abstraction-unit-test/02-final-provider #165

Closed dependabot[bot] closed 1 year ago

dependabot[bot] commented 1 year ago

Bumps http and mockito. These dependencies needed to be updated together. Updates http from 0.12.0+2 to 0.13.5

Commits


Updates mockito from 4.1.1 to 5.3.2

Changelog

Sourced from mockito's changelog.

5.3.2

  • Support analyzer 5.0.0.

5.3.1

  • Fix analyzer and code_builder dependencies.
  • Reference @GenerateNiceMocks in documentation.
  • Allow generating a mock class which includes overriding members with private types in their signature. Such members cannot be stubbed with mockito, and will only be generated when specified in MockSpec unsupportedMembers.
  • Include required keyword in functions used as default return values.

5.3.0

  • Introduce a new MockSpec parameter, onMissingStub, which allows specifying three actions to take when a real call is made to a mock method with no matching stub. The two existing behaviors are the default behavior of throwing an exception, and the legacy behavior of returning null. A new behavior is also introduced: returning a legal default value. With this behavior, legal default values are returned for any given type.
  • Deprecate the MockSpec returnNullOnMissingStub parameter in favor of the new onMissingStub parameter.
  • Introduce a new @GenerateNiceMocks annotation, that uses the new "return a legal value" behavior for missing stubs.
  • Add SmartFake class to be used as a return values for unstubbed methods. It remembers where it was created and throws a descriptive error in case the fake is later used.
  • Include required keyword in function types to match overridden function types.

5.2.0

  • Fix generation of methods with return type of FutureOr<T> for generic, potentially nullable T.
  • Support @GenerateMocks annotations on import and export directives.
  • Support analyzer 4.x.

5.1.0

  • In creating mocks for a pre-null-safe library, opt out of null safety in the generated code.
  • Properly generate method overrides for methods with covariant parameters. #506
  • Correctly generate a toString override method for pre-null safe libraries, for which the class-to-mock implements toString with additional parameters.
  • Improve messaging in a MissingStubError, directing to the docs for MockSpec.
  • Fix incorrect error when trying to mock a method with a parameter with inner function types (like in type arguments) which are potentially non-nullable. #476

... (truncated)

Commits
  • 02ad6c7 Bump analyzer to support 5.0.0
  • ef37e87 Bump SDK to 2.17 and code_builder to 4.3.0
  • 5d23067 Mockito codegen: use fallbackGenerator when present to create a default 'retu...
  • 04b74f1 Automated g4 rollback of changelist 471719348.
  • b33ce96 Automated g4 rollback of changelist 471650729.
  • dff3d82 Include required keyword in functions used as default return values.
  • dd17535 Expand private-in-signature support to getters and setters
  • 21f486f Allow generating a mock class which includes overriding members with private ...
  • ced77c9 Restrict the exception for CAST_FROM_NULL_ALWAYS_FAILS
  • 1363d90 Stop using deprecated declarations, prepare for analyzer breaking changes.
  • Additional commits viewable in compare view


Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/FilledStacks/flutter-tutorials/network/alerts).