Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Major Changes - ☝️ NPM release skipped `v2.x` in order to match Meteor's version (*NPM release happened one generation later*) -⚠️ New way to `import` and `require` the package `import { MailTime, MongoQueue, RedisQueue } from 'mail-time';` -⚠️ Decouple from storage, now requires `{queue}` passed to constructor `new MailTime({})` -⚠️ Removed `callback` 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 for `josk` library-specific options - ✨ new `opts.queue` option for storage-driver - ✨ `opts.retryDelay` retry delay in ms, successor to `opts.interval` - ✨ `opts.retries` quantity of retry attempts, successor to `opts.maxTries` - ✨ `opts.concatDelay` concatenation delay in ms, successor to `opts.concatThrottling` - 👨🔬 A lot of new improved tests Changes - ☝️ `.sendMail()` now returns `{Promise<string>}` that can get passed into `.cancelMail()` method
- Loading branch information