@tauri-apps/api-v2.12.2
tauri-apps/tauri@tauri-apps/api-v2.12.2Oct 9, 2026by github-actions[bot]
Upgrading?
AI Summary
Updates the Tauri API v2 to version 2.12.2, improving error handling for event listeners and fixing type mismatches in menu manipulation methods.
Key Highlights
- Event listeners now return awaitable cleanup functions to properly handle rejections instead of unhandled promise rejections.
- Fixed type mismatches in `Menu` and `Submenu` `append`, `prepend`, and `insert` methods to match TypeScript definitions.
Full Release Notes
<details> <summary><em><h4>PNPM Audit</h4></em></summary> ``` All found vulnerabilities were already reviewed and decided to be ignored 3 ignored: 3 high ``` </details> ## [2.12.2] ### Bug Fixes - [`a916205db`](https://www.github.com/tauri-apps/tauri/commit/a916205db2c21a2475502452efa9b70132ae52f3) ([#16195](https://www.github.com/tauri-apps/tauri/pull/16195) by [@alessandrorodi](https://www.github.com/tauri-apps/tauri/../../alessandrorodi)) Return an awaitable cleanup function from `Window.onDragDropEvent`, `Window.onFocusChanged` and `Webview.onDragDropEvent` so rejections from the inner unlisten calls can be handled instead of surfacing as unhandled promise rejections. - [`a98038ec7`](https://www.github.com/tauri-apps/tauri/commit/a98038ec78422b821b2e25b26fb71a2805741673) ([#16235](https://www.github.com/tauri-apps/tauri/pull/16235) by [@Legend-Master](https://www.github.com/tauri-apps/tauri/../../Legend-Master)) Fix `Menu`/`Submenu` `append`, `prepend`, `insert` not taking `MenuItemOptions` as the typescript type suggests <details> <summary><em><h4>PNPM Publish</h4></em></summary> ``` $ pnpm build && cd ./dist && pnpm publish --access public --loglevel debug --no-git-checks $ rollup -c --configPlugin typescript [36m [1m./src/app.ts, ./src/core.ts, ./src/dpi.ts, ./src/event.ts, ./src/image.ts, ./src/index.ts, ./src/menu.ts, ./src/mocks.ts, ./src/path.ts, ./src/tray.ts, ./src/webview.ts, ./src/webviewWindow.ts, ./src/window.ts[22m ā [1m./dist, ./dist[22m...[39m [32mcreated [1m./dist, ./dist[22m in [1m1s[22m[39m [36m [1msrc/index.ts[22m ā [1m../../crates/tauri/scripts/bundle.global.js[22m...[39m [32mcreated [1m../../crates/tauri/scripts/bundle.global.js[22m in [1m1.6s[22m[39m GET https://run-actions-3-azure-eastus.actions.githubusercontent.com/213//idtoken/0fbe2603-3d56-8c38-b19e-d6385e66cd8e/20c0902b-9ea5-59ed-9825-ee7093667d2e?api-version=2.0&audience=npm%3Aregistry.npmjs.org 200 136ms š¦ @tauri-apps/api@2.12.2 ā https://registry.npmjs.org/ GET https://run-actions-3-azure-eastus.actions.githubusercontent.com/213//idtoken/0fbe2603-3d56-8c38-b19e-d6385e66cd8e/20c0902b-9ea5-59ed-9825-ee7093667d2e?api-version=2.0&audience=sigstore 200 44ms Signed provenance statement with source and build information ā Published package @tauri-apps/api@2.12.2 ``` </details>
Related Repositories
A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io
An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.
Ļ RuView turns commodity WiFi signals into real-time spatial intelligence, vital sign monitoring, and presence detection ā all without a single pixel of video.
Incredibly fast JavaScript runtime, bundler, test runner, and package manager ā all in one
Code at the speed of thought ā Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.