New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-lazy

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-lazy - npm Package Versions

2

1.1.0

Diff

Changelog

Source

[1.1.0] - 2019-04-26

Fixed

  • Allow blocking lazy load in onViewport events by using preventDefault()
  • No longer re-render as noscript if setting visible to false after element has come to viewport
  • component propTypes have been fixed to any
  • clientOnly works now correctly with LazyGroup

Changed

  • ref is now passed through
  • Build and test system has been replaced with a less clunky modern one
  • Lazy's render method has been compacted to shorter code

Removed

  • Support for old versions of React, now minimum of 16.4 required
merri
published 1.1.0-beta.0 •

merri
published 1.0.3 •

Changelog

Source

[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
merri
published 1.0.2 •

Changelog

Source

[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
merri
published 1.0.1 •

Changelog

Source

[1.0.1] - 2018-05-30

Changed

  • React version requirement to 16

Removed

  • Symbol polyfill requirement
merri
published 1.0.0 •

Changelog

Source

[1.0.0] - 2018-05-30

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
merri
published 0.6.1 •

Changelog

Source

[0.6.1] - 2018-05-26

  • Fix dependency issue with uglifyjs-webpack-plugin
merri
published 0.6.0 •

Changelog

Source

[0.6.0] - 2018-05-26

  • Update to React 16.4
  • Use throttle instead of debounce
  • Update to Webpack 4 and other latest packages (except for the tests because I am lazy)
merri
published 0.5.1 •

Changelog

Source

[0.5.1] - 2017-11-14

  • Update to React 16.1.1
  • Update to Node 8 LTS; run Travis in it and include a package-lock.json
  • Fix render mismatch in certain cases
merri
published 0.5.0 •

Changelog

Source

[0.5.0] - 2017-11-07

2
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc