Browse Source

@uppy/transloadit: remove static properties in favor of exports (#3927)

Antoine du Hamel 2 years ago
parent
commit
a38ae901ed
1 changed files with 0 additions and 7 deletions
  1. 0 7
      packages/@uppy/transloadit/src/index.js

+ 0 - 7
packages/@uppy/transloadit/src/index.js

@@ -855,10 +855,3 @@ export {
   COMPANION,
   ALLOWED_COMPANION_PATTERN as COMPANION_PATTERN,
 }
-
-// Backward compatibility: we want `COMPANION` and `COMPANION_PATTERN`
-// to keep being accessible as static properties of `Transloadit` to avoid a
-// breaking change.
-Transloadit.ALLOWED_COMPANION_PATTERN = ALLOWED_COMPANION_PATTERN // TODO: remove this line on the next major
-Transloadit.COMPANION = COMPANION // TODO: remove this line on the next major
-Transloadit.COMPANION_PATTERN = ALLOWED_COMPANION_PATTERN // TODO: remove this line on the next major