Skip to content

Commit ec15969

Browse files
committed
chore: update version to 5.1.0-beta.1 and document new helper getResponsiveImageAttributes
1 parent 20f85d2 commit ec15969

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

CHANGELOG.md

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

3+
## Version 5.1.0
4+
5+
1. **New helper** `getResponsiveImageAttributes()`
6+
Generates ready‑to‑use `src`, `srcSet`, and `sizes` for responsive `<img>` tags (breakpoint pruning, DPR 1×/2×, custom breakpoints, no up‑scaling).
7+
2. Added exports:
8+
`getResponsiveImageAttributes`, `GetImageAttributesOptions`, `ResponsiveImageAttributes`.
9+
10+
_No breaking changes from 5.0.x._
11+
312
## Version 5.0.0
413

514
This version introduces major breaking changes, for usage examples, refer to the [official documentation](https://imagekit.io/docs/integration/javascript).

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.0.0",
3+
"version": "5.1.0-beta.1",
44
"description": "ImageKit Javascript SDK",
55
"main": "dist/imagekit.cjs.js",
66
"module": "dist/imagekit.esm.js",

0 commit comments

Comments
 (0)