Skip to content

Commit b695b66

Browse files
committed
chore: bump version to 5.2.2 and update changelog with TypeScript type enhancements for dpr parameter
1 parent 8d5abf5 commit b695b66

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## Version 5.2.2
4+
5+
1. Updated TypeScript types to allow string values for the `dpr` parameter in transformations, enabling support for arithmetic expressions and dynamic DPR values.
6+
37
## Version 5.2.1
48

59
1. **Bug fix:**

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@imagekit/javascript",
3-
"version": "5.2.1",
3+
"version": "5.2.2",
44
"description": "ImageKit Javascript SDK",
55
"main": "dist/imagekit.cjs.js",
66
"module": "dist/imagekit.esm.js",

src/interfaces/shared.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1431,7 +1431,7 @@ export interface Transformation {
14311431
* [Arithmetic expressions](https://imagekit.io/docs/arithmetic-expressions-in-transformations).
14321432
* - See [DPR](https://imagekit.io/docs/image-resize-and-crop#dpr---dpr).
14331433
*/
1434-
dpr?: number;
1434+
dpr?: number | string;
14351435

14361436
/**
14371437
* Specifies the duration (in seconds) for trimming videos, e.g., `5` or `10.5`.

0 commit comments

Comments
 (0)