Skip to content

Commit 0f0fda8

Browse files
committed
fix!: bump tauri to fix tauri-apps/tauri#13227
Rust: - tauri: 2.5 - tauri-build: 2.2 - tauri-plugin: 2.2 - tauri-utils: ~2.4 Js: - @tauri-apps/api: ^2.5 BREAKING CHANGE: This requires user to upgrade to `@tauri-apps/api: ^2.5`, corresponding to `tauri-plugin-pytauri-api: 0.5`
1 parent a0c123d commit 0f0fda8

File tree

11 files changed

+215
-124
lines changed

11 files changed

+215
-124
lines changed

Cargo.lock

+119-41
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ authors = ["Sean Wang <[email protected]>"]
2323
pyo3 = { version = "0.23" }
2424
pyo3-build-config = { version = "0.23" }
2525

26-
tauri = { version = "2.4" }
27-
tauri-build = { version = "2.1" }
28-
tauri-plugin = { version = "2.1" }
26+
tauri = { version = "2.5" }
27+
tauri-build = { version = "2.2" }
28+
tauri-plugin = { version = "2.2" }
2929

3030
tauri-plugin-notification = { version = "2.2" }
3131
tauri-plugin-opener = { version = "2.2" }

crates/tauri-plugin-pytauri/guest-js/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@
2222
"build": "rollup -c --configPlugin typescript"
2323
},
2424
"dependencies": {
25-
"@tauri-apps/api": "^2.0.0"
25+
"@tauri-apps/api": "^2.5"
2626
}
2727
}

crates/tauri-plugin-pytauri/guest-js/src/index.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,7 @@ export async function rawPyInvoke(
3434

3535
const invokePromise = invoke(PY_INVOKE_TAURI_CMD, body, {
3636
...options,
37-
// FIXME, XXX: This is a bug in Tauri, it does not correctly handle the argument of `Headers` type,
38-
// so we need to use `Object.fromEntries` instead of directly passing `headers`.
39-
// see: <https://github.com/tauri-apps/tauri/blob/8a1d49082033cc0bae2258fed3c3aeb539665acf/crates/tauri/scripts/ipc-protocol.js#L38>
40-
headers: Object.fromEntries(headers.entries()),
37+
headers,
4138
});
4239

4340
if (process.env.NODE_ENV === "development") {

0 commit comments

Comments
 (0)