Skip to content

fix(core): raw channel message type regression - #13268

Merged
Legend-Master merged 3 commits into
tauri-apps:devfrom
Legend-Master:fix-channel-raw-message-type
Apr 21, 2025
Merged

fix(core): raw channel message type regression#13268
Legend-Master merged 3 commits into
tauri-apps:devfrom
Legend-Master:fix-channel-raw-message-type

Conversation

@Legend-Master

@Legend-Master Legend-Master commented Apr 21, 2025

Copy link
Copy Markdown
Contributor

Fix #13136 (comment)

Fix a regression introduced in #13138 that made the raw type messages received from Channel.onmessage became number[] instead of ArrayBuffer when that message is small

@Legend-Master
Legend-Master requested a review from a team as a code owner April 21, 2025 01:35
@github-actions

github-actions Bot commented Apr 21, 2025

Copy link
Copy Markdown
Contributor

Package Changes Through 4d73e29

There are 1 changes which include tauri with patch

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
tauri 2.5.0 2.5.1

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

@Legend-Master

Copy link
Copy Markdown
Contributor Author

@WSH032 Hey could you give this PR a try and see if it fixes the regression?

Comment thread 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)?;

@amrbashir amrbashir Apr 21, 2025

Copy link
Copy Markdown
Member

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?

Copy link
Copy Markdown
Contributor Author

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 🙃

amrbashir
amrbashir previously approved these changes Apr 21, 2025
@Legend-Master
Legend-Master merged commit da2a6ae into tauri-apps:dev Apr 21, 2025
@Legend-Master
Legend-Master deleted the fix-channel-raw-message-type branch April 21, 2025 02:26
WSH032 added a commit to pytauri/pytauri that referenced this pull request Apr 21, 2025
github-merge-queue Bot pushed a commit to pytauri/pytauri that referenced this pull request Apr 21, 2025
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants