Releases: cross-org/runtime
Releases · cross-org/runtime
1.2.1
1.2.0
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.TauriandProduct.Taurito the respective enums. - The
getCurrentRuntime()function now checks for the presence ofwindow.__TAURI__to identify the environment.
- Added
- New
getTauriInfo()Function: A new asynchronous function,getTauriInfo(), has been added. When called from a Tauri app, it dynamically imports the@tauri-apps/apiand 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, andgetCurrentArchitectureto correctly handle the newTauriruntime, 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
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
- @timreichen made their first contribution in #2
Full Changelog: 1.0.0...1.1.0
@cross/runtime 1.0.0 - Stable Release! 🎉
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!