Skip to content

Commit 298f7a6

Browse files
ANKUR DWIVEDIANKUR DWIVEDI
authored andcommitted
updated readme.md breaking changes with ik-image ik-upload ik-context not available anymore
1 parent a05b083 commit 298f7a6

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,23 @@ ImageKit Vue.js SDK allows you to use real-time [image resizing](https://docs.im
1111

1212
## Breaking changes - Upgrading from 1.x to 2.x version
1313
2.x version has breaking changes as listed below.
14+
15+
* In version 2.0.0, three global components, namely `ik-image`, `ik-upload`, and `ik-context`, are no longer supported. Instead, it is recommended to import these components individually.
16+
17+
```javascript
18+
19+
import { IKImage, IKContext, IKUpload } from "imagekitio-vue"
20+
21+
export default {
22+
components: {
23+
IKImage,
24+
IKContext,
25+
IKUpload
26+
}
27+
}
28+
29+
```
30+
1431
* In version 2.0.0, we have deprecated the use of the `authenticationEndpoint` parameter. Instead, the SDK has introduced a new parameter named `authenticator`. This parameter expects an asynchronous function that resolves with an object containing the necessary security parameters i.e `signature`, `token`, and `expire`.
1532

1633
An example implementation for `authenticator` using `Fetch API`.

0 commit comments

Comments
 (0)