Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'" },
Expand Down