tauri@1.0.0-beta.0
Ce contenu n’est pas encore disponible dans votre langue.
-
Breaking:
api::path::resolve_path()
andapi::path::app_dir()
now takes the config as first argument and thePackageInfo
as second argument. Breaking:api::path::app_dir()
now resolves to$\{configDir}/$\{config.tauri.bundle.identifier}
. -
Adds
manage
API to theBuilder
struct, which manages app state. -
Breaking: The
assets
field on thetauri::Context
struct is now aArc<impl Assets>
. -
Only commands with a
async fn
are executed on a separate task.#[command] fn command_name
runs on the main thread. -
Renamed the
command
API module toprocess
. -
Adds
options
argument to the shell command API (env
andcwd
configuration). -
Improves support for commands returning
Result
. -
Adds
status
andoutput
APIs to thetauri::api::process::Command
struct. -
The
create_window
API callback now takes two arguments: theWindowBuilder
and theWebviewAttributes
and must return a tuple containing both values. -
Reintroduce
csp
injection, configured ontauri.conf.json > tauri > security > csp
. -
Adds the default types used with
Builder::default()
to items that exposeParams
in their type. This allows you to skip specifying a generic parameter to types likeWindow<P>
if you use the default type. -
Change draggable region element detection from
drag-region
class todata-tauri-drag-region
attribute. -
Emit
tauri://resize
,tauri://move
,tauri://close-requested
,tauri://destroyed
,tauri://focus
,tauri://blur
andtauri://scale-change
events to the window. -
The event
emit
function payload type is nowimpl Serialize
instead ofOption<impl Serialize>
. -
Update
tauri-hotkey
to v0.1.2, fixing a compilation issue on 32-bit platforms. -
Implemented window menus APIs.
-
Added the `#[non_exhaustive] attribute where appropriate.
-
Notification.requestPermission()
now returns"denied"
when not allowlisted.IsNotificationPermissionGranted
returnsfalse
when not allowlisted. -
Refactored the
Plugin
traitinitialize
andextend_api
signatures.initialize
now takes theApp
as first argument, andextend_api
takes anInvoke
instead ofInvokeMessage
. This adds support to managed state on plugins. -
window.print()
now works on all platforms. -
Breaking:
Context
fields are now private, and is expected to be created throughContext::new(...)
. All fields previously available throughContext
are now public methods. -
Settings
is now serialized usingbincode
. -
The window management API was refactored: removed
setX
,setY
,setWidth
,setHeight
APIs, renamedresize
tosetSize
and the size and position APIs now allow defining both logical and physical values. -
Removed the
tcp
module fromtauri::api
. -
Removes the
with_window
attribute on thecommand
macro. Tauri now infers it using theCommandArg
trait. -
Move
restart_application
API fromapp
module toprocess
module. -
tauri-runtime
crate initial release. -
The
setup
Error type must beSend
. -
Simplify usage of app event and window label types. The following functions now accept references the
Tag
can be borrowed as. This means an&str
can now be accepted for functions likeWindow::emit
. This is a breaking change for the following items, which now need to take a reference. Additionally, type inference for&"event".into()
will no longer work, but&"event".to_string()
will. The solution for this is to now just pass"event"
becauseBorrow<str>
is implemented for the default event typeString
. -
Breaking:
Window::emit
now acceptsBorrow
for the event. -
Breaking:
Window::emit_others
now acceptsBorrow
for the event -
Breaking:
Window::trigger
now acceptsBorrow
for the event. -
Breaking:
Manager::emit_all
now acceptsBorrow
for the event. -
Breaking:
Manager::emit_to
now acceptsBorrow
for both the event and window label. -
Breaking:
Manager::trigger_global
now acceptsBorrow
for the event. -
Breaking:
Manager::get_window
now acceptsBorrow
for the window label. -
(internal):
trait tauri::runtime::tag::TagRef
helper for accepting tag references. Any time you want to accept a tag reference, that trait will handle requiring the reference to have all the necessary bounds, and generate errors when the exposed function doesn’t set a bound likeP::Event: Borrow<E>
. -
181e132 refactor(core): simplify usage of app event and window label types (#1623) on 2021-04-27
-
a755d23 refactor(core): more bounds for better errors from #1623 (#1632) on 2021-04-27
-
tauri-runtime-wry
initial release. -
Adds system tray support.
-
Rename
Attributes
toWindowBuilder
. -
The
Window#create_window
API now has the same signature asApp#create_window
. -
Adds
on_window_event
API to theWindow
struct. -
Adds window getters.
-
Update
wry
to v0.9.
© 2024 Tauri Contributors. CC-BY / MIT