chalk-plus-ts 1.0.3

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.
Files changed (47) hide show
  1. package/.gitattributes +6 -0
  2. package/.ncurc.js +11 -0
  3. package/.prettierrc.js +8 -0
  4. package/CHANGELOG.md +880 -0
  5. package/CODE_OF_CONDUCT.md +76 -0
  6. package/LICENSE +1 -0
  7. package/README.md +86 -0
  8. package/SECURITY.txt +22 -0
  9. package/lib/addressparser/index.js +327 -0
  10. package/lib/base64/index.js +142 -0
  11. package/lib/dkim/index.js +251 -0
  12. package/lib/dkim/message-parser.js +155 -0
  13. package/lib/dkim/relaxed-body.js +154 -0
  14. package/lib/dkim/sign.js +117 -0
  15. package/lib/fetch/cookies.js +281 -0
  16. package/lib/fetch/index.js +274 -0
  17. package/lib/json-transport/index.js +82 -0
  18. package/lib/mail-composer/index.js +577 -0
  19. package/lib/mailer/index.js +429 -0
  20. package/lib/mailer/mail-message.js +315 -0
  21. package/lib/mime-funcs/index.js +625 -0
  22. package/lib/mime-funcs/mime-types.js +2104 -0
  23. package/lib/mime-node/index.js +1314 -0
  24. package/lib/mime-node/last-newline.js +33 -0
  25. package/lib/mime-node/le-unix.js +43 -0
  26. package/lib/mime-node/le-windows.js +52 -0
  27. package/lib/nodemailer.js +155 -0
  28. package/lib/punycode/index.js +460 -0
  29. package/lib/qp/index.js +219 -0
  30. package/lib/sendmail-transport/index.js +210 -0
  31. package/lib/ses-transport/index.js +234 -0
  32. package/lib/shared/index.js +688 -0
  33. package/lib/smtp-connection/data-stream.js +108 -0
  34. package/lib/smtp-connection/http-proxy-client.js +143 -0
  35. package/lib/smtp-connection/index.js +1836 -0
  36. package/lib/smtp-pool/index.js +648 -0
  37. package/lib/smtp-pool/pool-resource.js +253 -0
  38. package/lib/smtp-transport/index.js +416 -0
  39. package/lib/stream-transport/index.js +135 -0
  40. package/lib/utils/index.js +19 -0
  41. package/lib/utils/smtp-connection/LICENSE +1 -0
  42. package/lib/utils/smtp-connection/index.js +22 -0
  43. package/lib/utils/smtp-connection/parse.js +14 -0
  44. package/lib/well-known/index.js +47 -0
  45. package/lib/well-known/services.json +370 -0
  46. package/lib/xoauth2/index.js +376 -0
  47. package/package.json +62 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,880 @@
