Skip to content

Avoid circular dependency on @metamask/utils#170

Merged
mcmire merged 1 commit intomainfrom
avoid-circular-dep-with-utils
Oct 24, 2023
Merged

Avoid circular dependency on @metamask/utils#170
mcmire merged 1 commit intomainfrom
avoid-circular-dep-with-utils

Conversation

@mcmire
Copy link
Copy Markdown
Contributor

@mcmire mcmire commented Oct 24, 2023

@metamask/utils has a development dependency on this package (since we need a way to validate its changelog). So, if this package depends on @metamask/utils, then that creates a circular dependency which could potentially cause issues. Since we only use one function from this package, we can just copy it.


See: MetaMask/utils#153 (comment)

`@metamask/utils` has a development dependency on this package (since we
need a way to validate its changelog). So, if this package depends on
`@metamask/utils`, then that creates a circular dependency which could
potentially cause issues. Since we only use one function from this
package, we can just copy it.
Copy link
Copy Markdown
Contributor

@cryptodev-2s cryptodev-2s left a comment

Choose a reason for hiding this comment

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

LGTM!

@mcmire mcmire merged commit cf631ec into main Oct 24, 2023
@mcmire mcmire deleted the avoid-circular-dep-with-utils branch October 24, 2023 19:17
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