All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- fixed commonjs bundle
- bump
react-with-forwarded-ref
- added
browser
field for umd build
- bumped all deps
- updated
main
andmodule
fields - license from ISC to BSD-3
- moved API docs back to README
.browserslistrc
file (just use babel preset-env default)
- now building commonjs & ESM build outputs in
dist/
folder - using rollup for building output
- security fixes
- removed peer dependency on
react-dom
- added missing .browserslistrc file
- bumped some dev dependencies
- sets a new peer dependency to be at least React 16.8
- converts component to functional component and uses the
useCallback
hook for thehandleKeyDown
event memoization - wraps the component and forwarded ref higher-order component in
React.memo
- updates example to use
useState
anduseCallback
to toggle the button states (text and background color, where applicable) - rewrites the tests in
react-testing-library
to focus less on internals and more on what an end-user might see (and really to try it out, too)
- changed default
element
fromdiv
tospan
. Unfortunately, this qualifies as a breaking change (hence the major version bump).
- fixed forwarding refs eating the display name by including
react-with-forwarded-refs
as a dependency
- support for forwarding refs (#5)
- peer dependency on react has to be bumped to
>= 16.3
, so that breaking change is the reason for the major version bump
- Added all the things