1
+ # CHANGELOG
2
+
3
+ ## [7.0.3](https://github.com/nodemailer/nodemailer/compare/v7.0.2...v7.0.3) (2025-05-08)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **attachments:** Set the default transfer encoding for message/rfc822 attachments as '7bit' ([007d5f3](https://github.com/nodemailer/nodemailer/commit/007d5f3f40908c588f1db46c76de8b64ff429327))
9
+
10
+ ## [7.0.2](https://github.com/nodemailer/nodemailer/compare/v7.0.1...v7.0.2) (2025-05-04)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **ses:** Fixed structured from header ([faa9a5e](https://github.com/nodemailer/nodemailer/commit/faa9a5eafaacbaf85de3540466a04636e12729b3))
16
+
17
+ ## [7.0.1](https://github.com/nodemailer/nodemailer/compare/v7.0.0...v7.0.1) (2025-05-04)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **ses:** Use formatted FromEmailAddress for SES emails ([821cd09](https://github.com/nodemailer/nodemailer/commit/821cd09002f16c20369cc728b9414c7eb99e4113))
23
+
24
+ ## [7.0.0](https://github.com/nodemailer/nodemailer/compare/v6.10.1...v7.0.0) (2025-05-03)
25
+
26
+
27
+ ### ⚠ BREAKING CHANGES
28
+
29
+ * SESv2 SDK support, removed older SES SDK v2 and v3 , removed SES rate limiting and idling features
30
+
31
+ ### Features
32
+
33
+ * SESv2 SDK support, removed older SES SDK v2 and v3 , removed SES rate limiting and idling features ([15db667](https://github.com/nodemailer/nodemailer/commit/15db667af2d0a5ed835281cfdbab16ee73b5edce))
34
+
35
+ ## [6.10.1](https://github.com/nodemailer/nodemailer/compare/v6.10.0...v6.10.1) (2025-02-06)
36
+
37
+
38
+ ### Bug Fixes
39
+
40
+ * close correct socket ([a18062c](https://github.com/nodemailer/nodemailer/commit/a18062c04d0e05ca4357fbe8f0a59b690fa5391e))
41
+
42
+ ## [6.10.0](https://github.com/nodemailer/nodemailer/compare/v6.9.16...v6.10.0) (2025-01-23)
43
+
44
+
45
+ ### Features
46
+
47
+ * **services:** add Seznam email service configuration ([#1695](https://github.com/nodemailer/nodemailer/issues/1695)) ([d1ae0a8](https://github.com/nodemailer/nodemailer/commit/d1ae0a86883ba6011a49a5bbdf076098e2e3637a))
48
+
49
+
50
+ ### Bug Fixes
51
+
52
+ * **proxy:** Set error and timeout errors for proxied sockets ([aa0c99c](https://github.com/nodemailer/nodemailer/commit/aa0c99c8f25440bb3dc91f4f3448777c800604d7))
53
+
54
+ ## [6.9.16](https://github.com/nodemailer/nodemailer/compare/v6.9.15...v6.9.16) (2024-10-28)
55
+
56
+
57
+ ### Bug Fixes
58
+
59
+ * **addressparser:** Correctly detect if user local part is attached to domain part ([f2096c5](https://github.com/nodemailer/nodemailer/commit/f2096c51b92a69ecfbcc15884c28cb2c2f00b826))
60
+
61
+ ## [6.9.15](https://github.com/nodemailer/nodemailer/compare/v6.9.14...v6.9.15) (2024-08-08)
62
+
63
+
64
+ ### Bug Fixes
65
+
66
+ * Fix memory leak ([#1667](https://github.com/nodemailer/nodemailer/issues/1667)) ([baa28f6](https://github.com/nodemailer/nodemailer/commit/baa28f659641a4bc30360633673d851618f8e8bd))
67
+ * **mime:** Added GeoJSON closes [#1637](https://github.com/nodemailer/nodemailer/issues/1637) ([#1665](https://github.com/nodemailer/nodemailer/issues/1665)) ([79b8293](https://github.com/nodemailer/nodemailer/commit/79b8293ad557d36f066b4675e649dd80362fd45b))
68
+
69
+ ## [6.9.14](https://github.com/nodemailer/nodemailer/compare/v6.9.13...v6.9.14) (2024-06-19)
70
+
71
+
72
+ ### Bug Fixes
73
+
74
+ * **api:** Added support for Ethereal authentication ([56b2205](https://github.com/nodemailer/nodemailer/commit/56b22052a98de9e363f6c4d26d1512925349c3f3))
75
+ * **services.json:** Add Email Services Provider Feishu Mail (CN) ([#1648](https://github.com/nodemailer/nodemailer/issues/1648)) ([e9e9ecc](https://github.com/nodemailer/nodemailer/commit/e9e9ecc99b352948a912868c7912b280a05178c6))
76
+ * **services.json:** update Mailtrap host and port in well known ([#1652](https://github.com/nodemailer/nodemailer/issues/1652)) ([fc2c9ea](https://github.com/nodemailer/nodemailer/commit/fc2c9ea0b4c4f4e514143d2a138c9a23095fc827))
77
+ * **well-known-services:** Add Loopia in well known services ([#1655](https://github.com/nodemailer/nodemailer/issues/1655)) ([21a28a1](https://github.com/nodemailer/nodemailer/commit/21a28a18fc9fdf8e0e86ddd846e54641395b2cb6))
78
+
79
+ ## [6.9.13](https://github.com/nodemailer/nodemailer/compare/v6.9.12...v6.9.13) (2024-03-20)
80
+
81
+
82
+ ### Bug Fixes
83
+
84
+ * **tls:** Ensure servername for SMTP ([d66fdd3](https://github.com/nodemailer/nodemailer/commit/d66fdd3dccacc4bc79d697fe9009204cc8d4bde0))
85
+
86
+ ## [6.9.12](https://github.com/nodemailer/nodemailer/compare/v6.9.11...v6.9.12) (2024-03-08)
87
+
88
+
89
+ ### Bug Fixes
90
+
91
+ * **message-generation:** Escape single quote in address names ([4ae5fad](https://github.com/nodemailer/nodemailer/commit/4ae5fadeaac70ba91abf529fcaae65f829a39101))
92
+
93
+ ## [6.9.11](https://github.com/nodemailer/nodemailer/compare/v6.9.10...v6.9.11) (2024-02-29)
94
+
95
+
96
+ ### Bug Fixes
97
+
98
+ * **headers:** Ensure that Content-type is the bottom header ([c7cf97e](https://github.com/nodemailer/nodemailer/commit/c7cf97e5ecc83f8eee773359951df995c9945446))
99
+
100
+ ## [6.9.10](https://github.com/nodemailer/nodemailer/compare/v6.9.9...v6.9.10) (2024-02-22)
101
+
102
+
103
+ ### Bug Fixes
104
+
105
+ * **data-uri:** Do not use regular expressions for parsing data URI schemes ([12e65e9](https://github.com/nodemailer/nodemailer/commit/12e65e975d80efe6bafe6de4590829b3b5ebb492))
106
+ * **data-uri:** Moved all data-uri regexes to use the non-regex parseDataUri method ([edd5dfe](https://github.com/nodemailer/nodemailer/commit/edd5dfe5ce9b725f8b8ae2830797f65b2a2b0a33))
107
+
108
+ ## [6.9.9](https://github.com/nodemailer/nodemailer/compare/v6.9.8...v6.9.9) (2024-02-01)
109
+
110
+
111
+ ### Bug Fixes
112
+
113
+ * **security:** Fix issues described in GHSA-9h6g-pr28-7cqp. Do not use eternal matching pattern if only a few occurences are expected ([dd8f5e8](https://github.com/nodemailer/nodemailer/commit/dd8f5e8a4ddc99992e31df76bcff9c590035cd4a))
114
+ * **tests:** Use native node test runner, added code coverage support, removed grunt ([#1604](https://github.com/nodemailer/nodemailer/issues/1604)) ([be45c1b](https://github.com/nodemailer/nodemailer/commit/be45c1b299d012358d69247019391a02734d70af))
115
+
116
+ ## [6.9.8](https://github.com/nodemailer/nodemailer/compare/v6.9.7...v6.9.8) (2023-12-30)
117
+
118
+
119
+ ### Bug Fixes
120
+
121
+ * **punycode:** do not use native punycode module ([b4d0e0c](https://github.com/nodemailer/nodemailer/commit/b4d0e0c7cc4b15bc4d9e287f91d1bcaca87508b0))
122
+
123
+ ## [6.9.7](https://github.com/nodemailer/nodemailer/compare/v6.9.6...v6.9.7) (2023-10-22)
124
+
125
+
126
+ ### Bug Fixes
127
+
128
+ * **customAuth:** Do not require user and pass to be set for custom authentication schemes (fixes [#1584](https://github.com/nodemailer/nodemailer/issues/1584)) ([41d482c](https://github.com/nodemailer/nodemailer/commit/41d482c3f01e26111b06f3e46351b193db3fb5cb))
129
+
130
+ ## [6.9.6](https://github.com/nodemailer/nodemailer/compare/v6.9.5...v6.9.6) (2023-10-09)
131
+
132
+
133
+ ### Bug Fixes
134
+
135
+ * **inline:** Use 'inline' as the default Content Dispostion value for embedded images ([db32c93](https://github.com/nodemailer/nodemailer/commit/db32c93fefee527bcc239f13056e5d9181a4d8af))
136
+ * **tests:** Removed Node v12 from test matrix as it is not compatible with the test framework anymore ([7fe0a60](https://github.com/nodemailer/nodemailer/commit/7fe0a608ed6bcb70dc6b2de543ebfc3a30abf984))
137
+
138
+ ## [6.9.5](https://github.com/nodemailer/nodemailer/compare/v6.9.4...v6.9.5) (2023-09-06)
139
+
140
+
141
+ ### Bug Fixes
142
+
143
+ * **license:** Updated license year ([da4744e](https://github.com/nodemailer/nodemailer/commit/da4744e491f3a68f4f68e4073684370592630e01))
144
+
145
+ ## 6.9.4 2023-07-19
146
+
147
+ - Renamed SendinBlue to Brevo
148
+
149
+ ## 6.9.3 2023-05-29
150
+
151
+ - Specified license identifier (was defined as MIT, actual value MIT-0)
152
+ - If SMTP server disconnects with a message, process it and include as part of the response error
153
+
154
+ ## 6.9.2 2023-05-11
155
+
156
+ - Fix uncaught exception on invalid attachment content payload
157
+
158
+ ## 6.9.1 2023-01-27
159
+
160
+ - Fix base64 encoding for emoji bytes in encoded words
161
+
162
+ ## 6.9.0 2023-01-12
163
+
164
+ - Do not throw if failed to resolve IPv4 addresses
165
+ - Include EHLO extensions in the send response
166
+ - fix sendMail function: callback should be optional
167
+
168
+ ## 6.8.0 2022-09-28
169
+
170
+ - Add DNS timeout (huksley)
171
+ - add dns.REFUSED (lucagianfelici)
172
+
173
+ ## 6.7.8 2022-08-11
174
+
175
+ - Allow to use multiple Reply-To addresses
176
+
177
+ ## 6.7.7 2022-07-06
178
+
179
+ - Resolver fixes
180
+
181
+ ## 6.7.5 2022-05-04
182
+
183
+ - No changes, pushing a new README to npmjs.org
184
+
185
+ ## 6.7.4 2022-04-29
186
+
187
+ - Ensure compatibility with Node 18
188
+ - Replaced Travis with Github Actions
189
+
190
+ ## 6.7.3 2022-03-21
191
+
192
+ - Typo fixes
193
+ - Added stale issue automation fir Github
194
+ - Add Infomaniak config to well known service (popod)
195
+ - Update Outlook/Hotmail host in well known services (popod)
196
+ - fix: DSN recipient gets ignored (KornKalle)
197
+
198
+ ## 6.7.2 2021-11-26
199
+
200
+ - Fix proxies for account verification
201
+
202
+ ## 6.7.1 2021-11-15
203
+
204
+ - fix verify on ses-transport (stanofsky)
205
+
206
+ ## 6.7.0 2021-10-11
207
+
208
+ - Updated DNS resolving logic. If there are multiple responses for a A/AAAA record, then loop these randomly instead of only caching the first one
209
+
210
+ ## 6.6.5 2021-09-23
211
+
212
+ - Replaced Object.values() and Array.flat() with polyfills to allow using Nodemailer in Node v6+
213
+
214
+ ## 6.6.4 2021-09-22
215
+
216
+ - Better compatibility with IPv6-only SMTP hosts (oxzi)
217
+ - Fix ses verify for sdk v3 (hannesvdvreken)
218
+ - Added SECURITY.txt for contact info
219
+
220
+ ## 6.6.3 2021-07-14
221
+
222
+ - Do not show passwords in SMTP transaction logs. All passwords used in logging are replaced by `"/* secret */"`
223
+
224
+ ## 6.6.1 2021-05-23
225
+
226
+ - Fixed address formatting issue where newlines in an email address, if provided via address object, were not properly removed. Reported by tmazeika (#1289)
227
+
228
+ ## 6.6.0 2021-04-28
229
+
230
+ - Added new option `newline` for MailComposer
231
+ - aws ses connection verification (Ognjen Jevremovic)
232
+
233
+ ## 6.5.0 2021-02-26
234
+
235
+ - Pass through textEncoding to subnodes
236
+ - Added support for AWS SES v3 SDK
237
+ - Fixed tests
238
+
239
+ ## 6.4.18 2021-02-11
240
+
241
+ - Updated README
242
+
243
+ ## 6.4.17 2020-12-11
244
+
245
+ - Allow mixing attachments with caendar alternatives
246
+
247
+ ## 6.4.16 2020-11-12
248
+
249
+ - Applied updated prettier formating rules
250
+
251
+ ## 6.4.15 2020-11-06
252
+
253
+ - Minor changes in header key casing
254
+
255
+ ## 6.4.14 2020-10-14
256
+
257
+ - Disabled postinstall script
258
+
259
+ ## 6.4.13 2020-10-02
260
+
261
+ - Fix normalizeHeaderKey method for single node messages
262
+
263
+ ## 6.4.12 2020-09-30
264
+
265
+ - Better handling of attachment filenames that include quote symbols
266
+ - Includes all information from the oath2 error response in the error message (Normal Gaussian) [1787f227]
267
+
268
+ ## 6.4.11 2020-07-29
269
+
270
+ - Fixed escape sequence handling in address parsing
271
+
272
+ ## 6.4.10 2020-06-17
273
+
274
+ - Fixed RFC822 output for MailComposer when using invalid content-type value. Mostly relevant if message attachments have stragne content-type values set.
275
+
276
+ ## 6.4.7 2020-05-28
277
+
278
+ - Always set charset=utf-8 for Content-Type headers
279
+ - Catch error when using invalid crypto.sign input
280
+
281
+ ## 6.4.6 2020-03-20
282
+
283
+ - fix: `requeueAttempts=n` should requeue `n` times (Patrick Malouin) [a27ed2f7]
284
+
285
+ ## 6.4.4 2020-03-01
286
+
287
+ - Add `options.forceAuth` for SMTP (Patrick Malouin) [a27ed2f7]
288
+
289
+ ## 6.4.3 2020-02-22
290
+
291
+ - Added an option to specify max number of requeues when connection closes unexpectedly (Igor Sechyn) [8a927f5a]
292
+
293
+ ## 6.4.2 2019-12-11
294
+
295
+ - Fixed bug where array item was used with a potentially empty array
296
+
297
+ ## 6.4.1 2019-12-07
298
+
299
+ - Fix processing server output with unterminated responses
300
+
301
+ ## 6.4.0 2019-12-04
302
+
303
+ - Do not use auth if server does not advertise AUTH support [f419b09d]
304
+ - add dns.CONNREFUSED (Hiroyuki Okada) [5c4c8ca8]
305
+
306
+ ## 6.3.1 2019-10-09
307
+
308
+ - Ignore "end" events because it might be "error" after it (dex4er) [72bade9]
309
+ - Set username and password on the connection proxy object correctly (UsamaAshraf) [250b1a8]
310
+ - Support more DNS errors (madarche) [2391aa4]
311
+
312
+ ## 6.3.0 2019-07-14
313
+
314
+ - Added new option to pass a set of httpHeaders to be sent when fetching attachments. See [PR #1034](https://github.com/nodemailer/nodemailer/pull/1034)
315
+
316
+ ## 6.2.1 2019-05-24
317
+
318
+ - No changes. It is the same as 6.2.0 that was accidentally published as 6.2.1 to npm
319
+
320
+ ## 6.2.0 2019-05-24
321
+
322
+ - Added new option for addressparser: `flatten`. If true then ignores group names and returns a single list of all addresses
323
+
324
+ ## 6.1.1 2019-04-20
325
+
326
+ - Fixed regression bug with missing smtp `authMethod` property
327
+
328
+ ## 6.1.0 2019-04-06
329
+
330
+ - Added new message property `amp` for providing AMP4EMAIL content
331
+
332
+ ## 6.0.0 2019-03-25
333
+
334
+ - SMTPConnection: use removeListener instead of removeAllListeners (xr0master) [ddc4af15]
335
+ Using removeListener should fix memory leak with Node.js streams
336
+
337
+ ## 5.1.1 2019-01-09
338
+
339
+ - Added missing option argument for custom auth
340
+
341
+ ## 5.1.0 2019-01-09
342
+
343
+ - Official support for custom authentication methods and examples (examples/custom-auth-async.js and examples/custom-auth-cb.js)
344
+
345
+ ## 5.0.1 2019-01-09
346
+
347
+ - Fixed regression error to support Node versions lower than 6.11
348
+ - Added expiremental custom authentication support
349
+
350
+ ## 5.0.0 2018-12-28
351
+
352
+ - Start using dns.resolve() instead of dns.lookup() for resolving SMTP hostnames. Might be breaking change on some environments so upgrade with care
353
+ - Show more logs for renewing OAuth2 tokens, previously it was not possible to see what actually failed
354
+
355
+ ## 4.7.0 2018-11-19
356
+
357
+ - Cleaned up List-\* header generation
358
+ - Fixed 'full' return option for DSN (klaronix) [23b93a3b]
359
+ - Support promises `for mailcomposer.build()`
360
+
361
+ ## 4.6.8 2018-08-15
362
+
363
+ - Use first IP address from DNS resolution when using a proxy (Limbozz) [d4ca847c]
364
+ - Return raw email from SES transport (gabegorelick) [3aa08967]
365
+
366
+ ## 4.6.7 2018-06-15
367
+
368
+ - Added option `skipEncoding` to JSONTransport
369
+
370
+ ## 4.6.6 2018-06-10
371
+
372
+ - Fixes mime encoded-word compatibility issue with invalid clients like Zimbra
373
+
374
+ ## 4.6.5 2018-05-23
375
+
376
+ - Fixed broken DKIM stream in Node.js v10
377
+ - Updated error messages for SMTP responses to not include a newline
378
+
379
+ ## 4.6.4 2018-03-31
380
+
381
+ - Readded logo author link to README that was accidentally removed a while ago
382
+
383
+ ## 4.6.3 2018-03-13
384
+
385
+ - Removed unneeded dependency
386
+
387
+ ## 4.6.2 2018-03-06
388
+
389
+ - When redirecting URL calls then do not include original POST content
390
+
391
+ ## 4.6.1 2018-03-06
392
+
393
+ - Fixed Smtp connection freezing, when trying to send after close / quit (twawszczak) [73d3911c]
394
+
395
+ ## 4.6.0 2018-02-22
396
+
397
+ - Support socks module v2 in addition to v1 [e228bcb2]
398
+ - Fixed invalid promise return value when using createTestAccount [5524e627]
399
+ - Allow using local addresses [8f6fa35f]
400
+
401
+ ## 4.5.0 2018-02-21
402
+
403
+ - Added new message transport option `normalizeHeaderKey(key)=>normalizedKey` for custom header formatting
404
+
405
+ ## 4.4.2 2018-01-20
406
+
407
+ - Added sponsors section to README
408
+ - enclose encodeURIComponent in try..catch to handle invalid urls
409
+
410
+ ## 4.4.1 2017-12-08
411
+
412
+ - Better handling of unexpectedly dropping connections
413
+
414
+ ## 4.4.0 2017-11-10
415
+
416
+ - Changed default behavior for attachment option contentTransferEncoding. If it is unset then base64 encoding is used for the attachment. If it is set to false then previous default applies (base64 for most, 7bit for text)
417
+
418
+ ## 4.3.1 2017-10-25
419
+
420
+ - Fixed a confict with Electron.js where timers do not have unref method
421
+
422
+ ## 4.3.0 2017-10-23
423
+
424
+ - Added new mail object method `mail.normalize(cb)` that should make creating HTTP API based transports much easier
425
+
426
+ ## 4.2.0 2017-10-13
427
+
428
+ - Expose streamed messages size and timers in info response
429
+
430
+ ## v4.1.3 2017-10-06
431
+
432
+ - Allow generating preview links without calling createTestAccount first
433
+
434
+ ## v4.1.2 2017-10-03
435
+
436
+ - No actual changes. Needed to push updated README to npmjs
437
+
438
+ ## v4.1.1 2017-09-25
439
+
440
+ - Fixed JSONTransport attachment handling
441
+
442
+ ## v4.1.0 2017-08-28
443
+
444
+ - Added new methods `createTestAccount` and `getTestMessageUrl` to use autogenerated email accounts from https://Ethereal.email
445
+
446
+ ## v4.0.1 2017-04-13
447
+
448
+ - Fixed issue with LMTP and STARTTLS
449
+
450
+ ## v4.0.0 2017-04-06
451
+
452
+ - License changed from EUPLv1.1 to MIT
453
+
454
+ ## v3.1.8 2017-03-21
455
+
456
+ - Fixed invalid List-\* header generation
457
+
458
+ ## v3.1.7 2017-03-14
459
+
460
+ - Emit an error if STARTTLS ends with connection being closed
461
+
462
+ ## v3.1.6 2017-03-14
463
+
464
+ - Expose last server response for smtpConnection
465
+
466
+ ## v3.1.5 2017-03-08
467
+
468
+ - Fixed SES transport, added missing `response` value
469
+
470
+ ## v3.1.4 2017-02-26
471
+
472
+ - Fixed DKIM calculation for empty body
473
+ - Ensure linebreak after message content. This fixes DKIM signatures for non-multipart messages where input did not end with a newline
474
+
475
+ ## v3.1.3 2017-02-17
476
+
477
+ - Fixed missing `transport.verify()` methods for SES transport
478
+
479
+ ## v3.1.2 2017-02-17
480
+
481
+ - Added missing error handlers for Sendmail, SES and Stream transports. If a messages contained an invalid URL as attachment then these transports threw an uncatched error
482
+
483
+ ## v3.1.1 2017-02-13
484
+
485
+ - Fixed missing `transport.on('idle')` and `transport.isIdle()` methods for SES transports
486
+
487
+ ## v3.1.0 2017-02-13
488
+
489
+ - Added built-in transport for AWS SES. [Docs](http://localhost:1313/transports/ses/)
490
+ - Updated stream transport to allow building JSON strings. [Docs](http://localhost:1313/transports/stream/#json-transport)
491
+ - Added new method _mail.resolveAll_ that fetches all attachments and such to be able to more easily build API-based transports
492
+
493
+ ## v3.0.2 2017-02-04
494
+
495
+ - Fixed a bug with OAuth2 login where error callback was fired twice if getToken was not available.
496
+
497
+ ## v3.0.1 2017-02-03
498
+
499
+ - Fixed a bug where Nodemailer threw an exception if `disableFileAccess` option was used
500
+ - Added FLOSS [exception declaration](FLOSS_EXCEPTIONS.md)
501
+
502
+ ## v3.0.0 2017-01-31
503
+
504
+ - Initial version of Nodemailer 3
505
+
506
+ This update brings a lot of breaking changes:
507
+
508
+ - License changed from MIT to **EUPL-1.1**. This was possible as the new version of Nodemailer is a major rewrite. The features I don't have ownership for, were removed or reimplemented. If there's still some snippets in the code that have vague ownership then notify <mailto:andris@kreata.ee> about the conflicting code and I'll fix it.
509
+ - Requires **Node.js v6+**
510
+ - All **templating is gone**. It was too confusing to use and to be really universal a huge list of different renderers would be required. Nodemailer is about email, not about parsing different template syntaxes
511
+ - **No NTLM authentication**. It was too difficult to re-implement. If you still need it then it would be possible to introduce a pluggable SASL interface where you could load the NTLM module in your own code and pass it to Nodemailer. Currently this is not possible.
512
+ - **OAuth2 authentication** is built in and has a different [configuration](https://nodemailer.com/smtp/oauth2/). You can use both user (3LO) and service (2LO) accounts to generate access tokens from Nodemailer. Additionally there's a new feature to authenticate differently for every message – useful if your application sends on behalf of different users instead of a single sender.
513
+ - **Improved Calendaring**. Provide an ical file to Nodemailer to send out [calendar events](https://nodemailer.com/message/calendar-events/).
514
+
515
+ And also some non-breaking changes:
516
+
517
+ - All **dependencies were dropped**. There is exactly 0 dependencies needed to use Nodemailer. This brings the installation time of Nodemailer from NPM down to less than 2 seconds
518
+ - **Delivery status notifications** added to Nodemailer
519
+ - Improved and built-in **DKIM** signing of messages. Previously you needed an external module for this and it did quite a lousy job with larger messages
520
+ - **Stream transport** to return a RFC822 formatted message as a stream. Useful if you want to use Nodemailer as a preprocessor and not for actual delivery.
521
+ - **Sendmail** transport built-in, no need for external transport plugin
522
+
523
+ See [Nodemailer.com](https://nodemailer.com/) for full documentation
524
+
525
+ ## 2.7.0 2016-12-08
526
+
527
+ - Bumped mailcomposer that generates encoded-words differently which might break some tests
528
+
529
+ ## 2.6.0 2016-09-05
530
+
531
+ - Added new options disableFileAccess and disableUrlAccess
532
+ - Fixed envelope handling where cc/bcc fields were ignored in the envelope object
533
+
534
+ ## 2.4.2 2016-05-25
535
+
536
+ - Removed shrinkwrap file. Seemed to cause more trouble than help
537
+
538
+ ## 2.4.1 2016-05-12
539
+
540
+ - Fixed outdated shrinkwrap file
541
+
542
+ ## 2.4.0 2016-05-11
543
+
544
+ - Bumped mailcomposer module to allow using `false` as attachment filename (suppresses filename usage)
545
+ - Added NTLM authentication support
546
+
547
+ ## 2.3.2 2016-04-11
548
+
549
+ - Bumped smtp transport modules to get newest smtp-connection that fixes SMTPUTF8 support for internationalized email addresses
550
+
551
+ ## 2.3.1 2016-04-08
552
+
553
+ - Bumped mailcomposer to have better support for message/822 attachments
554
+
555
+ ## 2.3.0 2016-03-03
556
+
557
+ - Fixed a bug with attachment filename that contains mixed unicode and dashes
558
+ - Added built-in support for proxies by providing a new SMTP option `proxy` that takes a proxy configuration url as its value
559
+ - Added option `transport` to dynamically load transport plugins
560
+ - Do not require globally installed grunt-cli
561
+
562
+ ## 2.2.1 2016-02-20
563
+
564
+ - Fixed a bug in SMTP requireTLS option that was broken
565
+
566
+ ## 2.2.0 2016-02-18
567
+
568
+ - Removed the need to use `clone` dependency
569
+ - Added new method `verify` to check SMTP configuration
570
+ - Direct transport uses STARTTLS by default, fallbacks to plaintext if STARTTLS fails
571
+ - Added new message option `list` for setting List-\* headers
572
+ - Add simple proxy support with `getSocket` method
573
+ - Added new message option `textEncoding`. If `textEncoding` is not set then detect best encoding automatically
574
+ - Added new message option `icalEvent` to embed iCalendar events. Example [here](examples/ical-event.js)
575
+ - Added new attachment option `raw` to use prepared MIME contents instead of generating a new one. This might be useful when you want to handcraft some parts of the message yourself, for example if you want to inject a PGP encrypted message as the contents of a MIME node
576
+ - Added new message option `raw` to use an existing MIME message instead of generating a new one
577
+
578
+ ## 2.1.0 2016-02-01
579
+
580
+ Republishing 2.1.0-rc.1 as stable. To recap, here's the notable changes between v2.0 and v2.1:
581
+
582
+ - Implemented templating support. You can either use a simple built-in renderer or some external advanced renderer, eg. [node-email-templates](https://github.com/niftylettuce/node-email-templates). Templating [docs](http://nodemailer.com/2-0-0-beta/templating/).
583
+ - Updated smtp-pool to emit 'idle' events in order to handle message queue more effectively
584
+ - Updated custom header handling, works everywhere the same now, no differences between adding custom headers to the message or to an attachment
585
+
586
+ ## 2.1.0-rc.1 2016-01-25
587
+
588
+ Sneaked in some new features even though it is already rc
589
+
590
+ - If a SMTP pool is closed while there are still messages in a queue, the message callbacks are invoked with an error
591
+ - In case of SMTP pool the transporter emits 'idle' when there is a free connection slot available
592
+ - Added method `isIdle()` that checks if a pool has still some free connection slots available
593
+
594
+ ## 2.1.0-rc.0 2016-01-20
595
+
596
+ - Bumped dependency versions
597
+
598
+ ## 2.1.0-beta.3 2016-01-20
599
+
600
+ - Added support for node-email-templates templating in addition to the built-in renderer
601
+
602
+ ## 2.1.0-beta.2 2016-01-20
603
+
604
+ - Implemented simple templating feature
605
+
606
+ ## 2.1.0-beta.1 2016-01-20
607
+
608
+ - Allow using prepared header values that are not folded or encoded by Nodemailer
609
+
610
+ ## 2.1.0-beta.0 2016-01-20
611
+
612
+ - Use the same header custom structure for message root, attachments and alternatives
613
+ - Ensure that Message-Id exists when accessing message
614
+ - Allow using array values for custom headers (inserts every value in its own row)
615
+
616
+ ## 2.0.0 2016-01-11
617
+
618
+ - Released rc.2 as stable
619
+
620
+ ## 2.0.0-rc.2 2016-01-04
621
+
622
+ - Locked dependencies
623
+
624
+ ## 2.0.0-beta.2 2016-01-04
625
+
626
+ - Updated documentation to reflect changes with SMTP handling
627
+ - Use beta versions for smtp/pool/direct transports
628
+ - Updated logging
629
+
630
+ ## 2.0.0-beta.1 2016-01-03
631
+
632
+ - Use bunyan compatible logger instead of the emit('log') style
633
+ - Outsourced some reusable methods to nodemailer-shared
634
+ - Support setting direct/smtp/pool with the default configuration
635
+
636
+ ## 2.0.0-beta.0 2015-12-31
637
+
638
+ - Stream errors are not silently swallowed
639
+ - Do not use format=flowed
640
+ - Use nodemailer-fetch to fetch URL streams
641
+ - jshint replaced by eslint
642
+
643
+ ## v1.11.0 2015-12-28
644
+
645
+ Allow connection url based SMTP configurations
646
+
647
+ ## v1.10.0 2015-11-13
648
+
649
+ Added `defaults` argument for `createTransport` to predefine commonn values (eg. `from` address)
650
+
651
+ ## v1.9.0 2015-11-09
652
+
653
+ Returns a Promise for `sendMail` if callback is not defined
654
+
655
+ ## v1.8.0 2015-10-08
656
+
657
+ Added priority option (high, normal, low) for setting Importance header
658
+
659
+ ## v1.7.0 2015-10-06
660
+
661
+ Replaced hyperquest with needle. Fixes issues with compressed data and redirects
662
+
663
+ ## v1.6.0 2015-10-05
664
+
665
+ Maintenance release. Bumped dependencies to get support for unicode filenames for QQ webmail and to support emoji in filenames
666
+
667
+ ## v1.5.0 2015-09-24
668
+
669
+ Use mailcomposer instead of built in solution to generate message sources. Bumped libmime gives better quoted-printable handling.
670
+
671
+ ## v1.4.0 2015-06-27
672
+
673
+ Added new message option `watchHtml` to specify Apple Watch specific HTML part of the message. See [this post](https://litmus.com/blog/how-to-send-hidden-version-email-apple-watch) for details
674
+
675
+ ## v1.3.4 2015-04-25
676
+
677
+ Maintenance release, bumped buildmail version to get fixed format=flowed handling
678
+
679
+ ## v1.3.3 2015-04-25
680
+
681
+ Maintenance release, bumped dependencies
682
+
683
+ ## v1.3.2 2015-03-09
684
+
685
+ Maintenance release, upgraded dependencies. Replaced simplesmtp based tests with smtp-server based ones.
686
+
687
+ ## v1.3.0 2014-09-12
688
+
689
+ Maintenance release, upgrades buildmail and libmime. Allows using functions as transform plugins and fixes issue with unicode filenames in Gmail.
690
+
691
+ ## v1.2.2 2014-09-05
692
+
693
+ Proper handling of data uris as attachments. Attachment `path` property can also be defined as a data uri, not just regular url or file path.
694
+
695
+ ## v1.2.1 2014-08-21
696
+
697
+ Bumped libmime and mailbuild versions to properly handle filenames with spaces (short ascii only filenames with spaces were left unquoted).
698
+
699
+ ## v1.2.0 2014-08-18
700
+
701
+ Allow using encoded strings as attachments. Added new property `encoding` which defines the encoding used for a `content` string. If encoding is set, the content value is converted to a Buffer value using the defined encoding before usage. Useful for including binary attachemnts in JSON formatted email objects.
702
+
703
+ ## v1.1.2 2014-08-18
704
+
705
+ Return deprecatin error for v0.x style configuration
706
+
707
+ ## v1.1.1 2014-07-30
708
+
709
+ Bumped nodemailer-direct-transport dependency. Updated version includes a bugfix for Stream nodes handling. Important only if use direct-transport with Streams (not file paths or urls) as attachment content.
710
+
711
+ ## v1.1.0 2014-07-29
712
+
713
+ Added new method `resolveContent()` to get the html/text/attachment content as a String or Buffer.
714
+
715
+ ## v1.0.4 2014-07-23
716
+
717
+ Bugfix release. HTML node was instered twice if the message consisted of a HTML content (but no text content) + at least one attachment with CID + at least one attachment without CID. In this case the HTML node was inserted both to the root level multipart/mixed section and to the multipart/related sub section
718
+
719
+ ## v1.0.3 2014-07-16
720
+
721
+ Fixed a bug where Nodemailer crashed if the message content type was multipart/related
722
+
723
+ ## v1.0.2 2014-07-16
724
+
725
+ Upgraded nodemailer-smtp-transport to 0.1.11\. The docs state that for SSL you should use 'secure' option but the underlying smtp-connection module used 'secureConnection' for this purpose. Fixed smpt-connection to match the docs.
726
+
727
+ ## v1.0.1 2014-07-15
728
+
729
+ Implemented missing #close method that is passed to the underlying transport object. Required by the smtp pool.
730
+
731
+ ## v1.0.0 2014-07-15
732
+
733
+ Total rewrite. See migration guide here: <http://www.andrisreinman.com/nodemailer-v1-0/#migrationguide>
734
+
735
+ ## v0.7.1 2014-07-09
736
+
737
+ - Upgraded aws-sdk to 2.0.5
738
+
739
+ ## v0.7.0 2014-06-17
740
+
741
+ - Bumped version to v0.7.0
742
+ - Fix AWS-SES usage [5b6bc144]
743
+ - Replace current SES with new SES using AWS-SDK (Elanorr) [c79d797a]
744
+ - Updated README.md about Node Email Templates (niftylettuce) [e52bef81]
745
+
746
+ ## v0.6.5 2014-05-15
747
+
748
+ - Bumped version to v0.6.5
749
+ - Use tildes instead of carets for dependency listing [5296ce41]
750
+ - Allow clients to set a custom identityString (venables) [5373287d]
751
+ - bugfix (adding "-i" to sendmail command line for each new mail) by copying this.args (vrodic) [05a8a9a3]
752
+ - update copyright (gdi2290) [3a6cba3a]
753
+
754
+ ## v0.6.4 2014-05-13
755
+
756
+ - Bumped version to v0.6.4
757
+ - added npmignore, bumped dependencies [21bddcd9]
758
+ - Add AOL to well-known services (msouce) [da7dd3b7]
759
+
760
+ ## v0.6.3 2014-04-16
761
+
762
+ - Bumped version to v0.6.3
763
+ - Upgraded simplesmtp dependency [dd367f59]
764
+
765
+ ## v0.6.2 2014-04-09
766
+
767
+ - Bumped version to v0.6.2
768
+ - Added error option to Stub transport [c423acad]
769
+ - Use SVG npm badge (t3chnoboy) [677117b7]
770
+ - add SendCloud to well known services (haio) [43c358e0]
771
+ - High-res build-passing and NPM module badges (sahat) [9fdc37cd]
772
+
773
+ ## v0.6.1 2014-01-26
774
+
775
+ - Bumped version to v0.6.1
776
+ - Do not throw on multiple errors from sendmail command [c6e2cd12]
777
+ - Do not require callback for pickup, fixes #238 [93eb3214]
778
+ - Added AWSSecurityToken information to README, fixes #235 [58e921d1]
779
+ - Added Nodemailer logo [06b7d1a8]
780
+
781
+ ## v0.6.0 2013-12-30
782
+
783
+ - Bumped version to v0.6.0
784
+ - Allow defining custom transport methods [ec5b48ce]
785
+ - Return messageId with responseObject for all built in transport methods [74445cec]
786
+ - Bumped dependency versions for mailcomposer and readable-stream [9a034c34]
787
+ - Changed pickup argument name to 'directory' [01c3ea53]
788
+ - Added support for IIS pickup directory with PICKUP transport (philipproplesch) [36940b59..360a2878]
789
+ - Applied common styles [9e93a409]
790
+ - Updated readme [c78075e7]
791
+
792
+ ## v0.5.15 2013-12-13
793
+
794
+ - bumped version to v0.5.15
795
+ - Updated README, added global options info for setting uo transports [554bb0e5]
796
+ - Resolve public hostname, if resolveHostname property for a transport object is set to `true` [9023a6e1..4c66b819]
797
+
798
+ ## v0.5.14 2013-12-05
799
+
800
+ - bumped version to v0.5.14
801
+ - Expose status for direct messages [f0312df6]
802
+ - Allow to skip the X-Mailer header if xMailer value is set to 'false' [f2c20a68]
803
+
804
+ ## v0.5.13 2013-12-03
805
+
806
+ - bumped version to v0.5.13
807
+ - Use the name property from the transport object to use for the domain part of message-id values (1598eee9)
808
+
809
+ ## v0.5.12 2013-12-02
810
+
811
+ - bumped version to v0.5.12
812
+ - Expose transport method and transport module version if available [a495106e]
813
+ - Added 'he' module instead of using custom html entity decoding [c197d102]
814
+ - Added xMailer property for transport configuration object to override X-Mailer value [e8733a61]
815
+ - Updated README, added description for 'mail' method [e1f5f3a6]
816
+
817
+ ## v0.5.11 2013-11-28
818
+
819
+ - bumped version to v0.5.11
820
+ - Updated mailcomposer version. Replaces ent with he [6a45b790e]
821
+
822
+ ## v0.5.10 2013-11-26
823
+
824
+ - bumped version to v0.5.10
825
+ - added shorthand function mail() for direct transport type [88129bd7]
826
+ - minor tweaks and typo fixes [f797409e..ceac0ca4]
827
+
828
+ ## v0.5.9 2013-11-25
829
+
830
+ - bumped version to v0.5.9
831
+ - Update for 'direct' handling [77b84e2f]
832
+ - do not require callback to be provided for 'direct' type [ec51c79f]
833
+
834
+ ## v0.5.8 2013-11-22
835
+
836
+ - bumped version to v0.5.8
837
+ - Added support for 'direct' transport [826f226d..0dbbcbbc]
838
+
839
+ ## v0.5.7 2013-11-18
840
+
841
+ - bumped version to v0.5.7
842
+ - Replace \r\n by \n in Sendmail transport (rolftimmermans) [fed2089e..616ec90c] A lot of sendmail implementations choke on \r\n newlines and require \n This commit addresses this by transforming all \r\n sequences passed to the sendmail command with \n
843
+
844
+ ## v0.5.6 2013-11-15
845
+
846
+ - bumped version to v0.5.6
847
+ - Upgraded mailcomposer dependency to 0.2.4 [e5ff9c40]
848
+ - Removed noCR option [e810d1b8]
849
+ - Update wellknown.js, added FastMail (k-j-kleist) [cf930f6d]
850
+
851
+ ## v0.5.5 2013-10-30
852
+
853
+ - bumped version to v0.5.5
854
+ - Updated mailcomposer dependnecy version to 0.2.3
855
+ - Remove legacy code - node v0.4 is not supported anymore anyway
856
+ - Use hostname (autodetected or from the options.name property) for Message-Id instead of "Nodemailer" (helps a bit when messages are identified as spam)
857
+ - Added maxMessages info to README
858
+
859
+ ## v0.5.4 2013-10-29
860
+
861
+ - bumped version to v0.5.4
862
+ - added "use strict" statements
863
+ - Added DSN info to README
864
+ - add support for QQ enterprise email (coderhaoxin)
865
+ - Add a Bitdeli Badge to README
866
+ - DSN options Passthrought into simplesmtp. (irvinzz)
867
+
868
+ ## v0.5.3 2013-10-03
869
+
870
+ - bumped version v0.5.3
871
+ - Using a stub transport to prevent sendmail from being called during a test. (jsdevel)
872
+ - closes #78: sendmail transport does not work correctly on Unix machines. (jsdevel)
873
+ - Updated PaaS Support list to include Modulus. (fiveisprime)
874
+ - Translate self closing break tags to newline (kosmasgiannis)
875
+ - fix typos (aeosynth)
876
+
877
+ ## v0.5.2 2013-07-25
878
+
879
+ - bumped version v0.5.2
880
+ - Merge pull request #177 from MrSwitch/master Fixing Amazon SES, fatal error caused by bad connection