42 KiB
Changelog
[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.