77 KiB
Changelog
[2.10.0]
Bug Fixes
Dependencies
- Upgraded to
tauri-utils@2.8.2 75057c7c0(#14778 by @FabianLars) Breaking Change forwith_webviewusers: Updated webkit2gtk-rs crates tov2.0.2.
[2.9.2]
Dependencies
- Upgraded to
tauri-utils@2.8.1
[2.9.1]
Bug Fixes
4b6b8690a(#14347 by @FabianLars) Fixed an issue that caused docs.rs builds to fail. No user facing changes.
[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.
Dependencies
- Upgraded to
tauri-utils@2.8.0
[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.
Dependencies
- Upgraded to
tauri-utils@2.7.0
[2.7.1]
Dependencies
- Upgraded to
tauri-utils@2.6.0
[2.7.0]
Dependencies
- Upgraded to
tauri-utils@2.5.0 9c16eefa3(#13629) Update html5ever to 0.29 and kuchikiki to version 0.8.8-speedreader.
[2.6.0]
New Features
-
dd4f13ce4(#13185) MacOS: Addset_dock_visibilitymethod to support setting the visibility of the application in the dock. -
8cf662e34(#13076) - add API to run initialization scripts on all frames -WebviewBuilder::initialization_script_on_all_frames-WebviewWindowBuilder::initialization_script_on_all_frames-WebviewAttributes::initialization_script_on_all_frames -
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
Dependencies
[2.5.1]
Dependencies
- Upgraded to
tauri-utils@2.3.1
[2.5.0]
New Features
-
be2e6b85f(#12944 by @Simon-Laux) addWindow.is_always_on_top()andWebviewWindow.is_always_on_top() -
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. -
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-utils@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-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-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
129414faa(#11569 by @amrbashir) Fix webview not focused by default.
Dependencies
- Upgraded to
tauri-utils@2.1.0
[2.1.1]
Dependencies
- Upgraded to
tauri-utils@2.0.2
[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
[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
[2.0.0]
What's Changed
Dependencies
- Upgraded to
tauri-utils@2.0.0
[2.0.0-rc.13]
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
Dependencies
- Upgraded to
tauri-utils@2.0.0-rc.13
[2.0.0-rc.12]
Dependencies
- Upgraded to
tauri-utils@2.0.0-rc.12
[2.0.0-rc.11]
Dependencies
- Upgraded to
tauri-utils@2.0.0-rc.11
[2.0.0-rc.10]
Dependencies
- Upgraded to
tauri-utils@2.0.0-rc.10
[2.0.0-rc.9]
Dependencies
- Upgraded to
tauri-utils@2.0.0-rc.9
[2.0.0-rc.8]
Dependencies
- Upgraded to
tauri-utils@2.0.0-rc.8
[2.0.0-rc.7]
Dependencies
- Upgraded to
tauri-utils@2.0.0-rc.7
[2.0.0-rc.6]
What's Changed
f4d5241b3(#10731 by @amrbashir) Update documentation icon path.
Dependencies
- Upgraded to
tauri-utils@2.0.0-rc.6
[2.0.0-rc.5]
Dependencies
- Upgraded to
tauri-utils@2.0.0-rc.5
[2.0.0-rc.4]
Dependencies
- Upgraded to
tauri-utils@2.0.0-rc.4
[2.0.0-rc.3]
Dependencies
- Upgraded to
tauri-utils@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
[2.0.0-rc.1]
Dependencies
- Upgraded to
tauri-utils@2.0.0-rc.1
[2.0.0-rc.0]
Dependencies
- Upgraded to
tauri-utils@2.0.0-rc.0
[2.0.0-beta.21]
What's Changed
da25f7353(#10242 by @amrbashir) Addinner_size_constraintsmethod onWindowBuildertrait andset_size_constraintsmethod onWindowDispatchtrait.
[2.0.0-beta.20]
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.19
[2.0.0-beta.19]
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.18 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
[2.0.0-beta.17]
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.16
[2.0.0-beta.16]
New Features
What's Changed
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.15
[2.0.0-beta.15]
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.14
[2.0.0-beta.14]
New Features
477bb8cd4(#9297) AddApp/AppHandle/Window/Webview/WebviewWindow::cursor_positiongetter to get the current cursor position.
[2.0.0-beta.13]
Dependencies
- Upgraded to
tauri-utils@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.4973d73a2(#9386) Provide a basic zoom hotkey polyfill for non-Windows platforms
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.12
[2.0.0-beta.11]
What's Changed
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.11
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.06833f4fa(#9100) Movedwindow::dpimodule to the root of the crate.
[2.0.0-beta.10]
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.10
[2.0.0-beta.9]
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.9
[2.0.0-beta.8]
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.8
[2.0.0-beta.7]
New Features
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.7
Breaking Changes
d1e77acd8(#9011) Add a lifetime parameter forIcontype. Also changedrgbafield to beCow<'a, [u8]>
[2.0.0-beta.6]
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.6
[2.0.0-beta.5]
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.5
[2.0.0-beta.4]
New Features
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.4
[2.0.0-beta.3]
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.3
[2.0.0-beta.2]
What's Changed
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.2
Breaking Changes
[2.0.0-beta.1]
Dependencies
- Upgraded to
tauri-utils@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
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
Breaking Changes
9eaeb5a8(#8622) ChangedWindowBuilder::with_configto take a reference to aWindowConfiginstead of an owned value.
[1.0.0-alpha.8]
New Features
Dependencies
- Upgraded to
tauri-utils@2.0.0-alpha.13
[1.0.0-alpha.7]
Dependencies
- Upgraded to
tauri-utils@2.0.0-alpha.12
[1.0.0-alpha.6]
Dependencies
- `` Update dependencies.
[1.0.0-alpha.5]
Dependencies
- Upgraded to
tauri-utils@2.0.0-alpha.11
[1.0.0-alpha.4]
New Features
Enhancements
c6c59cf2Pull changes from Tauri 1.5 release.
Dependencies
- Upgraded to
tauri-utils@2.0.0-alpha.10 9580df1d(#8084) Upgradegtkto 0.18.c7c2507d(#8035) Updatewindowsto version0.51andwebview2-comto version0.27
[1.0.0-alpha.3]
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.
Enhancements
Dependencies
- Upgraded to
tauri-utils@2.0.0-alpha.9
Breaking Changes
2558fab8(#7939) AddedWindowEventIdtype and ChangedDispatch::on_window_eventreturn type fromUuidtoWindowEventId
[1.0.0-alpha.2]
Dependencies
- Upgraded to
tauri-utils@2.0.0-alpha.8
[1.0.0-alpha.1]
Enhancements
What's Changed
Breaking Changes
0d63732b(#7754)tauri-runtimeno longer implements its own HTTP types and relies on thehttpcrate instead.
[1.0.0-alpha.0]
New Features
4db363a0(#6589) Addedvisible_on_all_workspacesconfiguration option toWindowBuilder,Window, andWindowConfig.84c41597(#6394) Addedprimary_monitorandavailable_monitorstoRuntimeandRuntimeHandle.2a000e15(#7235) Addednavigatefunction toDispatchtrait.3b98141a(#3736) Added theOpenedvariant toRunEvent.
Dependencies
- Upgraded to
tauri-utils@2.0.0-alpha.7
Breaking Changes
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.3a2c3e74(#7306) ThePendingWindow#navigation_handlerclosure now receives a&Urlargument instead ofUrl.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.
[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. - 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.
[0.13.0-alpha.0]
- Parse
androidandiosTauri configuration files. - First mobile alpha release!
[0.14.2]
Dependencies
- Upgraded to
tauri-utils@1.5.2
[0.14.1]
Enhancements
9aa34ada(#7645) Add setting to switch tohttp://<scheme>.localhost/for custom protocols on Windows.
Dependencies
- Upgraded to
tauri-utils@1.5.0
[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
What's Changed
076e1a81(#7119) Useu32instead ofu64for js event listener idsff5e4dbb(#6794) implFrom<&WindowConfig>forWebviewAttributes.
[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. - Add
is_minimized()window method. - Bump minimum supported Rust version to 1.60.
- Pin raw-window-handle to 0.5.0 to keep MSRV.
- Added
navigation_handlerfield onPendingWindow. - 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.
[0.12.2]
- Block remote URLs from accessing the IPC.
- 9c0593c33 feat(core): block remote URLs from accessing the IPC on 2023-04-12
[0.12.1]
- Fix
allowlist > app > show/hidealways disabled whenallowlist > app > all: false.
[0.12.0]
- Readd the option to create an unfocused window via the
focusedmethod. Thefocusfunction has been deprecated. - Added
Runtime::show(),RuntimeHandle::show(),Runtime::hide(),RuntimeHandle::hide()for hiding/showing the entire application on macOS. - Added
tabbing_identifierto the window builder on macOS. - 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]
- 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]
- Added option to disable tray menu on left click on macOS.
[0.10.1]
- Expose
platform::windows_versionfunction.
[0.10.0]
- Added
fn newconstructors forPhysicalSize,LogicalSize,PhysicalPositionandLogicalPositionand missing conversion methods. - Implement
raw_window_handle::HasRawWindowHandleon Linux. - Removed the
hwndandns_windowfunctions fromDispatchin favor ofraw_window_handle. - The theme API is now implemented on macOS 10.14+.
[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]
- Added a config flag to bundle the media framework used by webkit2gtk
tauri.conf.json > tauri > bundle > appimage > bundleMediaFramework.
[0.6.0]
- Update
windows-rsto0.37.0, which requires Rust 1.61.0+.
[0.5.1]
- Fix
.mjsnot being recognised as a file extension for JavaScript files (text/javascript).
[0.5.0]
- Expose methods to access the underlying native handles of the webview.
[0.4.0]
- The
AboutMetadatastring setters now takeimpl Into<String>.- b14aa896 feat(core): improve
AboutMetadatasetters on 2022-03-29
- b14aa896 feat(core): improve
- *Breaking change:: Added the
clipboardCargo feature. - Expose Window cursor APIs
set_cursor_grab,set_cursor_visible,set_cursor_iconandset_cursor_position. - *Breaking change:: Added the
global-shortcutCargo feature. - Added
WindowEvent::ThemeChanged(theme). - Added
themegetter onWindow. - Added
themesetter to the WindowBuilder.
[0.3.4]
- Added
close_devtoolsandis_devtools_openAPIs to theDispatchtrait. - 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. - Force
Errorboxed errors to beSync. - Breaking change: Move the
FileDropEventstruct to thewindowmodule. - Allow specifying a user event type for the event loop message.
- Added the
WindowEvent::FileDropvariant.
[0.3.3]
- Breaking change: Move
icoandpngparsing behindicon-icoandicon-pngCargo features. - The
PendingWindow::newandPendingWindow::with_configfunctions now returnResult<Self>validating the window label.
[0.3.2]
- Fix requirements for
RuntimeHandle,ClipboardManager,GlobalShortcutHandleandTrayHandle.
[0.3.1]
- Change default value for the
freezePrototypeconfiguration tofalse.
[0.3.0]
- Replace
WindowBuilder'shas_menuwithget_menu. - The
run_returnAPI is now available on Linux. - Add
Menu::with_itemsconstructor, taking an iterator ofMenuEntry. - Change event loop callbacks definition to allow callers to move in mutable values.
- 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. - The window label is now validated and must be alphanumeric, resulting in a panic if it isn't.
- Added
clipboardfield on theWebviewAttributesstruct, which must be set totrueto enable clipboard access on the webview. - 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.
[0.2.1]
- Breaking change: Removed
register_uri_scheme_protocolfrom theWebviewAttributesstruct and renamedregister_global_uri_scheme_protocoltoregister_uri_scheme_protocolon theBuilderstruct, which now takes aFn(&AppHandle, &http::Request) -> http::Responseclosure. - 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. -
Fixes minimum window height being used as maximum height.
-
Update gtk and its related libraries to v0.14. This also remove requirements of
clangas build dependency. -
Implement
Debugon public API structs and enums. -
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.
[0.1.4]
- Allow preventing window close when the user requests it.
- Expose
gtk_windowgetter. 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). - Adds
focusAPI to the WindowBuilder. - Adds
is_decoratedgetter on Window. - Adds
is_resizablegetter on Window. - Adds
is_visiblegetter on Window. - Adds
acceleratormethod to theCustomMenuItemstruct to define a keyboard shortcut for the menu item. - 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. - 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.
[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-runtimecrate initial release.