Socket
Socket
Sign inDemoInstall

react-measure

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-measure - npm Package Versions

1
7

0.4.2

Diff

Changelog

Source

0.4.2

Removed old code from lib folder

Make sure package.json cleans lib folder on each build

souporserious
published 0.4.1 •

Changelog

Source

0.4.1

Fixed dist build

Updated to latest element-resize-detector

souporserious
published 0.4.0 •

Changelog

Source

0.4.0

Moved away from MutationObserver's in favor of element-resize-detector

Added a more convenient API by allowing child functions #11

measure is now a public method available on the Measure component

accurate prop now returns both cloned element width and height

shouldMeasure now accepts only a boolean

Removed lodash.debounce dependency

souporserious
published 0.3.5 •

Changelog

Source

0.3.5

Fixed bug in IE with accurate height calculation when checking for children nodes.

Fixed deprecation notice when calculating SVG dimensions.

Removed react-addons-shallow-compare dependency.

Moved react and react-dom packages into peer dependencies.

souporserious
published 0.3.4 •

Changelog

Source

0.3.4

Fix server-side rendering

souporserious
published 0.3.3 •

Changelog

Source

0.3.3

Added public method getDimensions

Clone nodes without any children

Fixed calculating measurements on resize

souporserious
published 0.3.2 •

Changelog

Source

0.3.2

Patch to fix shallowCompare so bower works.

Added a resize handler to measure component changes on window resize.

souporserious
published 0.3.1 •

Changelog

Source

0.3.1

Renamed onChange prop to onMeasure

Added shouldMeasure prop, similar to componentShouldUpdate. It determines whether or not the onMeasure callback will fire, useful for perf and not performing measurements if you don't need to.

Fixed updating of config prop to disconnect and reconnect a new MutationObserver with the new configuration

Fixed updaing of whitelist & blacklist props to use new values

souporserious
published 0.3.0 •

Changelog

Source

0.3.0

Rebuilt from the ground up

No more cloning of elements!

Optimized to touch the DOM as least as possible

clone, forceAutoHeight, collection props removed

config prop added, accepts a MutationObserver configuration

accurate prop added, use to get an accurate measurement, only height supported right now

souporserious
published 0.2.0 •

Changelog

Source

0.2.0

Upgraded to React 0.14.0

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