Skip to content

fix!: do not create unnecessary async work#66

Merged
achingbrain merged 2 commits intomasterfrom
fix/remove-unnecessary-async
Mar 31, 2023
Merged

fix!: do not create unnecessary async work#66
achingbrain merged 2 commits intomasterfrom
fix/remove-unnecessary-async

Conversation

@achingbrain
Copy link
Copy Markdown
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
Copy Markdown

🎉 This PR is included in version 3.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@paralin
Copy link
Copy Markdown

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