flutter_calculator
flutter_calculator copied to clipboard
Bump dio and mockito
Bumps dio and mockito. These dependencies needed to be updated together.
Updates dio from 3.0.3 to 5.0.3
Release notes
Sourced from dio's releases.
dio 5.0.3
What's new
- Imply
List<Map>as JSON content inImplyContentTypeInterceptor.- Fix
FormDataencoding for collections and objects.dio 5.0.2
What's new
- Improve code formats according to linter rules.
- Remove the force conversion for the response body.
- Fix
DioErrorType.cancelinInterceptors.- Fix wrong encoding of collection query parameters.
- Fix "unsupported operation" error on web platform.
dio 5.0.1
What's new
- Add
ImplyContentTypeInterceptoras a default interceptor.- Add
Headers.multipartFormDataContentTypefor headers usage.- Fix variable shadowing of
withCredentialsinbrowser_adapers.dart.
Commits
- See full diff in compare view
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
@GenerateNiceMocksin 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
requiredkeyword in functions used as default return values.5.3.0
- Introduce a new
MockSpecparameter,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 returningnull. 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
MockSpecreturnNullOnMissingStubparameter in favor of the newonMissingStubparameter.- Introduce a new
@GenerateNiceMocksannotation, that uses the new "return a legal value" behavior for missing stubs.- Add
SmartFakeclass 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
requiredkeyword in function types to match overridden function types.5.2.0
- Fix generation of methods with return type of
FutureOr<T>for generic, potentially nullableT.- Support
@GenerateMocksannotations onimportandexportdirectives.- 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
toStringoverride method for pre-null safe libraries, for which the class-to-mock implementstoStringwith 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
02ad6c7Bump analyzer to support 5.0.0ef37e87Bump SDK to 2.17 and code_builder to 4.3.05d23067Mockito codegen: use fallbackGenerator when present to create a default 'retu...04b74f1Automated g4 rollback of changelist 471719348.b33ce96Automated g4 rollback of changelist 471650729.dff3d82Includerequiredkeyword in functions used as default return values.dd17535Expand private-in-signature support to getters and setters21f486fAllow generating a mock class which includes overriding members with private ...ced77c9Restrict the exception for CAST_FROM_NULL_ALWAYS_FAILS1363d90Stop 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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the Security Alerts page.