Closed CarsonF closed 3 years ago
How's it a breaking change? Both work:
message.read((err, data) => { ... });
await message.read();
Because it modifies the API signature. Technically this could be resolved by only returning a promise if callback == null
— since that's an overload, not a modification — but, as mentioned before, the pattern established in SMTPClient
demands we go with a separate readAsync
method.
Thank you! 😄
@CarsonF this (as well as your other PR) should be live as of v3.6.0
😄
Already all over it. Thanks @zackschuster!!
I want to use this library to build mime messages that I'll send to AWS SES directly. This makes it easier to get the built message back.