Skip to content

Releases: Merri/react-lazy

v1.0.3

13 Jun 10:35
Compare
Choose a tag to compare

[1.0.3] - 2018-06-13

Changed

  • Now uses @researchgate/react-intersection-observer instead of customized implementation

Fixed

  • Case where viewport and threshold were not passed to Observer in Lazy

[1.0.2] - 2018-05-31

Changed

  • Size of final generated JavaScript has been reduced
  • Minor code speed optimizations

Removed

  • DefaultWrapper and LazyChild are no longer exported

v1.0.1

30 May 15:05
Compare
Choose a tag to compare

Changed

  • React version requirement to 16

Removed

  • Symbol polyfill requirement

v1.0.0

30 May 14:32
Compare
Choose a tag to compare

Added

  • Observer component
  • threshold prop to Lazy and LazyGroup
  • viewport prop to Lazy and LazyGroup which works like root of IntersectionObserver

Changed

  • cushion prop works now like marginRoot of IntersectionObserver
  • jsOnly prop is now clientOnly
  • Viewport detection to use IntersectionObserver API with code heavily based on
    @researchgate/react-intersection-observer
  • LazyGroup no longer extends from Lazy as both use Observer now
  • onViewport receives intersection observer event as first parameter

Removed

  • checkElementsInViewport

Fixed

  • Production build no longer requires PropTypes

v0.6.1

26 May 20:51
Compare
Choose a tag to compare

Fix dependency issue. See changelog for all the changes between v0.5.0 and v0.6.1.

v0.5.0

07 Nov 10:44
Compare
Choose a tag to compare

v0.4.1

14 Sep 16:34
Compare
Choose a tag to compare
  • Update dependencies
  • Fix linting issues
  • Add event listener helpers
  • Use passive listeners
  • Add wheel event to listened events

v0.4.0

24 Jul 13:11
Compare
Choose a tag to compare
  • Add LazyGroup, LazyChild, DefaultWrapper
  • Remove imgWrapperComponent
  • Add tests
  • Update linting

v0.3.1

18 Jul 15:44
Compare
Choose a tag to compare

Fix issue where images did not load when not using ltIE9 render path.

v0.3.0

18 Jul 15:14
Compare
Choose a tag to compare
  • Disable IE conditional comment rendering by default
  • Add ltIE9 to enable IE conditional comment rendering
  • Update dependencies
  • Fix React.DOM.div warnings

v0.2.1

12 May 11:43
Compare
Choose a tag to compare
  • Fix issue where images loaded when display: none was set to hide an element
  • Introduces issue where having lazy loading on position: fixed elements does not work