node-mbox icon indicating copy to clipboard operation
node-mbox copied to clipboard

Upgrade to v2.0.0.

Open mafiosso opened this issue 4 years ago • 1 comments

Hi we use your node-mbox however it was hard to handle finish for async tasks. It is due to misconception of on('message') and on('data') events. Now mbox is passing on 'data' the message itself - it is instance of Transform stream today. No 'message' event is present. This pull request is to discuss, I have changed API a lot and purged some functionality - explicit encoding, strict mode is now always on, passing Mbox header is now optional.

mafiosso avatar Nov 27 '20 07:11 mafiosso

Hi @mafiosso! Thanks a lot for your effort :) Are you okay with squashing the commits into a single one? Makes it easier for me to see what's going on and to comment.

robertklep avatar Nov 28 '20 10:11 robertklep

@mafiosso

Definitely agree with the strict mode being on by default. I got burnt by that today, when it's false the stream just closes with no warning or error. I was using a few files with a strange encoding, unbeknownst to me, and was scratching my head over why the pipe kept closing on certain files.

@robertklep Also you can view all changes in the pull request at once by using the new Files Changed tab options and selecting Show All Changes, it will show entire file content and changes. There are a couple other cool options too. His commits are pretty siloed based on implemented functionality.

I can still squash the commits if it makes it easier. It would be good to get an update out on this, I don't mind spending some time helping. Repo is still going strong after all these years.

image

J7a4s0m5ine avatar Feb 28 '23 19:02 J7a4s0m5ine

@mafiosso would you be willing to accept ownership of this package on NPM? I can't spend time on this at the moment, and besides that, I haven't used this module myself for years.

robertklep avatar Mar 01 '23 09:03 robertklep

Hi @robertklep thank you for your bid, sorry for I've never answered and never squashed the commits. Honestly I do not take care of it very much these times. But we internally depend on my fork. It would be nice to be owner of the NPM package. My npmjs user is this (https://www.npmjs.com/~mafiosso).

mafiosso avatar Mar 01 '23 15:03 mafiosso

@mafiosso there you go 😊

robertklep avatar Mar 01 '23 15:03 robertklep

Thanks :).

mafiosso avatar Mar 01 '23 15:03 mafiosso