Version 2.0.0
To fix issues like imagekit-developer/imagekit-react#101, we needed to delegate the responsibility of generating a security parameter to the SDK consumer. This version introduces a breaking change.
Breaking changes
Authentication Process Update:
- Previously, when using client side file upload, the SDK required the
publicKey
andauthenticationEndpoint
parameters during SDK initialization to fetch security parameters (signature
,token
, andexpire
). - In version 2.0.0, we've updated the authentication process for the SDK. As a user of the SDK, you are now responsible for generating the security parameters (
signature
,token
, andexpire
) yourself. This means you no longer need to provide theauthenticationEndpoint
. When using the SDK's upload method, make sure to pass these security parameters explicitly along with other upload options. For guidance on generating these security parameters, please refer to the documentation available here.