Releases: NoriginMedia/Norigin-Spatial-Navigation
Releases · NoriginMedia/Norigin-Spatial-Navigation
Release list
Output bundle is targeting ES5
Previous versions still had some arrow functions in the bundle coming from the Webpack itself, even though TS config had ES5 as target. Now the bundle is ES5 compatible.
React v18 StrictMode support
[1.1.0]
Added
- Support for React v18 StrictMode. Added
useEffectOnceto avoid multiple effect runs on mount that was breaking the
generation of thefocusKeys.
Fixed
- Few TS errors that somehow not being checked when the app is built and published ¯_(ツ)_/¯.
getCurrentFocusKey + multiple codes per key direction
Added generic P type to be passed to useFocusable, fixed lodash imports
Added
- Added generic P type for the props passed to
useFocusablehook that is available in all callbacks that bounce props back.
Changed
- Changed all
lodashimports to cherry-picked ones to avoid the wholelodashlib to be bundled in the project.
Fixed Webpack issue in node env, added eslint plugins
[1.0.4]
Added
- Eslint dependencies required by
eslint-config-airbnb
Fixed
- Fixed issue in Node environment - Webpack global object is now
thisinstead ofself
[BUGFIX] Added missing callbacks to the update effect
v1.0.3 Added missing callbacks to the update effect
Changed measureLayout to calculate coords based on offsets instead of getClientBoundRect
Changed measureLayout back to calculate coords based on offsetTop/Left/Width/Height instead of getClientBoundRect
Migrated to React Hooks
Initial release of React Hooks implementation of the library. Previously was based on HOC.