Skip to content

Conversation

@sahar-fehri
Copy link
Contributor

@sahar-fehri sahar-fehri commented Mar 19, 2024

Description

PR to update assets-controllers to v27.2.0.

Changelogs:

Related issues

N/A

Manual testing steps

N/A

Screenshots/Recordings

N/A

Before

N/A

After

N/A

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • I've clearly explained what problem this PR is solving and how it is solved.
  • I've linked related issues
  • I've included manual testing steps
  • I've included screenshots/recordings if applicable
  • I’ve included tests if applicable
  • I’ve documented my code using JSDoc format if applicable
  • I’ve applied the right labels on the PR (see labeling guidelines). Not required for external contributors.
  • I’ve properly set the pull request status:
    • In case it's not yet "ready for review", I've set it to "draft".
    • In case it's "ready for review", I've changed it from "draft" to "non-draft".

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

@sahar-fehri sahar-fehri requested a review from a team as a code owner March 19, 2024 08:59
@github-actions
Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@sahar-fehri sahar-fehri force-pushed the feat/update-assets-controllers branch 2 times, most recently from 418cf58 to cc51c2f Compare March 19, 2024 09:04
@socket-security
Copy link

socket-security bot commented Mar 19, 2024

@sahar-fehri sahar-fehri added the team-core-extension-ux Core Extension UX team label Mar 19, 2024
@sahar-fehri sahar-fehri changed the title update: assets-controllers chore: Upgrade assets-controllers to latest Mar 19, 2024
@sahar-fehri sahar-fehri marked this pull request as draft March 19, 2024 09:15
@sahar-fehri
Copy link
Contributor Author

@metamaskbot update-policies

@metamaskbot
Copy link
Collaborator

Policies updated

@sahar-fehri sahar-fehri mentioned this pull request Mar 19, 2024
3 tasks
sahar-fehri added a commit to MetaMask/core that referenced this pull request Mar 19, 2024
## Explanation

PR to export `SUPPORTED_CHAIN_IDS` constant.
This constant is imported in extension like this:
`import { SUPPORTED_CHAIN_IDS } from
'@metamask/assets-controllers/dist/token-prices-service/codefi-v2';`
Which was causing issues when trying to upgrade assets-controllers to
latest. It was not able to find it.
With this change we can import it like this instead of from dist which
can abstract how the code is transpiled;
`import { SUPPORTED_CHAIN_IDS } from '@metamask/assets-controllers';`

## References

* Related to
[#67890](MetaMask/metamask-extension#23574)


## Changelog

<!--
If you're making any consumer-facing changes, list those changes here as
if you were updating a changelog, using the template below as a guide.

(CATEGORY is one of BREAKING, ADDED, CHANGED, DEPRECATED, REMOVED, or
FIXED. For security-related issues, follow the Security Advisory
process.)

Please take care to name the exact pieces of the API you've added or
changed (e.g. types, interfaces, functions, or methods).

If there are any breaking changes, make sure to offer a solution for
consumers to follow once they upgrade to the changes.

Finally, if you're only making changes to development scripts or tests,
you may replace the template below with "None".
-->

### `@metamask/assets-controllers`

- **ADDED**: Added export for const SUPPORTED_CHAIN_IDS 

## 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
@sahar-fehri sahar-fehri force-pushed the feat/update-assets-controllers branch from 5ecc402 to 49511a3 Compare March 19, 2024 18:40
@sahar-fehri sahar-fehri marked this pull request as ready for review March 19, 2024 19:05
@sahar-fehri sahar-fehri requested review from a team as code owners March 19, 2024 19:05
@metamaskbot
Copy link
Collaborator

Builds ready [567e5f7]
Page Load Metrics (1009 ± 494 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint611671123014
domContentLoaded96026178
load48233410091030494
domInteractive96026178
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -62 Bytes (-0.00%)
  • ui: -97 Bytes (-0.00%)
  • common: -11.49 KiB (-0.23%)

@sahar-fehri sahar-fehri self-assigned this Mar 19, 2024
@hesterbruikman hesterbruikman added team-assets and removed team-core-extension-ux Core Extension UX team labels Mar 21, 2024
@sahar-fehri
Copy link
Contributor Author

Closing this one, no need to merge anymore will create a new PR for the new latest assets-controllers version

@github-actions github-actions bot locked and limited conversation to collaborators Mar 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants