tauri@2.0.0-beta.0
Ce contenu n’est pas encore disponible dans votre langue.
New Features
74a2a603
(#8661) Implement access control list for IPC usage.a2fc3a63
(#8657) AddvisibleOnAllWorkspaces
option when creating the window in JS andWindow.setVisibleOnAllWorkspaces
method.af610232
(#8710) AddedWindow::destroy
to force close a window.c77b4032
(#8280) Add multiwebview support behind theunstable
feature flag. SeeWindowBuilder
andWebviewBuilder
for more information.9eaeb5a8
(#8622) AddWindowBuilder::parent
which is a convenient wrapper around parent functionality for Windows, Linux and macOS. Also addedWindowBuilder::owner
on Windows only. Also addedWindowBuilder::transient_for
andWindowBuilder::transient_for_raw
on Linux only.
Enhancements
e8d3793c
(#8732) Addcommon-controls-v6
cargo feature flag (enabled by default).58fe2e81
(#8670) Allow IPC calls when window origin is a defined custom protocol.
Bug Fixes
95da1a27
(#8713) Fix callingset_activation_policy
when the event loop is running.e1eb911f
(#8582) Ensure initalize logic and dropping of menu item is done on the main thread, this fixes the crash when a menu item is dropped on another thread.a093682d
(#8621) Fix can not prevent closing a window from another webview.7f033f6d
(#8537) Fix undecorated window resizing on Windows and Linux.
What’s Changed
9f8037c2
(#8633) On Windows, fix decorated window not transparent initially until resized.7f033f6d
(#8537) AddWindow::start_resize_dragging
andResizeDirection
enum.6639a579
(#8441) Added theWindowConfig::proxy_url
WebviewBuilder::proxy_url() / WebviewWindowBuilder::proxy_url()
options when creating a webview.
Dependencies
- Upgraded to
tauri-build@22.0.0-beta.0
- Upgraded to
tauri-utils@2.0.0-beta.0
- Upgraded to
tauri-macros@2.0.0-beta.0
- Upgraded to
tauri-runtime@2.0.0-beta.0
- Upgraded to
tauri-runtime-wry@2.0.0-beta.0
Breaking Changes
-
8de308d1
(#8723) Restructured Tauri config per RFC#5:- Moved
package.productName
,package.version
andtauri.bundle.identifier
fields to the top-level. - Removed
package
object. - Renamed
tauri
object toapp
. - Moved
tauri.bundle
object to the top-level. - Renamed
build.distDir
field tofrontendDist
. - Renamed
build.devPath
field todevUrl
and will no longer accepts paths, it will only accept URLs. - Moved
tauri.pattern
toapp.security.pattern
. - Removed
tauri.bundle.updater
object, and its fields have been moved to the updater plugin underplugins.updater
object. - Moved
build.withGlobalTauri
toapp.withGlobalTauri
. - Moved
tauri.bundle.dmg
object tobundle.macOS.dmg
. - Moved
tauri.bundle.deb
object tobundle.linux.deb
. - Moved
tauri.bundle.appimage
object tobundle.linux.appimage
. - Removed all license fields from each bundle configuration object and instead added
bundle.license
andbundle.licenseFile
. - Renamed
AppUrl
toFrontendDist
and refactored its variants to be more explicit.
- Moved
-
c77b4032
(#8280) Theinvoke_system
,on_page_load
hooks now gives you aWebview
argument instead of aWindow
. -
e1eb911f
(#8582) All menu item constructorsaccelerator
argument have been changed toOption<impl AsRef<str>>
so when providingNone
you need to specify the generic argument likeNone::<&str>
. -
e1eb911f
(#8582) All menu item constructors have been changed to return aResult<Self>
-
aa758a85
(#8716) Moved thecommand
module items to theipc
module so its import name does not clash with thecommand
macro. -
00e15675
(#8708)AppHandle::exit
andAppHandle::restart
now go triggersRunEvent::ExitRequested
andRunEvent::Exit
and cannot be executed on the event loop handler. -
ec9818ac
(#8696) Added a callback to theApp::run_iteration
and removed its return value. -
a093682d
(#8621) Refactored the event system to better accommodate the new window types:- Added
EventTarget
enum. - Added
App/AppHandle::listen
,App/AppHandle::once
andApp/AppHandle::unlisten
to listen to events targetingApp/AppHandle
App/AppHandle/Window/Webview/WebviewWindow::emit
will now emit to all event listeners.App/AppHandle/Window/Webview/WebviewWindow::emit_to
will emit to event targets that match the given label, seeEventTarget
enum.App/AppHandle/Window/Webview/WebviewWindow::emit_filter
will emit to event targets based on a filter callback which now takes&EventTarget
instead of&Window
.- Renamed
Manager::listen_global
andManager::once_global
tolisten_any
andonce_any
respectively to be consistent withEventTarget::Any
, it will now also listen to any event to any target (aka event sniffer).
- Added
-
9eaeb5a8
(#8622) RenamedWindowBuilder::owner_window
toWindowBuilder::owner_raw
andWindowBuilder::parent_window
toWindowBuilder::parent_raw
. -
9eaeb5a8
(#8622) ChangedWindowBuilder::from_config
to return aResult<Self>
. -
c77b4032
(#8280) RenamedWindow
toWebviewWindow
,WindowBuilder
toWebviewWindowBuilder
,Manager::windows
toManager::webview_windows
andManager::get_window
toManager::get_webview_window
. -
af610232
(#8710)Window::close
now triggers a close requested event instead of forcing the window to be closed. -
c77b4032
(#8280) Renamed thewindow-data-url
feature flag towebview-data-url
.
© 2024 Tauri Contributors. CC-BY / MIT