Skip to content
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!: do not create unnecessary async work #66

Merged
merged 2 commits into from
Mar 31, 2023

Conversation

achingbrain
Copy link
Collaborator

Crossing async boundaries is not free, so when this module is passed synchronous pipeline stages, do not wrap them in async generators to keep them synchronous.

BREAKING CHANGE: when the entire pipeline is synchronous, the return value will now be synchronous

Crossing async boundaries is not free, so when this module is passed
synchronous pipeline stages, do not wrap them in async generators
to keep them synchronous.

BREAKING CHANGE: when the entire pipeline is synchronous, the return value will now be synchronous
@achingbrain achingbrain merged commit e583174 into master Mar 31, 2023
@achingbrain achingbrain deleted the fix/remove-unnecessary-async branch March 31, 2023 06:53
github-actions bot pushed a commit that referenced this pull request Mar 31, 2023
## [3.0.0](v2.0.5...v3.0.0) (2023-03-31)

### ⚠ BREAKING CHANGES

* when the entire pipeline is synchronous, the return value will now be synchronous

### Bug Fixes

* do not create unnecessary async work ([#66](#66)) ([e583174](e583174))
@github-actions
Copy link

🎉 This PR is included in version 3.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@paralin
Copy link

paralin commented Apr 3, 2023

@achingbrain This actually caused quite a lot of changes (no exported Transform type, for example) - could you post more info about what changed here and how to migrate? Thanks!

I use this here, maybe I'm doing something that I shouldn't w.r.t. using the wrong Transform type: https://github.com/aperturerobotics/starpc/blob/main/srpc/packet.ts#L40

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants