Skip to content

Replace duplicate Json type#1370

Merged
Gudahtt merged 1 commit intomainfrom
replace-duplicate-json-type
May 12, 2023
Merged

Replace duplicate Json type#1370
Gudahtt merged 1 commit intomainfrom
replace-duplicate-json-type

Conversation

@Gudahtt
Copy link
Copy Markdown
Member

@Gudahtt Gudahtt commented May 12, 2023

Description

The Json type in @metamask/controller-utils has been replaced with the Json type from @metamask/utils. A few stray references to the Json type from @metamask/types have been replaced too, ensuring that we're using the same Json type for everything.

Changes

@metamask/approval-controller

  • CHANGED: Replace @metamask/controller-utils dependency with @metamask/utils

@metamask/base-controller

  • CHANGED: Replace @metamask/controller-utils dependency with @metamask/utils

@metamask/controller-utils

  • BREAKING: Remove Json type
    • Use the Json type from @metamask/utils instead

@metamask/message-manager

  • CHANGED: Add @metamask/utils dependency

References

Relates to #1209

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation for new or updated code as appropriate (note: this will usually be JSDoc)
  • I've highlighted breaking changes using the "BREAKING" category above as appropriate

The `Json` type in `@metamask/controller-utils` has been replaced with
the `Json` type from `@metamask/utils`. A few stray references to the
`Json` type from `@metamask/types` have been replaced too, ensuring
that we're using the same `Json` type for everything.

Relates to #1209
@Gudahtt Gudahtt force-pushed the replace-duplicate-json-type branch from 85df68d to 7f1ffd8 Compare May 12, 2023 16:59
@Gudahtt Gudahtt marked this pull request as ready for review May 12, 2023 17:03
@Gudahtt Gudahtt requested a review from a team as a code owner May 12, 2023 17:03
Copy link
Copy Markdown
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.

Nice! I've been wanting to do this for a while.

@Gudahtt Gudahtt merged commit 63e6319 into main May 12, 2023
@Gudahtt Gudahtt deleted the replace-duplicate-json-type branch May 12, 2023 17:37
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.

2 participants