@tauri-apps/api
JS/TS API for interaction with the Rust backend.
2.13.x
Section titled “2.13.x”2.13.0
Section titled “2.13.0”New Features
Section titled “New Features”-
9eda95fa0(#8656 by @naman-crabnebula) Add thepacmanbundle target for Arch Linux. It produces a.tar.gzarchive with aPKGBUILDand.SRCINFOready to be published to the AUR; seebundle > linux > pacmanfor the package name (<name>-binby default), release, dependencies, install script, changelog and source options.bundle > licenseFileis installed to/usr/share/licenses/<pkgname>/.The
pacmantarget is part of"all", so Linux builds that bundle all targets now also produce the pacman package; list the targets explicitly inbundle > targetsto opt out. -
d267da039(#16375 by @spokodev) AddedPhysicalSize.round,PhysicalPosition.round,LogicalSize.roundandLogicalPosition.round, which round to whole pixels the same way Rust does, for examplenew LogicalSize(301, 201).toPhysical(1.5).round(). APIs that take aSizeorPosition, such asWindow.setSizeandWindow.setPosition, only accept whole physical pixels. -
ab4d547dc(#16652 by @lucasfernog) Added iOS support forWindow::set_badge_count,WebviewWindow::set_badge_countand the JavaScriptWindow#setBadgeCount, which sets the app icon badge. They were only available on desktop: the methods were desktop-only and the window plugin only registered theset_badge_countcommand there. They are now available on mobile too (a no-op on Android). -
740a270c6(#14289 by @lucasfernog) AddedonNewWindowoption to configure whether to allow the webview to open URLs whenwindow.openis used. -
05afd6e12(#16175 by @amrbashir) Add more predefined menu itemsPredefinedMenuItem::section_header,paste_and_match_style,delete,zoom(an alias formaximize, named after the macOS window action),actual_size,zoom_in,zoom_out,start_speaking,stop_speaking,start_dictationandemoji_and_symbols. They are also available in JavaScript as theSectionHeader,PasteAndMatchStyle,Delete,Zoom,ActualSize,ZoomIn,ZoomOut,StartSpeaking,StopSpeaking,StartDictationandEmojiAndSymbolsvalues ofPredefinedMenuItemOptions.item. -
d03f76daf(#16054 by @jhasheng) AddAppHandle::fetch_profile_identifiersandAppHandle::remove_profile, and thefetchProfileIdentifiersandremoveProfileJS functions, to list and delete the browsing data profiles created withprofile_identifieron macOS, iOS and Windows. -
d03f76daf(#16054 by @jhasheng) AddWebviewBuilder::profile_identifier,WebviewWindowBuilder::profile_identifier, theprofileIdentifierwindow config option and theprofileIdentifierJS webview option to isolate a webview's browsing data. On macOS and iOS it maps to aWKWebsiteDataStoreidentifier, and on Windows to a WebView2 named profile, so webviews sharing a data directory get isolated cookies and storage while still sharing a single browser process. -
ecab48cc1(#16265 by @lucasfernog) AddedPathResolver::resolve_external_binand theresolveExternalBinpath API to resolve the path to a sidecar binary configured inbundle > externalBin. -
89bb3c82f(#16179 by @amrbashir) AddTrayIconBuilder::autosave_name(theautosaveNameoption of the JavaScriptTrayIcon.new), which setsNSStatusItem.autosaveNameon macOS. macOS already restores where the user <kbd>Cmd</kbd>+dragged a tray icon on the next launch, keyed by the order in which the app created its tray icons (Item-0,Item-1, and so on); an autosave name replaces that generated key with a stable one, so an app that creates several tray icons, or that creates one conditionally, doesn't have icons come back holding each other's positions. -
2d6b0e572(#16176 by @amrbashir) Add theapp > trayIcon > iconIsTemplateconfiguration option and the matchingiconIsTemplateoption of the JavaScriptTrayIcon.new, which draw the configured tray icon as a template image on macOS.Deprecate the previous
iconAsTemplatenames (TrayIconConfig::icon_as_templatein Rust) in favour of them. Both names keep working, and either one set totruedraws the icon as a template. -
2d6b0e572(#16176 by @amrbashir) AddTrayIconBuilder::icon_templatedandTrayIcon::set_icon_templated(TrayIcon.setIconTemplatedin JavaScript), which set the tray icon and draw it as a template image in one call, so the template flag can never be left describing an icon that has since been replaced. Also addTrayIcon::icon_is_templateto read that state back.Deprecate
TrayIconBuilder::icon_as_template,TrayIcon::set_icon_as_template(TrayIcon.setIconAsTemplatein JavaScript) andTrayIcon::set_icon_with_as_template(TrayIcon.setIconWithAsTemplatein JavaScript) in favour of them. -
d2b5ef751(#16177 by @amrbashir) AddTrayIconBuilder::native_iconandTrayIcon::set_native_icon(thenativeIconoption of the JavaScriptTrayIcon.newandTrayIcon.setNativeIcon), to use a platform-native icon such asNativeIcon::StatusAvailablefor the tray icon. Known variants map to freedesktop icon names on Linux, AppKit image names on macOS and stock shell icons on Windows, so the icon follows the system theme instead of being shipped with the app. -
9d4d3caac(#16178 by @amrbashir) AddTrayIconBuilder::show_menu_on_right_clickandTrayIcon::set_show_menu_on_right_click(theshowMenuOnRightClickoption of the JavaScriptTrayIcon.newandTrayIcon.setShowMenuOnRightClick), to stop the menu from showing on right click, the same way it can already be disabled for left click. -
9d4d3caac(#16178 by @amrbashir) AddTrayIcon::show_menu(TrayIcon.showMenuin JavaScript), which shows the tray menu at the current cursor position, so an app that disabledshowMenuOnLeftClickandshowMenuOnRightClickcan decide when the menu shows up, for instance after updating its items.
Enhancements
Section titled “Enhancements”1c8ab0375(#16181 by @amrbashir)IconMenuItem::set_native_iconandSubmenu::set_native_iconare no longer macOS-only. KnownNativeIconvariants now map to freedesktop icon names on Linux and stock shell icons on Windows, the same asTrayIcon::set_native_icon.
What's Changed
Section titled “What's Changed”d03f76daf(#16054 by @jhasheng) Deprecate the macOS / iOS onlyWebviewBuilder::data_store_identifier,WebviewWindowBuilder::data_store_identifier, thedataStoreIdentifierwindow config option and thedataStoreIdentifierJS webview option in favor ofprofile_identifier/profileIdentifier. They are not applied on Windows, so apps that already set them keep using the default WebView2 profile.d03f76daf(#16054 by @jhasheng) Deprecate the macOS / iOS onlyAppHandle::fetch_data_store_identifiers,AppHandle::remove_data_store,fetchDataStoreIdentifiersandremoveDataStorein favor ofAppHandle::fetch_profile_identifiers,AppHandle::remove_profile,fetchProfileIdentifiersandremoveProfile.
2.12.x
Section titled “2.12.x”2.12.5
Section titled “2.12.5”Bug Fixes
Section titled “Bug Fixes”a99dc0e85(#16522 by @lazerg) FixmockIPCwithshouldMockEventssooncelisteners only run once andunlistenremoves the mocked listener. The mocked event now carries the listenerid, andplugin:event|unlistenreadseventId.d40c19cfb(#16381 by @spokodev) FixWindow.onScaleChangedpassingsizeas a plain object instead of aPhysicalSize, so methods such astoLogicalwere missing on it. It is now wrapped the same way as theonResizedpayload.
2.12.4
Section titled “2.12.4”What's Changed
Section titled “What's Changed”2.12.3
Section titled “2.12.3”Bug Fixes
Section titled “Bug Fixes”2.12.2
Section titled “2.12.2”Bug Fixes
Section titled “Bug Fixes”a916205db(#16195 by @alessandrorodi) Return an awaitable cleanup function fromWindow.onDragDropEvent,Window.onFocusChangedandWebview.onDragDropEventso rejections from the inner unlisten calls can be handled instead of surfacing as unhandled promise rejections.a98038ec7(#16235 by @Legend-Master) FixMenu/Submenuappend,prepend,insertnot takingMenuItemOptionsas the typescript type suggests
2.12.1
Section titled “2.12.1”Bug Fixes
Section titled “Bug Fixes”c9a3cb892(#16166 by @FabianLars) Themacos-private-apifeature flag /macOSPrivateAPItauri.conf.json value is no longer required to use transparency or fullscreen on macOS.
2.12.0
Section titled “2.12.0”New Features
Section titled “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
Section titled “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
Section titled “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>
2.11.x
Section titled “2.11.x”2.11.1
Section titled “2.11.1”Enhancements
Section titled “Enhancements”2.11.0
Section titled “2.11.0”New Features
Section titled “New Features”074299c08(#14307) Add Bring All to Front predefined menu item typea12142a48(#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 whenautocomplete="off"is specified on input elements. On Linux, macOS, iOS, and Android, this option is currently unsupported and performs no operation.eb0312ea9(#15199) Propagates theEvent::SuspendedandEvent::Resumedevents fromtaowhen they are emitted on mobile targets.
2.10.x
Section titled “2.10.x”2.10.1
Section titled “2.10.1”Bug Fixes
Section titled “Bug Fixes”- Re-release of
2.10.0with working assets.
2.10.0
Section titled “2.10.0”Dependencies
Section titled “Dependencies”Bug Fixes
Section titled “Bug Fixes”ad1dec2e2(#14464 by @funnydino) FixaddPluginListenerfallback added in https://github.com/tauri-apps/tauri/pull/14132 didn't work properly
New Features
Section titled “New Features”f5851ee00(#14089) Adds thescrollBarStyleoption to the Webview and WebviewBuilder constructors.3397fd9bf(#14133) Addedapp > onBackButtonPressfor Android back button handling.
Enhancements
Section titled “Enhancements”59089723f(#14091) Added a config to set a data_directory relative to the app-specific data dir in JavaScript andtauri.conf.json.
Bug Fixes
Section titled “Bug Fixes”New Features
Section titled “New Features”68874c68c(#13564 by @robertrpf) Add window focusable attribute and set_focusable API.5110a762e(#13830 by @Sky-walkerX) AddedWindow::setSimpleFullscreen.
Enhancements
Section titled “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),SubmenuOptionsnow has aniconfield, and theSubmenuclass providessetIconandsetNativeIconmethods. - 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.
- In the Rust API (
Full Changelog
Section titled “Full Changelog”@tauri-apps/api full changelog
Version List
Section titled “Version List”- v2.13.0 Nov 28, 2026
- v2.12.5 Nov 16, 2026
- v2.12.4 Oct 14, 2026
- v2.12.3 Oct 10, 2026
- v2.12.2 Oct 9, 2026
- v2.12.1 Sep 30, 2026
- v2.12.0 Sep 26, 2026
- v2.11.1 Jun 17, 2026
- v2.11.0 Apr 30, 2026
- v2.10.1 Feb 3, 2026
- v2.10.0 Feb 2, 2026
- v2.9.1 Nov 30, 2025
- v2.9.0 Oct 20, 2025
- v2.8.0 Aug 18, 2025
- v2.7.0 Jul 20, 2025
- v2.6.0 Jun 24, 2025
- v2.5.0 Apr 15, 2025
- v2.4.1 Apr 1, 2025
- v2.4.0 Mar 20, 2025
- v2.3.0 Feb 26, 2025
- v2.2.0 Jan 2, 2025
- v2.1.1 Nov 11, 2024
- v2.1.0 Nov 9, 2024
- v2.0.3 Oct 20, 2024
- v2.0.2 Oct 7, 2024
- v2.0.1 Oct 2, 2024
- v2.0.0 Oct 2, 2024
- v2.0.0-rc.6 Sep 27, 2024
- v2.0.0-rc.5 Sep 17, 2024
- v2.0.0-rc.4 Aug 28, 2024
- v2.0.0-rc.3 Aug 22, 2024
- v2.0.0-rc.2 Aug 19, 2024
- v2.0.0-rc.1 Aug 17, 2024
- v2.0.0-rc.0 Aug 2, 2024
- v2.0.0-beta.16 Jul 29, 2024
- v2.0.0-beta.15 Jul 12, 2024
- v2.0.0-beta.14 Jul 2, 2024
- v2.0.0-beta.13 May 29, 2024
- v2.0.0-beta.12 May 23, 2024
- v2.0.0-beta.11 Apr 30, 2024
- v2.0.0-beta.10 Apr 30, 2024
- v2.0.0-beta.9 Apr 22, 2024
- v2.0.0-beta.8 Apr 15, 2024
- v2.0.0-beta.7 Apr 2, 2024
- v2.0.0-beta.6 Mar 18, 2024
- v2.0.0-beta.5 Mar 11, 2024
- v2.0.0-beta.4 Mar 6, 2024
- v2.0.0-beta.3 Feb 22, 2024
- v2.0.0-beta.2 Feb 21, 2024
- v2.0.0-beta.1 Feb 19, 2024
- v2.0.0-beta.0 Feb 3, 2024
- v2.0.0-alpha.14 Jan 16, 2024
- v2.0.0-alpha.13 Dec 19, 2023
- v2.0.0-alpha.12 Nov 20, 2023
- v2.0.0-alpha.11 Oct 28, 2023
- v2.0.0-alpha.10 Oct 28, 2023
- v2.0.0-alpha.9 Oct 19, 2023
- v2.0.0-alpha.8 Sep 11, 2023
- v2.0.0-alpha.7 Sep 8, 2023
- v2.0.0-alpha.6 Aug 14, 2023
- v2.0.0-alpha.5 Jun 17, 2023
- v2.0.0-alpha.4 May 18, 2023
- v2.0.0-alpha.3 Apr 10, 2023
- v2.0.0-alpha.2 Apr 3, 2023
- v2.0.0-alpha.1 Mar 20, 2023
- v2.0.0-alpha.0 Dec 9, 2022
- v1.5.3 Dec 20, 2023
- v1.5.2 Dec 1, 2023
- v1.5.1 Oct 17, 2023
- v1.5.0 Sep 28, 2023
- v1.4.0 Jun 14, 2023
- v1.3.0 May 3, 2023
- v1.2.0 Nov 8, 2022
- v1.1.0 Sep 15, 2022
- v1.0.2 Jul 6, 2022
- v1.0.1 Jun 16, 2022
- v1.0.0 Jun 16, 2022
- v1.0.0-rc.7 Jun 14, 2022
- v1.0.0-rc.6 May 24, 2022
- v1.0.0-rc.5 May 7, 2022
- v1.0.0-rc.4 Apr 26, 2022
- v1.0.0-rc.3 Mar 28, 2022
- v1.0.0-rc.2 Mar 7, 2022
- v1.0.0-rc.1 Feb 14, 2022
- v1.0.0-rc.0 Feb 10, 2022
- v1.0.0-beta-rc.3 Apr 25, 2021
- v1.0.0-beta-rc.2 Apr 19, 2021
- v1.0.0-beta-rc.1 Apr 14, 2021
- v1.0.0-beta-rc.0 Apr 14, 2021
- v1.0.0-beta.8 Aug 23, 2021
- v1.0.0-beta.7 Aug 23, 2021
- v1.0.0-beta.6 Aug 16, 2021
- v1.0.0-beta.5 Jul 16, 2021
- v1.0.0-beta.4 Jun 28, 2021
- v1.0.0-beta.3 Jun 24, 2021
- v1.0.0-beta.2 Jun 23, 2021
- v1.0.0-beta.1 May 12, 2021
- v1.0.0-beta.0 May 11, 2021
© 2026 Tauri Contributors. CC-BY / MIT