Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
23 KiB
Changelog
[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 theWebviewAttibutes
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.