MetaMask / snaps

Extend the functionality of MetaMask using Snaps
https://metamask.io/snaps/
Other
711 stars 546 forks source link

Changelog/migrating instructions for @metamask/snaps-types to @metamask/snaps-sdk #2224

Open meandavejustice opened 4 months ago

meandavejustice commented 4 months ago

@metamask/snaps-sdk is recommended as the replacement for deprecated @metamask/snaps-types. There doesn't seem to be any documentation for where some of these types ended up. Namely SnapsGlobalObject. I'm not seeing any references to it that answer where it has been moved in this repo, or metamask support forums.

meandavejustice commented 4 months ago

It looks like the change is here: https://github.com/MetaMask/snaps/commit/78a2b0f4a768251492c7d755ece67ebe42a82d71#diff-4aadfa34487d065679b3a9a6d77f484ab8c417e781c7dbedb4c60ed25d8c64cbR7

import type { SnapsGlobalObject } from '@metamask/snaps-rpc-methods';

Becomes:

import type { SnapsProvider } from '@metamask/snaps-sdk';

Feel free to close :) I will leave open in case someone wants to add to docs somewhere, but just being in issue tracker is at least searchable