forwardemail / email-templates

Create, preview (browser/iOS Simulator), and send custom email templates for Node.js. Made for @forwardemail, @ladjs, @cabinjs, @spamscanner, and @breejs.
https://forwardemail.net/docs/send-emails-with-node-js-javascript
MIT License
3.67k stars 335 forks source link

[fix] Deprecation Warning: Calling promisify on a function that returns a Promise #462

Closed banoni-dev closed 3 months ago

banoni-dev commented 3 months ago

Node.js version: v22

Description:

I'm encountering a deprecation warning when using the email-templates library in my Node.js project. The warning indicates that calling promisify on a function that already returns a Promise is likely a mistake. This warning appears multiple times during the execution of my code.

image

titanism commented 3 months ago

PR welcome