Releases: rafgraph/detect-it
Releases · rafgraph/detect-it
v4.0.0
- Rewritten from the ground up in TypeScript
- 40% smaller than v3
- Improved detection, especially for hybrid devices
- Supports Pointer Events
- There are breaking changes to the api, please see the readme for the new api
- Open an issue if you have any questions about upgrading from v3
v3.0.5
- Use
pointer
media query instead of hover
media query to determine primaryInput
to fix issues on Samsung devices using Chrome v65
v3.0.4
- Limit Windows Chrome hybrid media query workaround to v59 through v61
- See #8
v3.0.3
- Upgrade
detect-passive-events
to fix bug in Edge v15
v3.0.2
- Upgrade
detect
dependencies
v3.0.1
- Fix issue with Windows Chrome on hybrid devices starting in version 59 where media queries represent a
touchOnly
device, so if the browser is an affected Windows Chrome version and hasTouch
, then assume it's a hybrid with primaryInput: 'mouse'
- See #8
v3.0.0
detectIt.primaryInput
replaces primaryHover
and primaryPointer
, primary hover and pointer can be accessed through detectIt.state.detectHover
and detectIt.state.detectPointer
- Fix for browsers that don't support hover and pointer media queries (see #4)
v2.0.0
- Remove support for Pointer Events
detectIt.hasTouch
now indicates that the device supports the Touch Events API, and replaces detectIt.hasTouchEventsApi
- Add
detectIt.hasMouse
which indicates that the deviceType
is mouseOnly
or hybrid