Skip to content

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 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

3 participants