@tauri-apps/api@2.12.0
Sep 26, 2026
New Features
d8d02ba60(#14767) Added theexitfunction to@tauri-apps/api/app, backed by the newplugin:app|exitcommand (core:app:allow-exitpermission), to exit the app without requiring the@tauri-apps/plugin-processplugin.990f77eb2(#15961) AddedJsImagetype alias and documented its relationship to the RustJsImage29265557c(#15410) AddednoRedirectionBitmapoption to theWindowandWebviewWindowconstructors on Windows.6edc2f4d4(#14926) AddedWindow::set_fullscreen_on_monitor,WebviewWindow::set_fullscreen_on_monitorand thesetFullscreenOnMonitorJavaScript API to make a window fullscreen on the monitor containing a given physical position, along with thecore:window:allow-set-fullscreen-on-monitorpermission.
Enhancements
-
be019795a(#14103) Add ECMAScript Explicit Resource Management to Resource. You can now use theusingsyntax 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) AddedRegularandClearLiquid Glass window effects, and theinteractivewindow effects option (macOS 27.0+) that enables the glass' visual response to user interactions.
Bug Fixes
4fabe2ff1(#16067) FixWindow.setBackgroundColor,Webview.setBackgroundColorandWebviewWindow.setBackgroundColorsending acolorargument while theplugin:window|set_background_colorandplugin:webview|set_webview_background_colorcommands expectlabelandvalue. The color was always deserialized asNone, so instead of applying the given color the call cleared the background of the calling window/webview.32efd0232(#15957)Image.rgbanow returns a more specific typePromise<Uint8Array<ArrayBuffer>>instead of the defaultPromise<Uint8Array<ArrayBufferLike>
© 2026 Tauri Contributors. CC-BY / MIT