Skip to content

Conversation

@Legend-Master
Copy link
Contributor

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

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-project-automation github-project-automation bot moved this to 📬Proposal in Roadmap Apr 21, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Apr 21, 2025

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
Contributor Author

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

))?;
}
InvokeResponseBody::Raw(bytes) if bytes.len() < MAX_RAW_DIRECT_EXECUTE_THRESHOLD => {
let formated_bytes = serde_json::to_string(&bytes)?;
Copy link
Member

@amrbashir amrbashir Apr 21, 2025

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
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
20 checks passed
@github-project-automation github-project-automation bot moved this from 📬Proposal to 🔎 In audit in Roadmap 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

Status: 🔎 In audit

Development

Successfully merging this pull request may close these issues.

2 participants