Skip to content

Releases: PorkyProductions/UA-detect

UADetect 6.0.1

15 Jun 15:24
0355221
Compare
Choose a tag to compare

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

UADetect 5.0.0

22 Dec 19:51
29d9a27
Compare
Choose a tag to compare

About

UADetect is the library that makes interacting with the Navigator API a breeze, and continuing with that motto, UADetect 5 brings many new features, with complete type definitions (for real this time), and the sunset of some redundant components.

What's New

  • "Methods" allow you to re-call the functions that create the components.
    • Many new, standalone methods are now available, such as vibrate, or registerServiceWorker
  • New components, such as
    • deviceMemory
    • language
    • camera
    • audio
  • General improvements to documentation

Complete Type Definitions

We want to start this section by apologizing for the miscommunication regarding type definitions in the past. We believed that publishing the entire types/ directory with npm would allow editors to just pick up the entire definitions, and to our credit, it was working on our systems, but that is also because we wrote the library. Now, npm only publishes the index.d.ts file, which imports all of the other files, which means
OUR LIBRARY IS NOW FULLY STRONGLY TYPED

Breaking Changes/Depreciations

It's always sad to see some of our beloved components go the way of the dinosaurs, but in keeping the library fresh, and modern, some must be removed in order to make room for other features, while keeping the library as small as possible. Here are the removed components:

  • version
    • Never reliably returned the version of the browser
  • codeName
    • Always returned mozilla
  • engine
    • Always returned Gecko
  • doNotTrackStatus
    • Was not an accurate indicator of the user's actual tracking preferences.

UADetect 4.1.1

04 Oct 19:41
9e157c3
Compare
Choose a tag to compare

Fix for weird bug where npm thought 4.1.0 was overriding a previously published version

UADetect 4.1.0

04 Oct 18:36
3d52663
Compare
Choose a tag to compare
  • Make package type: "module" to ensure ESMs are used everywhere (you might want to check your project to make sure it uses ESMs before you update here)
  • Publish only the dist folder to cut down on package size and ensure easier tree-shaking

UADetect 4.0.0

28 Aug 00:13
ef7214e
Compare
Choose a tag to compare

WELCOME TO ANOTHER SWEEPING UPDATE TO UADETECT

⚠️ This update is API-breaking. Please see the docs for more information ⚠️

  • Created UADetect object for IDE autocomplete
  • Fixed casing to be uniform across all components (camelCase)
  • Updated Geolocation API

What's Changed

Full Changelog: 3.0.0...4.0.0

UADetect 3.1.2

07 Jun 14:36
115eb6c
Compare
Choose a tag to compare

This is a patch-class update that fixes the JavaScript files not being complied, therefore nothing being changed

UADetect 3.1.1

07 Jun 14:26
326c5fa
Compare
Choose a tag to compare

UADetect 3.1.1

This is a minor + patch class update that does two main things

  1. Provides a hotfix for errors
  2. Updates dependencies

What's Changed

  • chore(deps-dev): bump @types/node from 17.0.35 to 17.0.40 by @dependabot in #22
  • chore(deps): bump typescript from 4.7.2 to 4.7.3 by @dependabot in #21
  • chore(deps-dev): bump @types/jest from 27.5.1 to 28.1.1 by @dependabot in #20
  • Hotfix for script not running in production due to errors by @hiteacheryouare in #23

Full Changelog: 3.0.0...3.1.1

UADetect 3.0

03 Jun 02:11
e47e845
Compare
Choose a tag to compare

UADetect 3.0

The Big Stuff

  • 14 New Components!!

  • Read all about them in the docs

  • Removed jQuery as a necessary dependency, meaning you can run UADetect without having to CDN a jQuery distribution in

The (not so) Big Stuff

  • Added type definitions for all components (#9) (#15)
  • Migrated to node 18 runtime
  • Bump all deps to highest level available

Next

Next up is UAD 4.0, coming within Q3 2022!

What's Changed

New Contributors

Full Changelog: 2.0.2...3.0.0

UADetect 2.0.2

29 Apr 04:07
556ef1d
Compare
Choose a tag to compare

This is a semantic version patch-class fix that adds the website as well as the badges to the README

What's Changed

Full Changelog: 2.0.1...2.0.2

UADetect 2.0

22 Apr 16:34
7cc9ed1
Compare
Choose a tag to compare

A WHOLE BUNCH OF NEW STUFF

What's Changed

Full Changelog: 1.0.1...2.0.1