Skip to content

Conversation

@jiexi
Copy link
Contributor

@jiexi jiexi commented Oct 17, 2024

Explanation

Moves isEqualCaseInsensitive() from assets-controllers into controller-utils because it will be used elsewhere downstream

References

Upstream: None. This is the start.
Downstream: #4812

Changelog

@metamask/controller-utils

  • ADDED: Export isEqualCaseInsensitive() helper which performs case insensitive comparison against two strings and returns true if they are equivalent.

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
  • I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes

@jiexi jiexi requested a review from a team as a code owner October 17, 2024 19:36
@jiexi jiexi requested a review from a team October 17, 2024 19:36
* @param value2 - first string to compare
* @returns true if 2 strings are identical when they are lowercase
*/
export function isEqualCaseInsensitive(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note, this is not exported outside of the assets-controller package, and therefore does not require a changelog item

Gudahtt
Gudahtt previously approved these changes Oct 17, 2024
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!

Gudahtt
Gudahtt previously approved these changes Oct 18, 2024
@adonesky1 adonesky1 force-pushed the controller-utils-isEqualCaseInsensitive branch from 109a7bf to 3c43fce Compare October 18, 2024 22:28
@adonesky1 adonesky1 merged commit b8b226b into main Oct 21, 2024
@adonesky1 adonesky1 deleted the controller-utils-isEqualCaseInsensitive branch October 21, 2024 14:48
adonesky1 added a commit that referenced this pull request Oct 21, 2024
## Explanation

Creates the initial (empty) `@metamask/multichain` package to make
downstream additions to this package easier to review.

## References

Upstream: #4811
Downstream: #4784

## Changelog


### `@metamask/multichain`

- **ADDED**: Initial skeleton package for `@metamask/multichain`


## Checklist

- [X] I've updated the test suite for new or updated code as appropriate
- [X] I've updated documentation (JSDoc, Markdown, etc.) for new or
updated code as appropriate
- [X] I've highlighted breaking changes using the "BREAKING" category
above as appropriate
- [X] I've prepared draft pull requests for clients and consumer
packages to resolve any breaking changes

---------

Co-authored-by: Mark Stacey <markjstacey@gmail.com>
Co-authored-by: Alex <adonesky@gmail.com>
@bergeron bergeron mentioned this pull request Oct 22, 2024
bergeron added a commit that referenced this pull request Oct 23, 2024
Release of controller utils package to include
#4811

---------

Co-authored-by: cryptodev-2s <109512101+cryptodev-2s@users.noreply.github.com>
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.

5 participants