Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@brad-decker
Copy link
Contributor

proposed changelog:

[12.0.0] - 2021-07-07

Added

  • Added GasFeeController to provide gas fee estimates #494

Changed

  • BREAKING: Added chainId support to TokenRatesControllers #476
    • The breaking change here is that TokenRatesController constructor now requires a onNetworkStateChange listener
  • Added iconUrl to Token type in TokenListController #512

@brad-decker brad-decker mentioned this pull request Jul 7, 2021
@brad-decker brad-decker marked this pull request as ready for review July 7, 2021 18:58
@brad-decker brad-decker requested a review from a team as a code owner July 7, 2021 18:58
@wachunei
Copy link
Member

wachunei commented Jul 7, 2021

The required changes because of #476 are:

  • TokenRatesController constructor should receive a onNetworkStateChange listener subscription:

    new TokenRatesController({
      onAssetsStateChange: listener => assetsController.subscribe(listener),
      onCurrencyRateStateChange: listener =>
        this.controllerMessenger.subscribe(`${currencyRateController.name}:stateChange`, listener),
      onNetworkStateChange: listener => networkController.subscribe(listener)
    })

wachunei
wachunei previously approved these changes Jul 7, 2021
Copy link
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had one minor suggestion for the changelog. But more importantly, it doesn't seem valid. The reference link definitions at the bottom have not been updated.

Edit: shameless plug for #511 😅 That would have caught this problem.

Co-authored-by: Mark Stacey <[email protected]>
@brad-decker
Copy link
Contributor Author

brad-decker commented Jul 7, 2021

Edit: shameless plug for #511 😅 That would have caught this problem.

Haha on it!

CHANGELOG.md Outdated
## [Unreleased]

## [12.0.0] - 2021-07-07

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where did all of these extra newlines come from 🤔 This would also fail validation.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It came from prettier... i have to keep a .prettierignore file without committing it or its gets really opionated about .md files

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be fixed 😓

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh, interesting. It's omitted in yarn lint explicitly, but we don't have any ignore file committed.... maybe that's something we should consider 🤔 For anyone that runs prettier directly.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think prettier plugin for vscode respects eslintrc, so if were to somehow move that setting into the .eslintrc it should be fine. Otherwise a prettierignore file is also good.

Copy link
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@brad-decker brad-decker merged commit 7912586 into main Jul 7, 2021
@brad-decker brad-decker deleted the release/v12.0.0 branch July 7, 2021 19:20
@brad-decker
Copy link
Contributor Author

A new version of the package @metamask/controllers (12.0.0) was published at 2021-07-07T19:22:41.557Z from
[REDACTED]. The shasum of this package was afc36e6e8eb53133996b6e41dfc30d01c25ba9d9.

MajorLift pushed a commit that referenced this pull request Oct 11, 2023
* v12.0.0 release

* Update CHANGELOG.md

Co-authored-by: Mark Stacey <[email protected]>

* update ref links

Co-authored-by: Mark Stacey <[email protected]>
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
* v12.0.0 release

* Update CHANGELOG.md

Co-authored-by: Mark Stacey <[email protected]>

* update ref links

Co-authored-by: Mark Stacey <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants