5.0.0
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-javascriptto@imagekit/javascript.
Please update your dependency references and import statements accordingly. -
The default-exported
ImageKitclass has been removed and replaced with named exports:buildSrcbuildTransformationStringupload- Error classes:
ImageKitInvalidRequestError,ImageKitAbortError,ImageKitUploadNetworkError,ImageKitServerError
Update your imports to use these named exports.
-
The
uploadmethod supportsAbortSignalfor canceling uploads.
Upload error handling has been revamped, andonProgresscallbacks 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 newSrcOptionsinterface has been introduced.