Skip to content

chore: version packages - #434

Merged
matthewhudson merged 1 commit into
mainfrom
changeset-release/main
Sep 28, 2026
Merged

matthewhudson merged 1 commit into
mainfrom
changeset-release/main

Conversation

@matthewhudson

Copy link
Copy Markdown
Owner

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

current-device@2.5.0

Minor Changes

  • #429 ae3eb78 Thanks @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 were mobile with os: 'unknown', and tablets and PCs were desktop with no OS. All three now report os: 'harmonyos' and device.harmonyos() is true; phones are mobile, tablets tablet, PCs desktop, with the harmonyos mobile, harmonyos tablet and new harmonyos desktop classes. device.android() stays false for them; it is true only for the Android-based HarmonyOS 2 to 4.

Patch Changes

  • #426 3fae889 Thanks @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 306c989 Thanks @matthewhudson! - - device.noConflict() returned this, so calling it unbound (const { noConflict } = device; noConflict()) returned undefined although its type says Device. It now always returns the device object.

    • 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.

@matthewhudson
matthewhudson merged commit 7aad5cc into main Sep 28, 2026
3 checks passed
@matthewhudson
matthewhudson deleted the changeset-release/main branch September 28, 2026 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant