Skip to content

Conversation

@dependabot
Copy link

@dependabot dependabot bot commented on behalf of github Oct 12, 2022

Bumps @metamask/controllers from 26.0.0 to 32.0.0.

Release notes

Sourced from @​metamask/controllers's releases.

32.0.0

Added

  • Add isOutOfDate to the PhishingController, for checking whether the phishing lists are out-of-date. (#929)

Changed

  • BREAKING: Make the PhishingController test synchronous (#929)
    • Rather than being polled regularly (as it was pre-v31), or updated on fetch (as in v31), the phishing lists are no longer updated automatically at all. You will need to manually call isOutOfDate to check whether they are out-of-date, and then call updatePhishingLists to update them.
  • BREAKING: Migrate NetworkController to BaseControllerV2 (#903)
    • There is no more "controller configuration" with BaseControllerV2. Instead configuration is set by constructor parameters.
    • The constructor accepts a single "options" object rather than separate parameters. The initial state is now passed as part of this options object, via the state property.
    • The constructor must be passed the infuraProjectId and messenger options. The messenger should be a restricted controller messenger.
    • Controller subscriptions must be registered through the controller messenger, rather than through the controller directly.
    • A providerChange event has been added. This is dispatched when the provider instance variable is updated.
      • When there is a network switch, this is dispatched after the network has been fully initialized.
    • A new getEthQuery action has been added, for obtaining an EthQuery instance that is already setup with the current provider
      • Note that it will stop working when the provider changes, so you should call this again each time the providerChange event is dispatched.

Fixed

  • Prevent parallel phishing configuration updates (#930)
  • Fix issues with empty responses in ERC20Standard (#927)
    • Calling getTokenSymbol and getTokenDecimals on contracts that return empty values (0x) for symbol() and decimals() will now throw an error.

31.2.0

Changed

  • Update phishing configuration update URL to reduce cache delay (#915)
  • Update @keystonehq/metamask-airgapped-keyring from ^0.3.0 to ^0.6.1 (#913)

Fixed

  • Allow Optimism & Optimism Testnet to be added via wallet_addEthereumChain (#910)
  • Fix regression where a phishing configuration update network failure would cause the test method to fail (#915)
  • Prevent duplicate phishing configuration update network requests (#915)

31.1.0

Added

  • Add new error type - ApprovalRequestNotFoundError (#909)

Changed

  • Replace ethers with submodules (@ethersproject/**) (#907)

31.0.0

Added

  • Add support for caveats on endowment permissions (#878)

Changed

  • BREAKING: Bump to Node 14 (#893)
  • BREAKING: PhishingController is now async (#897)
    • PhishingController.test now returns a Promise
    • PhishingController.setRefreshInterval should now be used to change the polling interval
  • Changed TokenController._createEthersContract to no longer be async (#895)

... (truncated)

Changelog

Sourced from @​metamask/controllers's changelog.

[32.0.0]

Added

  • Add isOutOfDate to the PhishingController, for checking whether the phishing lists are out-of-date. (#929)

Changed

  • BREAKING: Make the PhishingController test synchronous (#929)
    • Rather than being polled regularly (as it was pre-v31), or updated on fetch (as in v31), the phishing lists are no longer updated automatically at all. You will need to manually call isOutOfDate to check whether they are out-of-date, and then call updatePhishingLists to update them.
  • BREAKING: Migrate NetworkController to BaseControllerV2 (#903)
    • There is no more "controller configuration" with BaseControllerV2. Instead configuration is set by constructor parameters.
    • The constructor accepts a single "options" object rather than separate parameters. The initial state is now passed as part of this options object, via the state property.
    • The constructor must be passed the infuraProjectId and messenger options. The messenger should be a restricted controller messenger.
    • Controller subscriptions must be registered through the controller messenger, rather than through the controller directly.
    • A providerChange event has been added. This is dispatched when the provider instance variable is updated.
      • When there is a network switch, this is dispatched after the network has been fully initialized.
    • A new getEthQuery action has been added, for obtaining an EthQuery instance that is already setup with the current provider
      • Note that it will stop working when the provider changes, so you should call this again each time the providerChange event is dispatched.

Fixed

  • Prevent parallel phishing configuration updates (#930)
  • Fix issues with empty responses in ERC20Standard (#927)
    • Calling getTokenSymbol and getTokenDecimals on contracts that return empty values (0x) for symbol() and decimals() will now throw an error.

[31.2.0]

Changed

  • Update phishing configuration update URL to reduce cache delay (#915)
  • Update @keystonehq/metamask-airgapped-keyring from ^0.3.0 to ^0.6.1 (#913)

Fixed

  • Allow Optimism & Optimism Testnet to be added via wallet_addEthereumChain (#910)
  • Fix regression where a phishing configuration update network failure would cause the test method to fail (#915)
  • Prevent duplicate phishing configuration update network requests (#915)

[31.1.0]

Added

  • Add new error type - ApprovalRequestNotFoundError (#909)

Changed

  • Replace ethers with submodules (@ethersproject/**) (#907)

[31.0.0]

Added

  • Add support for caveats on endowment permissions (#878)

Changed

  • BREAKING: Bump to Node 14 (#893)
  • BREAKING: PhishingController is now async (#897)
    • PhishingController.test now returns a Promise
    • PhishingController.setRefreshInterval should now be used to change the polling interval
  • Changed TokenController._createEthersContract to no longer be async (#895)

... (truncated)

Commits
  • c7d670c 32.0.0 (#931)
  • a7de559 Make the PhishingController test synchronous (#929)
  • 0adfc97 Prevent parallel phishing configuration updates (#930)
  • 0b03d58 Fix issues with empty responses in ERC20Standard (#927)
  • 739d100 Refactor NetworkController to BaseControllerV2 (#903)
  • 08dc780 31.2.0 (#924)
  • a0827d5 Update phishing endpoints and fix issues with new implementation (#915)
  • b4fa756 [FIX] - Allow Optimism & Optimism Testnet to be added via wallet_addEthereumC...
  • 0ee6a25 bump @​keystonehq/metamask-airgapped-keyring to latest version (#913)
  • 680794f Improve PhishingController tests (#916)
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by metamaskbot, a new releaser for @​metamask/controllers since your current version.


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)

Bumps [@metamask/controllers](https://github.com/MetaMask/controllers) from 26.0.0 to 32.0.0.
- [Release notes](https://github.com/MetaMask/controllers/releases)
- [Changelog](https://github.com/MetaMask/controllers/blob/main/CHANGELOG.md)
- [Commits](MetaMask/core@v26.0.0...v32.0.0)

---
updated-dependencies:
- dependency-name: "@metamask/controllers"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot requested review from a team and meppsilon as code owners October 12, 2022 06:17
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Oct 12, 2022
@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Oct 13, 2022

Superseded by #136.

@dependabot dependabot bot closed this Oct 13, 2022
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/main/metamask/controllers-32.0.0 branch October 13, 2022 06:08
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.

1 participant