Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
115 KiB
Changelog
[2.9.0]
New Features
f5851ee00(#14089) Adds thescroll_bar_styleoption to the Webview and WebviewWindow builders. The possible values for this option are gated behind conditional compilation flags, and will need to be applied using conditional compilation if customised.
Bug Fixes
684791efa(#14276) Always try to create macOS WebKit webview, even if webkit runtime doesn't get detected correctly
Dependencies
- Upgraded to
tauri-utils@2.8.0 - Upgraded to
tauri-runtime@2.9.0
[2.8.1]
Bug Fixes
03e7c1193(#14080 by @lucasfernog) Ignore initial navigation toabout:blanksoon_new_windowdoes not give a warning on first navigation on macOS.
[2.8.0]
New Features
68874c68c(#13564 by @robertrpf) Add window focusable attribute and set_focusable API.22d6bcacb(#14008 by @WSH032) ImplementApp::set_device_event_filterforAppHandlealso.33d0b3f0c(#13876 by @thlstsul) AddedWebviewBuilder::on_document_title_changedandWebviewWindowBuilder::on_document_title_changed.33d0b3f0c(#13876 by @thlstsul) AddedWebviewBuilder::on_new_windowandWebviewWindowBuilder::on_new_window.dfadcb764(#13661 by @WSH032) AddedWebviewDispatch::set_cookie()andWebviewDispatch::delete_cookie().5110a762e(#13830 by @Sky-walkerX) AddedWindow::set_simple_fullscreen.
Bug Fixes
82e264552(#13968 by @s5bug) Use WM_NCDESTROY instead of WM_DESTROY to free window userdata, fixing a double-free occurring in the Windows resizing handler for undecorated windows which caused STATUS_HEAP_CORRUPTION196ace3c0(#13970 by @Legend-Master) Returntauri_runtime::Error::CreateWindowinstead of panic on window creation failed
Dependencies
- Upgraded to
tauri-utils@2.7.0 - Upgraded to
tauri-runtime@2.8.0
[2.7.2]
What's Changed
3025d9095(#13822 by @clearlysid) Makes some methods onWindowIdStore,WindowsStoreandWindowWrapperpublic
Dependencies
- Upgraded to
tauri-utils@2.6.0 - Upgraded to
tauri-runtime@2.7.1
[2.7.1]
Bug Fixes
f010ca5e9(#13719 by @FabianLars) Fixed a compile error when using tauri without thecommon-controls-v6feature enabled.
[2.7.0]
New Features
9c16eefa3(#13629 by @sftse) Addedx11Cargo feature (enabled by default). Disabling it is useful for apps that only support Wayland, reducing its size. NOTE: When manually disabling tauri default features, you must enable thex11feature to support it.
Enhancements
96ecfca42(#13406 by @amrbashir) Check if the webview runtime is accessible when creating a webview, returning an error if it doesn't.
Bug Fixes
f0662e41f(#13365 by @lucasfernog) Fix monitor check on the window prevent overflow implementation.4acae1ec0(#13443 by @Legend-Master) FixAppHandle::set_themecrashes or has no effect on macOS if not ran on main thread78d15e892(#13558 by @Legend-Master) Allow web fullscreen APIs to work on Windows (e.g.video.requestFullscreenanddocument.exitFullscreen)
Dependencies
- Upgraded to
tauri-utils@2.5.0 - Upgraded to
tauri-runtime@2.7.0 9c16eefa3(#13629 by @sftse) Updated tao to 0.34, wry to 0.52 and webview2-com to 0.38.
[2.6.0]
New Features
-
dd4f13ce4(#13185) MacOS: Addset_dock_visibilitymethod to support setting the visibility of the application in the dock. -
ea36294cb(#13208) AddedWebviewAttributes::input_accessory_view_builderon iOS. -
c1cd0a2dd(#13090) macOS/iOS: add option to disable or enable link previews when building a webview (the webkit api has it enabled by default)WebViewBuilder.allow_link_preview(allow_link_preview: bool)WebviewWindowBuilder.allow_link_preview(allow_link_preview: bool)
-
b072e2b29(#9687) AddpreventOverflowconfig option to prevent the window from overflowing the monitor size on creation
Bug Fixes
07953fb9c(#13222) EmitWindowEvent::Focusedevents when using the multiwebview (unstable feature flag) mode on Windows.
Dependencies
- Upgraded to
tauri-utils@2.4.0 - Upgraded to
tauri-runtime@2.6.0 bb5faa21f(#13163) Update tao to 0.33.bb5faa21f(#13163) Update webview2-com to 0.37.bb5faa21f(#13163) Update windows to 0.61.bb5faa21f(#13163) Update wry to 0.51.
[2.5.1]
Dependencies
- Upgraded to
tauri-utils@2.3.1 - Upgraded to
tauri-runtime@2.5.1
[2.5.0]
New Features
-
be2e6b85f(#12944 by @Simon-Laux) addWindow.is_always_on_top()andWebviewWindow.is_always_on_top() -
20c190691(#12821 by @Simon-Laux) AddWebviewBuilder.disable_javascriptandWebviewWindowBuilder.disable_javascriptapi to disable JavaScript. -
658e5f5d1(#12668 by @thomaseizinger) AddApp::run_returnfunction. Contrary toApp::run, this will not exit the process but instead return the requested exit-code. This allows the host app to perform further cleanup after Tauri has exited.App::run_returnis not available on iOS and fallbacks to the regularApp::runfunctionality.The
App::run_iterationfunction is deprecated as part of this because calling it in a loop - as suggested by the name - will cause a busy-loop. -
c698a6d6f(#12818 by @Simon-Laux) feat: addWebview.reloadandWebviewWindow.reload -
30f5a1553(#12366 by @FabianLars) AddedtrafficLightPositionwindow configuration to set the traffic light buttons position on macOS. -
30f5a1553(#12366 by @FabianLars) Addedtraffic_light_positionwindow builder method to set the traffic light buttons position on macOS. -
cedb24d49(#12665 by @charrondev) AddedWebviewDispatch::cookies()andWebviewDispatch::cookies_for_url().
Dependencies
- Upgraded to
tauri-runtime@2.5.0 - Upgraded to
tauri-utils@2.3.0
[2.4.1]
Bug Fixes
e103e87f1(#12848 by @amrbashir) Fix crash on Windows because of missing functions on older Windows systems, regression in 2.3.0
[2.4.0]
Enhancements
a2d36b8c3(#12181 by @bastiankistner) Add an option to change the default background throttling policy (currently for WebKit only).d6520a21c(#12541 by @FabianLars) Updatedwryto 0.50,windowsto 0.60,webview2-comto 0.36, andobjc2to 0.6. This can be a breaking change if you use thewith_webviewAPI!
Dependencies
- Upgraded to
tauri-runtime@2.4.0 - Upgraded to
tauri-utils@2.2.0
[2.3.0]
New Features
-
18bd639f6(#11798 by @lars-berger) AddWebviewWindowBuilder/WebviewBuilder::data_store_identifieron macOS. -
dc4d79477(#11628 by @SpikeHD) AddWebviewWindowBuilder/WebviewBuilder::extensions_pathon Linux and Windows. -
020ea0556(#11661 by @ahqsoftwares) Add badging APIs:Window/WebviewWindow::set_badge_countfor Linux, macOS and IOS.Window/WebviewWindow::set_overlay_iconfor Windows Only.Window/WebviewWindow::set_badge_labelfor macOS Only.
Dependencies
- Upgraded to
tauri-runtime@2.3.0 - Upgraded to
tauri-utils@2.1.1
[2.2.0]
New Features
4d545ab3c(#11486 by @amrbashir) AddedWindow::set_background_colorandWindowBuilder::background_color.f37e97d41(#11477 by @amrbashir) AddWebviewWindowBuilder/WebviewBuilder::use_https_schemeto choose whether the custom protocols should usehttps://<scheme>.localhostinstead of the defaulthttp://<scheme>.localhoston Windows and Androidcbc095ec5(#11451 by @amrbashir) AddWebviewWindowBuilder::devtoolsandWebviewBuilder::devtoolsto enable or disable devtools for a specific webview.2a75c64b5(#11469 by @amrbashir) AddedWindowBuilder/WebviewWindowBuilder::window_classnamemethod to specify the name of the window class on Windows.
Bug Fixes
229d7f8e2(#11616 by @amrbashir) Fix regression in creating child webviews on macOS and Windows, covering the whole window.8c6d1e8e6(#11401 by @amrbashir) FixApp/AppHandle/Window/Webview/WebviewWindow::cursor_positiongetter method failing on Linux withGDK may only be used from the main thread.129414faa(#11569 by @amrbashir) Fix webview not focused by default.
Dependencies
- Upgraded to
tauri-utils@2.1.0 - Upgraded to
tauri-runtime@2.2.0
[2.1.2]
Dependencies
- Upgraded to
tauri-utils@2.0.2
[2.1.1]
Bug Fixes
[2.1.0]
Bug Fixes
2d087ee4b(#11268 by @amrbashir) On Linux, fix commands, that useWebvieworWebviewWindowas an argument, receiving an incorrect webview when using multi webviews.2d087ee4b(#11268 by @amrbashir) On Linux, fix events only emitted to first webview only when using multi webviews.2d087ee4b(#11268 by @amrbashir) On Linux, fix custom protocols receiving an incorrect webview label when using multi webviews
Dependencies
- Upgraded to
tauri-runtime@2.1.0
[2.0.1]
What's Changed
0ab2b3306(#11205 by @lucasfernog) Downgrade MSRV to 1.77.2 to support Windows 7.
Dependencies
- Upgraded to
tauri-utils@2.0.1 - Upgraded to
tauri-runtime@2.0.1
[2.0.0]
What's Changed
Dependencies
- Upgraded to
tauri-utils@2.0.0 - Upgraded to
tauri-runtime@2.0.0
[2.0.0-rc.14]
New Features
a247170e1(#11056 by @SpikeHD) Expose the ability to enabled browser extensions in WebView2 on Windows.9014a3f17(#11066 by @amrbashir) AddWebviewWindow::clear_all_browsing_dataandWebview::clear_all_browsing_datato clear the webview browsing data.95df53a2e(#11143 by @Legend-Master) Add the ability to set theme dynamically usingWindow::set_theme,App::set_themed9d2502b4(#11140 by @amrbashir) AddWebviewDispatch::hideandWebviewDispatch::showmethods.de7414aab(#11154 by @amrbashir) AddWindow::set_enabledandWindow::is_enabledmethods
Bug Fixes
62b3a5cd1(#11043 by @amrbashir) FixlocalStoragenot shared between webviews that use the same data directory.
Dependencies
- Upgraded to
tauri-runtime@2.0.0-rc.13 - Upgraded to
tauri-utils@2.0.0-rc.13
[2.0.0-rc.13]
Dependencies
- Upgraded to
tauri-utils@2.0.0-rc.12 - Upgraded to
tauri-runtime@2.0.0-rc.12
[2.0.0-rc.12]
Enhancements
bc4804d48(#10924 by @madsmtm) Useobjc2internally and in examples, leading to better memory safety.
Breaking Changes
bc4804d48(#10924 by @madsmtm) Change the pointer type ofPlatformWebview'sinner,controller,ns_windowandview_controllertoc_void, to avoid publically depending onobjc.
[2.0.0-rc.11]
Dependencies
- Upgraded to
tauri-utils@2.0.0-rc.11 - Upgraded to
tauri-runtime@2.0.0-rc.11
[2.0.0-rc.10]
Dependencies
- Upgraded to
tauri-utils@2.0.0-rc.10 - Upgraded to
tauri-runtime@2.0.0-rc.10
[2.0.0-rc.9]
Dependencies
- Upgraded to
tauri-utils@2.0.0-rc.9 - Upgraded to
tauri-runtime@2.0.0-rc.9
[2.0.0-rc.8]
Dependencies
- Upgraded to
tauri-utils@2.0.0-rc.8 - Upgraded to
tauri-runtime@2.0.0-rc.8 77056b194(#10895 by @lucasfernog) Update tao to 0.30 and wry to 0.43.
Breaking Changes
5048a7293(#10840 by @lucasfernog) Thelinux-ipc-protocolfeature is now always enabled, so the Cargo feature flag was removed. This increases the minimum webkit2gtk version to a release that does not affect the minimum target Linux distros for Tauri apps.
[2.0.0-rc.7]
Dependencies
- Upgraded to
tauri-utils@2.0.0-rc.7 - Upgraded to
tauri-runtime@2.0.0-rc.7
[2.0.0-rc.6]
Bug Fixes
793ee0531(#10700 by @lucasfernog) Allow hyphens and underscores on app identifiers.
What's Changed
f4d5241b3(#10731 by @amrbashir) Update documentation icon path.
Dependencies
- Upgraded to
tauri-utils@2.0.0-rc.6 - Upgraded to
tauri-runtime@2.0.0-rc.6
[2.0.0-rc.5]
Dependencies
- Upgraded to
tauri-utils@2.0.0-rc.5 - Upgraded to
tauri-runtime@2.0.0-rc.5
[2.0.0-rc.4]
Dependencies
- Upgraded to
tauri-utils@2.0.0-rc.4 - Upgraded to
tauri-runtime@2.0.0-rc.4
[2.0.0-rc.3]
Dependencies
- Upgraded to
tauri-utils@2.0.0-rc.3 - Upgraded to
tauri-runtime@2.0.0-rc.3 d39c392b7(#10655 by @lucasfernog) Updatetaoto 0.29 andwryto 0.42.
[2.0.0-rc.2]
Dependencies
- Upgraded to
tauri-utils@2.0.0-rc.2 - Upgraded to
tauri-runtime@2.0.0-rc.2
[2.0.0-rc.1]
Dependencies
- Upgraded to
tauri-utils@2.0.0-rc.1 - Upgraded to
tauri-runtime@2.0.0-rc.1
[2.0.0-rc.0]
Dependencies
- Upgraded to
tauri-utils@2.0.0-rc.0 - Upgraded to
tauri-runtime@2.0.0-rc.0
[2.0.0-beta.21]
What's Changed
9546548ec(#10297 by @pewsheen) On macOS, set default titlebar style toVisibleto prevent webview move out of the view.da25f7353(#10242 by @amrbashir) Addinner_size_constraintsmethod onWindowBuildertrait andset_size_constraintsmethod onWindowDispatchtrait.
Dependencies
- Upgraded to
tauri-runtime@2.0.0-beta.21
[2.0.0-beta.20]
Bug Fixes
afb102c59(#10211 by @Legend-Master) Fix window edge not working after setting resizable false and decorated false dynamically
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.19 - Upgraded to
tauri-runtime@2.0.0-beta.20
[2.0.0-beta.19]
Bug Fixes
-
f29b78811(#9862) On Windows, handle resizing undecorated windows natively which improves performance and fixes a couple of annoyances with previous JS implementation:- No more cursor flickering when moving the cursor across an edge.
- Can resize from top even when
data-tauri-drag-regionelement exists there. - Upon starting rezing, clicks don't go through elements behind it so no longer accidental clicks.
What's Changed
669b9c6b5(#9621) Set the gtk application to the identifier defined intauri.conf.jsonto ensure the app uniqueness.
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.18 - Upgraded to
tauri-runtime@2.0.0-beta.19 d4c908cfb(#10048) Updatewindowscrate to version0.57andwebview2-comcrate to version0.31
[2.0.0-beta.18]
Enhancements
What's Changed
9ac930380(#9850) Emitcargo:rustc-check-cfginstruction so Cargo validates custom cfg attributes on Rust 1.80 (or nightly-2024-05-05).
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.17 - Upgraded to
tauri-runtime@2.0.0-beta.18
[2.0.0-beta.17]
Security fixes
d950ac123Only process IPC commands from the main frame.
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.16 - Upgraded to
tauri-runtime@2.0.0-beta.17
[2.0.0-beta.16]
New Features
Bug Fixes
What's Changed
Dependencies
- Upgraded to
tauri-runtime@2.0.0-beta.16 - Upgraded to
tauri-utils@2.0.0-beta.15
[2.0.0-beta.15]
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.14 - Upgraded to
tauri-runtime@2.0.0-beta.15
[2.0.0-beta.14]
New Features
477bb8cd4(#9297) AddApp/AppHandle/Window/Webview/WebviewWindow::cursor_positiongetter to get the current cursor position.
Dependencies
- Upgraded to
tauri-runtime@2.0.0-beta.14
[2.0.0-beta.13]
What's Changed
005fe8ce1(#9410) Fixclosable,maximizableandminimizableoptions not taking effect when used in tauri.conf.json or from JS APIs.
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.13 - Upgraded to
tauri-runtime@2.0.0-beta.13
[2.0.0-beta.12]
New Features
58a7a552d(#9378) Added theset_zoomfunction to the webview API.58a7a552d(#9378) Addzoom_hotkeys_enabledto enable browser native zoom controls on creating webviews.
Bug Fixes
2f20fdf1d(#9361) Fixes an issue causing compilation to fail for i686 and armv7 32-bit targets.4c2e7477e(#9309) Fix window centering not taking taskbar into account on Windows02eaf0787(#9428) Fixesinner_sizecrash when the window has no webviews.f22ea2998(#9465) Revert the fix for webview's visibility doesn't change with the app window on Windows as it caused white flashes on show/restore.
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.12 - Upgraded to
tauri-runtime@2.0.0-beta.12
[2.0.0-beta.11]
Bug Fixes
4c0c780e0(#2690) Fix window inner size evaluation on macOS.5bd47b446(#9246) Fix webview's visibility doesn't change with the app window
What's Changed
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.11 - Upgraded to
tauri-runtime@2.0.0-beta.11 06833f4fa(#9100) Upgraded towry@0.38.0
Breaking Changes
06833f4fa(#9100) The IPC handler closure now receives ahttp::Requestinstead of a String representing the request body.06833f4fa(#9100) RenameFileDroptoDragDropon structs, enums and enum variants. Also renamedfile_droptodrag_dropon fields and function names.
[2.0.0-beta.10]
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.10 - Upgraded to
tauri-runtime@2.0.0-beta.10
[2.0.0-beta.9]
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.9 - Upgraded to
tauri-runtime@2.0.0-beta.9
[2.0.0-beta.8]
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.8 - Upgraded to
tauri-runtime@2.0.0-beta.8
[2.0.0-beta.7]
New Features
Enhancements
46de49aaa(#9059) When using theunstablefeature flag,WebviewWindowwill internally use the child webview interface for flexibility.
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.7 - Upgraded to
tauri-runtime@2.0.0-beta.7
[2.0.0-beta.6]
Bug Fixes
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.6 - Upgraded to
tauri-runtime@2.0.0-beta.6
[2.0.0-beta.5]
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.5 - Upgraded to
tauri-runtime@2.0.0-beta.5
[2.0.0-beta.4]
New Features
Bug Fixes
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.4 - Upgraded to
tauri-runtime@2.0.0-beta.4 d75713ac(#8936) Upgraded towry@0.37.0
[2.0.0-beta.3]
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.3 - Upgraded to
tauri-runtime@2.0.0-beta.3
[2.0.0-beta.2]
What's Changed
76ce9f61(#3002) Enhance centering a newly created window, it will no longer jump to center after being visible.16e550ec(#8844) AddWebviewEvent,RunEvent::WebviewEventandWebviewDispatch::on_webview_event.
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.2 - Upgraded to
tauri-runtime@2.0.0-beta.2 2f55bfec(#8795) Updatewryto 0.36.
Breaking Changes
[2.0.0-beta.1]
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.1 - Upgraded to
tauri-runtime@2.0.0-beta.1
[2.0.0-beta.0]
New Features
af610232(#8710) AddedWindow::destroyto force close a window.c77b4032(#8280) Add multiwebview support behind theunstablefeature flag. SeeWindowBuilderandWebviewBuilderfor more information.00e15675(#8708) AddedRuntimeHandle::request_exitfunction.
Bug Fixes
What's Changed
9f8037c2(#8633) On Windows, fix decorated window not transparent initially until resized.9eaeb5a8(#8622) AddedWindowBuilder::transient_forand RenamedWindowBuilder::owner_windowtoWindowBuilder::ownerandWindowBuilder::parent_windowtoWindowBuilder::parent.7f033f6d(#8537) AddWindow::start_resize_draggingandResizeDirectionenum.6639a579(#8441) Added theWindowConfig::proxy_urlWebviewBuilder::proxy_url() / WebviewWindowBuilder::proxy_url()options when creating a webview.
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.0 - Upgraded to
tauri-runtime@2.0.0-beta.0 - Upgrated to
tao@0.25.
Breaking Changes
af610232(#8710)WindowDispatch::closenow triggers theCloseRequestedflow.9eaeb5a8(#8622) ChangedWindowBuilder::with_configto take a reference to aWindowConfiginstead of an owned value.
[1.0.0-alpha.9]
New Features
Enhancements
d621d343(#8607) Added tracing for window startup, plugins,Window::eval, events, IPC, updater and custom protocol request handlers behind thetracingfeature flag.
What's Changed
cb640c8e(#8393) FixRunEvent::WindowEvent(event: WindowEvent::FileDrop(FileDropEvent))never triggered and always prevent default OS behavior whendisable_file_drop_handleris not used.
Dependencies
- Upgraded to
tauri-utils@2.0.0-alpha.13 - Upgraded to
tauri-runtime@1.0.0-alpha.8
[1.0.0-alpha.8]
Dependencies
- Upgraded to
tauri-utils@2.0.0-alpha.12 - Upgraded to
tauri-runtime@1.0.0-alpha.7
[1.0.0-alpha.7]
Dependencies
- Upgraded to
tauri-runtime@1.0.0-alpha.6 - `` Update to wry v0.35.
[1.0.0-alpha.6]
Dependencies
- Upgraded to
tauri-utils@2.0.0-alpha.11 - Upgraded to
tauri-runtime@1.0.0-alpha.5
[1.0.0-alpha.5]
New Features
Enhancements
c6c59cf2Pull changes from Tauri 1.5 release.
Dependencies
- Upgraded to
tauri-utils@2.0.0-alpha.10 - Upgraded to
tauri-runtime@1.0.0-alpha.4 9580df1d(#8084) Upgradegtkto 0.18.c7c2507d(#8035) Updatewindowsto version0.51andwebview2-comto version0.279580df1d(#8084) Updated to wry@0.34, removing thedoxfeature flag.
[1.0.0-alpha.4]
New Features
c085adda(#8009) Addedset_progress_bartoWindow.c1ec0f15(#7933) AddedWindow::set_always_on_bottomand thealways_on_bottomoption when creating a window.880266a7(#8031) Bump the MSRV to 1.70.
Dependencies
- Upgraded to
tauri-runtime@1.0.0-alpha.3 - Upgraded to
tauri-utils@2.0.0-alpha.9
Breaking Changes
8b166e9b(#7949) Check if automation is enabled with theTAURI_WEBVIEW_AUTOMATIONenvironment variable instead ofTAURI_AUTOMATION.2558fab8(#7939) ChangedWebviewIdto be an alias foru32instead ofu64
[1.0.0-alpha.3]
Dependencies
- Upgraded to
tauri-utils@2.0.0-alpha.8 - Upgraded to
tauri-runtime@1.0.0-alpha.2
[1.0.0-alpha.2]
Bug Fixes
[1.0.0-alpha.1]
Enhancements
What's Changed
Dependencies
- Upgraded to
tauri-runtime@1.0.0-alpha.1
Breaking Changes
0d63732b(#7754)tauri-runtimeno longer implements its own HTTP types and relies on thehttpcrate instead.
[1.0.0-alpha.0]
New Features
7fb419c3(#7535) AddDispatch::default_vbox84c41597(#6394) Addedprimary_monitorandavailable_monitorstoRuntimeandRuntimeHandle.3b98141a(#3736) Added theOpenedvariant toRunEvent.2a000e15(#7235) Implement navigate method
Dependencies
- Upgraded to
tauri-runtime@1.0.0-alpha.0 - Upgraded to
tauri-utils@2.0.0-alpha.7
Breaking Changes
fbeb5b91(#7170) Removed thelinux-headersfeature (now always enabled) and addedlinux-protocol-body.7fb419c3(#7535)Dispatch::create_window,Runtime::create_windowandRuntimeHandle::create_windowhas been changed to accept a 3rd parameter which is a closure that takesRawWindowand to be executed right after the window is created and before the webview is added to the window.7fb419c3(#7535) System tray and menu related APIs and structs have all been removed and are now implemented in tauri outside of the runtime-space.7fb419c3(#7535)Runtime::newandRuntime::new_any_threadnow accept aRuntimeInitArgs.7fb419c3(#7535) Removedsystem-trayfeature flag
[0.13.0-alpha.6]
New Features
e0f0dce2(#6442) Added thewindow_effectsoption when creating a window andWindow::set_effectsto change it at runtime.
[0.13.0-alpha.5]
39f1b04f(#6943) Moved theeventJS APIs to a plugin.3188f376(#6883) Bump the MSRV to 1.65.cebd7526(#6728) Moved theclipboardfeature to its own plugin in the plugins-workspace repository.3f17ee82(#6737) Moved theglobal-shortcutfeature to its own plugin in the plugins-workspace repository.31444ac1(#6725) Updatewryto0.28
[0.13.0-alpha.4]
- Added
androidconfiguration object undertauri > bundle.
[0.13.0-alpha.3]
[0.13.0-alpha.2]
- Add
find_class,run_on_android_contextonRuntimeHandle. - Allow a wry plugin to be registered at runtime.
- Added the
shadowoption when creating a window andWindow::set_shadow. - Implemented
with_webviewon Android and iOS.
[0.13.0-alpha.1]
- Update gtk to 0.16.
- Bump the MSRV to 1.64.
- Update wry to 0.26.
[0.13.0-alpha.0]
- Support
with_webviewfor Android platform alowing execution of JNI code in context.
[0.14.5]
What's Changed
d42668ce(#9003) Fix panic during intialization on wayland when usingclipboardfeature, instead propagate the error during API usage.
[0.14.4]
Bug Fixes
24210735(#8117) Fixes a crash on macOS when accessing the windows map.510b6226(#8822) Add missingarboardfeature flag to prevent panics in wayland session.
[0.14.3]
Bug Fixes
0d0501cb(#8394) Usearboardinstead oftaoclipboard implementation to prevent a crash.b2f83f03(#8402) UseArcinstead ofRcto prevent crashes on macOS.
Dependencies
- Upgraded to
tauri-utils@1.5.2 - Upgraded to
tauri-runtime@0.14.2
[0.14.2]
Enhancements
5e05236b(#8289) Added tracing for window startup, plugins,Window::eval, events, IPC, updater and custom protocol request handlers behind thetracingfeature flag.
[0.14.1]
Enhancements
9aa34ada(#7645) Add setting to switch tohttp://<scheme>.localhost/for custom protocols on Windows.
Bug Fixes
Dependencies
- Upgraded to
tauri-utils@1.5.0 - Upgraded to
tauri-runtime@0.14.1
[0.14.0]
New Features
c4d6fb4b(#2353) Added themaximizable,minimizableandclosablemethods toWindowBuilder.c4d6fb4b(#2353) Addedset_maximizable,set_minimizable,set_closable,is_maximizable,is_minimizableandis_closablemethods to theDispatchtrait.000104bc(#6472) AddWindow::is_focusedgetter.
Enhancements
d2710e9d(#6944) Unpintime,ignore, andwinnowcrate versions. Developers now have to pin crates if needed themselves. A list of crates that need pinning to adhere to Tauri's MSRV will be visible in Tauri's GitHub workflow: https://github.com/tauri-apps/tauri/blob/dev/.github/workflows/test-core.yml#L85.
Bug Fixes
b41b57eb(#7105) Fix panics when registering an invalid global shortcuts or checking it is registered and return proper errors instead.
What's Changed
[0.13.0]
- Added the
additional_browser_argsoption when creating a window. - Added the
content_protectedoption when creating a window andWindow::set_content_protectedto change it at runtime. - Added
Builder::device_event_filterandApp::set_device_event_filtermethods. - Fixes tray events not being delivered.
- Add
is_minimized()window method. - Disable cursor mouse events on Linux.
- Bump minimum supported Rust version to 1.60.
- Pin raw-window-handle to 0.5.0 to keep MSRV.
- Add
titlegetter on window. - Added
TrayHandle::set_tooltipandSystemTray::with_tooltip. - Added window's
url()getter. - On Windows, change webview theme based on Window theme for more accurate
prefers-color-schemesupport. - On Windows, Fix missing
WindowEvent::FocusedinApp::runcallback. - Implement the webview navigation handler.
[0.12.3]
- Block remote URLs from accessing the IPC.
- 9c0593c33 feat(core): block remote URLs from accessing the IPC on 2023-04-12
[0.12.2]
- Fix compatibility with older Linux distributions.
- Update wry to 0.23.
- fdcd7733 chore(deps): update wry to 0.23 on 2022-12-08
[0.12.1]
- Fix
allowlist > app > show/hidealways disabled whenallowlist > app > all: false.
[0.12.0]
- Add
accept_first_mouseoption for macOS windows. - Disable automatic window tabbing on macOS when the
tabbing_identifieroption is not defined, the window is transparent or does not have decorations. - Drop the WebContext when the WebView is dropped.
- Readd the option to create an unfocused window via the
focusedmethod. Thefocusfunction has been deprecated. - Add
hidden_titleoption for macOS windows. - Custom protocol headers are now implemented on Linux when running on webkit2gtk 2.36 or above.
- Added
Runtime::show(),RuntimeHandle::show(),Runtime::hide(),RuntimeHandle::hide()for hiding/showing the entire application on macOS. - Fix regression in
SystemTray::with_menu_on_left_click - Added
tabbing_identifierto the window builder on macOS. - Add
title_bar_styleoption for macOS windows. - Fix regression introduce in tauri@1.1 which prevented removing tray icon when the app exits on Windows.
- Added methods to set the system tray title on macOS.
- Added the
user_agentoption when creating a window.
[0.11.2]
- Block remote URLs from accessing the IPC.
- 58ea0b452 feat(core): block remote URLs from accessing the IPC on 2023-04-12
[0.11.1]
- Add missing allowlist config for
set_cursor_grab,set_cursor_visible,set_cursor_iconandset_cursor_positionAPIs.
[0.11.0]
- Ignore window events with unknown IDs.
- 0668dd42 fix(tauri-runtime-wry): ignore events on unknown windows on 2022-08-29
- Implement theme APIs for Linux.
- Changed
windowsmap to be stored in aRefCellinstead of aMutex. - Added APIs to create a system tray at runtime.
- Update windows to 0.39.0 and webview2-com to 0.19.1.
[0.10.3]
- Block remote URLs from accessing the IPC.
- fa90214b0 feat(core): block remote URLs from accessing the IPC on 2023-04-12
[0.10.2]
- Disable drag-n-drop of tao based on
fileDropEnabledvalue. - Added option to disable tray menu on left click on macOS.
[0.10.1]
- Fixes a deadlock on the file drop handler.
- Send theme value only once on the getter function implementation on macOS.
- Fixes a deadlock when the window focus change on Windows.
[0.10.0]
- Implement
raw_window_handle::HasRawWindowHandleon Linux. - Moved the window and menu event listeners to the window struct.
- Refactored the
tauri-runtime-wryplugin interface. - Removed the
hwndandns_windowfunctions fromDispatchin favor ofraw_window_handle. - The theme API is now implemented on macOS 10.14+.
- Suppress unused variable warning in release builds.
- Update tao to 0.12 and wry to 0.19.
- Fixes deadlocks when using window setters in the main thread.
[0.9.0]
- Upgrade to
stable!
[0.8.1]
- Add
Menu::os_defaultwhich will create a menu filled with default menu items and submenus.
[0.8.0]
- Removed
TrayIconand renamedWindowIcontoIcon, a shared type for both icons.
[0.7.0]
- Breaking change: Removed the
gtk-trayandayatana-trayCargo features.
[0.6.0]
- Account the monitor position when centering a window.
- Update
windows-rsto0.37.0, which requires Rust 1.61.0+.
[0.5.2]
- Use the event loop proxy to create a window so it doesn't deadlock on Windows.
[0.5.1]
- Added the
pluginmethod to theWryruntime, allowing extensions to the event loop. - Update wry to 0.16.2 and webkit2gtk to 0.18.0.
[0.5.0]
- The file drop event payloads are now percent-decoded.
- Fixes a crash when using the menu with the inspector window focused on macOS. In this case the
window_idwill be the id of the first app window. - Fixes a freeze when calling
set_sizein the main thread on Windows. - Expose methods to access the underlying native handles of the webview.
[0.4.0]
- *Breaking change:: Added the
clipboardCargo feature. - Expose Window cursor APIs
set_cursor_grab,set_cursor_visible,set_cursor_iconandset_cursor_position. - Fixes a panic when using the
create_tao_windowAPI. - Fixes a panic when a menu event is triggered when all windows are minimized on macOS.
- Fixes a rendering issue when resizing the window with the devtools open.
- *Breaking change:: Added the
global-shortcutCargo feature. - Added
WindowEvent::ThemeChanged(theme). - Added
themegetter onWindow. - Added
themesetter to the WindowBuilder. - Create webview immediately when executed in the main thread.
[0.3.5]
- Fixes
WindowEvent::Destroyednot firing.
[0.3.4]
- Added
close_devtoolsandis_devtools_openAPIs to theDispatchtrait. - Emit
RunEvent::Exitontao::event::Event::LoopDestroyedinstead of afterRunEvent::ExitRequested. - Breaking change: The
MenuItem::Aboutvariant is now associated with a tuple value(String, AboutMetadata). - Support window parenting on macOS
- The file drop event is now part of the
WindowEventenum instead of a having a dedicated handler. - Breaking change: Use the dedicated
WindowEventenum onRunEvent. - Added
create_proxyto theRuntimeandRuntimeHandletraits. - Allow specifying a user event type for the event loop message.
- Use a random window id instead of
tao::window::WindowIdto not block the thread waiting for the event loop to process the window creation. - Update
wryto0.14andtaoto0.7. - Added the
WindowEvent::FileDropvariant.
[0.3.3]
- Fixes a deadlock on the
Focusedevent when the window is not visible. - Breaking change: Move
icoandpngparsing behindicon-icoandicon-pngCargo features. - Print a warning to stderr if the window transparency has been set to true but
macos-private-apiis not enabled.
[0.3.2]
- Fix requirements for
RuntimeHandle,ClipboardManager,GlobalShortcutHandleandTrayHandle.
[0.3.1]
- Change default value for the
freezePrototypeconfiguration tofalse.
[0.3.0]
- Fix
window.centerpanic when window size is bigger than screen size. - Enable non-session cookie persistence on Linux.
- Fixes a deadlock when creating a window from a menu event handler.
- Fixes
WindowEvent::FocusandWindowEvent::Blurevents not firing. - Use webview's inner_size instead of window's value to get the correct size on macOS.
- Reimplement
remove_system_trayon Windows to drop theSystemTrayto run its cleanup code. - Replace
WindowBuilder'shas_menuwithget_menu. - Fix empty header from CORS on Linux.
- The
run_returnAPI is now available on Linux. - Allow window, global shortcut and clipboard APIs to be called on the main thread.
- Change event loop callbacks definition to allow callers to move in mutable values.
- Breaking change: Add
macos-private-apifeature flag, enabled viatauri.conf.json > tauri > macOSPrivateApi. - Refactor
create_tao_windowAPI to returnWeak<Window>instead ofArc<Window>.- c1494b35 refactor: return Weak on create_tao_window on 2021-08-31
- Added
any_threadconstructor on theRuntimetrait (only possible on Linux and Windows). - Added
run_on_main_threadAPI onRuntimeHandle. - Breaking change: Renamed the
RPCinterface toIPC. - Added
open_devtoolsto theDispatchertrait. - The minimum Rust version is now
1.56. - Replace all of the
winapicrate references with thewindowscrate, and replacewebview2andwebview2-syswithwebview2-comandwebview2-com-sysbuilt with thewindowscrate. This goes along with updates to the TAO and WRYnextbranches. - Update the
windowscrate to 0.25.0, which comes with pre-built libraries. WRY and Tao can both reference the same types directly from thewindowscrate instead of sharing bindings inwebview2-com-sys. - This is a temporary fix of null pointer crash on
get_contentof web resource request. We will switch it back once upstream is updated. - Update wry to 0.13.
[0.2.1]
- Migrate to latest custom protocol allowing
Partial contentstreaming and Header parsing.
[0.2.0]
-
Fix blur/focus events being incorrect on Windows.
-
Add
ExitRequestedevent that allows preventing the app from exiting when all windows are closed, and anAppHandle.exit()function to exit the app manually. -
Update gtk and its related libraries to v0.14. This also remove requirements of
clangas build dependency. -
Implement
Debugon public API structs and enums. -
Fix the error "cannot find type MenuHash in this scope"
-
Panic when a dispatcher getter method (
Window,GlobalShortcutHandle,ClipboardManagerandMenuHandleAPIs) is called on the main thread. -
Remove menu feature flag since there's no package dependency need to be installed on any platform anymore.
-
Adds
ResumedandMainEventsClearedvariants to theRunEventenum. -
Adds
set_activation_policyAPI to theRuntimetrait (macOS only). -
Allow creation of empty Window with
create_tao_window()and management withsend_tao_window_event()on the AppHandler. -
- Support macOS tray icon template to adjust automatically based on taskbar color.
-
Images you mark as template images should consist of only black and clear colors. You can use the alpha channel in the image to adjust the opacity of black content, however.
-
426a6b49 feat(macOS): Implement tray icon template (#2322) on 2021-07-29
-
Add
Event::Readyon therun()callback. Triggered once when the event loop is ready. -
Add webdriver support to Tauri.
[0.1.4]
- Allow preventing window close when the user requests it.
- Fixes SVG loading on custom protocol.
- Fixes
centerandfocusnot being allowed intauri.conf.json > tauri > windowsand ignored inWindowBuilderWrapper. - Expose
gtk_windowgetter. - Remove a few locks requirement in tauri-runtime-wry
- Fix macOS high CPU usage.
- Bump
wry0.11 and fix focus integration to make it compatible with tao 0.4. Paramshas been removed, along with all the associated types on it. Functions that previously accepted those associated types now accept strings instead. Type that used a generic parameterParamsnow useRuntimeinstead. If you use thewryfeature, then types with aRuntimegeneric parameter should default toWry, letting you omit the explicit type and let the compiler infer it instead.
tauri:
- See
Paramsnote - If you were using
Paramsinside a function parameter or definition, all references to it have been replaced with a simple runtime that defaults toWry. If you are not using a custom runtime, just removeParamsfrom the definition of functions/items that previously took it. If you are using a custom runtime, you may need to pass the runtime type to these functions. - If you were using custom types for
Params(uncommon and if you don't understand you probably were not using it), all methods that were previously taking the custom type now takes anInto<String>or a&str. The types were already required to be string-able, so just make sure to convert it into a string before passing it in if this breaking change affects you.
tauri-macros:
- (internal) Added private
default_runtimeproc macro to allow us to give item definitions a custom runtime only when the specified feature is enabled.
tauri-runtime:
- See
Paramsnote - Removed
Params,MenuId,Tag,TagRef. - Added
menu::{MenuHash, MenuId, MenuIdRef}as type aliases for the internal type that menu types now use.- All previous menu items that had a
MenuIdgeneric now use the underlyingMenuIdtype without a generic.
- All previous menu items that had a
Runtime,RuntimeHandle, andDispatchhave no more generic parameter oncreate_window(...)and instead use theRuntimetype directlyRuntime::system_trayhas no moreMenuIdgeneric and uses the string basedSystemTraytype directly.- (internal)
CustomMenuItem::id_value()is now hashed on creation and exposed as theidfield with typeMenuHash.
tauri-runtime-wry:
- See
Paramsnote - update menu and runtime related types to the ones changed in
tauri-runtime.
tauri-utils:
Assets::getsignature has changed to take a&AssetKeyinstead ofimpl Into<AssetKey>to become trait object safe.- fd8fab50 refactor(core): remove
Paramsand replace with strings (#2191) on 2021-07-15
[0.1.3]
Windowis nowSend + Syncon Windows.
[0.1.2]
- Adds
clipboardAPIs (write and read text). - Fixes window event being emitted to all windows listeners.
- Panic on window getters usage on the main thread when the event loop is not running and document it.
- Adds
focusAPI to the WindowBuilder. - Adds support to PNG icons.
- Adds
is_decoratedgetter on Window. - Adds
is_resizablegetter on Window. - Adds
is_visiblegetter on Window. - Removes
imagedependency. For now only.icoicons on Windows are supported, and we'll implement other types on demand to optimize bundle size. - The
run_on_main_threadAPI now uses WRY's UserEvent, so it wakes the event loop. - Adds global shortcut interfaces.
- Adds
request_user_attentionAPI to theDispatchertrait. - Adds
fn run_iteration(macOS and Windows only) to the Runtime trait. - Adds
show_menu,hide_menuandis_menu_visibleAPIs to theDispatchertrait. - Adds
set_focusAPI on Window. - Adds
set_skip_taskbarAPI on Window. - Update
wryto v0.10.0 and replace the removeddispatch_scriptandevaluate_scriptmethods with the newevaluate_scriptmethod inhandle_event_loop. - Adds
skip_taskbarAPI to the WindowBuilder. - Adds
Window#centerandWindowBuilder#centerAPIs. - Adds
parent_windowandowner_windowsetters to theWindowBuilder(Windows only). - Adds window native handle getter (HWND on Windows).
[0.1.1]
- Fixes
system-trayfeature usage. - Fixes webview transparency.
[0.1.0]
- Breaking:
Contextfields are now private, and is expected to be created throughContext::new(...). All fields previously available throughContextare now public methods. tauri-runtime-wryinitial release.