You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+39Lines changed: 39 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,7 @@ Node.js SDK for [ImageKit](https://imagekit.io/) implements the new APIs and int
14
14
ImageKit is complete media storage, optimization, and transformation solution that comes with an [image and video CDN](https://imagekit.io/features/imagekit-infrastructure). It can be integrated with your existing infrastructure - storage like AWS S3, web servers, your CDN, and custom domain names, allowing you to deliver optimized images in minutes with minimal code changes.
15
15
16
16
##### Table of contents
17
+
*[Changelog](#changelog)
17
18
*[Installation](#installation)
18
19
*[Initialization](#initialization)
19
20
*[URL generation](#url-generation)
@@ -24,6 +25,19 @@ ImageKit is complete media storage, optimization, and transformation solution th
24
25
*[Support](#support)
25
26
*[Links](#links)
26
27
28
+
## Changelog
29
+
30
+
### SDK Version 5.0.0
31
+
32
+
#### Breaking changes
33
+
34
+
**1. Overlay syntax update**
35
+
* In version 5.0.0, we've removed the old overlay syntax parameters for transformations, such as `oi`, `ot`, `obg`, and [more](https://docs.imagekit.io/features/image-transformations/overlay). These parameters are deprecated and will start returning errors when used in URLs. Please migrate to the new layers syntax that supports overlay nesting, provides better positional control, and allows more transformations at the layer level. You can start with [examples](https://docs.imagekit.io/features/image-transformations/overlay-using-layers#examples) to learn quickly.
36
+
* You can migrate to the new layers syntax using the `raw` transformation parameter.
37
+
38
+
**2. Remove Node.js 10.x support**
39
+
* In version 5.0.0, we've removed support for Node.js version 10.x.
40
+
27
41
## Installation
28
42
29
43
Use the following command to download this module. Use the optional `--save` parameter if you wish to save the dependency in your `package.json` file.
@@ -242,6 +256,29 @@ var imageURL = imagekit.url({
ImageKit allows use of [arithmetic expressions](https://docs.imagekit.io/features/arithmetic-expressions-in-transformations) in certain dimension and position-related parameters, making media transformations more flexible and dynamic.
See the complete list of transformations supported in ImageKit [here](https://docs.imagekit.io/features/image-transformations). The SDK gives a name to each transformation parameter e.g. `height` for `h` and `width` for `w` parameter. It makes your code more readable. If the property does not match any of the following supported options, it is added as it is.
@@ -278,6 +315,8 @@ If you want to generate transformations in your application and add them to the
* A key-value data to be associated with the asset. To unset a key, send null value for that key. Before setting any custom metadata on an asset you have to create the field using custom metadata fields API.
* AITags field is populated only because the google-auto-tagging extension was executed synchronously and it received a successresponse.
88
128
*/
89
-
AITags?: object[];
129
+
AITags?: AITagItem[];
90
130
/*
91
131
* Field object which will contain the status of each extension at the time of completion of the update/upload request.
92
132
*/
93
133
extensionStatus?: {[key: string]: string}
94
134
/*
95
135
* Consolidated embedded metadata associated with the file. It includes exif, iptc, and xmp data.
96
136
*/
97
-
embeddedMetadata?: object|null;
137
+
embeddedMetadata?: EmbeddedMetadataValues|null;
98
138
/*
99
139
* A key-value data associated with the asset. Before setting any custom metadata on an asset, you have to create the field using custom metadata fields API.
100
140
*/
101
-
customMetadata?: object;
141
+
customMetadata?: CMValues;
102
142
/*
103
143
* Size of the file in bytes
104
144
*/
@@ -130,7 +170,7 @@ export interface FileObject {
130
170
/**
131
171
* An object containing the file or file version's id (versionId) and name.
0 commit comments