Releases: imgix/imgix.js
Releases · imgix/imgix.js
3.0.0
- This is a full rewrite of imgix.js. It now plays nicely with
srcset
,sizes
,picture
, and other modern responsive imagery techniques. You can learn more in the readme!
v2.2.3
Bug Fixes
- Don't reference
window
forlazyLoadScrollContainers
default value if not present. (See #96, thanks @psfrankie!) - Fix Safari double-request issues (See #93, thanks @jordanthomas!)
v2.2.2
Bug Fixes
- Add a workaround for Prototype.js'
Array.prototype
handling. Thanks to @matiasnombarasco for this PR!
v2.2.1
v2.2.0
Features
- Added
lazyLoadScrollContainers
option. Adds scroll listeners to the specified elements, in order to trigger lazy-loading on images that are scrolled into view as part of an overflowed container. Defaults to[window]
, but if this option is specified,window
is not automatically included. Thanks to @joshfrench for making this happen!
v2.1.0
v2.0.0
Features
- Removed all parameter-specific getters and setters from the
imgix.URL
object (i.e.imgix.URL.getSepia()
,imgix.URL.setWidth()
, et cetera). Instead, you should useimgix.URL.getParam()
andimgix.URL.setParam()
. - Removed all methods for listing and sorting image parameters, as they were frequently out of date:
imgix.getAllParams()
,imgix.getParamAliases()
,imgix.getDefaultParamValues()
,imgix.getDefaultParamValue()
,imgix.getDefaultParams()
. - Also removed all methods related to font lookups, including
imgix.getFontLookup()
,imgix.getFonts()
,imgix.searchFonts()
, andimgix.isFontAvailable()
. - Removed checks when constructing and manipulating imgix URLs that previously validated parameters names and values.
- Renamed
imgix.helpers.getDPR()
method toimgix.helpers.getWindowDPR()
Bug Fixes
- Removing parameter-specific getters and setters removes a load of bugs related to various image API parameters throwing validation warnings when constructing and manipulating imgix URLs.
v1.2.0
Features
- Updated
imgix.URL.getColors()
method to use simple AJAX instead of CSS-injection. As a result of this, colors are being returned from lightest to darkest, rather than from darkest to lightest as they were previously. This change was made to bring the behavior of this method in line with thepalette=json
image API, which it now uses. - Removed several unnecessary polyfills, shaving 4KB off of the minified file size.
Bug Fixes
- Continuous integration tests are now being done against the library both with and without polyfills.