All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Types of changes:
Addedfor new features.Changedfor changes in existing functionality.Deprecatedfor soon-to-be removed features.Removedfor now removed features.Fixedfor any bug fixes.Securityin case of vulnerabilities.
Date format: YYYY-MM-DD
If we have some "Breaking changes" we can mark it in message by
**BREAKING**preffix, like:
- **BREAKING**: Some message
Todo list for future
- ...
- Low preview image width
- Low preview image width
- Image width params
- images size with
disableAnimationprop
- possibility to add
doNotReplaceURLto single image
- typo in version
- change devicePixelRatioList to [1, 1.5, 2]
- remove hardcoded ci_info query parameter to fix image caching
- img-src starts with "//"
- possibility to change api version
- problem with convertToPX function
- better support for SSR (render placeholders with correct sizes via SSR stage)
- new property:
If width and height attributes are set:
use - width & height attributes values will be used to calculate image size (according to user's DPR) and ratio.
take-ratio - width & height attributes values will be used only to calculate ratio.
ignore - width & height attributes will be ignored.
If width and height attributes are NOT set, image container size will be detected to calculate result image size (according to user's DPR)
Note: If only width or height attributes is set, ratio is going to be taken from ci-ratio image attribute
- set a custom domain property. This is useful for where a business wants to use a custom cname instead of the default cloudimage.io URL.
- Added possibility to change url and query string params before applying inside generateURL method. Now we can pass processURL and/or processQueryString to the config to control each image.
- correct fallback image size for Img and right Background img size according to DPR