Releases: PorkyProductions/UA-detect
UADetect 6.0.1
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 asimport { 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
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
, orregisterServiceWorker
- Many new, standalone methods are now available, such as
- 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
- Always returned
engine
- Always returned
Gecko
- Always returned
doNotTrackStatus
- Was not an accurate indicator of the user's actual tracking preferences.
UADetect 4.1.1
Fix for weird bug where npm thought 4.1.0
was overriding a previously published version
UADetect 4.1.0
- 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
WELCOME TO ANOTHER SWEEPING UPDATE TO UADETECT
- Created UADetect object for IDE autocomplete
- Fixed casing to be uniform across all components (camelCase)
- Updated Geolocation API
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
- chore(deps-dev): bump @types/node from 17.0.40 to 17.0.42 by @dependabot in #27
- chore(deps): bump jest-environment-jsdom from 28.1.0 to 28.1.1 by @dependabot in #26
- chore(deps-dev): bump jest from 28.1.0 to 28.1.1 by @dependabot in #25
- chore(deps): bump typescript from 4.7.3 to 4.7.4 by @dependabot in #34
- chore(deps): bump jest-environment-jsdom from 28.1.0 to 28.1.1 by @dependabot in #30
- feat: ✨ create UADetect object by @hiteacheryouare in #47
- chore(deps-dev): bump @types/node from 17.0.40 to 18.6.3 by @dependabot in #49
- chore(deps): bump jest-environment-jsdom from 28.1.0 to 28.1.3 by @dependabot in #43
- chore(deps): bump serve from 13.0.2 to 14.0.1 by @dependabot in #42
- chore(deps): bump typescript from 4.7.3 to 4.7.4 by @dependabot in #36
- chore(deps-dev): bump jest from 28.1.0 to 28.1.1 by @dependabot in #32
- Create SECURITY.md by @hiteacheryouare in #29
- UADetect 4 Main Pull Request by @hiteacheryouare in #28
Full Changelog: 3.0.0...4.0.0
UADetect 3.1.2
This is a patch-class update that fixes the JavaScript files not being complied, therefore nothing being changed
UADetect 3.1.1
UADetect 3.1.1
This is a minor + patch class update that does two main things
- Provides a hotfix for errors
- 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
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
- chore(deps): bump typescript from 4.6.3 to 4.6.4 by @dependabot in #5
- chore(deps): bump typescript from 4.6.3 to 4.6.4 by @dependabot in #7
- chore(deps): bump typescript from 4.6.3 to 4.6.4 by @dependabot in #8
- chore(deps): bump typescript from 4.6.4 to 4.7.2 by @dependabot in #11
- Create dependency-review.yml by @hiteacheryouare in #12
- Create codeql.yml by @hiteacheryouare in #13
- workflows by @hiteacheryouare in #10
- chore(deps): bump typescript from 4.6.4 to 4.7.2 by @dependabot in #14
- Declarations by @hiteacheryouare in #15
- Create node.js.yml by @hiteacheryouare in #16
- CI/CD (build) by @hiteacheryouare in #17
- UAD 3.0 Main Pull Request by @hiteacheryouare in #6
New Contributors
- @dependabot made their first contribution in #5
Full Changelog: 2.0.2...3.0.0
UADetect 2.0.2
This is a semantic version patch-class fix that adds the website as well as the badges to the README
What's Changed
- Housekeeping by @hiteacheryouare in #4
Full Changelog: 2.0.1...2.0.2
UADetect 2.0
A WHOLE BUNCH OF NEW STUFF
What's Changed
- docs: 📝 Update Docs for UADetect 2.0 by @hiteacheryouare in #3
- UADetect 2.0 Main PR by @hiteacheryouare in #2
Full Changelog: 1.0.1...2.0.1