Skip to content

Latest commit

 

History

History
421 lines (343 loc) · 48.2 KB

CHANGELOG.md

File metadata and controls

421 lines (343 loc) · 48.2 KB

Changelog

[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]

  • Ignore window events with unknown IDs.
    • 0668dd42 fix(tauri-runtime-wry): ignore events on unknown windows on 2022-08-29
  • Implement theme APIs for Linux.
    • f21cbecd feat(core): implement theme APIs for Linux (#4808) on 2022-08-02
  • Changed windows map to be stored in a RefCell instead of a Mutex.
    • 64546cb9 refactor: use RefCell instead of Mutex for windows map, closes #4870 (#4909) on 2022-08-10
  • 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.2]

  • Disable drag-n-drop of tao based on fileDropEnabled value.
    • a1d569bb fix(core): disable tao's drag-n-drop based on fileDropEnabled, closes #4580 (#4592) on 2022-07-05
  • 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]

  • Fixes a deadlock on the file drop handler.
    • 23a48007 fix(tauri-runtime-wry): deadlock on file drop, closes #4527 (#4535) on 2022-06-30
  • Send theme value only once on the getter function implementation on macOS.
    • 63841c10 fix(tauri-runtime-wry): do not send theme twice on macOS, closes #4532 (#4540) on 2022-06-30
  • Fixes a deadlock when the window focus change on Windows.
    • 185b0e31 fix(tauri-runtime-wry): deadlock when window focus change, closes #4533 (#4539) on 2022-06-30

