Skip to content

Commit

Permalink
@uppy/transloadit: improve deprecation notice (#4056)
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Aug 30, 2022
1 parent ea1c076 commit 4e26eb0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/@uppy/transloadit/src/index.js
Expand Up @@ -37,10 +37,10 @@ const TL_COMPANION = /https?:\/\/api2(?:-\w+)?\.transloadit\.com\/companion/
export default class Transloadit extends BasePlugin {
static VERSION = packageJson.version

/** @deprecated */
/** @deprecated use `import { COMPANION_URL } from '@uppy/transloadit'` instead. */
static COMPANION = COMPANION_URL

/** @deprecated */
/** @deprecated use `import { COMPANION_ALLOWED_HOSTS } from '@uppy/transloadit'` instead. */
static COMPANION_PATTERN = COMPANION_ALLOWED_HOSTS

#rateLimitedQueue
Expand Down
4 changes: 2 additions & 2 deletions packages/@uppy/transloadit/types/index.d.ts
Expand Up @@ -122,10 +122,10 @@ export type TransloaditOptions = TransloaditOptionsBase &
| AssemblyOptions)

export default class Transloadit extends BasePlugin<TransloaditOptions> {
/** @deprecated */
/** @deprecated use `import { COMPANION_URL } from '@uppy/transloadit'` instead. */
static COMPANION: string

/** @deprecated */
/** @deprecated use `import { COMPANION_ALLOWED_HOSTS } from '@uppy/transloadit'` instead. */
static COMPANION_PATTERN: RegExp
}

Expand Down

0 comments on commit 4e26eb0

Please sign in to comment.