Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@uppy/transloadit: improve deprecation notice #4056

Merged
merged 1 commit into from Aug 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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