@tauri-apps/api v2.12.0
PNPM Audit
All found vulnerabilities were already reviewed and decided to be ignored
2 ignored: 2 high
[2.12.0]
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>
PNPM Publish
$ 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 �[1m757ms�[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.1s�[22m�[39m
GET https://run-actions-2-azure-eastus.actions.githubusercontent.com/182//idtoken/94844eb2-5ce6-4977-8b2e-11a4e27f6498/cd79c963-1235-5e22-9178-857a52efe18b?api-version=2.0&audience=npm%3Aregistry.npmjs.org 200 280ms
📦 @tauri-apps/api@2.12.0 → https://registry.npmjs.org/
GET https://run-actions-2-azure-eastus.actions.githubusercontent.com/182//idtoken/94844eb2-5ce6-4977-8b2e-11a4e27f6498/cd79c963-1235-5e22-9178-857a52efe18b?api-version=2.0&audience=sigstore 200 96ms
Signed provenance statement with source and build information
✅ Published package @tauri-apps/api@2.12.0