Aller au contenu
Tauri

tauri@2.5.0

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

New Features

  • dd4f13ce4 (#13185) MacOS: Add set_dock_visibility method to support setting the visibility of the application in the dock.

  • 8cf662e34 (#13076) - add API to run initialization scripts on all frames - WebviewBuilder::initialization_script_on_all_frames - WebviewWindowBuilder::initialization_script_on_all_frames - WebviewAttributes::initialization_script_on_all_frames

  • ea36294cb (#13208) Added WebviewWindowBuilder::with_input_accessory_view_builder and WebviewBuilder::with_input_accessory_view_builder on iOS.

  • c1cd0a2dd (#13090) macOS/iOS: add option to disable or enable link previews when building a webview (the webkit api has it enabled by default)

    • WebViewBuilder.allow_link_preview(allow_link_preview: bool)
    • WebviewWindowBuilder.allow_link_preview(allow_link_preview: bool)
  • b072e2b29 (#9687) Add preventOverflow config option to prevent the window from overflowing the monitor size on creation

  • b072e2b29 (#9687) Add WindowBuilder::prevent_overflow, WebviewWindowBuilder::prevent_overflow, WindowBuilder::prevent_overflow_with_margin and WebviewWindowBuilder::prevent_overflow_with_margin APIs to prevent the window from overflowing the monitor size on creation.

Enhancements

  • 9356fa15d (#13239) Enhance panic message when fetching unmanaged state.
  • ebd3dcb92 (#13135) Webview::eval and WebviewWindow::eval now takes impl Into<String> instead of &str to allow passing the scripts more flexible and efficiently
  • fbd57a1af (#13175) Builder::invoke_system takes AsRef<str> now

Bug Fixes

  • 66e6325f4 (#13136) Fix Channel’s callback attached to window never cleaned up
  • 0d39ff6b0 (#13150) Fix missing core: in referenced commands in ACL error message
  • 690146e31 (#13217) Fix large number of commands with large structs as parameters causing stack overflow on debug build on Windows
  • f888502fd (#13227) invoke will now properly throw when options.headers contains non-ascii characters instead of silently replacing them
  • f888502fd (#13227) Fix invoke ignores the headers option if it’s an Headers
  • b8c0d7e40 (#13040) Fix run_return not responding to restart and request_restart

Performance Improvements

  • 66e6325f4 (#13136) Improve Channel’s performance when sending small amount of data (e.g. sending a number)

Dependencies

  • Upgraded to tauri-utils@2.4.0
  • Upgraded to tauri-runtime@2.6.0
  • Upgraded to tauri-runtime-wry@2.6.0
  • Upgraded to tauri-macros@2.2.0
  • Upgraded to tauri-build@2.2.0
  • bb5faa21f (#13163) Update webview2-com to 0.37.
  • bb5faa21f (#13163) Update windows to 0.61.

Breaking Changes

  • fca5154e7 (#13130) Removed re-exported WebviewAttributes from tauri-runtime which is exposed by accident in tauri and not used by any public facing APIs

© 2025 Tauri Contributors. CC-BY / MIT