Skip to content

Commit

Permalink
📦 v3.0.0
Browse files Browse the repository at this point in the history
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
dr-dimitru committed Apr 14, 2024
1 parent 1d79ed8 commit b6f43ba
Show file tree
Hide file tree
Showing 7 changed files with 1,125 additions and 410 deletions.
1 change: 1 addition & 0 deletions .meteorignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
.DS_Store
.eslintcache
.eslintrc
adapters/blank-example.js
ascii
cover.jpg
cover.png
Expand Down
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
.meteorignore
.npm
.versions
adapters/blank-example.js
ascii
cover.jpg
cover.png
Expand Down
4 changes: 2 additions & 2 deletions .versions
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ [email protected]
[email protected]
[email protected]
[email protected]
local-test:ostrio:mailer@2.5.0
local-test:ostrio:mailer@3.0.0
[email protected]
[email protected]
meteortesting:[email protected]
Expand All @@ -38,7 +38,7 @@ [email protected]
[email protected]
[email protected]
[email protected]
ostrio:mailer@2.5.0
ostrio:mailer@3.0.0
[email protected]
[email protected]
[email protected]
Expand Down
Loading

0 comments on commit b6f43ba

Please sign in to comment.