Skip to content

Commit

Permalink
📦 v5.0.0
Browse files Browse the repository at this point in the history
What's New

- 🦄 `async`/`await` API for all public methods
- 🚀 Return {*Promise*} from tasks instead of calling `ready()`

Major Changes

- ⚠️ Drop support for callbacks
- ⚠️ Renamed private methods for clarity
- ⚠️ Renamed methods of "Adapter" API for clarity
- ⚠️ `opts.adapter` now expects instance of the *StorageAdapter*, *was: Class of StorageAdapter*
- ⚠️ Moved `opts.prefix` and `opts.resetOnInit` to StorageAdapter's constructor
- ⚠️ Moved storage-related options `opts.client`, `opts.db`, and `lockCollectionName` to StorageAdapter's constructor

Changes

- ✨ New options {object} accepted by `new RedisAdapter({})`
- ✨ New options {object} accepted by `new MongoAdapter({})`
- 👨‍🔬 Refactored tests for the new async/await API
- 👨‍🔬 Refactored Meteor.js test-suite for the new async/await API
- 📔 Updated documentation
- 📔 Updated custom adapter documentation
  • Loading branch information
dr-dimitru committed Apr 10, 2024
1 parent 1765b5d commit 5ad66b1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
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:cron-jobs@4.1.0
local-test:ostrio:cron-jobs@5.0.0
[email protected]
[email protected]
meteortesting:[email protected]
Expand All @@ -38,7 +38,7 @@ [email protected]
[email protected]
[email protected]
[email protected]
ostrio:cron-jobs@4.1.0
ostrio:cron-jobs@5.0.0
[email protected]
[email protected]
[email protected]
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package.describe({
name: 'ostrio:cron-jobs',
version: '4.1.0',
version: '5.0.0',
summary: 'Tasks/CRON scheduler and manager for horizontally scaled multi-server apps',
git: 'https://github.com/veliovgroup/josk',
documentation: 'README.md'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "josk",
"version": "4.1.0",
"version": "5.0.0",
"description": "Tasks/CRON scheduler and manager for horizontally scaled multi-server applications",
"main": "index.js",
"type": "module",
Expand Down

0 comments on commit 5ad66b1

Please sign in to comment.