[0.10.0]

  • Implement raw_window_handle::HasRawWindowHandle on Linux.
    • 3efbc67f feat: implement raw_window_handle on Linux (#4469) on 2022-06-26
  • Moved the window and menu event listeners to the window struct.
    • 46196fe9 refactor(tauri-runtime-wry): move window and menu listeners to window (#4485) on 2022-06-27
  • Refactored the tauri-runtime-wry plugin interface.
    • e39e2999 refactor(tauri-runtime-wry): enhance plugin interface (#4476) on 2022-06-27
  • 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
  • Suppress unused variable warning in release builds.
    • 45981851 chore(lint): unused variable warnings for release builds (#4411) on 2022-06-22
  • Update tao to 0.12 and wry to 0.19.
    • f6edc6df chore(deps): update tao to 0.12, wry to 0.19, closes #3220 (#4502) on 2022-06-28
  • Fixes deadlocks when using window setters in the main thread.
    • 123f6e69 fix(tauri-runtime-wry): release windows lock immediately, closes #4390 (#4392) on 2022-06-19

[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.
    • Bumped due to a bump in tauri-runtime.
    • 4c4acc30 feat: implement Default for Menu, closes #2398 (#4291) on 2022-06-15

[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]

  • Breaking change: Removed the gtk-tray and ayatana-tray Cargo features.
    • 6216eb49 refactor(core): drop ayatana-tray and gtk-tray Cargo features (#4247) on 2022-06-02

[0.6.0]

  • Account the monitor position when centering a window.
    • a7a9fde1 fix(core): account for monitor position when centering window (#4166) on 2022-05-21
  • 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.2]

  • Use the event loop proxy to create a window so it doesn't deadlock on Windows.
    • 61e37652 fix(core): deadlock when creating window from IPC handler, closes #4121 (#4123) on 2022-05-13

[0.5.1]

  • Added the plugin method to the Wry runtime, allowing extensions to the event loop.
    • c8e0e5b9 feat(tauri-runtime-wry): add plugin API (#4094) on 2022-05-10
  • Update wry to 0.16.2 and webkit2gtk to 0.18.0.
    • 71a553b7 chore(deps): update wry to 0.16.2, webkit2gtk to 0.18.0 (#4099) on 2022-05-10

[0.5.0]

  • The file drop event payloads are now percent-decoded.
    • a0ecd81a fix(core): percent decode file drop payloads, closes #4034 (#4035) on 2022-05-03
  • Fixes a crash when using the menu with the inspector window focused on macOS. In this case the window_id will be the id of the first app window.
    • 891eb748 fix(tauri-runtime-wry): menu even panic on macOS inspector, closes #3875 (#4027) on 2022-05-02
  • Fixes a freeze when calling set_size in the main thread on Windows.
    • 8f259f4e fix(core): use EventLoopProxy to prevent set_size freeze closes #3990 (#4014) on 2022-04-30
  • 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]

  • *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.
  • Fixes a panic when using the create_tao_window API.
    • 320329a9 fix(core): insert to webview_id_map on tao window creation, closes #3883 (#3932) on 2022-04-21
  • Fixes a panic when a menu event is triggered when all windows are minimized on macOS.
    • 70ff55c1 fix(core): panic on menu event with minimized windows, closes #3902 (#3918) on 2022-04-20
  • Fixes a rendering issue when resizing the window with the devtools open.
  • *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.
  • Create webview immediately when executed in the main thread.
    • fa2baba7 feat(core): create webview immediately when running in main thread (#3891) on 2022-04-12

[0.3.5]

  • Fixes WindowEvent::Destroyed not firing.
    • 169b5035 fix(core): actually fire WindowEvent::Destroyed (#3797) on 2022-03-28

[0.3.4]

  • Added close_devtools and is_devtools_open APIs to the Dispatch trait.
  • Emit RunEvent::Exit on tao::event::Event::LoopDestroyed instead of after RunEvent::ExitRequested.
    • 3c4ee7c9 refactor(wry): emit RunEvent::Exit on Event::LoopDestroyed (#3785) on 2022-03-27
  • 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
  • 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
  • Use a random window id instead of tao::window::WindowId to not block the thread waiting for the event loop to process the window creation.
    • 7cd39c70 refactor(core): use random window id to simplify window creation, closes #3645 #3597 (#3684) on 2022-03-15
  • Update wry to 0.14 and tao to 0.7.
    • f2d24ef2 chore(deps): update wry (#1482) on 2021-04-14
    • e267ebf1 Apply Version Updates From Current Changes (#1486) on 2021-04-14
    • 5fb74332 chore(deps): update wry to 0.14, tao to 0.7 (#3790) on 2022-03-28
  • Added the WindowEvent::FileDrop variant.

[0.3.3]

  • Fixes a deadlock on the Focused event when the window is not visible.
    • c08cc6d5 fix(core): deadlock on focus events with invisible window,#3534 (#3622) on 2022-03-06
  • 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
  • Print a warning to stderr if the window transparency has been set to true but macos-private-api is not enabled.
    • 080755b5 feat(core): warn if private APIs are not enabled, closes #3481 (#3511) on 2022-02-19

[0.3.2]

  • Fix requirements for RuntimeHandle, ClipboardManager, GlobalShortcutHandle and TrayHandle.
    • Bumped due to a bump in tauri-runtime.
    • 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]

  • Fix window.center panic when window size is bigger than screen size.
    • 76ce9f61 fix(core): fix window.center panic when window size > screen, closes #2978 (#3002) on 2021-12-09
  • Enable non-session cookie persistence on Linux.
    • d7c02a30 feat(core): persist non-session cookies on Linux (#3052) on 2021-12-09
  • Fixes a deadlock when creating a window from a menu event handler.
    • 9c82006b fix(core): deadlock when creating window from menu handler, closes #3110 (#3126) on 2021-12-28
  • Fixes WindowEvent::Focus and WindowEvent::Blur events not firing.
    • 3b33d67a fix: re-adding focus/blur events for linux and macos (fix #2485) (#2489) on 2021-08-24
  • Use webview's inner_size instead of window's value to get the correct size on macOS.
  • Reimplement remove_system_tray on Windows to drop the SystemTray to run its cleanup code.
    • a03b8554 fix(core): tray not closing on Windows (#3351) on 2022-02-07
  • 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
  • Fix empty header from CORS on Linux.
  • The run_return API is now available on Linux.
    • 8483fde9 feat(core): expose run_return on Linux (#3352) on 2022-02-07
  • Allow window, global shortcut and clipboard APIs to be called on the main thread.
    • 2812c446 feat(core): window, shortcut and clipboard API calls on main thread (#2659) on 2021-09-26
    • d24fd8d1 feat(tauri-runtime-wry): allow window creation and closing on the main thread (#2668) on 2021-09-27
  • 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
  • Breaking change: Add macos-private-api feature flag, enabled via tauri.conf.json > tauri > macOSPrivateApi.
    • 6ac21b3c feat: add private api feature flag (#7) on 2022-01-09
  • Refactor create_tao_window API to return Weak<Window> instead of Arc<Window>.
    • c1494b35 refactor: return Weak on create_tao_window on 2021-08-31
  • 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
  • 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
  • This is a temporary fix of null pointer crash on get_content of web resource request. We will switch it back once upstream is updated.
  • Update wry to 0.13.

[0.2.1]

  • 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
  • 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
  • Fix the error "cannot find type MenuHash in this scope"

    • 226414d1 "cannot find type MenuHash in this scope" (#2240) on 2021-07-20
  • 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.

  • Add webdriver support to Tauri.

[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
  • Fixes SVG loading on custom protocol.
  • Fixes center and focus not being allowed in tauri.conf.json > tauri > windows and ignored in WindowBuilderWrapper.
    • bc2c331d fix: center and focus not being allowed in config (#2199) on 2021-07-12
  • Expose gtk_window getter.
  • Remove a few locks requirement in tauri-runtime-wry
    • 6569c2bf refactor(wry): remove a few locks requirements (#2137) on 2021-07-02
  • Fix macOS high CPU usage.
  • Bump wry 0.11 and fix focus integration to make it compatible with tao 0.4.
  • 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
  • Fixes window event being emitted to all windows listeners.
    • fca97640 fix(wry): window event listeners being emitted to all windows (#2056) on 2021-06-23
  • Panic on window getters usage on the main thread when the event loop is not running and document it.
  • 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 support to PNG icons.
  • 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
  • Removes image dependency. For now only .ico icons on Windows are supported, and we'll implement other types on demand to optimize bundle size.
    • 1be37a3f refactor(core): remove image dependency (#1859) on 2021-05-18
  • The run_on_main_thread API now uses WRY's UserEvent, so it wakes the event loop.
    • 9bf82f0d fix(core): run_on_main_thread now wakes the event loop (#1949) on 2021-06-04
  • 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
  • Update wry to v0.10.0 and replace the removed dispatch_script and evaluate_script methods with the new evaluate_script method in handle_event_loop.
    • cca8115d refactor: update wry, simplify script eval (#1965) on 2021-06-16
    • 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
  • Fixes webview transparency.
    • f5a480f fix(core): window transparency (#1800) 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-wry initial release.
    • 45a7a11 feat(core): add tauri-wry crate (#1756) on 2021-05-09