os@2.0.0-alpha.1
-
1091d6d
(#419) The os plugin is recieving a few changes to improve consistency and add new features:- Renamed
Kind
enum toOsType
andkind()
function toos_type()
. - Added
family()
,exe_extension()
, andhostname()
functions and their equivalents for JS. - Removed
tempdir()
function and its equivalent on JS, usestd::env::temp_dir
instead oftemp_dir
fromtauri::path::PathResolver::temp_dir
andpath.tempDir
on JS. - Modified
platform()
implementation to returnwindows
instead ofwin32
andmacos
instead ofdarwin
to align with Rust’sstd::env::consts::OS
EOL
const in JS has been modified into a functioneol()
fix import issues in frameworks likenext.js
- Renamed
© 2025 Tauri Contributors. CC-BY / MIT