nodemailer 7.0.12 → 7.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## [7.0.13](https://github.com/nodemailer/nodemailer/compare/v7.0.12...v7.0.13) (2026-01-27)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * downgrade transient connection error logs to warn level ([4c041db](https://github.com/nodemailer/nodemailer/commit/4c041db85d560e98bc5e1fd5d5a191835c5b7d2f))
9
+
3
10
  ## [7.0.12](https://github.com/nodemailer/nodemailer/compare/v7.0.11...v7.0.12) (2025-12-22)
4
11
 
5
12
 
@@ -794,7 +794,12 @@ class SMTPConnection extends EventEmitter {
794
794
 
795
795
  err = this._formatError(err, type, data, command);
796
796
 
797
- this.logger.error(data, err.message);
797
+ const transientCodes = ['ETIMEDOUT', 'ESOCKET', 'ECONNECTION'];
798
+ if (transientCodes.includes(err.code)) {
799
+ this.logger.warn(data, err.message);
800
+ } else {
801
+ this.logger.error(data, err.message);
802
+ }
798
803
 
799
804
  this.emit('error', err);
800
805
  this.close();
@@ -331,7 +331,7 @@ class SMTPPool extends EventEmitter {
331
331
  // resource is terminated with an error
332
332
  connection.once('error', err => {
333
333
  if (err.code !== 'EMAXLIMIT') {
334
- this.logger.error(
334
+ this.logger.warn(
335
335
  {
336
336
  err,
337
337
  tnx: 'pool',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodemailer",
3
- "version": "7.0.12",
3
+ "version": "7.0.13",
4
4
  "description": "Easy as cake e-mail sending from your Node.js applications",
5
5
  "main": "lib/nodemailer.js",
6
6
  "scripts": {
@@ -26,20 +26,20 @@
26
26
  },
27
27
  "homepage": "https://nodemailer.com/",
28
28
  "devDependencies": {
29
- "@aws-sdk/client-sesv2": "3.940.0",
29
+ "@aws-sdk/client-sesv2": "3.975.0",
30
30
  "bunyan": "1.8.15",
31
31
  "c8": "10.1.3",
32
- "eslint": "9.39.1",
32
+ "eslint": "9.39.2",
33
33
  "eslint-config-prettier": "10.1.8",
34
- "globals": "16.5.0",
34
+ "globals": "17.1.0",
35
35
  "libbase64": "1.3.0",
36
36
  "libmime": "5.3.7",
37
37
  "libqp": "2.1.1",
38
38
  "nodemailer-ntlm-auth": "1.0.4",
39
- "prettier": "3.6.2",
39
+ "prettier": "3.8.1",
40
40
  "proxy": "1.0.2",
41
41
  "proxy-test-server": "1.0.0",
42
- "smtp-server": "3.16.1"
42
+ "smtp-server": "3.18.0"
43
43
  },
44
44
  "engines": {
45
45
  "node": ">=6.0.0"