snaps icon indicating copy to clipboard operation
snaps copied to clipboard

Updating Snaps may cause websites to break

Open Mrtenz opened this issue 2 years ago • 1 comments

In a situation where a Snap updates to a new version, but certain websites don't support this version, the website could break.

  • We can show a warning when the user updates the Snap.
  • We can handle rolling back Snaps to the previous version (and keep state around of older Snaps versions).
  • Potentially we just need to have documentation around how to handle breaking changes for Snaps developers.

This needs to be explored and thought about further.

Mrtenz avatar Oct 05 '23 13:10 Mrtenz

To further clarify, this would only affect snaps that use the onRpcRequest export. Snaps not using this export are not interacting with a dapp, so there is nothing to break.

hmalik88 avatar Oct 05 '23 18:10 hmalik88