This version introduces major breaking changes, for usage examples, refer to the official documentation.
Full Changelog: 4.0.1...5.0.0
-
The package has been renamed from
imagekit-javascript
to@imagekit/javascript
.
Please update your dependency references and import statements accordingly. -
The default-exported
ImageKit
class has been removed and replaced with named exports:buildSrc
buildTransformationString
upload
- Error classes:
ImageKitInvalidRequestError
,ImageKitAbortError
,ImageKitUploadNetworkError
,ImageKitServerError
Update your imports to use these named exports.
-
The
upload
method supportsAbortSignal
for canceling uploads.
Upload error handling has been revamped, andonProgress
callbacks are now supported.
Only the Promise-based syntax is supported. Callback style usage has been removed. -
Several internal interfaces (e.g.,
ImageKitOptions
,IKResponse
) have been updated or removed.
The upload options now require apublicKey
, and a newSrcOptions
interface has been introduced.