-
Notifications
You must be signed in to change notification settings - Fork 165
Streams2 #61
base: master
Are you sure you want to change the base?
Streams2 #61
Conversation
ping @dominictarr |
generally we have just made an 2 version of module for the streams2 version - can you just publish as a separate module? |
that seems a lot more complex then just putting out a 2.0 |
Any updates on this topic? I'm looking for a streams2 JSON parser and I'm trying to decide on which one to take. So far I've found this PR, jsonstream2 and jsonstream2-native. @calvinmetcalf I started down a similar path as you, making a few minor changes to switch JSONStream over to through2, but I'm curious, why did you abandon through2 in favour of readable-stream and later io-stream? |
mainly in order to create a constructor function which in theory should be marginally faster, I ended it publishing it as jsonstream2a |
so I was looking at the streams2 (I mean 3) code the other day... and, well, it now works like streams1 did! It's just streams1, except the stream starts off paused (and resumes on pipe, if you didn't pause it explicitly) |
@dominictarr Would you be interested in taking a PR to update through1 -> through2 or do you still think a new repo is the best choice? |
@contra node streams are back to streams1 api, streams 2 was just a detour, look at the code - it uses basically: what is the advantage of streams2 here? |
compatibility, stream2+ objects have different methods, came up today when wanting to use something with syncthrough |
Okay, so I think the solution here is refactor the streams out of this module, or at least into a separate file - so, that at it's core you get an I just use pull-stream now, it's just much easier all round than node streams. and compatibility isn't really a problem because there are converters, and there is a large ecosystem of highly composable modules. |
@calvinmetcalf incidentially, syncthrough now works with through based stream1 modules like this one. mcollina/syncthrough#3 Also, syncthrough would be a very appropiate stream for JSONStream to export. |
Oh then carry on
…On Wed, Jan 25, 2017, 4:50 PM Dominic Tarr ***@***.***> wrote:
@calvinmetcalf <https://github.com/calvinmetcalf> incidentially,
syncthrough now works with through based stream1 modules like this one.
mcollina/syncthrough#3 <mcollina/syncthrough#3>
Also, syncthrough would be a very appropiate stream for JSONStream to
export.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#61 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABE4n9gI_l0IybN_NUMGrfGp9X2FVznDks5rV8OzgaJpZM4DzDbb>
.
|
this would likely be a major version bump as there are edge cases that can be broken by the streams1->streams2 change, (which actually popped up in the destory_missing.js test), I also added a clarification of the multiple_objects_error test.
I have a less radical version that just switches from through1 to through2 if you'd prefer that