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: properly destroy streams when an error occurs #1

Merged
merged 1 commit into from
Mar 28, 2023
Merged

Conversation

ferm10n
Copy link
Collaborator

@ferm10n ferm10n commented Mar 27, 2023

context

st-one-io#33

changes summary

  • _destroy noops were removed since they prevent proper propagation of errors
    • not sure what this needed for backwards compat, but I assume it was added after node 10 defaulted autoDestroy: true
  • tweaked some types on constructor options
  • added a catch around the mid serializer fn, without which it would cause an unhandled rejection and silently stop working

- `_destroy` noops were removed since they prevent proper propagation of errors
  - not sure what this needed for backwards compat, but I assume it was added after node 10 defaulted `autoDestroy: true`
- tweaked some types on constructor options
- added a catch around the mid serializer fn, without which it would cause an unhandled rejection and silently stop working
@ferm10n
Copy link
Collaborator Author

ferm10n commented Mar 27, 2023

Because there isn't a minimum supported node version specified anywhere, I assume that there's no need for handling a breaking change

@ferm10n ferm10n mentioned this pull request Mar 27, 2023
9 tasks
@ferm10n ferm10n merged commit 18b7655 into develop Mar 28, 2023
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