Skip to content

Commit

Permalink
apply version updates (#1387)
Browse files Browse the repository at this point in the history
Co-authored-by: lucasfernog <[email protected]>
  • Loading branch information
github-actions[bot] and lucasfernog authored Oct 12, 2024
1 parent 70ac70b commit a11b827
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 39 deletions.
28 changes: 0 additions & 28 deletions .changes/custom-protocol-label.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changes/objc2.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changes/proguard-unescapted-package.md

This file was deleted.

29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
# Changelog

## \[0.46.0]

- [`8cc2a7f`](https://github.com/tauri-apps/wry/commit/8cc2a7f6570085da5d6a5ea57ad7f127520b778f) ([#1384](https://github.com/tauri-apps/wry/pull/1384) by [@amrbashir](https://github.com/tauri-apps/wry/../../amrbashir)) This release contains quite the breaking changes, because even though [email protected], ignored duplicate custom protocols, On Linux when using a shared web context, the custom protocol handler can only be registered once so we are bringing the duplicate custom protocols on Linux again, Windows and macOS are not affected. If using a shared web context, make sure to register a protocol only once on Linux (other platforms should be registed multiple times), use `WebContext::is_custom_protocol_registered` with `#[cfg(target_os = "linux")]`.

We also noticed that it is hard to know which webview made a request to the custom protocol so we added a method to attach an ID to a webview, and changed relevant custom protocol APIs to take a new argument that passes the specified id back to protocol handler.

We also made a few changes to the builder, specifically `WebViewBuilder::new` and `WebViewBuilder::build` methods to make them more ergonomic to work with.

- Added `Error::DuplicateCustomProtocol` enum variant.
- Added `Error::ContextDuplicateCustomProtocol` enum variant.
- On Linux, return an error in `WebViewBuilder::build` if registering a custom protocol multiple times.
- Added `WebContext::is_custom_protocol_registered` to check if a protocol has been regsterd for this web context.
- Added `WebViewId` alias type.
- **Breaking** Changed `WebViewAttributes` to have a lifetime parameter.
- Added `WebViewAttributes.id` field to specify an id for the webview.
- Added `WebViewBuilder::with_id` method to specify an id for the webview.
- Added `WebViewAttributes.context` field to specify a shared context for the webview.
- **Breaking** Changed `WebViewAttributes.custom_protocols` field,`WebViewBuilder::with_custom_protocol` method and `WebViewBuilder::with_asynchronous_custom_protocol` method handler function to take `WebViewId` as the first argument to check which webview made the request to the protocol.
- **Breaking** Changed `WebViewBuilder::with_web_context` to be a static method to create a builder with a webcontext, instead of it being a setter method. It is now an alternative to `WebviewBuilder::new`
- Added `WebViewBuilder::with_attributes` to create a webview builder with provided attributes.
- **Breaking** Changed `WebViewBuilder::new` to take no arguments.
- **Breaking** Changed `WebViewBuilder::build` method to take a reference to a window to create the webview in it.
- **Breaking** Removed `WebViewBuilder::new_as_child`.
- Added `WebViewBuilder::build_as_child` method, which takes a reference to a window to create the webview in it.
- **Breaking** Removed `WebViewBuilderExtUnix::new_gtk`.
- Added `WebViewBuilderExtUnix::build_gtk`.
- [`0abc221`](https://github.com/tauri-apps/wry/commit/0abc221ca0edf3482518a68af024f9988b10f50b) ([#1316](https://github.com/tauri-apps/wry/pull/1316) by [@pewsheen](https://github.com/tauri-apps/wry/../../pewsheen)) Migrate to obj2.
- [`b01eac3`](https://github.com/tauri-apps/wry/commit/b01eac35f521e4e763fc15753e2fbee68aa31a02) ([#1386](https://github.com/tauri-apps/wry/pull/1386) by [@lucasfernog](https://github.com/tauri-apps/wry/../../lucasfernog)) Use unescaped Android package identifier for the proguard rules.

## \[0.45.0]

- [`0fd1229`](https://github.com/tauri-apps/wry/commit/0fd12297997f598e4893e8f5b6e235b09cedec09) ([#1369](https://github.com/tauri-apps/wry/pull/1369) by [@lloydzhou](https://github.com/tauri-apps/wry/../../lloydzhou)) On Linux, fixed incorrect path for indexeddb database directory which made apps using `[email protected]` and `tauri@1` migrating to `wry@>=0.38` and `tauri@2` lose their indexeddb data.
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ workspace = {}

[package]
name = "wry"
version = "0.45.0"
version = "0.46.0"
authors = ["Tauri Programme within The Commons Conservancy"]
edition = "2021"
license = "Apache-2.0 OR MIT"
Expand Down

0 comments on commit a11b827

Please sign in to comment.