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 MockSpecreturnNullOnMissingStub 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
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)
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/Flutterando/flutter_web_site/network/alerts).
Bumps dio, google_fonts, mobx_codegen, mockito, mobx, build_runner and flutter_mobx. These dependencies needed to be updated together. Updates
dio
from 3.0.9 to 5.0.3Release notes
Sourced from dio's releases.
Commits
61ed864
🔖 dio v5.0.3f9c923b
🚑 Fix FormData encoding (#1741) (#1747)9c30e9a
📝 Fix interceptor codes in READMEs (#1745)cdab4cc
👷 Improve the check with the infra label8cc1358
🐛 Allow to parseSet-Cookie
with redirected response (#1734)4204004
🚀 ImplyList\<Map>
as JSON content (#1737)be2b0f5
🔖 native_dio_adapter v0.1.0ba91ed7
feat(native_dio_adapter): bump cronet_http, cupertino_http dependency (#1735)70cdbf9
fix: update onReceiveProgress references in docs (#1732)e25aae6
🔖 cookie_manager v2.1.2Updates
google_fonts
from 1.0.0 to 4.0.3Commits
3f3e209
[all] bump versionsd4dbe77
fix issue linkf47da58
[all] update example apps7f58957
[all] add pubspecissue_tracker
&screenshots
16d2f6e
[all] bump versions and publisha5fd860
Update generator.dartc27ac42
bumpgoogle_fonts
to 4.0.2b5b88c1
Update generator.dartb0c3017
[adaptive] pub upgrade --major-versions65b6cd1
remove cider bumping and releasing from google_fonts workflowUpdates
mobx_codegen
from 1.0.3 to 2.1.1Commits
e0cb367
updating versions of mobx and mobx_codegen0059b5d
running dart format042700e
updating the github actionsb3e5648
update analyzer version to>=4.4.0 <6.0.0
(#877)0391ef0
test: fix tests in dart 2.19 (#879)021f4a0
Update cheat-sheet.mdx (#878)87ba7d1
Feat: Allow a custom equals parameter for ObservableStream (#771)cea7013
simplifying set_version a bit more362f523
version syncing with pubspec.yaml5789329
disableErrorBoundaries
will not only affectReaction
s, but also things li...Updates
mockito
from 4.1.1 to 5.3.2Changelog
Sourced from mockito's changelog.
... (truncated)
Commits
02ad6c7
Bump analyzer to support 5.0.0ef37e87
Bump SDK to 2.17 and code_builder to 4.3.05d23067
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
Includerequired
keyword in functions used as default return values.dd17535
Expand private-in-signature support to getters and setters21f486f
Allow generating a mock class which includes overriding members with private ...ced77c9
Restrict the exception for CAST_FROM_NULL_ALWAYS_FAILS1363d90
Stop using deprecated declarations, prepare for analyzer breaking changes.Updates
mobx
from 1.1.1 to 2.1.4Commits
d99a5c6
gh-844 (#894)558449a
Bump http-cache-semantics from 4.1.0 to 4.1.1 in /docs (#900)b80f710
Bump ua-parser-js from 0.7.32 to 0.7.33 in /docs (#896)4400ea1
Refactor atom.dart to make code cleaner (#854)13b7e6d
test: action should wrap in transaction (#833)4395c8c
updating docs with latest versions of packages94cea63
Bump loader-utils from 2.0.2 to 2.0.4 in /docs (#882)3eb95f7
fixed insecure link in changelog79d855c
fixed insecure link in changeloge0cb367
updating versions of mobx and mobx_codegenUpdates
build_runner
from 1.9.0 to 2.3.3Commits
e870fb0
prep to publish build_runner (#3427)3797325
Fix Dart 3 dev CI builds (#3422)cf0671c
Mention JSON format in dart2js args error message (#3414)5e4f4e1
Fix the build on latest dev sdks (#3416)776ea2c
Bump gaurav-nelson/github-action-markdown-link-check (#3417)816a131
Remove language version marker in daemon_test.dart test fixture (#3415)0b879c4
Report and shutdown after file watch errors (#3411)f02a133
blast_repo fixes (#3407)4abae27
ignore false postive avoid_returning_this lint (#3408)e4d6b8d
Bump gaurav-nelson/github-action-markdown-link-check (#3402)Updates
flutter_mobx
from 1.1.0 to 2.0.6+5Commits
4d320bf
bringing support for previous version of flutter sdk for flutter_mobx68e0ebd
making the executables work for buildcafdecb
fixing a few lints773de3c
updating the dart docker image0faa283
upgrading packages, adding ability to run pub-get/upgrade across all packages...4b445a0
Upgradingmobx
to2.0.7
(#806)9185ebf
Merge pull request #810 from fzyzcjy/master8d58343
Merge branch 'master' into master18ee75a
test: .packages is deprecated (#811)2e447ae
update analyzer versionDependabot 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) You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/Flutterando/flutter_web_site/network/alerts).