Patch Changes
- 628b3c0: Unmount UI plugins' Preact trees and remove the Dashboard modal's keyboard listener during uninstall. Removing an open DashboardModal now releases keyboard focus, restores focus to the element that had it before the modal opened (if that element is still on the page), and runs component cleanup, including pending panel transitions.
- f58058d: Deprecate the
tokenStorageexport. UsedefaultStoragefrom@uppy/core/companion-clientinstead. - f58058d: Allow various asynchronous interfaces and callbacks to be synchronous. Some methods that never awaited anything are no longer
async; for exampleWebcam#getVideo()now returns its value directly. - f58058d: Only access
localStoragewhen a provider plugin's default token storage is used, so the plugins can be constructed during server-side rendering again. - a16a4bf: Strip all trailing slashes from
companionUrl(previously only one was stripped for HTTP requests, and none for websockets), so acompanionUrlending in/no longer producesws://host//api/...and breaks remote uploads.