All Versions
39
Latest Version
Avg Release Cycle
47 days
Latest Release
60 days ago

Changelog History
Page 1

  • v9.0.2

    April 02, 2020
    • background: fortify hasDOMDimensions check for null height (#592) (c7fb86e)
  • v9.0.1

    November 22, 2019
    • 🛠 fix: prevent overwriting htmlAttributes.ref (#496) (e15e1b2)
  • v9.0.0

    November 01, 2019

    🚀 This release brings the react-imgix API more in-line with that of imgix's rendering service.

    0️⃣ The largest change users will notice is that this project's component will no longer generate a default fit=crop parameter. The original intention behind this was that generated images would maintain aspect ratio when at least one of the dimensions were specified. However, the default imgix API behavior sets fit=clip, which is now reflected in this project. 🚀 Although this may not cause breaking changes for all users, it can result in unusual rendered image behavior in some cases. As such, we would rather err on the side of caution and provide users the ability to opt in to these changes via a major release.

    0️⃣ If you are currently relying on the default generation of fit=crop when rendering images, you will now have to manually specify it when invoking the component:

    <Imgix
        src="https://assets.imgix.net/examples/pione.jpg"
      sizes="100vw"
      imgixParams={{ fit: "crop" }}
    />
    

    The other major change relates to how the component determines an image's aspect ratio. Instead of appending a calculated height h= value based on specified dimensions, the URL string will now be built using the imgix aspect ratio parameter ar=. Luckily, the interface for specifying an aspect ratio is no different from before. However, users will have to pass in the fit=crop parameter in order for it to take effect:

    <Imgix
      src="http://assets.imgix.net/examples/pione.jpg"
      width={400}
        imgixParams={{ ar: "2:1", fit: "crop" }}
    />
    

    ♻️ Refactor

    • ♻️ refactor: use ar parameter instead of calculating aspect ratio (#462) (fbe8082)
    • ♻️ refactor: replace findDOMNode with callback refs (#476) (db3a1d7)

    🐛 Bug Fixes

    Chore

    • 🚚 chore(clean): remove all deprecatedProps and types (#483) (d036132)
  • v8.6.4

    August 08, 2019
    • ⚡️ perf: optimize URL handling (#414) (8d14dcb)
    • ⚡️ perf: optimize constructUrl function (#418) (8d392a0)
    • perf: use string concatenation instead of template strings (#420) (f41cc73)
    • perf: use Object.assign instead of spread operator (#423) (29b25d5)
  • v8.6.3

    July 11, 2019
    • 0️⃣ render <Source> element as a fluid image by default (#404) (10a5434)
    • width query param overrides in srcSet (#406) (5791d11)
  • v8.6.2

    July 05, 2019

    🔋 Features

    • ⚡️ perf: optimize url construction (#395) (25c0012)
  • v8.6.1

    April 17, 2019

    🐛 Bug Fixes

    • deps: pin react-measure version to avoid regression (#343) (3344502)
  • v8.6.0

    April 05, 2019

    🐛 Bug Fixes

    • 🛠 ensure fit parameter will respect overriding value, fixes #268 (#311) (15b0073), fixes #268

    🔋 Features

    • 🛠 append variable q parameters per dpr when rendering a fixed-size image (#322) (6594cea), resolves #129
  • v8.5.1

    December 21, 2018
  • v8.5.0

    December 21, 2018

    🔋 Features

    • ➕ add container to render image as background behind children [WIP] (#236) (5c3ecf6), closes #160