Skip to content

Releases: burnpiro/use-ua-parser-js

1.1.3

25 Oct 06:48
Compare
Choose a tag to compare

Fixes

Securing update (issue #536)

1.1.2

03 Oct 18:17
Compare
Choose a tag to compare

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

02 Oct 17:52
Compare
Choose a tag to compare

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

02 Oct 17:37
Compare
Choose a tag to compare

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 }

1.0.0

02 Oct 16:57
Compare
Choose a tag to compare
update readme