tauri@1.0.0-beta.2
Esta página aún no está disponible en tu idioma.
-
Remove anonymous lifetimes on examples.
-
Moves
shell
,dialog::FileDialogBuilder
andprocess::Command
APIs behind their allowlist feature flags. -
Adds
create_window
API to theAppHandle
struct. -
Adds a
handle
function to theApp
struct, which returns aSend
handle to the app instance. -
Use
attohttpc
on the HTTP API by default for bundle size optimization.reqwest
is implemented behind thereqwest-client
feature flag. -
Kill child processes spawned with
tauri::api::process::Command
ontauri::App
drop. Can be skipped withtauri::Builder#skip_cleanup_on_drop
. -
Adds
clipboard
APIs (write and read text). -
Allow accessing an
AppHandle
instance on a command through dependency injection. -
Fixes child processes messages not arriving until the subprocess is terminated.
-
Adds
config
andpackage_info
getters to theApp
andAppHandle
structs. -
Expose mutable getters for the rest of the public
Context
getters. -
pub fn assets_mut(&mut self) -> &mut Arc<A>
-
pub fn default_window_icon_mut(&mut self) -> &mut Option<Vec<u8>>
-
pub fn system_tray_icon_mut(&mut self) -> &mut Option<Icon>
-
pub fn package_info_mut(&mut self) -> &mut tauri::api::PackageInfo
-
754c2e76 feat(core): finish mutable getters for
Context
(#1814) on 2021-05-13 -
Adds
request_user_attention
API to theWindow
struct. -
Adds
show
,hide
,is_visible
andtoggle
APIs to theMenuHandle
. -
Allow
dev_path
anddist_dir
to be an array of root files and directories to embed. -
Validate
tauri.conf.json > build > devPath
andtauri.conf.json > build > distDir
values. -
Set the Tauri window as parent for dialogs.
-
Fallback to
index.html
on asset loading so router with history mode works. -
Fixes custom protocol asset loader not decoding the percent-encoded path.
-
As some frameworks automatically add “true” as the value of the attribute, we need to check if it exists instead.
-
Fixes build without the dialog Cargo features.
-
Allow disabling the webview file drop handler (required to use drag and drop on the frontend on Windows) using the
tauri.conf.json > tauri > windows > fileDropEnabled
flag or theWebviewAttributes#disable_file_drop_handler
method. -
Fixes the HTTP API binary response serialization.
-
The
http
APIs now resolve the returned promise when the API call finishes with an error status code. -
Run the
notification.show()
method on a dedicated async task to prevent a panic on Windows. -
Fixes HTTP API headers being overwritten when using the
reqwest
client. -
Remove closed window from the
window.__TAURI__.__windows
array, used by thewindow.getAll
API from@tauri-apps/api
. -
Panic on window getters usage on the main thread when the event loop is not running and document it.
-
Adds
focus
API to the WindowBuilder. -
Breaking change: The global shortcut API is now managed by
tao
so it cannot be accessed globally, the manager is now exposed on theApp
andAppHandle
structs. -
Hide
phf
crate export (not public API). -
(internal): allow
wry
dependency to be optional again while keeping default args. code that wishes to expose a struct with a default arg should use thecrate::manager::default_args!
macro to declare the struct, so that it can automatically feature-gateDefaultArgs
behind usingwry
. -
Adds
is_decorated
getter on Window. -
Adds
is_resizable
getter on Window. -
Adds
is_visible
getter on Window. -
Read
tauri.conf.json > tauri > bundle > icons
and use the first.png
icon as window icon on Linux. Defaults toicon/icon.png
if a PNG icon is not configured. -
Adds
accelerator
method to theCustomMenuItem
struct to define a keyboard shortcut for the menu item. -
Breaking change: The
menu
API was not designed to have all the new features: submenus, item updates, disabled state… so we broke it before going to stable. -
Adds a
PathResolver
struct to simplify the usage of thetauri::api::path::{app_dir, resource_dir}
APIs, accessible through theApp
andAppHandle
path_resolver
methods. -
Removes
image
dependency. For now only.ico
icons on Windows are supported, and we’ll implement other types on demand to optimize bundle size. -
Remove window object from the
Manager
internalHashMap
on close. This fixes the behavior of using[App|AppHandle|Window]#get_window
after the window is closed (now correctly returnsNone
). -
Improve RPC security by requiring a numeric code to invoke commands. The codes are generated by the Rust side and injected into the app’s code using a closure, so external scripts can’t access the backend. This change doesn’t protect
withGlobalTauri
(window.__TAURI__
) usage. -
Adds
run_iteration
API to theApp
and return the app instance on thebuild
method of theBuilder
. Therun_iteration
method runs the window event loop step by step, allowing Tauri to be run along other applications. -
The
run_on_main_thread
API now uses WRY’s UserEvent, so it wakes the event loop. -
Adds
set_focus
API on Window. -
Adds
set_skip_taskbar
API on Window. -
Adds
skip_taskbar
API to the WindowBuilder. -
Breaking change: The
system_tray
andon_system_tray_event
APIs were not designed to have all the new features: submenus, item updates, click events, positioning… so we broke it before going to stable. -
Fix loading url containing URI fragment
-
Adds
Window#center
andWindowBuilder#center
APIs. -
Adds window native handle getter (HWND on Windows).
© 2024 Tauri Contributors. CC-BY / MIT