| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README.md | 2026-09-28 | 2.1 kB | |
| v2.5.0 source code.tar.gz | 2026-09-28 | 151.8 kB | |
| v2.5.0 source code.zip | 2026-09-28 | 170.0 kB | |
| Totals: 3 Items | 323.9 kB | 0 | |
Minor Changes
- #429
ae3eb78Thanks @matthewhudson! - Detect HarmonyOS NEXT. Huawei's Android-free HarmonyOS (OpenHarmony 5 and later, ArkWeb browser engine) sends(Phone; OpenHarmony 5.0) ... Mobile,(Tablet; OpenHarmony 5.0)or(PC; OpenHarmony 5.0; HarmonyOS 5.0). Phones weremobilewithos: 'unknown', and tablets and PCs weredesktopwith no OS. All three now reportos: 'harmonyos'anddevice.harmonyos()is true; phones aremobile, tabletstablet, PCsdesktop, with theharmonyos mobile,harmonyos tabletand newharmonyos desktopclasses.device.android()stays false for them; it is true only for the Android-based HarmonyOS 2 to 4.
Patch Changes
-
#426
3fae889Thanks @matthewhudson! - Minify the<script>build (dist/index.global.js, the file unpkg and jsDelivr serve). It was shipped unminified at 11 KB; it is now 6 KB, about 2 KB gzipped. The CommonJS and ES module builds are unchanged, since bundlers minify those themselves. -
#428
306c989Thanks @matthewhudson! - -device.noConflict()returnedthis, so calling it unbound (const { noConflict } = device; noConflict()) returnedundefinedalthough its type saysDevice. It now always returns thedeviceobject. device.macos()matched any user agent containing "mac", which is why the "Mac Audio" and "Atmaca" device makers needed special cases. It now requires "Macintosh" or "Mac OS", which every Mac browser sends; iOS and Windows Phone user agents, which contain "Mac OS X", were already excluded.