Skip to content

UADetect 6.0.1

Latest
Compare
Choose a tag to compare
@hiteacheryouare hiteacheryouare released this 15 Jun 15:24
0355221

Sup! We're happy to announce the latest release of UADetect: Version 6!

UADetect is a library that lets you detect and manipulate various aspects of the user agent, such as browser, device, OS, and more. Here are some of the new features and improvements in this release:

New Features

Methods

  • You can now access and modify the clipboard content with the new getClipboardText(), setClipboardText(), getClipboardAdvanced(), and setClipboardAdvanced() methods. Please note that these methods require user permission and may not work on some browsers or platforms.
  • You can now check if the user has granted permission for a specific feature with the new permissionGranted() method. This method takes a string argument that represents the name of the feature, such as 'clipboard-read' or 'geolocation'. It returns a boolean value that indicates whether the permission has been granted, denied, or is unknown.

QOL Improvements

  • You can now import only the components that you need from UADetect with better treeshaking abilities. Instead of importing everything from 'uadetect', you can use import {} from 'uadetect/dist/{component}' to import specific components, such as import { browser } from 'uadetect/dist/browser'. This will reduce the bundle size and improve performance.
  • We have also made some codebase refactors and improvements to make UADetect more robust and maintainable. We have fixed some bugs, added some tests, and updated some dependencies.

We hope you enjoy using UADetect and find it useful for your projects. If you have any feedback, suggestions, or issues, please feel free to open an issue or a pull request on GitHub. Thank you for your support!

❤️ - The UADetect team @ PorkyProductions