Skip to content

Releases: imgix/imgix.js

3.0.0

22 Jun 17:03
Compare
Choose a tag to compare
  • 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

02 May 17:56
Compare
Choose a tag to compare

Bug Fixes

  • Don't reference window for lazyLoadScrollContainers default value if not present. (See #96, thanks @psfrankie!)
  • Fix Safari double-request issues (See #93, thanks @jordanthomas!)

v2.2.2

26 Apr 01:26
Compare
Choose a tag to compare

Bug Fixes

  • Add a workaround for Prototype.js' Array.prototype handling. Thanks to @matiasnombarasco for this PR!

v2.2.1

03 Apr 21:18
Compare
Choose a tag to compare

Bug Fixes

  • Properly increment version number to 2.2.1 in src/core.js

v2.2.0

29 Mar 19:27
Compare
Choose a tag to compare

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

30 Nov 20:30
Compare
Choose a tag to compare

Features

  • Removed unnecessary imgix.getRawBackgroundImage() method.

Bug Fixes

  • Fixed a bug in imgix.getBackgroundImage() that was failing to return a proper background-image URL in some corner cases.

v2.0.0

10 Nov 16:09
Compare
Choose a tag to compare

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 use imgix.URL.getParam() and imgix.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(), and imgix.isFontAvailable().
  • Removed checks when constructing and manipulating imgix URLs that previously validated parameters names and values.
  • Renamed imgix.helpers.getDPR() method to imgix.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

07 Oct 20:54
Compare
Choose a tag to compare

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 the palette=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.

v1.1.4

02 Oct 14:24
Compare
Choose a tag to compare

Features

  • Broke core.js up into separate components
  • Broke tests up into different files

Bug Fixes

  • Fixed a bug in imgix.buildUrl() that was causing port numbers to be ignored
  • Fixed a bug where imgix.fluid() would ignore the crossorigin attribute on its targets

v1.1.3

04 Sep 17:51
Compare
Choose a tag to compare

Features

N/A

Bug Fixes

  • Optimized scroll-handing when using lazyLoad property of imgix.fluid().