Skip to content
This repository was archived by the owner on Jul 11, 2019. It is now read-only.

Releases: oliviertassinari/react-event-listener

v0.4.3

19 Mar 11:04
Compare
Choose a tag to compare

Fixes / Enhancements

v0.4.2

25 Feb 10:00
Compare
Choose a tag to compare

Fixes / Enhancements

  • Make the target property required as using the component without don't make sense (#31)

v0.4.1

15 Jan 11:56
Compare
Choose a tag to compare

Fixes / Enhancements

  • dependencies: add missing babel-runtime (#22)
  • dependencies: upgrade (948dace)
  • style: use the airbnb style (07a2cde)

v0.4.0

09 Oct 19:46
Compare
Choose a tag to compare

New features

  • Add a withOptions function that can be use to passively listen for scroll event (#13). Thanks @tsuyoshiwada
  • Reduce the build size by three babel plugins (5318c1a)

v0.3.1

04 Oct 21:01
Compare
Choose a tag to compare

Improvements

  • [npm] Use react-addons-shallow-compare instead of fbjs dependency (9d25547)

v0.3.0

19 Sep 18:44
Compare
Choose a tag to compare

Breaking Changes

  • Mimic React.js behavior for capture event handlers (#10)

The migration path is the following:

-<EventListener target={document} onMouseMove={this.handleMouseMove} capture={true} />
+<EventListener target={document} onMouseMoveCapture={this.handleMouseMove} />

Core

  • Upgrade the dependencies

v0.2.1

04 May 22:41
Compare
Choose a tag to compare

Improvement

  • Add back the support of string instead of a node for the target.

v0.2.0

04 May 17:08
Compare
Choose a tag to compare

Breaking changes

  • ⚠️ Use target={document} instead of elementName="document".

New features

  • Add a new capture property.
  • The target property accepts any object. You can add a listener on anything that supports addEventListener.
  • The component is now pure and will correctly handle rerender.

Thanks @jedwards1211 for your help!

v0.1.2

30 Apr 16:50
Compare
Choose a tag to compare

New features

  • You can provide an optional child.

v0.1.1

25 Jan 22:56
Compare
Choose a tag to compare

Bug fixes

  • Improve the release process