-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
fix(core): raw channel message type regression #13268
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
fix(core): raw channel message type regression #13268
Conversation
Package Changes Through 4d73e29There are 1 changes which include tauri with patch Planned Package VersionsThe following package releases are the planned based on the context of changes in this pull request.
Add another change file through the GitHub UI by following this link. Read about change files or the docs at github.com/jbolda/covector |
|
@WSH032 Hey could you give this PR a try and see if it fixes the regression? |
crates/tauri/src/ipc/channel.rs
Outdated
| ))?; | ||
| } | ||
| InvokeResponseBody::Raw(bytes) if bytes.len() < MAX_RAW_DIRECT_EXECUTE_THRESHOLD => { | ||
| let formated_bytes = serde_json::to_string(&bytes)?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: why formated_bytes? isn't serialized_bytes a better name, or bytes_as_json?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed name to bytes_as_json_array, didn't know what to name it, and formated_bytes was the first name popped in my head 🙃
* feat(pytauri): accessing the request headers in `Commands` Added: - `pytauri.ipc.Headers` * docs: add tip about how to convert `ipc.Headers` to a dictionary * 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` * refactor: do not check `pyfunc` header at runtime * fix: bump `tauri` to `2.5.1` to fix tauri-apps/tauri#13268 * docs: changelog
Fix #13136 (comment)
Fix a regression introduced in #13138 that made the raw type messages received from
Channel.onmessagebecamenumber[]instead ofArrayBufferwhen that message is small