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

chore(base-controller): Restore subscrbe property #3698

Merged
merged 1 commit into from
Dec 22, 2023

Conversation

Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Dec 22, 2023

Explanation

The subscribe property was removed in #3590 because it is no longer used. It has been restored here so that we can release the @metamask/base-controller without any breaking changes.

This property's description has been updated to clarify that it's no longer used, and it's now marked as deprecated.

References

Discussed in the v104 release candidate PR: #3695 (comment)

Changelog

@metamask/base-controller

  • Changed: Deprecate the subscribe property of BaseControllerV2
    • This property was used to differentiate between BaseControllerV1 and BaseControllerV2 controllers. It is no longer used, so it has been marked as deprecated.

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

@Gudahtt Gudahtt marked this pull request as ready for review December 22, 2023 19:18
@Gudahtt Gudahtt requested a review from a team as a code owner December 22, 2023 19:18
@Gudahtt Gudahtt mentioned this pull request Dec 22, 2023
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.

Looks good.

The `subscribe` property was removed in #3590 because it is no longer
used. It has been restored here so that we can release the
`@metamask/base-controller` without any breaking changes.

This property's description has been updated to clarify that it's no
longer used, and it's now marked as deprecated.
@Gudahtt Gudahtt force-pushed the restore-subscribe-property branch from bd2214b to ceb11de Compare December 22, 2023 19:30
@Gudahtt Gudahtt merged commit 109cda3 into main Dec 22, 2023
@Gudahtt Gudahtt deleted the restore-subscribe-property branch December 22, 2023 19:35
Gudahtt added a commit that referenced this pull request Dec 22, 2023
* origin/main:
  chore(base-controller): Restore `subscrbe` property (#3698)
Gudahtt added a commit that referenced this pull request Dec 22, 2023
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