Releases: veliovgroup/mail-time
v3.0.0
📦 NPM @3.0.0
☄️ Packosphere @3.0.0
Major Changes
- ☝️ NPM release skipped
v2.x
in order to match Meteor's version (NPM release happened one generation later) ⚠️ New way toimport
andrequire
the packageimport { MailTime, MongoQueue, RedisQueue } from 'mail-time';
⚠️ Decouple from storage, now requires{queue}
passed to constructornew MailTime({})
⚠️ Removedcallback
from.sendMail()
method- 🟥 Added support for Redis as Queue storage driver 🥳
- 🍃 MongoDB as optional Queue storage driver 🥳
- ☝️ Now
josk
task manager and Queue driver can use different databases
Whats' new
- ✨
ping()
method - ✨
cancelMail()
method - ✨
onSent()
callback option - ✨ new
opts.josk
option forjosk
library-specific options - ✨ new
opts.queue
option for storage-driver - ✨
opts.retryDelay
retry delay in ms, successor toopts.interval
- ✨
opts.retries
quantity of retry attempts, successor toopts.maxTries
- ✨
opts.concatDelay
concatenation delay in ms, successor toopts.concatThrottling
- 👨🔬 A lot of new improved tests
- 📔 Custom Queue API
Changes
- ☝️
.sendMail()
now returns{Promise<string>}
that can get passed into.cancelMail()
method
Dependencies
- 📦
[email protected]
, wasv3.1.1
- 📦
[email protected]
, wasv4.2.2
Dev Dependencies
- 📦
[email protected]
, wasv4.4.1
- 📦
[email protected]
, wasv10.3.0
- 📦 Added
[email protected]
Migrate to v3
Import was in v1
/v2
:
import MailTime from 'mail-time';
Changed in v3
to:
import { MailTime, MongoQueue, RedisQueue } from 'mail-time';
new MailTime
in v3
Constructor was in v1
/v2
:
new MailTime({
db,
})
Changed in v3
to:
new MailTime({
queue: new MongoQueue({ db }),
josk: {
adapter: {
type: 'mongo',
db: db
}
}
})
prefix
in v3
Constructor was in v1
/v2
:
new MailTime({
db,
prefix: 'prefix'
})
prefix
need to get duplicated in queue
constructor in v3
:
new MailTime({
prefix: 'prefix',
queue: new MongoQueue({
db: db,
prefix: 'prefix',
}),
josk: {
adapter: {
type: 'mongo',
db: db,
}
}
})
sent/failed callback in v3
Constructor was in v1
/v2
:
MailTime#sendMail(message, (error, details) => {
console.log({error, details})
});
Callbacks are removed in v3
, onError
and onSent
should be used instead:
const mailQueue = new MailTime({
queue: new MongoQueue({ db }),
josk: {
adapter: { type: 'mongo', db }
},
onError(error, email, details) {
console.log(`Email "${email.mailOptions.subject}" wasn't sent to ${email.mailOptions.to}`, error, details);
},
onSent(email, details) {
console.log(`Email "${email.mailOptions.subject}" successfully sent to ${email.mailOptions.to}`, details);
},
});
await mailQueue.sendMail(message);
v1.4.0
📦 NPM @1.4.0
☄️ Packosphere @2.5.0
Major Changes:
⚠️ Minimal required version of Node.js now is@>=14.20.0
, was@>=8.9.0
- 📦 Packaged as ES Module (reverse-compatible with CommonJS)
Changes:
- 👨🔧 Fix minor bug when re-send loop was trying non-existent transport if only single transport defined
- 👨🔧 Fix
.sendMail
callbacks on single-server setup when{concatEmails: true}
option enabled - 👨🔧 Fix
.sendMail
callbacks when{keepHistory: true}
option enabled - 📔 Refined documentation
- 🤝 Compatibility with
mongod
server, tested with@4.4.29
,@5.0.25
,@6.0.14
, and@7.0.6
- 🤝 Compatibility with
mongodb
driver for node.js, tested with@4.17.2
,@5.9.2
, and@6.5.0
- 🤝 Compatibility with the latest
nodejs
releases, tested with@14.21.3
,@18.19.1
,@20.11.1
, and@21.7.1
- 🤝 Compatibility with the latest Meteor.js and its packages
- 🤝 Compatibility with upcoming
[email protected]
and its packages
Dependencies:
- 📦
[email protected]
, wasv3.0.2
- 📦
[email protected]
, wasv4.2.2
Dev Dependencies:
- 📦
[email protected]
, wasv4.7.0
- 📦
[email protected]
, wasv4.3.6
- 📦
[email protected]
, wasv10.0.0
- 📦
[email protected]
, wasv4.17.2
- 📦
[email protected]
, wasv6.7.8
- 📦
[email protected]
, wasv3.0.7
v1.3.4
Major Changes:
📦 NPM: @1.3.4
☄️ Atmosphere @2.4.4
Changes:
- 👷 Merged: #35 - Improve indexes by @PeteMac88
Notes:
- 👨🔬 Tested with latest mongodb server 5.0.11 and 6.0.1
- 👨🔬 Tested with latest
nodemailer
Dependencies:
- 📦
[dev]
[email protected]
, wasv4.6.4
- 📦
[dev]
[email protected]
, wasv4.0.2
- 📦
[dev]
[email protected]
, wasv4.7.0
- 📦
[dev]
[email protected]
, wasv6.7.8
v1.3.3
📦 NPM: @1.3.3
☄️ Atmosphere @2.4.3
Dependencies:
- 📦
[email protected]
, wasv3.0.1
- 📦
[dev]
[email protected]
, wasv6.7.5
v1.3.2
📦 NPM: @1.3.2
☄️ Atmosphere @2.4.2
Changes:
- 👷♂️ Maintenance release, dependencies update
- 🤝 Support
[email protected]
Dependencies:
- 📦
[email protected]
, wasv3.0.0
- 📦
[dev]
[email protected]
, wasv4.6.0
v1.3.1
v1.3.0
📦 NPM: @1.3.0
☄️ Atmosphere @2.4.0
Changes:
- 🔧 Fix #31 by @bacloud22 (thank you!)
- 👨🔧 Merge #24, improving "concatenated" emails queue management, thanks to @Treenity
- 👨💻 Reduced mongoDB calls
- 👨💻 Overall package codebase refactoring
- 👨🔬 Improve tests suite
Other changes:
- 📔 Update documentation: overall improvements and additional examples
- 🤝 Compatibility and support of
[email protected]
(Mongo Database) - 🤝 Compatibility and support of
[email protected]
(Mongo Database) - 🤝 Compatibility and support of
[email protected]
(Mongo Database) - 🤝 Compatibility and support of
[email protected]
(MongoDB node.js driver) - 🤝 Compatibility ans support of
[email protected]
Dependencies:
- 📦
[email protected]
, wasv2.4.0
Development dependencies:
Used by test suite
- 📦
[email protected]
, wasv4.2.2
- 📦
[email protected]
, wasv2.0.5
- 📦
[email protected]
, wasv4.3.0
- 📦
[email protected]
, wasv8.2.1
- 📦
[email protected]
, wasv3.6.4
- 📦
[email protected]
, wasv6.4.17
- 📦
[email protected]
, wasv3.3.2
(tested with both versions, sticking to3.0.7
to avoid security warnings)
v1.2.6
- ☄️ NPM: v1.2.6
- 📦 Meteor: v2.3.6
This is maintenance update
Notable Changes:
- Default
{ writeConcern }
options removed from write/update operations, passreadConcern
,writeConcern
, andreadPreference
as mongodb connections settings.
Changes:
- 👷 Fix possible memory leak with forcefully closing cursors
Cursor#close()
; - 🤝 Compatibility with
[email protected]
(the driver); - 🤝 Compatibility with
[email protected]
; - 📦
josk
upgaded tov2.4.0
;
v1.2.5
- ☄️ Meteor:
v2.3.5
; - 📦 NPM:
v1.2.5
;
Changes
- ☄️ Compatibility with
[email protected]
; - 🤝 Compatibility with
[email protected]
; - 👨💻 Minor codebase refactoring;
- 📋 Minor docs update;
New
- ✨
keepHistory
option;
📦 Dependencies:
[email protected]
, wasv2.2.5
;[dev]
[email protected]
, wasv4.0.4
;[dev]
[email protected]
, wasv2.0.3
;[dev]
[email protected]
, wasv7.1.2
;[dev]
[email protected]
, wasv3.5.7
;[dev]
[email protected]
, wasv6.4.6
.
v1.2.4
- ☄️ Meteor:
v2.3.4
; - 📦 NPM:
v1.2.4
;
Changes:
- 🐞 Edge case bug fix: Minor fix to trow an error (instead of silent interruption) when context is lost or misconfiguration is in place. Upon calling internal
___compileMailOpts()
method without configured transports. - 👷♂️ This is regular maintenance release;
- 🤝 Compatibility with
[email protected]
; - 🤝 Compatibility with
[email protected]
; - 📦 Update
josk
package tov2.2.5
, was:v2.2.3
; - 📦 [
dev-dependency
] Updatebson
package tov4.0.4
, wasv4.0.3
; - 📦 [
dev-dependency
] Updatemocha
package tov7.1.0
, wasv7.1.2
; - 📦 [
dev-dependency
] Updatemongodb
package tov3.5.7
, wasv3.5.4
; - 📦 [
dev-dependency
] Updatenodemailer
package tov6.4.6
, wasv6.4.4
; - 📋 Minor documentation updates.