Procházet zdrojové kódy

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

Antoine du Hamel před 2 roky
rodič
revize
a38ae901ed
1 změnil soubory, kde provedl 0 přidání a 7 odebrání
  1. 0 7
      packages/@uppy/transloadit/src/index.js

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

@@ -855,10 +855,3 @@ export {
   COMPANION,
   COMPANION,
   ALLOWED_COMPANION_PATTERN as COMPANION_PATTERN,
   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