Skip to content

Releases: cross-org/runtime

1.2.1

28 Jun 20:36

Choose a tag to compare

  • Disable getTauriInfo() for now, it's causing some issues that needs to be resolved.

Full Changelog: 1.2.0...1.2.1

1.2.0

28 Jun 20:00

Choose a tag to compare

This release introduces initial support for detecting the Tauri runtime environment, allowing the library to provide specific information when running inside a Tauri application.

✨ Added

  • Tauri Runtime Support: The library can now detect when it is running within a Tauri application.
    • Added Runtime.Tauri and Product.Tauri to the respective enums.
    • The getCurrentRuntime() function now checks for the presence of window.__TAURI__ to identify the environment.
  • New getTauriInfo() Function: A new asynchronous function, getTauriInfo(), has been added. When called from a Tauri app, it dynamically imports the @tauri-apps/api and returns the application's name, version, bundle identifier, and the Tauri runtime version.
  • Added a basic test case to confirm the Tauri runtime detection logic.

🔧 Changed

  • Updated getCurrentOS, getCurrentProduct, getCurrentVersion, and getCurrentArchitecture to correctly handle the new Tauri runtime, typically by falling through to the browser-based detection logic as Tauri uses a webview.

Full Changelog: 1.1.0...1.2.0

1.1.0

28 Aug 22:01

Choose a tag to compare

Changes

What's Changed

  • fix: Improves safari version detection
  • feature: Adds functions to extract OS, Version and Product from a bare User Agent string
  • refactor: remove redundant else clauses by @timreichen in #2
  • refactor: Additional tests to avoid regression bugs

New Contributors

Full Changelog: 1.0.0...1.1.0

@cross/runtime 1.0.0 - Stable Release! 🎉

18 Mar 21:59

Choose a tag to compare

This marks the initial stable release of @cross/runtime, delivering robust cross-runtime environment detection for your JavaScript and TypeScript projects:

  • Runtime Detection: Accurately identify Deno, Bun, Node.js, and various web browsers. Including version.
  • Edge Function Detection: Also detects Cloudflare Workers, Netlify Edge Functions, and more.
  • OS Detection: Detect Windows, macOS, Linux, Android, iOS, and other operating systems.
  • Architecture Detection: Detect current archichture, such as x86, x86_64, arm or arm64.

Get Started:

Refer to the documentation for installation and usage instructions on https://jsr.io/@cross/runtime

We'd love your feedback!

Feel free to report issues, submit a PR or suggest features here on the GitHub repository!

0.0.17

11 Mar 19:51

Choose a tag to compare

Changes

  • (docs) Adds support for Edge Functions (Cloudflare Workers, Netlify Edge Functions, Fastly Compute@Edge)
  • (chore) Adds CI testing for Deno and Bun

0.0.16

07 Mar 00:19

Choose a tag to compare

Changes

  • Fixes browser x64 detection

0.0.15

07 Mar 00:08

Choose a tag to compare

Changes

  • Adds architecture detection

0.0.14

06 Mar 20:51

Choose a tag to compare

Changes

  • Update docs

0.0.13

06 Mar 20:35

Choose a tag to compare

Changes

  • Fix detection of Brave

0.0.12

06 Mar 20:23

Choose a tag to compare

Changes

  • Add support for Opera, Brave and Vivaldi.