github tauri-apps/tauri @tauri-apps/api-v2.0.0-beta.0
@tauri-apps/api v2.0.0-beta.0

latest releases: tauri-v1.7.1, tauri-v1.7, tauri-v1...
5 months ago

Yarn Audit

yarn audit v1.22.21
info No lockfile found.
0 vulnerabilities found - Packages audited: 162
Done in 3.31s.

[2.0.0-beta.0]

New Features

  • 74a2a603(#8661) Implement access control list for IPC usage.
  • a093682d(#8621) Added emitTo api to event module which is equivalent to the rust emit_to method. Also added emitTo method on Window, Webivew and WebviewWindow classes.
  • a2fc3a63(#8657) Add visibleOnAllWorkspaces option when creating the window in JS and Window.setVisibleOnAllWorkspaces method.
  • 7f033f6d(#8537) Add Window.startResizeDragging.
  • 9eaeb5a8(#8622) Add parent option when creating a window.
  • af610232(#8710) Added Window::destroy to force close a window.
  • c77b4032(#8280) Added support to multiwebview via the new window and webview modules.

Breaking Changes

  • c77b4032(#8280) Removed event callback's windowLabel.
  • c77b4032(#8280) The event target is now an object so you can target either a window or a webview.
  • c77b4032(#8280) Moved webview-specific APIs from the Window class to the Webview class.
  • c77b4032(#8280) Renamed TauriEvent.WINDOW_FILE_DROP to TauriEvent.WEBVIEW_FILE_DROP, TauriEvent.WINDOW_FILE_DROP_HOVER to TauriEvent.WEBVIEW_FILE_DROP_HOVER and TauriEvent.WINDOW_FILE_DROP_CANCELLED to TauriEvent.WEBVIEW_FILE_DROP_CANCELLED.
  • c77b4032(#8280) Added back the WebviewWindow API that exposes functionality of a window that hosts a single webview. The dedicated Window and Webview types are exposed for multiwebview features.
  • af610232(#8710) Window::close now triggers a close requested event instead of forcing the window to be closed.

Yarn Publish

yarn run v1.22.21
$ yarn build && cd ./dist && yarn publish --access public --loglevel silly --tag next
$ rollup -c --configPlugin typescript
�[36m
�[1m./src/app.ts, ./src/core.ts, ./src/dpi.ts, ./src/event.ts, ./src/index.ts, ./src/menu.ts, ./src/mocks.ts, ./src/path.ts, ./src/tray.ts, ./src/webview.ts, ./src/window.ts�[22m → �[1m./dist, ./dist�[22m...�[39m
�[32mcreated �[1m./dist, ./dist�[22m in �[1m1.2s�[22m�[39m
�[36m
�[1msrc/index.ts�[22m → �[1m../../core/tauri/scripts/bundle.global.js�[22m...�[39m
�[32mcreated �[1m../../core/tauri/scripts/bundle.global.js�[22m in �[1m1.6s�[22m�[39m
[1/4] Bumping version...
info Current version: 2.0.0-beta.0
[2/4] Logging in...
[3/4] Publishing...
success Published.
[4/4] Revoking token...
info Not revoking login token, specified via config file.
Done in 7.34s.

Don't miss a new tauri release

NewReleases is sending notifications on new releases.