nodemailer / smtp-server

Create custom SMTP servers on the fly
Other
846 stars 145 forks source link

Use npm punycode module instead of deprecated core module #201

Closed QuentiumYT closed 4 months ago

QuentiumYT commented 6 months ago

Hello,

The punycode module has been deprecated in favor of punycode.js (a npm package). See https://nodejs.org/api/punycode.html for some info. It has been added to '--pending-deprecation' warnings since Node 17 and warns now everytime since Node 21 (https://github.com/nodejs/node/blob/v21.0.0/lib/punycode.js).

The fact I specified punycode/punycode will look into node_modules instead of targeting global module, if you prefer, you can replace it with punycode/ only.

Also bumped some minor dependencies :)

Thanks

andris9 commented 4 months ago

Fixed by another PR