|
| 1 | +# svelte-cloudinary |
| 2 | + |
| 3 | +## 2.0.0 |
| 4 | + |
| 5 | +v2 is a near ground-up rewrite of svelte-cloudinary, including significant type improvements. This will undoubtedly cause many minor typing issues that would be impractical to cover in this changelog. Major changes should be listed here and in our [migration guide](https://svelte.cloudinary.dev/migrate/v2). We tried to make this as seamless as possible, but if you encounter any issues please [let us know](https://github.com/cloudinary-community/svelte-cloudinary/issues/new/choose). |
| 6 | + |
| 7 | +### Major Changes |
| 8 | + |
| 9 | +- breaking: rename `videoRef` readonly prop to `videoElement` ([#112](https://github.com/cloudinary-community/svelte-cloudinary/pull/112)) |
| 10 | + |
| 11 | +- breaking: update `@cloudinary-util/url-loader` from v and `@cloudinary-util/util` to new their major versions ([#112](https://github.com/cloudinary-community/svelte-cloudinary/pull/112)) |
| 12 | + |
| 13 | + Read the full [`url-loader` changelog](https://github.com/cloudinary-community/cloudinary-util/blob/main/packages/url-loader/CHANGELOG.md). |
| 14 | + |
| 15 | + Read the full [`util` changelog](https://github.com/cloudinary-community/cloudinary-util/blob/main/packages/util/CHANGELOG.md). |
| 16 | + |
| 17 | +- breaking: change exported types ([#112](https://github.com/cloudinary-community/svelte-cloudinary/pull/112)) |
| 18 | + |
| 19 | +- breaking: <CldOgImage /> now requires a `alt` to be given ([#112](https://github.com/cloudinary-community/svelte-cloudinary/pull/112)) |
| 20 | + |
| 21 | +- breaking: rename `playerRef` readonly prop to `player` ([#112](https://github.com/cloudinary-community/svelte-cloudinary/pull/112)) |
| 22 | + |
| 23 | +- breaking: the `version` prop on <CldVideoPlayer /> was removed and is now managed internally ([#112](https://github.com/cloudinary-community/svelte-cloudinary/pull/112)) |
| 24 | + |
| 25 | +- breaking: remove all `GetCldImageUrl` types ([#112](https://github.com/cloudinary-community/svelte-cloudinary/pull/112)) |
| 26 | + |
| 27 | +- breaking: switch to `@cloudinary-util/types` ([#112](https://github.com/cloudinary-community/svelte-cloudinary/pull/112)) |
| 28 | + |
| 29 | + Read the full [`types` changelog](https://github.com/cloudinary-community/cloudinary-util/blob/main/packages/types/CHANGELOG.md). |
| 30 | + |
| 31 | +- breaking: rename environment variables, the old ones will be removed in the next major ([#112](https://github.com/cloudinary-community/svelte-cloudinary/pull/112)) |
| 32 | + |
| 33 | + | Old Name | New Name | Description | |
| 34 | + | ----------------------------------- | ---------------------------- | -------------------------------------- | |
| 35 | + | `VITE_PUBLIC_CLOUDINARY_CLOUD_NAME` | `VITE_CLOUDINARY_CLOUD_NAME` | Your Cloudinary cloud name | |
| 36 | + | `VITE_PUBLIC_CLOUDINARY_API_KEY` | `VITE_CLOUDINARY_API_KEY` | API key for use with the upload widget | |
| 37 | + |
| 38 | +- breaking: remove all `GetCldOgImageUrl` types ([#112](https://github.com/cloudinary-community/svelte-cloudinary/pull/112)) |
| 39 | + |
| 40 | +### Minor Changes |
| 41 | + |
| 42 | +- feat: revamp `<CldVideoPlayer />` internals ([#112](https://github.com/cloudinary-community/svelte-cloudinary/pull/112)) |
| 43 | + |
| 44 | +- feat: add `VITE_CLOUDINARY_SECURE_DISTRIBUTION` and `VITE_CLOUDINARY_PRIVATE_CDN` env vars ([#112](https://github.com/cloudinary-community/svelte-cloudinary/pull/112)) |
| 45 | + |
| 46 | +- feat: export a `VERSION` constant from the lib ([#112](https://github.com/cloudinary-community/svelte-cloudinary/pull/112)) |
| 47 | + |
| 48 | +- feat: revamp `<CldOgImage />` internals ([#112](https://github.com/cloudinary-community/svelte-cloudinary/pull/112)) |
| 49 | + |
| 50 | +- feat: revamp `<CldImage />` internals ([#112](https://github.com/cloudinary-community/svelte-cloudinary/pull/112)) |
| 51 | + |
| 52 | +- feat: revamp `<CldUploadButton />` internals ([#112](https://github.com/cloudinary-community/svelte-cloudinary/pull/112)) |
| 53 | + |
| 54 | +- feat: add new `configureCloudinary` config helper ([#112](https://github.com/cloudinary-community/svelte-cloudinary/pull/112)) |
| 55 | + |
| 56 | +- feat: add props types for the og image, upload widget, upload button, and video player components ([#112](https://github.com/cloudinary-community/svelte-cloudinary/pull/112)) |
| 57 | + |
| 58 | +- feat: revamp `<CldUploadWidget />` internals ([#112](https://github.com/cloudinary-community/svelte-cloudinary/pull/112)) |
| 59 | + |
| 60 | +### Patch Changes |
| 61 | + |
| 62 | +- chore: deprecate `transformations` in favour of `namedTransformations` ([#112](https://github.com/cloudinary-community/svelte-cloudinary/pull/112)) |
| 63 | + |
| 64 | +- chore: add jsdoc comment to configureCloudinary ([`6c49f873eb55d26c9d81ee65f8412fabfb794f97`](https://github.com/cloudinary-community/svelte-cloudinary/commit/6c49f873eb55d26c9d81ee65f8412fabfb794f97)) |
| 65 | + |
| 66 | +- chore: deprecate `onUpload` in favour of `onSuccess` ([#112](https://github.com/cloudinary-community/svelte-cloudinary/pull/112)) |
| 67 | + |
1 | 68 | ## [1.3.2](https://github.com/cloudinary-community/svelte-cloudinary/compare/v1.3.1...v1.3.2) (2024-04-15)
|
2 | 69 |
|
3 | 70 |
|
|
0 commit comments