Files
tauri-plugins-workspace/.changes/global-api-script-reuse-core.md
T
Lucas Fernandes Nogueira ae3c808eb6 fix: global API script should reuse window.__TAURI__ types (#3602)
currently each script inlines what it needs from @tauri-apps/api, so type checks like `image instanceof Image` all fail
2026-09-22 06:04:28 -03:00

1.5 KiB

autostart, autostart-js, barcode-scanner, barcode-scanner-js, biometric, biometric-js, cli, cli-js, clipboard-manager, clipboard-manager-js, deep-link, deep-link-js, dialog, dialog-js, fs, fs-js, geolocation, geolocation-js, global-shortcut, global-shortcut-js, haptics, haptics-js, http, http-js, log, log-js, nfc, nfc-js, notification, notification-js, opener, opener-js, os, os-js, positioner, positioner-js, process, process-js, shell, shell-js, sql, sql-js, store, store-js, stronghold, stronghold-js, updater, updater-js, upload, upload-js, websocket, websocket-js, window-state, window-state-js
autostart autostart-js barcode-scanner barcode-scanner-js biometric biometric-js cli cli-js clipboard-manager clipboard-manager-js deep-link deep-link-js dialog dialog-js fs fs-js geolocation geolocation-js global-shortcut global-shortcut-js haptics haptics-js http http-js log log-js nfc nfc-js notification notification-js opener opener-js os os-js positioner positioner-js process process-js shell shell-js sql sql-js store store-js stronghold stronghold-js updater updater-js upload upload-js websocket websocket-js window-state window-state-js
patch patch patch patch patch patch patch patch patch patch patch patch patch patch patch patch patch patch patch patch patch patch patch patch patch patch patch patch patch patch patch patch patch patch patch patch patch patch patch patch patch patch patch patch patch patch patch patch patch patch patch patch patch patch

The plugin's global API script (used with app.withGlobalTauri) now resolves the core API from window.__TAURI__ instead of bundling its own copy of @tauri-apps/api. Values created with the core API are now accepted by plugin APIs in global mode (e.g. an Image from window.__TAURI__.image passed to clipboardManager.writeImage, which previously failed the instanceof check against the plugin's private copy), and the script is considerably smaller.