Skip to content

Conversation

@legobeat
Copy link
Contributor

@legobeat legobeat commented Oct 18, 2024

  • devDeps: typescript@~5.3.3->~5.6.3
  • fix: validate param jsonRpcStreamName

Fix reference to missing src/readable-stream.d.ts.

https://github.com/MetaMask/snaps/actions/runs/11377787197/job/31652511752?pr=2817#step:5:9
MetaMask/snaps#2817

@socket-security
Copy link

socket-security bot commented Oct 18, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/typescript@5.6.3 None 0 22.4 MB typescript-bot

🚮 Removed packages: npm/typescript@5.3.3

View full report↗︎

@legobeat legobeat marked this pull request as ready for review October 18, 2024 06:02
@legobeat legobeat requested a review from a team October 18, 2024 06:02
@legobeat legobeat requested a review from a team October 18, 2024 06:05
@legobeat legobeat merged commit f935414 into MetaMask:main Oct 18, 2024
18 checks passed
Gudahtt added a commit that referenced this pull request 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
Gudahtt added a commit that referenced this pull request Nov 27, 2024
* fix: Allow optional `jsonRpcStreamName` for inpage provider

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

* Update test coverage
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.

2 participants