- Refactored handling of KeyboardEvents to use @acusti/use-keyboard-events so that all keyboard events are captured
- As a result, the event payload passed to
onKeyDown
,onKeyPress
, andonKeyUp
handlers is now the browser nativeKeyboardEvent
object, not the ReactSyntheticEvent
object - Migrated published package from CommonJS → ESM
- Upgraded dev dependencies to the latest versions of React/ReactDOM (18.2.0), @testing-library/react (14.0.0), and babel (7.22.6)
- Added prettier to dev dependencies and added a
format
run script - Migrated the test runner from jest → vitest
- Migrated to using the @babel/preset-env preset
- Allow passing any number of children to the
ReactHigherEvent
component (previously it usedReact.Children.only(children)
to restrict it to one)
- Refactored from legacy context → modern react context plus hooks, making react-higher-events compatible with React v17+ and requiring at least v16.3.0
- Renamed
ReactHigherEventContainer
→ReactHigherEventProvider
to match modern react context naming conventions - Replaced
ReactHigherEventProvider
andReactHigherEventProxy
’sprops.handleRef
with ref forwarding (i.e. replacehandleRef={refHandler}
→ref={refHandler}
)
- 🍭 Added:
component
property toReactHigherEventContainer
so you can replace the defaultdiv
⚡️ Initial release