Co-authored-by: FabianLars <FabianLars@users.noreply.github.com>
61 KiB
Changelog
[2.0.0-beta.21]
What's Changed
da25f7353
(#10242 by @amrbashir) Addinner_size_constraints
method onWindowBuilder
trait andset_size_constraints
method onWindowDispatch
trait.
[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) Updatewindows
crate to version0.57
andwebview2-com
crate to version0.31
[2.0.0-beta.18]
Enhancements
What's Changed
9ac930380
(#9850) Emitcargo:rustc-check-cfg
instruction 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_position
getter 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_zoom
function to the webview API.58a7a552d
(#9378) Addzoom_hotkeys_enabled
to 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::Request
instead of a String representing the request body.06833f4fa
(#9100) RenameFileDrop
toDragDrop
on structs, enums and enum variants. Also renamedfile_drop
todrag_drop
on fields and function names.06833f4fa
(#9100) Movedwindow::dpi
module 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 forIcon
type. Also changedrgba
field 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::destroy
to force close a window.c77b4032
(#8280) Add multiwebview support behind theunstable
feature flag. SeeWindowBuilder
andWebviewBuilder
for more information.00e15675
(#8708) AddedRuntimeHandle::request_exit
function.
Bug Fixes
What's Changed
9eaeb5a8
(#8622) AddedWindowBuilder::transient_for
and RenamedWindowBuilder::owner_window
toWindowBuilder::owner
andWindowBuilder::parent_window
toWindowBuilder::parent
.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-utils@2.0.0-beta.0
Breaking Changes
9eaeb5a8
(#8622) ChangedWindowBuilder::with_config
to take a reference to aWindowConfig
instead 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
c6c59cf2
Pull changes from Tauri 1.5 release.
Dependencies
- Upgraded to
tauri-utils@2.0.0-alpha.10
9580df1d
(#8084) Upgradegtk
to 0.18.c7c2507d
(#8035) Updatewindows
to version0.51
andwebview2-com
to version0.27
[1.0.0-alpha.3]
New Features
c085adda
(#8009) Addedset_progress_bar
toWindow
.c1ec0f15
(#7933) AddedWindow::set_always_on_bottom
and thealways_on_bottom
option 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) AddedWindowEventId
type and ChangedDispatch::on_window_event
return type fromUuid
toWindowEventId
[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-runtime
no longer implements its own HTTP types and relies on thehttp
crate instead.
[1.0.0-alpha.0]
New Features
4db363a0
(#6589) Addedvisible_on_all_workspaces
configuration option toWindowBuilder
,Window
, andWindowConfig
.84c41597
(#6394) Addedprimary_monitor
andavailable_monitors
toRuntime
andRuntimeHandle
.2a000e15
(#7235) Addednavigate
function toDispatch
trait.3b98141a
(#3736) Added theOpened
variant toRunEvent
.
Dependencies
- Upgraded to
tauri-utils@2.0.0-alpha.7
Breaking Changes
7fb419c3
(#7535)Dispatch::create_window
,Runtime::create_window
andRuntimeHandle::create_window
has been changed to accept a 3rd parameter which is a closure that takesRawWindow
and 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_handler
closure now receives a&Url
argument instead ofUrl
.7fb419c3
(#7535)Runtime::new
andRuntime::new_any_thread
now accept aRuntimeInitArgs
.7fb419c3
(#7535) Removedsystem-tray
feature flag
[0.13.0-alpha.6]
New Features
e0f0dce2
(#6442) Added thewindow_effects
option when creating a window andWindow::set_effects
to change it at runtime.
[0.13.0-alpha.5]
39f1b04f
(#6943) Moved theevent
JS APIs to a plugin.3188f376
(#6883) Bump the MSRV to 1.65.cebd7526
(#6728) Moved theclipboard
feature to its own plugin in the plugins-workspace repository.3f17ee82
(#6737) Moved theglobal-shortcut
feature to its own plugin in the plugins-workspace repository.
[0.13.0-alpha.4]
- Added
android
configuration object undertauri > bundle
.
[0.13.0-alpha.3]
[0.13.0-alpha.2]
- Add
find_class
,run_on_android_context
onRuntimeHandle
. - Added the
shadow
option when creating a window andWindow::set_shadow
. - Implemented
with_webview
on 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
android
andios
Tauri 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
,minimizable
andclosable
methods toWindowBuilder
.c4d6fb4b
(#2353) Addedset_maximizable
,set_minimizable
,set_closable
,is_maximizable
,is_minimizable
andis_closable
methods to theDispatch
trait.000104bc
(#6472) AddWindow::is_focused
getter.
Enhancements
d2710e9d
(#6944) Unpintime
,ignore
, andwinnow
crate 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) Useu32
instead ofu64
for js event listener idsff5e4dbb
(#6794) implFrom<&WindowConfig>
forWebviewAttributes
.
[0.13.0]
- Added the
additional_browser_args
option when creating a window. - Added the
content_protected
option when creating a window andWindow::set_content_protected
to change it at runtime. - Added
Builder::device_event_filter
andApp::set_device_event_filter
methods. - 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_handler
field onPendingWindow
. - Add
title
getter on window. - Added
TrayHandle::set_tooltip
andSystemTray::with_tooltip
. - Added window's
url()
getter. - On Windows, change webview theme based on Window theme for more accurate
prefers-color-scheme
support.
[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/hide
always disabled whenallowlist > app > all: false
.
[0.12.0]
- Readd the option to create an unfocused window via the
focused
method. Thefocus
function has been deprecated. - Added
Runtime::show()
,RuntimeHandle::show()
,Runtime::hide()
,RuntimeHandle::hide()
for hiding/showing the entire application on macOS. - Added
tabbing_identifier
to the window builder on macOS. - Added methods to set the system tray title on macOS.
- Added the
user_agent
option 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_icon
andset_cursor_position
APIs.
[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_version
function.
[0.10.0]
- Added
fn new
constructors forPhysicalSize
,LogicalSize
,PhysicalPosition
andLogicalPosition
and missing conversion methods. - Implement
raw_window_handle::HasRawWindowHandle
on Linux. - Removed the
hwnd
andns_window
functions fromDispatch
in 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_default
which will create a menu filled with default menu items and submenus.
[0.8.0]
- Removed
TrayIcon
and renamedWindowIcon
toIcon
, 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-rs
to0.37.0
, which requires Rust 1.61.0+.
[0.5.1]
- Fix
.mjs
not 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
AboutMetadata
string setters now takeimpl Into<String>
.- b14aa896 feat(core): improve
AboutMetadata
setters on 2022-03-29
- b14aa896 feat(core): improve
- *Breaking change:: Added the
clipboard
Cargo feature. - Expose Window cursor APIs
set_cursor_grab
,set_cursor_visible
,set_cursor_icon
andset_cursor_position
. - *Breaking change:: Added the
global-shortcut
Cargo feature. - Added
WindowEvent::ThemeChanged(theme)
. - Added
theme
getter onWindow
. - Added
theme
setter to the WindowBuilder.
[0.3.4]
- Added
close_devtools
andis_devtools_open
APIs to theDispatch
trait. - Breaking change: The
MenuItem::About
variant is now associated with a tuple value(String, AboutMetadata)
. - Support window parenting on macOS
- The file drop event is now part of the
WindowEvent
enum instead of a having a dedicated handler. - Breaking change: Use the dedicated
WindowEvent
enum onRunEvent
. - Added
create_proxy
to theRuntime
andRuntimeHandle
traits. - Force
Error
boxed errors to beSync
. - Breaking change: Move the
FileDropEvent
struct to thewindow
module. - Allow specifying a user event type for the event loop message.
- Added the
WindowEvent::FileDrop
variant.
[0.3.3]
- Breaking change: Move
ico
andpng
parsing behindicon-ico
andicon-png
Cargo features. - The
PendingWindow::new
andPendingWindow::with_config
functions now returnResult<Self>
validating the window label.
[0.3.2]
- Fix requirements for
RuntimeHandle
,ClipboardManager
,GlobalShortcutHandle
andTrayHandle
.
[0.3.1]
- Change default value for the
freezePrototype
configuration tofalse
.
[0.3.0]
- Replace
WindowBuilder
'shas_menu
withget_menu
. - The
run_return
API is now available on Linux. - Add
Menu::with_items
constructor, taking an iterator ofMenuEntry
. - Change event loop callbacks definition to allow callers to move in mutable values.
- Added
any_thread
constructor on theRuntime
trait (only possible on Linux and Windows). - Added
run_on_main_thread
API onRuntimeHandle
. - Breaking change: Renamed the
RPC
interface toIPC
. - Added
open_devtools
to theDispatcher
trait. - 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
clipboard
field on theWebviewAttributes
struct, which must be set totrue
to enable clipboard access on the webview. - Replace all of the
winapi
crate references with thewindows
crate, and replacewebview2
andwebview2-sys
withwebview2-com
andwebview2-com-sys
built with thewindows
crate. This goes along with updates to the TAO and WRYnext
branches. - Update the
windows
crate to 0.25.0, which comes with pre-built libraries. WRY and Tao can both reference the same types directly from thewindows
crate instead of sharing bindings inwebview2-com-sys
.
[0.2.1]
- Breaking change: Removed
register_uri_scheme_protocol
from theWebviewAttributes
struct and renamedregister_global_uri_scheme_protocol
toregister_uri_scheme_protocol
on theBuilder
struct, which now takes aFn(&AppHandle, &http::Request) -> http::Response
closure. - Migrate to latest custom protocol allowing
Partial content
streaming and Header parsing.
[0.2.0]
-
Fix blur/focus events being incorrect on Windows.
-
Add
ExitRequested
event 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
clang
as build dependency. -
Implement
Debug
on public API structs and enums. -
Panic when a dispatcher getter method (
Window
,GlobalShortcutHandle
,ClipboardManager
andMenuHandle
APIs) 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
Resumed
andMainEventsCleared
variants to theRunEvent
enum. -
Adds
set_activation_policy
API to theRuntime
trait (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::Ready
on therun()
callback. Triggered once when the event loop is ready.
[0.1.4]
- Allow preventing window close when the user requests it.
- Expose
gtk_window
getter. Params
has 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 parameterParams
now useRuntime
instead. If you use thewry
feature, then types with aRuntime
generic parameter should default toWry
, letting you omit the explicit type and let the compiler infer it instead.
tauri
:
- See
Params
note - If you were using
Params
inside 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 removeParams
from 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_runtime
proc macro to allow us to give item definitions a custom runtime only when the specified feature is enabled.
tauri-runtime
:
- See
Params
note - 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
MenuId
generic now use the underlyingMenuId
type without a generic.
- All previous menu items that had a
Runtime
,RuntimeHandle
, andDispatch
have no more generic parameter oncreate_window(...)
and instead use theRuntime
type directlyRuntime::system_tray
has no moreMenuId
generic and uses the string basedSystemTray
type directly.- (internal)
CustomMenuItem::id_value()
is now hashed on creation and exposed as theid
field with typeMenuHash
.
tauri-runtime-wry
:
- See
Params
note - update menu and runtime related types to the ones changed in
tauri-runtime
.
tauri-utils
:
Assets::get
signature has changed to take a&AssetKey
instead ofimpl Into<AssetKey>
to become trait object safe.- fd8fab50 refactor(core): remove
Params
and replace with strings (#2191) on 2021-07-15
[0.1.3]
Window
is nowSend + Sync
on Windows.
[0.1.2]
- Adds
clipboard
APIs (write and read text). - Adds
focus
API to the WindowBuilder. - Adds
is_decorated
getter on Window. - Adds
is_resizable
getter on Window. - Adds
is_visible
getter on Window. - Adds
accelerator
method to theCustomMenuItem
struct to define a keyboard shortcut for the menu item. - Adds global shortcut interfaces.
- Adds
request_user_attention
API to theDispatcher
trait. - Adds
fn run_iteration
(macOS and Windows only) to the Runtime trait. - Adds
show_menu
,hide_menu
andis_menu_visible
APIs to theDispatcher
trait. - Adds
set_focus
API on Window. - Adds
set_skip_taskbar
API on Window. - Adds
skip_taskbar
API to the WindowBuilder. - Adds
Window#center
andWindowBuilder#center
APIs. - Adds
parent_window
andowner_window
setters to theWindowBuilder
(Windows only). - Adds window native handle getter (HWND on Windows).
[0.1.1]
- Fixes
system-tray
feature usage.
[0.1.0]
- Breaking:
Context
fields are now private, and is expected to be created throughContext::new(...)
. All fields previously available throughContext
are now public methods. tauri-runtime
crate initial release.