Handy Redis Versions Save

A wrapper around node_redis with Promise and TypeScript support.

v2.3.1

2 years ago

Fix:

  • Make eson-parser a dev dependency 9b40c972f

https://github.com/mmkal/handy-redis/compare/v2.3.0...v2.3.1

v2.3.0

2 years ago
  • Fixes for latest redis-doc (add GEOSEARCH, fix #324) (#328) a8c88100f
  • Merge commit 'ef78f6ed0cc7739316ae7e2813ab371b12cea7f5' into main f3f38d3cc
  • Squashed 'docs/redis-doc/' changes from 99a0aa524..93a2afb33 ef78f6ed0

https://github.com/mmkal/handy-redis/compare/v2.2.2...v2.3.0

v2.2.2

2 years ago
  • Un-shim addCommand from redis types; fix #310 (#311) c7eacd19b
  • Add type for zrevrangebyscore (#304) 7f0a8e724
  • Flatten multi args; fix #277 (#303) fd7116740
  • Give scan a better type, Fix 288 (#294) 006dbc91d

npm

https://github.com/mmkal/handy-redis/compare/v2.2.1...v2.2.2

v2.2.1

3 years ago

Reduces package size by about 2/3 - some copies of the full redis commands interface files were accidentally shipped last time.

  • Internal: rename ci script to test so np automatically cleans before publishing f06bdab2

https://github.com/mmkal/handy-redis/compare/v2.2.0...v2.2.1

v2.2.0

3 years ago
  • Use higher-kinded type for commands to enable multi overloads - fixes #270. (#271) 677af104

https://github.com/mmkal/handy-redis/compare/v2.1.0...v2.2.0

v2.1.0

3 years ago
  • Add nested args from latest redis-doc (#255) 3a102fe2
  • Named tuple types (#254) 1c90f91b
  • Use typesVersions to provide types for ts <4.x (#253) 59ac0129

https://github.com/mmkal/handy-redis/compare/v2.0.3...v2.1.0

v2.0.3

3 years ago
  • Fix type declarations for typescript <4 (#251) 98a0ba71
  • Mark 1.x aliases as deprecated 736935f5
  • Update commands from redis-doc (#249) 73eec6f1

https://github.com/mmkal/handy-redis/compare/v2.0.2...v2.0.3

v2.0.2

3 years ago

Fix: ZRANGEBYSCORE, ZREMRANGEBYSCORE, ZREVRANGEBYSCORE and ZCOUNT: allow +inf,-inf, ranges in interval args (redis-doc workaround) (#240 - fixes #30) 0c4a08fd

https://github.com/mmkal/handy-redis/compare/v2.0.1...v2.0.2

v2.0.1

3 years ago

Fixes

  • spop: include string[] in return type (#231, fixes #230) 06893f03

https://github.com/mmkal/handy-redis/compare/v2.0.0...v2.0.1

npm package

v2.0.0

3 years ago

npm package

Breaking changes:

  • command signatures updated, some are now more strict
  • anys have been replaced with unknowns
  • new commands added
  • execMulti is removed in favour of .multi().exec(), which is promisified
  • multi pipelines now keep track of types
  • .batch support added (fixes #45)
  • .script('LOAD') and other subcommands added (fixes #221)
  • addNodeRedisCommand exposed (fixes #176)
  • redis removed as a dependency. It must be added separately
  • deprecated functions/properties/interfaces (the old forms are preserved for backwards-compatibility, but update if possible):
    • clients should now be created with createNodeRedisClient rather than createHandyClient
    • WrappedNodeRedisClient is now preferred to IHandyRedis
    • client.nodeRedis preferred to client.redis
  • lots of internal tidyup of code-generation code

Basic usage is identical, aside from the recommended import name:

import { createNodeRedisClient } from 'handy-redis';

(async function() {
    const client = createNodeRedisClient();

    await client.set('foo', 'bar');
    const foo = await client.get('foo');
    console.log(foo); // 'bar'
})();

https://github.com/mmkal/handy-redis/compare/v1.8.3...v2.0.0