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

refactor: Update @metamask/utils and use createDeferredPromise from utils #3769

Merged
merged 1 commit into from
Jan 11, 2024

Conversation

Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Jan 11, 2024

Explanation

The createDeferredPromise function that had been defined in the TokenRatesController has been replaced by the function with the same name from the @metamask/utils package. It behaves identically.

The @metamask/utils package has been updated from ^8.2.0 to ^8.3.0 in all packages because the createDeferredPromise function was added in v8.3.0.

References

This is a follow-up to #3635. The function was temporarily inlined in that PR, but the plan was always to ship it as part of utils.

This was done now because it helps somewhat with #3763, but it's not a complete blocker.

Changelog

This change entry applies to all packages in the diff for this PR.

Changed

  • Bump @metamask/utils to ^8.3.0

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've highlighted breaking changes using the "BREAKING" category above as appropriate

…om utils

The `createDeferredPromise` function that had been defined in the
`TokenRatesController` has been replaced by the function with the same
name from the `@metamask/utils` package. It behaves identically.

The `@metamask/utils` package has been updated from `^8.2.0` to
`^8.3.0` in all packages because the `createDeferredPromise` function
was added in `v8.3.0`.
@Gudahtt Gudahtt force-pushed the use-create-deferred-promise-from-utils branch from 3f85f7b to 929fec4 Compare January 11, 2024 16:11
@Gudahtt Gudahtt marked this pull request as ready for review January 11, 2024 16:15
@Gudahtt Gudahtt requested review from a team as code owners January 11, 2024 16:15
Copy link
Contributor

@mcmire mcmire left a comment

Choose a reason for hiding this comment

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

Makes sense!

@Gudahtt Gudahtt merged commit b7462df into main Jan 11, 2024
136 checks passed
@Gudahtt Gudahtt deleted the use-create-deferred-promise-from-utils branch January 11, 2024 16:54
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.

3 participants