Skip to content

@tauri-apps/api

JS/TS API for interaction with the Rust backend.

2.12.x

2.12.0

Sep 26, 2026
New Features
  • d8d02ba60 (#14767) Added the exit function to @tauri-apps/api/app, backed by the new plugin:app|exit command (core:app:allow-exit permission), to exit the app without requiring the @tauri-apps/plugin-process plugin.
  • 990f77eb2 (#15961) Added JsImage type alias and documented its relationship to the Rust JsImage
  • 29265557c (#15410) Added noRedirectionBitmap option to the Window and WebviewWindow constructors on Windows.
  • 6edc2f4d4 (#14926) Added Window::set_fullscreen_on_monitor, WebviewWindow::set_fullscreen_on_monitor and the setFullscreenOnMonitor JavaScript API to make a window fullscreen on the monitor containing a given physical position, along with the core:window:allow-set-fullscreen-on-monitor permission.
Enhancements
  • be019795a (#14103) Add ECMAScript Explicit Resource Management to Resource. You can now use the using syntax in supported browsers or with polyfills:

    import { create, BaseDirectory } from "@tauri-apps/plugin-fs"
    ...
    {
    await using file = await create("foo/bar.txt", { baseDir: BaseDirectory.AppConfig });
    await file.write(new TextEncoder().encode("Hello world"));
    // Before `file` goes out of scope, it is disposed by calling `file[Symbol.asyncDispose]()` and awaited.
    }
  • 4a5065653 (#14454) Added Regular and Clear Liquid Glass window effects, and the interactive window effects option (macOS 27.0+) that enables the glass' visual response to user interactions.

Bug Fixes
  • 4fabe2ff1 (#16067) Fix Window.setBackgroundColor, Webview.setBackgroundColor and WebviewWindow.setBackgroundColor sending a color argument while the plugin:window|set_background_color and plugin:webview|set_webview_background_color commands expect label and value. The color was always deserialized as None, so instead of applying the given color the call cleared the background of the calling window/webview.
  • 32efd0232 (#15957) Image.rgba now returns a more specific type Promise<Uint8Array<ArrayBuffer>> instead of the default Promise<Uint8Array<ArrayBufferLike>

2.11.x

2.11.1

Jun 17, 2026
Enhancements
  • 916782601 (#15520 by @polw1) Document that Monitor.size, Monitor.position and Monitor.workArea are in physical pixels, with examples showing how to convert them to the logical pixels expected by window creation options via toLogical(monitor.scaleFactor).

2.11.0

Apr 30, 2026
New Features
  • 074299c08 (#14307) Add Bring All to Front predefined menu item type
  • a12142a48 (#14357) Add macos support for setting the icon and icon template state in the same step of the main thread, to prevent flickering.
  • 001c8fe3d (#14722) Add a WebView option to control browser-level general autofill behavior. This option does not disable password or credit card autofill. On Windows (WebView2), setting it to true disables the general autofill "Suggestions" UI, which may appear even when autocomplete="off" is specified on input elements. On Linux, macOS, iOS, and Android, this option is currently unsupported and performs no operation.
  • eb0312ea9 (#15199) Propagates the Event::Suspended and Event::Resumed events from tao when they are emitted on mobile targets.

2.10.x

2.10.1

Feb 3, 2026
Bug Fixes
  • Re-release of 2.10.0 with working assets.

2.10.0

Feb 2, 2026
Dependencies

2.9.x

2.9.1

Nov 30, 2025
Bug Fixes

2.9.0

Oct 20, 2025
New Features
  • f5851ee00 (#14089) Adds the scrollBarStyle option to the Webview and WebviewBuilder constructors.
  • 3397fd9bf (#14133) Added app > onBackButtonPress for Android back button handling.
Enhancements
  • 59089723f (#14091) Added a config to set a data_directory relative to the app-specific data dir in JavaScript and tauri.conf.json.
Bug Fixes
  • 08bda64c2 (#14132) Fix core > addPluginListener failing on command permission check.

2.8.x

2.8.0

Aug 18, 2025
New Features
Enhancements
  • 5ba1c3faa (#13722 by @s00d) Added icon (icon and nativeIcon) support for Submenu:

    • In the Rust API (tauri), you can now set an icon for submenus via the builder and dedicated methods.
    • In the JS/TS API (@tauri-apps/api), SubmenuOptions now has an icon field, and the Submenu class provides setIcon and setNativeIcon methods.
    • Usage examples are added to the documentation and demo app.

    This is a backwards-compatible feature. Submenus can now display icons just like regular menu items.

2.7.x

2.7.0

Jul 20, 2025
New Features
Enhancements
Bug Fixes

Full Changelog

@tauri-apps/api full changelog

Version List


© 2026 Tauri Contributors. CC-BY / MIT