tauri/core/tauri-runtime/CHANGELOG.md
github-actions[bot] 3522fbd78e
Apply Version Updates From Current Changes (#10561)
* apply version updates

* fix versions

---------

Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-08-16 23:39:49 -03:00

61 KiB

Changelog

[2.0.0-rc.3]

Dependencies

[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) Add inner_size_constraints method on WindowBuilder trait and set_size_constraints method on WindowDispatch 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) Update windows crate to version 0.57 and webview2-com crate to version 0.31

[2.0.0-beta.18]

Enhancements

What's Changed

  • 9ac930380(#9850) Emit cargo: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

  • 78839b6d2(#4865) Add RunEvent::Reopen for handle click on dock icon on macOS.

What's Changed

  • 783ef0f2d(#9647) Changed WebviewDispatch::url getter to return a result.

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) Add App/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 the set_zoom function to the webview API.
  • 58a7a552d(#9378) Add zoom_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 a http::Request instead of a String representing the request body.
  • 06833f4fa(#9100) Rename FileDrop to DragDrop on structs, enums and enum variants. Also renamed file_drop to drag_drop on fields and function names.
  • 06833f4fa(#9100) Moved window::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 for Icon type. Also changed rgba field to be Cow<'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

  • fdcaf935(#8939) Added the reparent function to the webview API.

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

  • 16e550ec(#8844) Add WebviewEvent, RunEvent::WebviewEvent and WebviewDispatch::on_webview_event.

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) Added Window::destroy to force close a window.
  • c77b4032(#8280) Add multiwebview support behind the unstable feature flag. See WindowBuilder and WebviewBuilder for more information.
  • 00e15675(#8708) Added RuntimeHandle::request_exit function.

Bug Fixes

  • 95da1a27(#8713) Fix calling set_activation_policy when the event loop is running.

What's Changed

  • 9eaeb5a8(#8622) Added WindowBuilder::transient_for and Renamed WindowBuilder::owner_window to WindowBuilder::owner and WindowBuilder::parent_window to WindowBuilder::parent.
  • 7f033f6d(#8537) Add Window::start_resize_dragging and ResizeDirection enum.
  • 6639a579(#8441) Added the WindowConfig::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) Changed WindowBuilder::with_config to take a reference to a WindowConfig instead of an owned value.

[1.0.0-alpha.8]

New Features

  • 29ced5ce(#8159) Added download event closure via PendingWindow::download_handler.

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) Upgrade gtk to 0.18.
  • c7c2507d(#8035) Update windows to version 0.51 and webview2-com to version 0.27

[1.0.0-alpha.3]

New Features

  • c085adda(#8009) Added set_progress_bar to Window.
  • c1ec0f15(#7933) Added Window::set_always_on_bottom and the always_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) Added WindowEventId type and Changed Dispatch::on_window_event return type from Uuid to WindowEventId

[1.0.0-alpha.2]

Dependencies

  • Upgraded to tauri-utils@2.0.0-alpha.8

[1.0.0-alpha.1]

Enhancements

  • 0d63732b(#7754) Changed custom protocol closure type to enable asynchronous usage.

What's Changed

  • 6177150b(#7601) Changed FileDropEvent to include drop and hover position.

Breaking Changes

  • 0d63732b(#7754) tauri-runtime no longer implements its own HTTP types and relies on the http crate instead.

[1.0.0-alpha.0]

New Features

  • 4db363a0(#6589) Added visible_on_all_workspaces configuration option to WindowBuilder, Window, and WindowConfig.
  • 84c41597(#6394) Added primary_monitor and available_monitors to Runtime and RuntimeHandle.
  • 2a000e15(#7235) Added navigate function to Dispatch trait.
  • 3b98141a(#3736) Added the Opened variant to RunEvent.

Dependencies

  • Upgraded to tauri-utils@2.0.0-alpha.7

Breaking Changes

  • 7fb419c3(#7535) Dispatch::create_window, Runtime::create_window and RuntimeHandle::create_window has been changed to accept a 3rd parameter which is a closure that takes RawWindow 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) The PendingWindow#navigation_handler closure now receives a &Url argument instead of Url.
  • 7fb419c3(#7535) Runtime::new and Runtime::new_any_thread now accept a RuntimeInitArgs.
  • 7fb419c3(#7535) Removed system-tray feature flag

[0.13.0-alpha.6]

New Features

  • e0f0dce2(#6442) Added the window_effects option when creating a window and Window::set_effects to change it at runtime.

[0.13.0-alpha.5]

  • 39f1b04f(#6943) Moved the event JS APIs to a plugin.
  • 3188f376(#6883) Bump the MSRV to 1.65.
  • cebd7526(#6728) Moved the clipboard feature to its own plugin in the plugins-workspace repository.
  • 3f17ee82(#6737) Moved the global-shortcut feature to its own plugin in the plugins-workspace repository.

[0.13.0-alpha.4]

  • Added android configuration object under tauri > bundle.
    • Bumped due to a bump in tauri-utils.
    • db4c9dc6 feat(core): add option to configure Android's minimum SDK version (#6651) on 2023-04-07

[0.13.0-alpha.3]

  • Pull changes from Tauri 1.3 release.
    • on undefined

[0.13.0-alpha.2]

  • Add find_class, run_on_android_context on RuntimeHandle.
    • 05dad087 feat: initial work for iOS plugins (#6205) on 2023-02-11
  • Added the shadow option when creating a window and Window::set_shadow.
  • Implemented with_webview on Android and iOS.
    • 05dad087 feat: initial work for iOS plugins (#6205) on 2023-02-11

[0.13.0-alpha.1]

  • Update gtk to 0.16.
  • Bump the MSRV to 1.64.

[0.13.0-alpha.0]

  • Parse android and ios Tauri configuration files.
    • Bumped due to a bump in tauri-utils.
    • b3a3afc7 feat(core): detect android and ios platform configuration files (#4997) on 2022-08-22
  • First mobile alpha release!
    • Bumped due to a bump in tauri-utils.
    • fa3a1098 feat(ci): prepare 2.0.0-alpha.0 (#5786) on 2022-12-08

[0.14.2]

Dependencies

  • Upgraded to tauri-utils@1.5.2

[0.14.1]

Enhancements

  • 9aa34ada(#7645) Add setting to switch to http://<scheme>.localhost/ for custom protocols on Windows.

Dependencies

  • Upgraded to tauri-utils@1.5.0

[0.14.0]

New Features

  • c4d6fb4b(#2353) Added the maximizable, minimizable and closable methods to WindowBuilder.
  • c4d6fb4b(#2353) Added set_maximizable, set_minimizable, set_closable, is_maximizable, is_minimizable and is_closable methods to the Dispatch trait.
  • 000104bc(#6472) Add Window::is_focused getter.

Enhancements

Bug Fixes

  • 2b487c94(#7012) Fixes typo in CursorIcon deserialization of the ZoomIn variant.

What's Changed

  • 076e1a81(#7119) Use u32 instead of u64 for js event listener ids
  • ff5e4dbb(#6794) impl From<&WindowConfig> for WebviewAttributes.

[0.13.0]

  • Added the additional_browser_args option when creating a window.
    • 3dc38b15 feat(core): expose additional_browser_args to window config (fix: #5757) (#5799) on 2022-12-14
  • Added the content_protected option when creating a window and Window::set_content_protected to change it at runtime.
  • Added Builder::device_event_filter and App::set_device_event_filter methods.
    • 73fd60ee expose set_device_event_filter in tauri (#5562) on 2022-12-13
  • Add is_minimized() window method.
  • Bump minimum supported Rust version to 1.60.
    • 5fdc616d feat: Use the zbus-backed of notify-rust (#6332) on 2023-03-31
  • Pin raw-window-handle to 0.5.0 to keep MSRV.
    • c46c09f3 fix(deps): pin raw-window-handle to 0.5.0 (#6480) on 2023-03-17
  • Added navigation_handler field on PendingWindow.
    • 3f35b452 Expose wry navigation_handler via WindowBuilder closes #4080 (#5686) on 2022-12-27
  • Add title getter on window.
  • Added TrayHandle::set_tooltip and SystemTray::with_tooltip.
    • 2265e097 feat(windows): implement with_tooltip (#5938) on 2023-01-01
  • Added window's url() getter.
  • On Windows, change webview theme based on Window theme for more accurate prefers-color-scheme support.
    • 7a8d570d fix: sync webview theme with window theme on Windows, closes #5802 (#5874) on 2022-12-27

[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 when allowlist > app > all: false.
    • Bumped due to a bump in tauri-utils.
    • bb251087 fix(core): extend allowlist with app's allowlist, closes #5650 (#5652) on 2022-11-18

[0.12.0]

  • Readd the option to create an unfocused window via the focused method. The focus function has been deprecated.
    • 4036e15f feat(core): reimplement window initial focus flag, closes #5120 (#5338) on 2022-10-08
  • Added Runtime::show(), RuntimeHandle::show(), Runtime::hide(), RuntimeHandle::hide() for hiding/showing the entire application on macOS.
    • 39bf895b feat(macOS): Add application show and hide methods (#3689) on 2022-10-03
  • Added tabbing_identifier to the window builder on macOS.
  • Added methods to set the system tray title on macOS.
    • 8f1ace77 feat: expose set_title for MacOS tray (#5182) on 2022-09-30
  • Added the user_agent option when creating a window.
    • a6c94119 feat(core): expose user_agent to window config (#5317) on 2022-10-02

[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 and set_cursor_position APIs.
    • Bumped due to a bump in tauri-utils.
    • c764408d fix: Add missing allowlist config for cursor apis, closes #5207 (#5211) on 2022-09-16

[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.
    • e6d9b670 refactor: remove unneeded focus code (#5065) on 2022-09-03

[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.
    • f8a3becb feat(core): add option to disable tray menu on left click, closes #4584 (#4587) on 2022-07-05

[0.10.1]

  • Expose platform::windows_version function.
    • Bumped due to a bump in tauri-utils.
    • bf764e83 feat(utils): expose windows_version function (#4534) on 2022-06-30

[0.10.0]

  • Added fn new constructors for PhysicalSize, LogicalSize, PhysicalPosition and LogicalPosition and missing conversion methods.
    • c7d13a1c feat(core): add missing methods to the dpi module (#4393) on 2022-06-19
  • Implement raw_window_handle::HasRawWindowHandle on Linux.
    • 3efbc67f feat: implement raw_window_handle on Linux (#4469) on 2022-06-26
  • Removed the hwnd and ns_window functions from Dispatch in favor of raw_window_handle.
    • 3efbc67f feat: implement raw_window_handle on Linux (#4469) on 2022-06-26
  • The theme API is now implemented on macOS 10.14+.
    • 6d94ce42 feat(core): theme is now implemented on macOS (#4380) on 2022-06-17

[0.9.0]

  • Upgrade to stable!
    • Bumped due to a bump in tauri-utils.
    • f4bb30cc feat(covector): prepare for v1 (#4351) on 2022-06-15

[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 renamed WindowIcon to Icon, a shared type for both icons.
    • 4ce8e228 refactor(core): use Icon for tray icons (#4342) on 2022-06-14

[0.7.0]

  • Added a config flag to bundle the media framework used by webkit2gtk tauri.conf.json > tauri > bundle > appimage > bundleMediaFramework.
    • Bumped due to a bump in tauri-utils.
    • d335fae9 feat(bundler): bundle additional gstreamer files, closes #4092 (#4271) on 2022-06-10

[0.6.0]

  • Update windows-rs to 0.37.0, which requires Rust 1.61.0+.
    • 2326be39 feat(core): update windows-rs to 0.37.0 (#4199) on 2022-05-24

[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.
    • c82b4761 feat(core): expose with_webview API to access the platform webview (#4058) on 2022-05-04

[0.4.0]

  • The AboutMetadata string setters now take impl Into<String>.
    • b14aa896 feat(core): improve AboutMetadata setters on 2022-03-29
  • *Breaking change:: Added the clipboard Cargo feature.
    • 24e4ff20 refactor(core): add clipboard Cargo feature, enhancing binary size (#3957) on 2022-04-24
  • Expose Window cursor APIs set_cursor_grab, set_cursor_visible, set_cursor_icon and set_cursor_position.
  • *Breaking change:: Added the global-shortcut Cargo feature.
    • e11878bc refactor(core): add global-shortcut Cargo feature, enhancing binary size (#3956) on 2022-04-24
  • Added WindowEvent::ThemeChanged(theme).
  • Added theme getter on Window.
  • Added theme setter to the WindowBuilder.

[0.3.4]

  • Added close_devtools and is_devtools_open APIs to the Dispatch trait.
  • Breaking change: The MenuItem::About variant is now associated with a tuple value (String, AboutMetadata).
    • 5fb74332 chore(deps): update wry to 0.14, tao to 0.7 (#3790) on 2022-03-28
  • 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 on RunEvent.
    • edad9f4f refactor(core): add RunEvent::WindowEvent (#3793) on 2022-03-28
  • Added create_proxy to the Runtime and RuntimeHandle traits.
    • 5d538ec2 refactor(core): use the event loop proxy to send updater events (#3687) on 2022-03-15
  • Force Error boxed errors to be Sync.
    • da1e8793 feat(core): improve and cleanup the Error enum (#3748) on 2022-03-22
  • Breaking change: Move the FileDropEvent struct to the window module.
  • Allow specifying a user event type for the event loop message.
    • 5d538ec2 refactor(core): use the event loop proxy to send updater events (#3687) on 2022-03-15
  • Added the WindowEvent::FileDrop variant.

[0.3.3]

  • Breaking change: Move ico and png parsing behind icon-ico and icon-png Cargo features.
    • 8c935872 refactor(core): move png and ico behind Cargo features (#3588) on 2022-03-05
  • The PendingWindow::new and PendingWindow::with_config functions now return Result<Self> validating the window label.
    • 64e00542 refactor(core): do not panic on invalid window labels,#3544 (#3596) on 2022-03-03

[0.3.2]

  • Fix requirements for RuntimeHandle, ClipboardManager, GlobalShortcutHandle and TrayHandle.
    • 84895a9c fix(runtime): trait requirements (#3489) on 2022-02-17

[0.3.1]

  • Change default value for the freezePrototype configuration to false.
    • Bumped due to a bump in tauri-utils.
    • 3a4c0160 fix(core): change default freezePrototype to false, closes #3416 #3406 (#3423) on 2022-02-12

[0.3.0]

  • Replace WindowBuilder's has_menu with get_menu.
    • ac37b56e fix(core): menu id map not reflecting the current window menu (#2726) on 2021-10-08
  • The run_return API is now available on Linux.
    • 8483fde9 feat(core): expose run_return on Linux (#3352) on 2022-02-07
  • Add Menu::with_items constructor, taking an iterator of MenuEntry.
  • Change event loop callbacks definition to allow callers to move in mutable values.
    • bdbf905e Transformed event-loop callback to FnMut to allow mutable values (#2667) on 2021-09-27
  • Added any_thread constructor on the Runtime trait (only possible on Linux and Windows).
    • af44bf81 feat(core): allow app run on any thread on Linux & Windows, closes #3172 (#3353) on 2022-02-07
  • Added run_on_main_thread API on RuntimeHandle.
    • 53fdfe52 feat(core): expose run_on_main_thread API (#2711) on 2021-10-04
  • Breaking change: Renamed the RPC interface to IPC.
    • 3420aa50 refactor: IPC handler [TRI-019] (#9) on 2022-01-09
  • Added open_devtools to the Dispatcher trait.
  • The minimum Rust version is now 1.56.
    • a9dfc015 feat: update to edition 2021 and set minimum rust to 1.56 (#2789) on 2021-10-22
  • The window label is now validated and must be alphanumeric, resulting in a panic if it isn't.
    • 680554de feat: validate window label [TRI-021] (#13) on 2021-10-23
  • Added clipboard field on the WebviewAttributes struct, which must be set to true to enable clipboard access on the webview.
    • d42ccfb3 feat: add clipboard flag to WebviewAttributes [TRI-032] (#12) on 2021-10-23
  • Replace all of the winapi crate references with the windows crate, and replace webview2 and webview2-sys with webview2-com and webview2-com-sys built with the windows crate. This goes along with updates to the TAO and WRY next branches.
    • bb00d5bd Replace winapi with windows crate and use webview2-com instead of webview2 (#2615) on 2021-09-24
  • 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 the windows crate instead of sharing bindings in webview2-com-sys.
    • 34be6cf3 Update webview2-com and windows crates (#2875) on 2021-11-11

[0.2.1]

  • Breaking change: Removed register_uri_scheme_protocol from the WebviewAttributes struct and renamed register_global_uri_scheme_protocol to register_uri_scheme_protocol on the Builder struct, which now takes a Fn(&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.

    • d832d575 fix(windows): use webview events on windows (#2277) on 2021-07-23
  • Add ExitRequested event that allows preventing the app from exiting when all windows are closed, and an AppHandle.exit() function to exit the app manually.

    • 892c63a0 feat(#2287): Add ExitRequested event to let users prevent app from exiting (#2293) on 2021-08-09
  • Fixes minimum window height being used as maximum height.

    • e3f99165 fix(core) minHeight being used as maxHeight (#2247) on 2021-07-19
  • 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.

    • fa9341ba feat(core): implement Debug on public API structs/enums, closes #2292 (#2387) on 2021-08-11
  • Panic when a dispatcher getter method (Window, GlobalShortcutHandle, ClipboardManager and MenuHandle APIs) is called on the main thread.

    • 50ffdc06 feat(core): panic when a dispatcher getter is used on the main thread (#2455) on 2021-08-16
  • Remove menu feature flag since there's no package dependency need to be installed on any platform anymore.

  • Adds Resumed and MainEventsCleared variants to the RunEvent enum.

    • 6be3f433 feat(core): add Resumed and MainEventsCleared events, closes #2127 (#2439) on 2021-08-15
  • Adds set_activation_policy API to the Runtime trait (macOS only).

  • Allow creation of empty Window with create_tao_window() and management with send_tao_window_event() on the AppHandler.

    • 88080855 feat(window): Allow creation of Window without wry (#2321) on 2021-07-29
    • 15566cfd feat(core): add API to send wry window message to the event loop (#2339) on 2021-08-02
  • 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 the run() callback. Triggered once when the event loop is ready.

[0.1.4]

  • Allow preventing window close when the user requests it.
    • 8157a68a feat(core): allow listening to event loop events & prevent window close (#2131) on 2021-07-06
  • 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 parameter Params now use Runtime instead. If you use the wry feature, then types with a Runtime generic parameter should default to Wry, 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 to Wry. If you are not using a custom runtime, just remove Params 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 an Into<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 underlying MenuId type without a generic.
  • Runtime, RuntimeHandle, and Dispatch have no more generic parameter on create_window(...) and instead use the Runtime type directly
  • Runtime::system_tray has no more MenuId generic and uses the string based SystemTray type directly.
  • (internal) CustomMenuItem::id_value() is now hashed on creation and exposed as the id field with type MenuHash.

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 of impl 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 now Send + Sync on Windows.
    • fe32afcc fix(core): Window must be Send + Sync on Windows, closes #2078 (#2093) on 2021-06-27

[0.1.2]

  • Adds clipboard APIs (write and read text).
    • 285bf64b feat(core): add clipboard writeText and readText APIs (#2035) on 2021-06-21
    • dee71ad5 fix(workflows): update docs workflow syntax (#2054) on 2021-06-23
  • Adds focus API to the WindowBuilder.
    • 5f351622 feat(core): add focus API to the WindowBuilder and WindowOptions, #1737 on 2021-05-30
    • dee71ad5 fix(workflows): update docs workflow syntax (#2054) on 2021-06-23
  • Adds is_decorated getter on Window.
    • f58a2114 feat(core): add is_decorated Window getter on 2021-05-30
    • dee71ad5 fix(workflows): update docs workflow syntax (#2054) on 2021-06-23
  • Adds is_resizable getter on Window.
    • 1e8af280 feat(core): add is_resizable Window getter on 2021-05-30
    • dee71ad5 fix(workflows): update docs workflow syntax (#2054) on 2021-06-23
  • Adds is_visible getter on Window.
    • 36506c96 feat(core): add is_visible API on 2021-05-30
    • dee71ad5 fix(workflows): update docs workflow syntax (#2054) on 2021-06-23
  • Adds accelerator method to the CustomMenuItem struct to define a keyboard shortcut for the menu item.
    • 034c2601 feat(core): add accelerator method to CustomMenuItem (#2043) on 2021-06-22
  • Adds global shortcut interfaces.
    • 3280c4aa refactor(core): global shortcut is now provided by tao (#2031) on 2021-06-21
    • dee71ad5 fix(workflows): update docs workflow syntax (#2054) on 2021-06-23
  • Adds request_user_attention API to the Dispatcher trait.
    • 7dcca6e9 feat(core): add request_user_attention API, closes #2023 (#2026) on 2021-06-20
    • dee71ad5 fix(workflows): update docs workflow syntax (#2054) on 2021-06-23
  • Adds fn run_iteration (macOS and Windows only) to the Runtime trait.
    • 8c0d0739 feat(core): add run_iteration, parent_window and owner_window APIs, closes #1872 (#1874) on 2021-05-21
  • Adds show_menu, hide_menu and is_menu_visible APIs to the Dispatcher trait.
    • 954460c5 feat(core): MenuHandle show, hide, is_visible and toggle APIs (#1958) on 2021-06-15
    • dee71ad5 fix(workflows): update docs workflow syntax (#2054) on 2021-06-23
  • Adds set_focus API on Window.
    • bb6992f8 feat(core): add set_focus window API, fixes #1737 on 2021-05-30
    • dee71ad5 fix(workflows): update docs workflow syntax (#2054) on 2021-06-23
  • Adds set_skip_taskbar API on Window.
    • e06aa277 feat(core): add set_skip_taskbar API on 2021-05-30
    • dee71ad5 fix(workflows): update docs workflow syntax (#2054) on 2021-06-23
  • Adds skip_taskbar API to the WindowBuilder.
    • 5525b03a feat(core): add skip_taskbar API to the WindowBuilder/WindowOptions on 2021-05-30
    • dee71ad5 fix(workflows): update docs workflow syntax (#2054) on 2021-06-23
  • Adds Window#center and WindowBuilder#center APIs.
  • Adds parent_window and owner_window setters to the WindowBuilder (Windows only).
    • 8c0d0739 feat(core): add run_iteration, parent_window and owner_window APIs, closes #1872 (#1874) on 2021-05-21
  • Adds window native handle getter (HWND on Windows).
    • abf78c58 fix(core): set parent window handle on dialogs, closes #1876 (#1889) on 2021-05-21

[0.1.1]

  • Fixes system-tray feature usage.
    • 1ab8dd9 fix(core): system-tray cargo feature usage, fixes #1798 (#1801) on 2021-05-12

[0.1.0]

  • Breaking: Context fields are now private, and is expected to be created through Context::new(...). All fields previously available through Context are now public methods.
    • 5542359 refactor(core): Context fields now private, Icon used on all platforms (#1774) on 2021-05-11
  • tauri-runtime crate initial release.
    • 665ec1d refactor: move runtime to tauri-runtime crate (#1751) on 2021-05-09
    • 45a7a11 feat(core): add tauri-wry crate (#1756) on 2021-05-09