Skip to content

Support sending raw byte data to the "data" event for child command's stdout and stderr#5789

Merged
lucasfernog merged 29 commits intotauri-apps:nextfrom
cymruu:cymruu/command-byte-data
Mar 31, 2023
Merged

Support sending raw byte data to the "data" event for child command's stdout and stderr#5789
lucasfernog merged 29 commits intotauri-apps:nextfrom
cymruu:cymruu/command-byte-data

Conversation

@cymruu
Copy link
Contributor

@cymruu cymruu commented Dec 8, 2022

What kind of change does this PR introduce?

Support sending raw byte data to the "data" event for child command's stdout and stderr. Still WIP

  • Bugfix
  • Feature
  • Docs
  • New Binding issue #___
  • Code style update
  • Refactor
  • Build-related changes
  • Other, please describe:

Does this PR introduce a breaking change?

Checklist

  • When resolving issues, they are referenced in the PR's title (e.g fix: remove a typo, closes #___, #___)
  • A change file is added if any packages will require a version bump due to this PR per the instructions in the readme.
  • I have added a convincing reason for adding this feature, if necessary

Other information

Closes #5465

@cymruu cymruu force-pushed the cymruu/command-byte-data branch from 06f74c2 to c3db0cd Compare December 12, 2022 16:36
@cymruu
Copy link
Contributor Author

cymruu commented Dec 12, 2022

@amrbashir I have addressed your comments. Thank you for reviewing!

Copy link
Member

@amrbashir amrbashir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is a breaking change and will be merged into next, can you rebase the changes in top of the next branch?

@cymruu cymruu force-pushed the cymruu/command-byte-data branch from e28cfe2 to f84ac44 Compare December 13, 2022 09:42
@cymruu cymruu changed the base branch from dev to next December 13, 2022 09:42
@cymruu cymruu force-pushed the cymruu/command-byte-data branch from f84ac44 to af4e3c7 Compare December 13, 2022 09:49
@cymruu cymruu marked this pull request as ready for review December 13, 2022 09:52
@cymruu cymruu requested review from a team as code owners December 13, 2022 09:52
amrbashir
amrbashir previously approved these changes Dec 13, 2022
Copy link
Member

@amrbashir amrbashir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks! I will leave the final review and merge to lucas.

@lucasfernog
Copy link
Member

Looks really good. I'll make some tests and see if we can improve the api types.

@lucasfernog
Copy link
Member

Let me know what you think about my change :P I'm not a TypeScript expert but I tried to let it infer most of the types from the encoding argument.

@cymruu
Copy link
Contributor Author

cymruu commented Dec 19, 2022

@lucasfernog thank you for the improvement with result type inferring. I love it! I have merged with nextbranch again.

BTW what is the reason behind bundle.global.js being included in the repository?

@FabianLars
Copy link
Member

bundle.global.js powers the withGlobalTauri (= the apis in window.__TAURI__). Building/Bundling that on the dev's machine is not really an option

@cymruu
Copy link
Contributor Author

cymruu commented Feb 8, 2023

@lucasfernog @FabianLars Is the feature still needed? Is there anything else I can do regarding the PR?
I'm happy to help 🙂

@cymruu cymruu force-pushed the cymruu/command-byte-data branch from a5a713c to 6c11999 Compare February 8, 2023 22:03
@lucasfernog
Copy link
Member

I just need some time to test this, my idea was to wait for 1.3 to launch before merging it since you already merged dev into this.

@cymruu cymruu force-pushed the cymruu/command-byte-data branch from f44b3a9 to 55b9575 Compare March 30, 2023 15:39
lucasfernog
lucasfernog previously approved these changes Mar 31, 2023
@lucasfernog lucasfernog merged commit 509d467 into tauri-apps:next Mar 31, 2023
@lucasfernog
Copy link
Member

Amazing work!

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.

[feat] Support sending byte data to the "data" event for child command's stdout and stderr

4 participants