Releases: Ovyerus/redite
Releases · Ovyerus/redite
v4.0.0
What's Changed
- Drop active support for Node v10, and add CI to make sure Node v16 works.
- Upgrade dependencies
- Replace
_
prefixed properties to start with$
instead (inspired by Prisma) - Remove custom inspection.
- Move to Jest for unit testing.
Full Changelog: v3.0.3...v4.0.0
3.0.3
Patches
- Fix(redite.d.ts): replace missing T with any: 4d9ada2
- Fix: add null check for
isObj
: e3b9e49 - Chore: use redis-mock for tests: 9681e17
- Revert "chore: use redis-mock for tests": 223a0e1
- Refactor: port to ioredis (unfinished): ad1121b
- Fix: properly change commands that were incorrectly set: 996e4d5
- Fix: add better implementation for nested remove: 08c4ee0
3.0.0
This changes the previous call syntax db.foo()
to one that returns a direct Promise when it encounters either .then
, .catch
, or .finally
, changing it to db.foo.then(val => {})
. This may seem like a kinda weird change, however when combined with the async/await syntax, this effectively makes any weird stuff disappear, becoming await db.foo
.
Examples:
old style
const db = new Redite();
const foo = await db.foo();
new style
const db = new Redite();
const foo = await db.foo;
2.0.1
2.0.0
- Now built using ES8 async/await syntax, making it incompatible with Node versions before 8.
- Syntax for getting objects has changed.
db.foo.bar.get; // old
db.foo.bar(); // new
- Names of the internal functions have changed.
Most of the way in which the library works has stayed roughly the same.