Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ipc): enhance request URL checks, update wry, refactor file drop #9100

Merged
merged 14 commits into from
Apr 1, 2024
5 changes: 5 additions & 0 deletions .changes/enhance-ipc-url-check.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tauri": patch:enhance
---

Enhance the IPC URL check by using the Origin header on the custom protocol IPC and the new request URI field on the postMessage IPC instead of using `Webview::url()` which only returns the URL of the main frame and is not suitable for iframes (iframe URL fetch is still not supported on Android and on Linux when using the postMessage IPC).
7 changes: 7 additions & 0 deletions .changes/http-v1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'tauri': 'patch:deps'
'tauri-runtime': 'patch'
'tauri-runtime-wry': 'patch'
---

Updated `http` crate to `1.1`
6 changes: 6 additions & 0 deletions .changes/ipc-request-param-refactor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"tauri-runtime": patch:breaking
"tauri-runtime-wry": patch:breaking
---

The IPC handler closure now receives a `http::Request` instead of a String representing the request body.
5 changes: 5 additions & 0 deletions .changes/rect-strcut.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'tauri': 'patch:feat'
---

Added `Rect` struct.
9 changes: 9 additions & 0 deletions .changes/rename-file-drop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"tauri": patch:breaking
"tauri-runtime": patch:breaking
"tauri-utils": patch:breaking
"tauri-runtime-wry": patch:breaking
"@tauri-apps/api": patch:breaking
---

Rename `FileDrop` to `DragDrop` on structs, enums and enum variants. Also renamed `file_drop` to `drag_drop` on fields and function names.
5 changes: 5 additions & 0 deletions .changes/runtime-dpi-mod-moved.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'tauri-runtime': 'major:breaking'
---

Moved `window::dpi` module to the root of the crate.
9 changes: 9 additions & 0 deletions .changes/tray-rect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'tauri': 'patch:breaking'
---

Refactored the tray icon event struct:

- Changed `TrayIconEvent.icon_rect` type to use the new `tauri::Rect` type.
- Removed `TrayIconEvent.x` and `TrayIconEvent.y` fields and combined them into `TrayIconEvent.position` field.
- Removed `tauri::tray::Rectangle` struct.
5 changes: 5 additions & 0 deletions .changes/webview-bounds.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'tauri': 'minor:feat'
---

Add `Webview::bounds` and `Webview::set_bounds` APIs.
5 changes: 5 additions & 0 deletions .changes/wry-0.38.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tauri-runtime-wry": patch:deps
---

Upgraded to `wry@0.38.0`
Loading
Loading