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

fix: Allow optional jsonRpcStreamName for inpage provider #390

Merged
merged 2 commits into from
Nov 27, 2024

Conversation

Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Nov 27, 2024

The MetaMaskInpageProvider type was mistakenly typed to require the jsonRpcStreamName as a constructor parameter, despite the author clearly intending this to be optional. This type error was fixed.

This type error motivated a different bug, which is that validation for jsonRpcStreamName was added to initializeInapgeProvider in #381, constituting an undocumented breaking change (currently blocking us from updating this package in metamask-extension). This validation has been removed now that it's no longer needed.

Fixes #389

The `MetaMaskInpageProvider` type was mistakenly typed to require the
`jsonRpcStreamName` as a constructor parameter, despite the author
clearly intending this to be optional. This type error was fixed.

This type error motivated a different bug, which is that validation for
`jsonRpcStreamName` was added to `initializeInapgeProvider` in #381,
constituting an undocumented breaking change (currently blocking us
from updating this package in `metamask-extension`). This validation
has been removed now that it's no longer needed.

Fixes #389
@Gudahtt Gudahtt marked this pull request as ready for review November 27, 2024 15:40
@Gudahtt Gudahtt requested a review from a team as a code owner November 27, 2024 15:40
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.

LGTM.

@Gudahtt Gudahtt merged commit b8e6186 into main Nov 27, 2024
18 checks passed
@Gudahtt Gudahtt deleted the optional-json-rpc-stream-name branch November 27, 2024 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Accidental breaking change introduced in v18.1.0
2 participants