Skip to content

Commit

Permalink
32.0.0 (#931)
Browse files Browse the repository at this point in the history
* 32.0.0

* Update changelog

* Clarify ERC20Standard changes

Co-authored-by: Alex Donesky <[email protected]>

Co-authored-by: github-actions <[email protected]>
Co-authored-by: Mark Stacey <[email protected]>
Co-authored-by: Alex Donesky <[email protected]>
  • Loading branch information
4 people authored Oct 11, 2022
1 parent a7de559 commit c7d670c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
25 changes: 24 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,28 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [32.0.0]
### Added
- Add `isOutOfDate` to the PhishingController, for checking whether the phishing lists are out-of-date. ([#929](https://github.com/MetaMask/controllers/pull/929))

### Changed
- **BREAKING:** Make the PhishingController `test` synchronous ([#929](https://github.com/MetaMask/controllers/pull/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](https://github.com/MetaMask/controllers/pull/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](https://github.com/MetaMask/controllers/pull/930))
- Fix issues with empty responses in ERC20Standard ([#927](https://github.com/MetaMask/controllers/pull/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](https://github.com/MetaMask/controllers/pull/915))
Expand Down Expand Up @@ -675,7 +697,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Removed
- Remove shapeshift controller (#209)

[Unreleased]: https://github.com/MetaMask/controllers/compare/v31.2.0...HEAD
[Unreleased]: https://github.com/MetaMask/controllers/compare/v32.0.0...HEAD
[32.0.0]: https://github.com/MetaMask/controllers/compare/v31.2.0...v32.0.0
[31.2.0]: https://github.com/MetaMask/controllers/compare/v31.1.0...v31.2.0
[31.1.0]: https://github.com/MetaMask/controllers/compare/v31.0.0...v31.1.0
[31.0.0]: https://github.com/MetaMask/controllers/compare/v30.3.0...v31.0.0
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@metamask/controllers",
"version": "31.2.0",
"version": "32.0.0",
"description": "Collection of platform-agnostic modules for creating secure data models for cryptocurrency wallets",
"keywords": [
"MetaMask",
Expand Down

0 comments on commit c7d670c

Please sign in to comment.