agenda v3.1.0 Release Notes
Release Date: 2020-04-07 // almost 5 years ago-
Stay safe!
- ๐ Fix for skipImmediate resetting nextRunAt to current date (#860) (Thanks @AshlinDuncan!)
- ๐ Fix deprecated reconnect options (#948) (Thanks @ekegodigital!)
- โ Add ability to set a skip when querying jobs. (#898) (Thanks @cjolif!)
Internal:
- ๐ Fixed deprecated MongoDB functions in tests (#928) (Thanks @MichielDeMey!)
- โก๏ธ Updated devDependencies
๐ Thank you @koresar, @sampathBlam, and @MichielDeMey helping to review PRs for this release! ๐
Previous changes from v3.0.0
-
- ๐ Support MongoDB's Unified Topology Design (#921) (Thanks @viktorzavadil!)
- ๐ Fix: check that the new nextRunAt is different that the previous nextRunAt (#863) (Thanks @RaphaelRheault!)
- โก๏ธ Update dependencies. Most notably MongoDB driver 3.4 โ 3.5 (#899, #900, #903, #906, #908, #910, #912, #913, #920, #922)
- ๐ Documentation updates, thanks @MichielDeMey and @Sunghee2. (#923 & #907)
๐ฅ BREAKING
- โ Stop testing for Node.js 8. This might still work but we're no longer actively testing for it. (#925)
# 2.3.0 / 2019-12-16
- ๐ Improved performance in situations when there are many "expired" jobs in the database (#869) (Thanks @mfred488!)
- ๐ Fix periodic node.js process unhandledRejection (#887) (Thanks @koresar and @Scorpil)
- โก๏ธ Update dependencies
# 2.2.0 / 2019-11-24
- Fix
skipImmediate
option in.every
(#861) (Thanks @erics2783!) - Add try/catch block to agenda#now method (#876) (Thanks @sampathBlam!)
- Refactor job queuing mechanism. Agenda n ow guarantees priority when executing jobs scheduled the same datetime. Fixes also some tests. (#852) (Thank you @dmbarreiro!)
- Update dependencies (Kudos @simison!)
Most notably
mongodb
~3.2.7 -> ~3.3.0 (changelog) โ highlights:- Mongo DB Server Version 4.2 feature support
- Merged
mongodb-core
intonode-mongodb-native
- Beta support for MongoDB Client-Side Encryption
- SRV Polling for Sharded Clusters
- Updates to documentation (Thank you @lautarobock, @sampathBlam, @indatawetrust)
# 2.1.0 / 2019-09-09
- Support async functions in job processing (#653) (thanks @princjef!)
- Allow sorting and limiting jobs when searching (#665) (thank you @edwin-jones)
- Update MongoClient connection settings with
useNewUrlParser: true
to remove the deprecation warning. (#806) (thanks @dpawson905!) - Allow valid date strings when scheduling (#808) (Thanks @wingsbob!)
- Update dependencies (#820)
- Update documentation (kudos @dandv, @pedruino and many others!)
- Fix linting errors (#847) (thanks @dmbarreiro!)
# 2.0.2 / 2018-09-15
- Fixes a MongoDB connection string issue with Atlas (#674
# 2.0.1 / 2018-08-30
- Fix a bug where
job.touch()
wasn't promise based, as it should've been (#667
# 2.0.0 / 2018-07-19
- Rewrite tests: replace
mocha
andblanket
withava
andnyc
(#506) - Optimization: don't try and unlock jobs when
_lockedJobs
is empty (#509) - Code cleanup (#503)
- Ensure tests pass for Node.js version 10 #608)
- Add
skipImmediate
torepeatEvery()
options to skip immediate run of repeated jobs when Agenda starts. See documentation (#594) - Fixes some flaky tests
- Adds docs generator (
npm run docs
to generate/docs
)
๐ฅ BREAKING
- ๐ Rewrite Agenda API support promises! (#557)
No more callbacks! Instead of:
function graceful() { agenda.stop(function () { process.exit(0); }); }
You need to:
async function graceful() { await agenda.stop(); process.exit(0); }
You don't anymore have to listen for
start
event. Instead you can do:await agenda.start(); agenda.every("10 minutes", "example");
However, this will still work:
agenda.on("ready", function () { agenda.every("10 minutes", "example"); agenda.start(); });
See the documentation for more!