@tauri-apps/api-v2.0.0-beta.0
版本发布时间: 2024-02-03 22:28:48
tauri-apps/tauri最新发布版本:tauri-v2.1.1(2024-11-11 22:51:00)
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) AddedemitTo
api toevent
module which is equivalent to the rustemit_to
method. Also addedemitTo
method onWindow
,Webivew
andWebviewWindow
classes. -
a2fc3a63
(#8657) AddvisibleOnAllWorkspaces
option when creating the window in JS andWindow.setVisibleOnAllWorkspaces
method. -
7f033f6d
(#8537) AddWindow.startResizeDragging
. -
9eaeb5a8
(#8622) Addparent
option when creating a window. -
af610232
(#8710) AddedWindow::destroy
to force close a window. -
c77b4032
(#8280) Added support to multiwebview via the newwindow
andwebview
modules.
Breaking Changes
-
c77b4032
(#8280) Removed event callback'swindowLabel
. -
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 theWindow
class to theWebview
class. -
c77b4032
(#8280) RenamedTauriEvent.WINDOW_FILE_DROP
toTauriEvent.WEBVIEW_FILE_DROP
,TauriEvent.WINDOW_FILE_DROP_HOVER
toTauriEvent.WEBVIEW_FILE_DROP_HOVER
andTauriEvent.WINDOW_FILE_DROP_CANCELLED
toTauriEvent.WEBVIEW_FILE_DROP_CANCELLED
. -
c77b4032
(#8280) Added back theWebviewWindow
API that exposes functionality of a window that hosts a single webview. The dedicatedWindow
andWebview
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.