Skip to content

1.2.0

Choose a tag to compare

@Pinta365 Pinta365 released this 28 Jun 20:00
· 4 commits to main since this release

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