diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ee3f2f..cdedf6f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 2.1.5 + +Include `@imagekit/javascript` in external in Rollup config to prevent bundling it with the package, allowing users to be able to fetch the latest version of the SDK without needing to update the package. This also reduces the bundle size of the package and allows users to manage the SDK version separately. + ## 2.1.4 - Added `ref` support to the **Video** component using `forwardRef`, enabling programmatic control of the video element (play, pause, etc.) and access to native video DOM methods. This is particularly useful for implementing custom video controls or handling browser-specific requirements like Safari's autoplay policies. diff --git a/package-lock.json b/package-lock.json index 35a0c3e..37a685e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@imagekit/next", - "version": "2.1.4", + "version": "2.1.5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@imagekit/next", - "version": "2.1.4", + "version": "2.1.5", "license": "MIT", "dependencies": { "@imagekit/javascript": "^5.1.0" diff --git a/package.json b/package.json index a4fd094..9aa307a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@imagekit/next", - "version": "2.1.4", + "version": "2.1.5", "description": "Next.js SDK for ImageKit.io which implements client-side upload and URL generation for use inside a next application.", "scripts": { "build:js": "rollup -c", diff --git a/rollup.config.js b/rollup.config.js index 4c44c14..7bffca7 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -25,7 +25,7 @@ export default [ // Main entry build (client and shared code) { input: "src/index.ts", - external: ["react", "next"], + external: ["react", "next", "@imagekit/javascript"], output: [ { file: pkg.exports["."].main, format: "cjs", sourcemap: true, banner: "'use client'" }, { file: pkg.exports["."].module, format: "es", sourcemap: true, banner: "'use client'" },