Tags: veliovgroup/josk
Tags
📦 v5.0.0 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
📦 v4.0.0 Major Changes -⚠️ New way to `import` and `require` the package `import { JoSk, RedisAdapter, MongoAdapter } from 'josk';` -⚠️ Decouple from storage, requires changes in options passed to constructor `new JoSk({})` - 🟥 Added support for Redis as adapter 🥳 - 🍃 MongoDB as optional adapter 🥳 Changes - 🟥 Added support for Redis, well tested with Redis.io and KeyDB - 👨💻 Decoupled storage from main codebase - ✨ Support for custom storage adapters - ✨ `opts.adapter` {*RedisAdapter*|*MongoAdapter*} - ✨ `opts.client` {*RedisClient*} - 👨🔬 Added tests for Redis - 👨🔬 Added tests for Redis within Meteor.js - 📔 Updated documentation - 📔 Created documentation for custom adapter Dev Dependencies - 📦 `chai@5.1.0`, *was `v4.4.1`* - 📦 `mocha@10.4.0`, *was `v10.3.0`* - 📦 Added `redis@4.6.13`
📦 v3.0.0 (meteor.js) 📦 v3.0.0 __New features:__ - ✨ `opts.lockCollectionName` — `new JoSk()` constructor option - ✨ `opts.debug` — `new JoSk()` constructor option - 👨💻 `ready()` — Function passed as an argument to a scheduled task now accepts a callback - 👨💻 `JoSk#clearTimeout()` and `JoSk#clearInterval()` — Methods now accept callback as a last argument __Major changes:__ - 👷♂️ Now all JoSk instances share the same `*.lock` collection, this behavior can get changed using `opts.lockCollectionName` constructor option __Other changes:__ - 📔 Add examples for CRON instructions usage - 👨🔬 Improve test-cases coverage to 97% - 👨💻 Overall codebase refactoring and performance improvements - 🤝 Compatibility and support of `mongod@5.0.8` (*Mongo Database*) - 🤝 Compatibility and support of `mongodb@4.6.0` (*MongoDB node.js driver*) - 🤝 Compatibility ans support of `meteor@2.7.1` __Dependencies:__ - 📦 `[dev]` `mongodb@4.6.0`, *was `v4.5.0`* - 📦 `[dev]` added `cron-parser@4.4.0` for CRON tasks tests
PreviousNext