Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump provider from 5.0.0 to 6.0.3 #120

Merged
merged 3 commits into from
Aug 13, 2022
Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 13, 2022

Bumps provider from 5.0.0 to 6.0.3.

Changelog

Sourced from provider's changelog.

6.0.3

  • fix late initialization error when using debugPrintRebuildDirtyWidgets
  • slightly reduced the binary size of release mode applications using provider
  • Fix typos in the error message of ProviderNotFoundException
  • improve performances for reading providers (thanks to @​jiahaog)

6.0.2

Added error details for provider that threw during the creation (thanks to @​jmewes)

6.0.1

Removed the assert that prevented from using ChangeNotifierProvider with notifiers that already had listeners.

6.0.0

  • Breaking: It is no longer possible to define providers where their only difference is the nullability of the exposed value:

    MultiProvider(
      providers: [
        Provider<Model>(...),
        Provider<Model?>(...)
      ]
    )

    Before, when defining those providers, doing context.watch<Model> vs context.watch<Model?> would point to a different provider. Now, both will always point to the deepest provider (in this example Provider<Model?>).

    That fixes issues where a common developer mistake is to define a provider as Model? but try to read it as Model. Previously, that would give a ProviderNotFoundException. Now, this will correctly resolve the value.

    That also helps large codebase migrate to null-safety progressively, as they would temporarily contain both null-safe and unsound code. Previously, unsound code would be unable to read a provider defined as Provider<Model?>, as Model? is not a valid syntax. With this change, this is now feasible.

  • It is now possible to read a provider without throwing a ProviderNotFoundException if the provider is optional.

    To do so, when calling context.watch/context.read, make the generic type nullable. Such that instead of:

... (truncated)

Commits

Dependabot compatibility score

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 dependabot bot added the dependencies Pull requests that update a dependency file label Aug 13, 2022
@fredfalcon
Copy link
Contributor

@dependabot recreate

Bumps [provider](https://github.com/rrousselGit/provider) from 5.0.0 to 6.0.3.
- [Release notes](https://github.com/rrousselGit/provider/releases)
- [Changelog](https://github.com/rrousselGit/provider/blob/master/CHANGELOG.md)
- [Commits](rrousselGit/provider@v5.0.0...v6.0.3)

---
updated-dependencies:
- dependency-name: provider
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/pub/provider-6.0.3 branch from 83e1a92 to 738656b Compare August 13, 2022 16:30
@fredfalcon fredfalcon merged commit 49e76e1 into main Aug 13, 2022
@dependabot dependabot bot deleted the dependabot/pub/provider-6.0.3 branch August 13, 2022 18:09
DonnieBLT pushed a commit that referenced this pull request Aug 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant