imapflow 1.2.6 → 1.2.8

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.
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "1.2.6"
2
+ ".": "1.2.8"
3
3
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.2.8](https://github.com/postalsys/imapflow/compare/v1.2.7...v1.2.8) (2026-01-28)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * Bumpe deps ([7f089a5](https://github.com/postalsys/imapflow/commit/7f089a5c4eff121c3a535fa89becce3f8db917b4))
9
+
10
+ ## [1.2.7](https://github.com/postalsys/imapflow/compare/v1.2.6...v1.2.7) (2026-01-26)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * add _destroy() methods to Transform streams for proper cleanup ([ed78912](https://github.com/postalsys/imapflow/commit/ed78912143d3613a7687a2bae880edd9051355cc))
16
+
3
17
  ## [1.2.6](https://github.com/postalsys/imapflow/compare/v1.2.5...v1.2.6) (2026-01-12)
4
18
 
5
19
 
@@ -252,6 +252,21 @@ class ImapStream extends Transform {
252
252
  _flush(next) {
253
253
  next();
254
254
  }
255
+
256
+ _destroy(err, callback) {
257
+ this.inputBuffer = [];
258
+ this.lineBuffer = [];
259
+ this.literalBuffer = [];
260
+ this.literals = [];
261
+ // Clear inputQueue and call any pending callbacks
262
+ while (this.inputQueue.length) {
263
+ const item = this.inputQueue.shift();
264
+ if (typeof item.next === 'function') {
265
+ item.next();
266
+ }
267
+ }
268
+ callback(err);
269
+ }
255
270
  }
256
271
 
257
272
  module.exports.ImapStream = ImapStream;
package/lib/jp-decoder.js CHANGED
@@ -41,6 +41,12 @@ class JPDecoder extends Transform {
41
41
 
42
42
  done();
43
43
  }
44
+
45
+ _destroy(err, callback) {
46
+ this.chunks = [];
47
+ this.chunklen = 0;
48
+ callback(err);
49
+ }
44
50
  }
45
51
 
46
52
  module.exports.JPDecoder = JPDecoder;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imapflow",
3
- "version": "1.2.6",
3
+ "version": "1.2.8",
4
4
  "description": "IMAP Client for Node",
5
5
  "main": "lib/imap-flow.js",
6
6
  "types": "lib/imap-flow.d.ts",
@@ -31,13 +31,13 @@
31
31
  },
32
32
  "homepage": "https://imapflow.com/",
33
33
  "devDependencies": {
34
- "@babel/eslint-parser": "7.28.5",
34
+ "@babel/eslint-parser": "7.28.6",
35
35
  "@babel/eslint-plugin": "7.27.1",
36
36
  "@babel/plugin-syntax-class-properties": "7.12.13",
37
- "@babel/preset-env": "7.28.5",
37
+ "@babel/preset-env": "7.28.6",
38
38
  "@eslint/eslintrc": "3.3.3",
39
39
  "@eslint/js": "9.39.2",
40
- "@types/node": "25.0.3",
40
+ "@types/node": "25.1.0",
41
41
  "c8": "10.1.3",
42
42
  "eslint": "9.39.2",
43
43
  "eslint-config-nodemailer": "1.2.0",
@@ -48,7 +48,7 @@
48
48
  "grunt-eslint": "24.3.0",
49
49
  "imapflow-jsdoc-template": "3.4.0-imapflow.3",
50
50
  "jsdoc": "4.0.4",
51
- "prettier": "3.7.4",
51
+ "prettier": "3.8.1",
52
52
  "proxyquire": "^2.1.3",
53
53
  "st": "3.0.3",
54
54
  "typescript": "5.9.3"
@@ -56,12 +56,12 @@
56
56
  "dependencies": {
57
57
  "@zone-eu/mailsplit": "5.4.8",
58
58
  "encoding-japanese": "2.2.0",
59
- "iconv-lite": "0.7.1",
59
+ "iconv-lite": "0.7.2",
60
60
  "libbase64": "1.3.0",
61
61
  "libmime": "5.3.7",
62
62
  "libqp": "2.1.1",
63
- "nodemailer": "7.0.12",
64
- "pino": "10.1.0",
63
+ "nodemailer": "7.0.13",
64
+ "pino": "10.3.0",
65
65
  "socks": "2.8.7"
66
66
  }
67
67
  }