Skip to content

Conversation

@dependabot
Copy link

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

Bumps @metamask/controllers from 26.0.0 to 31.0.0.

Release notes

Sourced from @​metamask/controllers's releases.

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)

30.3.0

Added

  • Add new functionality to the CollectiblesController to verify the transaction state of a collectible (#762).
    • Add new method to the CollectiblesController to search a Collectible by smart contract address and token ID (findCollectibleByAddressAndTokenId).
    • Add new method to the CollectiblesController to update the state of a Collectible (updateCollectible).
    • Add new method to the CollectiblesController to reset the transaction status of a Collectible (resetCollectibleTransactionStatusByTransactionId).
  • Add new method validatePassword to KeyringController to validate the password (#884)
  • Add formatIconUrlWithProxy function for formatting iconUrl Proxy for tokens from Swaps API (#889)

30.2.0

Changed

  • Updated the Testnet Ticker string format to be prefixed with the network name (e.g. ETH) (#868)

30.1.0

Added

  • Allow clients to avoid third party tokenlist polling (#861):
    • Added a new configuration property preventPollingOnNetworkRestart is added to TokenListController.
    • Added a method to update the new preventPollingOnNetworkRestart property value.
    • Added a method to reset the tokenList and tokensChainsCache properties in state.

30.0.2

Added

  • Adds method isTokenListSupportedForNetwork which returns SupportedTokenDetectionNetworks plus the local ganache network chainId. Then changes TokenListController to use this method to check whether or not to start polling, so that polling can occur on ganache networks to allow for e2e testing (#855)

30.0.1

Fixed

  • Change formatIconUrlWithProxy to accept hex strings for chainId (#851)
  • This change fixes an issue introduced in v30.0.0 for metamask-extension where the chainId is currently represented as a hexadecimal in the TokensController and was, as a result, getting invalid URL responses from formatIconUrlWithProxy which previously expected its chainId argument to be in decimal format.

30.0.0

Added

  • BREAKING: Introduce getNetworkState, getPreferencesState, and onTokenListStateChange to the TokenDetectionController constructor options object (#808)
    • getPreferencesState provides the default value for useTokenDetection from the PreferencesController state.
    • getNetworkState provides the default value for chainId from the NetworkController state.
    • onTokenListStateChange listener triggers a detect action whenever the TokenListController finishes fetching a token list.
  • BREAKING: Update AssetsContractController to keep track of the current network (accessible via config.chainId) as well as whether the network supports token detection (#809)
    • Consumers will need to pass listener method onNetworkStateChange in AssetsContractController constructor options object. This method should be called with network/provider details when network changes occur.
  • Add onCollectibleAdded event handler to the CollectiblesController constructor (#814)
    • This event handler was added to allow us to capture metrics.

... (truncated)

Changelog

Sourced from @​metamask/controllers's changelog.

[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)

[30.3.0]

Added

  • Add new functionality to the CollectiblesController to verify the transaction state of a collectible (#762).
    • Add new method to the CollectiblesController to search a Collectible by smart contract address and token ID (findCollectibleByAddressAndTokenId).
    • Add new method to the CollectiblesController to update the state of a Collectible (updateCollectible).
    • Add new method to the CollectiblesController to reset the transaction status of a Collectible (resetCollectibleTransactionStatusByTransactionId).
  • Add new method validatePassword to KeyringController to validate the password (#884)
  • Add formatIconUrlWithProxy function for formatting iconUrl Proxy for tokens from Swaps API (#889)

[30.2.0]

Changed

  • Updated the Testnet Ticker string format to be prefixed with the network name (e.g. ETH) (#868)

[30.1.0]

Added

  • Allow clients to avoid third party tokenlist polling (#861):
    • Added a new configuration property preventPollingOnNetworkRestart is added to TokenListController.
    • Added a method to update the new preventPollingOnNetworkRestart property value.
    • Added a method to reset the tokenList and tokensChainsCache properties in state.

[30.0.2]

Added

  • Adds method isTokenListSupportedForNetwork which returns SupportedTokenDetectionNetworks plus the local ganache network chainId. Then changes TokenListController to use this method to check whether or not to start polling, so that polling can occur on ganache networks to allow for e2e testing (#855)

[30.0.1]

Fixed

  • Change formatIconUrlWithProxy to accept hex strings for chainId (#851)
  • This change fixes an issue introduced in v30.0.0 for metamask-extension where the chainId is currently represented as a hexadecimal in the TokensController and was, as a result, getting invalid URL responses from formatIconUrlWithProxy which previously expected its chainId argument to be in decimal format.

[30.0.0]

Added

  • BREAKING: Introduce getNetworkState, getPreferencesState, and onTokenListStateChange to the TokenDetectionController constructor options object (#808)
    • getPreferencesState provides the default value for useTokenDetection from the PreferencesController state.
    • getNetworkState provides the default value for chainId from the NetworkController state.
    • onTokenListStateChange listener triggers a detect action whenever the TokenListController finishes fetching a token list.
  • BREAKING: Update AssetsContractController to keep track of the current network (accessible via config.chainId) as well as whether the network supports token detection (#809)
    • Consumers will need to pass listener method onNetworkStateChange in AssetsContractController constructor options object. This method should be called with network/provider details when network changes occur.
  • Add onCollectibleAdded event handler to the CollectiblesController constructor (#814)
    • This event handler was added to allow us to capture metrics.

... (truncated)

Commits
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 31.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...v31.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 September 12, 2022 06:22
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Sep 12, 2022
@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Sep 19, 2022

Superseded by #133.

@dependabot dependabot bot closed this Sep 19, 2022
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/main/metamask/controllers-31.0.0 branch September 19, 2022 06:15
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