github imagekit-developer/imagekit-javascript 5.0.0

latest releases: 5.3.0, 5.2.2, 5.2.1...
12 months ago

This version introduces major breaking changes, for usage examples, refer to the official documentation.

Full Changelog: 4.0.1...5.0.0

  1. The package has been renamed from imagekit-javascript to @imagekit/javascript.
    Please update your dependency references and import statements accordingly.

  2. 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.

  3. The upload method supports AbortSignal for canceling uploads.
    Upload error handling has been revamped, and onProgress callbacks are now supported.
    Only the Promise-based syntax is supported. Callback style usage has been removed.

  4. Several internal interfaces (e.g., ImageKitOptions, IKResponse) have been updated or removed.
    The upload options now require a publicKey, and a new SrcOptions interface has been introduced.

Don't miss a new imagekit-javascript release

NewReleases is sending notifications on new releases.