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