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: reuse it-queueless-pushable #134

Merged
merged 3 commits into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions packages/it-byte-stream/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,8 @@
"release": "aegir release"
},
"dependencies": {
"it-queueless-pushable": "^1.0.0",
"it-stream-types": "^2.0.1",
"p-defer": "^4.0.1",
"race-signal": "^1.0.2",
"uint8arraylist": "^2.4.8"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/it-byte-stream/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
* ```
*/

import { queuelessPushable } from 'it-queueless-pushable'
import { Uint8ArrayList } from 'uint8arraylist'
import { pushable } from './pushable.js'
import type { Duplex } from 'it-stream-types'

export class CodeError extends Error {
Expand Down Expand Up @@ -76,7 +76,7 @@ export interface ByteStreamOpts {
}

export function byteStream <Stream extends Duplex<any, any, any>> (duplex: Stream, opts?: ByteStreamOpts): ByteStream<Stream> {
const write = pushable()
const write = queuelessPushable()

duplex.sink(write).catch(async (err: Error) => {
await write.end(err)
Expand Down
136 changes: 0 additions & 136 deletions packages/it-byte-stream/src/pushable.ts

This file was deleted.

Loading