snaps
snaps copied to clipboard
Changelog/migrating instructions for @metamask/snaps-types to @metamask/snaps-sdk
@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.
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