This release contains a critical bugfix. 1.5.0 has been unpublished.
- Fixed an issue where handlers were not being unbound properly on dismount or disable.
- Fixed an issue where changing the callback on
props
would not result in that new callback being called.- Rather than set the callback directly, we now set a function of the form
(event) => this.props[eventHandlerName](event)
. - This fixes compatibility with hooks.
- Thanks @davidswinegar
- Rather than set the callback directly, we now set a function of the form
- Fixed an issue where adding a new event handler would not cause a rebind. Thanks again, @davidswinegar
- Removed React 16.4 deprecated lifecycles.
- Upgraded to babel 7.
- Dynamically get
target
prop, if not specified, by introspecting the parent of the render target.- This fixes use inside new windows or iframes.
- Move to babel's es2015 preset (fixes e.g. committed let/const, arrow funcs)
- Add npmignore
- React 15.5 support
- Remove committed arrow fn as I tried to avoid Babel
- Don't process
EventKeys
in production (smaller bundle, faster invocation) - Add
capture
andpassive
options.
- Warn when attaching events like
onResize
to a document and not a window.
- Grab new event list from React v15 and add some extras from MDN docs
- Add
onResize
- Initial Release