Skip to content

Releases: Ovyerus/redite

v4.0.0

31 Oct 05:35
Compare
Choose a tag to compare

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

28 Jan 05:02
Compare
Choose a tag to compare

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

12 Oct 00:27
Compare
Choose a tag to compare

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

29 Aug 10:23
Compare
Choose a tag to compare
  • Fix up TypeScript definitions for the new API.

2.0.0

28 Aug 11:03
Compare
Choose a tag to compare
  • 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.