From f8ca826c333f68e47344439e5a773e20cc137437 Mon Sep 17 00:00:00 2001 From: Manu Chaudhary Date: Wed, 18 Feb 2026 12:06:52 +0530 Subject: [PATCH 1/2] chore: update version to 2.1.5 and externalize @imagekitio/javascript dependency in Rollup config --- CHANGELOG.md | 4 ++++ package-lock.json | 4 ++-- package.json | 2 +- rollup.config.js | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ee3f2f..873e849 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 2.1.5 + +Include `@imagekitio/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'" }, From 07bb242d32394fade9105aa94c873394e0788ee3 Mon Sep 17 00:00:00 2001 From: Manu Chaudhary Date: Wed, 18 Feb 2026 12:17:50 +0530 Subject: [PATCH 2/2] chore: update changelog for externalizing @imagekitio/javascript dependency in Rollup config --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 873e849..cdedf6f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## 2.1.5 -Include `@imagekitio/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. +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