Closed bcomnes closed 1 week ago
Seeing the same behavior here, would be great if it could be looked into!
Same issue in my product, please help to take a look.
Please submit a PR if you'd like to fix this.
I may revisit if I find time but anyone else feel free to take a stab at it.
PR welcome
Describe the bug
Node.js version: v21.7.1
OS version: macOS 14.4
Description: Started getting a node DeprecationWarning originating from line: https://github.com/forwardemail/email-templates/blob/e8b8cfced71077a9401f6fd03c6ae8369766978a/index.js#L249
Actual behavior
Test/usage output includes the following deprecation warnings.
Expected behavior
It should avoid running promisify on promise returning functions.
Code to reproduce
Run npm test running on node 21.
Checklist