Releases: uploadcare/uploadcare-js-api-clients
Releases · uploadcare/uploadcare-js-api-clients
v1.0.0-alpha.3
Added
- Support
fileFrom
'uploaded' file (uuid
) - Support of
waiting
status from/from_url/status/
endpoint. - Export some main types from
index.ts
file.
So you can import them now directly from@uploadcare/upload-client
- Throttling for
request
retryThrottledMaxTimes
param to set count of max retries after throttled request (1 by default)Uuid
type- Mock server for local testing
Fixed
- Default timeout for polling functions increased from 3s to 10s.
- Removed restrictions for timeout and interval.
v1.0.0-alpha.2
Changed
- Project was moved from Flow notations to TypeScript.
- The
base
function now returns object that implementsDirectUploadInterface
. - The
fileFrom
function now returns object that implementsUploadFromInterface
. - The
UCFile
type renamed toUploadcareFile
. - The progress of
fileFrom
now based on theUploadingProgress
type.
Added
- Low-level request wrappers for
/from_url/
and/from_url/status/
paths of Upload API. - Settings: the support of setting
baseCDN
,checkForUrlDuplicates
,saveUrlForRecurrentUploads
.
v1.0.0-alpha.1
Fixed
- Use the version from the
package.json
file to create Uploadcare User Agent.
Changed
- The
base
function returnsthenable
object calledDirectUpload
instead of using thepromise
property. - The
fileFrom
function returnsthenable
object calledFilePromise
instead of using thepromise
property. - The
FileInfo
type renamed toUFile
and updated. - The
FilePromise
resolved with an object of theUFile
type. - The progress of
fileFrom
now based on theFilePromiseProgress
type. - Updated the
InfoResponse
type.
Added
- The
checkFileIsReady
function to check if the file is ready on the CDN. - New properties for the object that the
fileFrom
function returns:
onUploaded
,onReady
. - The
camelizeKeys
function for inner usage. - The
baseCDN
default setting
v1.0.0-alpha
The first public alpha release.
Added
- The
request
function to request to any path of Upload API. - Low-level request wrappers for
/base/
and/info/
paths of Upload API. UploadClient
class with settings andfileFrom
method that supports only direct uploads now.- Support of following Uploadcare Settings:
publicKey
,baseUrl
,doNotStore
,integration
,secureExpire
,secureSignature
. - Test environment for both Node.js and browsers