chore(connect)!: drop support for node 14 and 16 #573
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Node 14 is out of LTS beginning in April.
Once we drop support for Node 14, we can do some cool stuff with Readable Streams
This would be a BREAKING CHANGE:
drops support for Node 14 and 16
instead of
storage.download
always returning aReadableStream
, it would instead always return a hyper response shape:storage.upload
accepting a Uint8Array, it instead accepts aReadableStream
. This allows for streaming requests directly intostorage.upload
To pass a Uint8Array into
storage.upload
, simply transform it into aReadableStream
. For example, using the built-inResponse
:Closes #554