Releases: burnpiro/use-ua-parser-js
Releases · burnpiro/use-ua-parser-js
1.1.3
Fixes
Securing update (issue #536)
1.1.2
New features:
isMobile(device: UAParser.IResult['device']): boolean
- check is device is a mobile device
isTouchDevice(device: UAParser.IResult['device']): boolean
- check if device has touch screen (mobile|tablet|wearable)
1.1.1
Improvement
Extract window.navigator.userAgent
access to prevent any unnecessary re-renders by the browser. Now it saves User Agent on the first load and uses stored variable instead.
1.1.0
Minor Changes:
New Hooks:
useDevice(uaString?: string): { model: string, type: string, vendor: string }
useBrowser(uaString?: string): { name: string, version: string }
useCPU(uaString?: string): { architecture: string }
useEngine(uaString?: string): { name: string, version: string }