Aller au contenu
Tauri

tauri@2.4.0

Ce contenu n’est pas encore disponible dans votre langue.

New Features

  • be2e6b85f (#12944 by @Simon-Laux) add Window.is_always_on_top() and WebviewWindow.is_always_on_top()

  • c10802425 (#12710 by @WSH032) derive Clone for tauri::ExitRequestApi.

  • cedb24d49 (#12665 by @charrondev) Added Webview::cookies(), Webview::cookies_for_url(), WebviewWindow::cookies() and Webview::cookies_for_url().

  • 20c190691 (#12821 by @Simon-Laux) Add WebviewBuilder.disable_javascript and WebviewWindowBuilder.disable_javascript api to disable JavaScript.

  • 060de5bbd (#12837 by @niladrix719) Added getIdentifier() function to get the application identifier configured in tauri.conf.json

  • 658e5f5d1 (#12668 by @thomaseizinger) Add App::run_return function. Contrary to App::run, this will not exit the process but instead return the requested exit-code. This allows the host app to perform further cleanup after Tauri has exited. App::run_return is not available on iOS and fallbacks to the regular App::run functionality.

    The App::run_iteration function is deprecated as part of this because calling it in a loop - as suggested by the name - will cause a busy-loop.

  • 5591a4f0b (#12912 by @Daedaluz) Change webview zoom on mousewheel when the zoom_hotkeys_enabled configuration is set to true.

  • bcdd51025 (#13012 by @lucasfernog) The path basename and extname APIs now accept Android content URIs, such as the paths returned by the dialog plugin.

  • bcdd51025 (#13012 by @lucasfernog) Added PathResolver::file_name to resolve file names from content URIs on Android (leverating std::path::Path::file_name on other platforms).

  • c698a6d6f (#12818 by @Simon-Laux) feat: add Webview.reload and WebviewWindow.reload

  • 013f8f652 (#12890 by @Legend-Master) Added build > removeUnusedCommands to trigger the build scripts and macros to remove unused commands based on the capabilities you defined. Note this won’t be accounting for dynamically added ACLs so make sure to check it when using this.

  • 35018eed0 (#12996 by @Legend-Master) Introduce AppHandle::request_restart() as an alternative to AppHandle::restart() to trigger exit event reliably

  • 30f5a1553 (#12366 by @FabianLars) Added WebviewWindowBuilder::traffic_light_position to set the traffic light buttons position on macOS.

  • 30f5a1553 (#12366 by @FabianLars) Added trafficLightPosition window configuration to set the traffic light buttons position on macOS.

Enhancements

Bug Fixes

  • 755533c51 (#12876 by @amrbashir) Removed TSend: Clone requirement for Channel<TSend> by implementing Clone manually instead of driving it.
  • f98598817 (#12870 by @lucasfernog) Update path plugin to use older dataDir API on SDK < 24.
  • f67a4a6bf (#12971 by @WofWca) Fix tauri::AssetResolver::get and tauri::AssetResolver::get_for_scheme skipping the first character of the path even if it’s not a slash (/).
  • dc90cd391 (#12911 by @Daedaluz) Listen for Ctrl + or Cmd + to support zoom functionality in swedish keyboard layouts.
  • b05f82d35 (#12313 by @anatawa12) AppHandle::restart() now waits for RunEvent::Exit to be delivered before restarting the application.

Performance Improvements

Dependencies

  • Upgraded to tauri-runtime@2.5.0
  • Upgraded to tauri-runtime-wry@2.5.0
  • Upgraded to tauri-utils@2.3.0
  • Upgraded to tauri-build@2.1.0
  • Upgraded to tauri-macros@2.1.0

© 2025 Tauri Contributors. CC-BY / MIT