Our implementation of the share-to-teams button broke today. https://teams.microsoft.com/share/launcher.js no longer provide a global shareToMicrosoftTeams function which results in "Uncaught ReferenceError: shareToMicrosoftTeams is not defined" when called in code.
We have followed the documentation and our solution has been working for well over a year until today.