diff --git a/CHANGELOG.md b/CHANGELOG.md index f09725bcdb..8536abb913 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,201 +1,212 @@ #### Changes -* Node: Added ZINTERSTORE command ([#1513](https://github.com/aws/glide-for-redis/pull/1513)) -* Python: Added OBJECT ENCODING command ([#1471](https://github.com/aws/glide-for-redis/pull/1471)) -* Python: Added OBJECT FREQ command ([#1472](https://github.com/aws/glide-for-redis/pull/1472)) -* Python: Added OBJECT IDLETIME command ([#1474](https://github.com/aws/glide-for-redis/pull/1474)) -* Python: Added GEOSEARCH command ([#1482](https://github.com/aws/glide-for-redis/pull/1482)) -* Python: Added GEOSEARCHSTORE command ([#1581](https://github.com/aws/glide-for-redis/pull/1581)) -* Node: Added RENAMENX command ([#1483](https://github.com/aws/glide-for-redis/pull/1483)) -* Python: Added OBJECT REFCOUNT command ([#1485](https://github.com/aws/glide-for-redis/pull/1485)) -* Python: Added RENAMENX command ([#1492](https://github.com/aws/glide-for-redis/pull/1492)) -* Python: Added PFCOUNT command ([#1493](https://github.com/aws/glide-for-redis/pull/1493)) -* Python: Added PFMERGE command ([#1497](https://github.com/aws/glide-for-redis/pull/1497)) -* Node: Added SINTER command ([#1500](https://github.com/aws/glide-for-redis/pull/1500)) -* Python: Added XLEN command ([#1503](https://github.com/aws/glide-for-redis/pull/1503)) -* Python: Added LASTSAVE command ([#1509](https://github.com/aws/glide-for-redis/pull/1509)) -* Python: Added GETDEL command ([#1514](https://github.com/aws/glide-for-redis/pull/1514)) -* Python: Added GETRANGE command ([#1585](https://github.com/aws/glide-for-redis/pull/1585)) -* Python: Added ZINTER, ZUNION commands ([#1478](https://github.com/aws/glide-for-redis/pull/1478)) -* Python: Added SINTERCARD command ([#1511](https://github.com/aws/glide-for-redis/pull/1511)) -* Python: Added SORT command ([#1439](https://github.com/aws/glide-for-redis/pull/1439)) -* Node: Added OBJECT ENCODING command ([#1518](https://github.com/aws/glide-for-redis/pull/1518), [#1559](https://github.com/aws/glide-for-redis/pull/1559)) -* Python: Added LMOVE and BLMOVE commands ([#1536](https://github.com/aws/glide-for-redis/pull/1536)) -* Node: Added SUNIONSTORE command ([#1549](https://github.com/aws/glide-for-redis/pull/1549)) -* Python: Added SUNION command ([#1583](https://github.com/aws/glide-for-redis/pull/1583)) -* Node: Added PFCOUNT command ([#1545](https://github.com/aws/glide-for-redis/pull/1545)) -* Node: Added OBJECT FREQ command ([#1542](https://github.com/aws/glide-for-redis/pull/1542), [#1559](https://github.com/aws/glide-for-redis/pull/1559)) -* Node: Added LINSERT command ([#1544](https://github.com/aws/glide-for-redis/pull/1544)) -* Node: Added XLEN command ([#1555](https://github.com/aws/glide-for-redis/pull/1555)) -* Node: Added ZINTERCARD command ([#1553](https://github.com/aws/glide-for-redis/pull/1553)) -* Python: Added ZINCBY command ([#1586](https://github.com/aws/glide-for-redis/pull/1586)) -* Python: Added LMPOP and BLMPOP commands ([#1547](https://github.com/aws/glide-for-redis/pull/1547)) -* Python: Added HSTRLEN command ([#1564](https://github.com/aws/glide-for-redis/pull/1564)) -* Python: Added MSETNX command ([#1565](https://github.com/aws/glide-for-redis/pull/1565)) -* Python: Added MOVE command ([#1566](https://github.com/aws/glide-for-redis/pull/1566)) -* Python: Added EXPIRETIME, PEXPIRETIME commands ([#1587](https://github.com/aws/glide-for-redis/pull/1587)) -* Python: Added LSET command ([#1584](https://github.com/aws/glide-for-redis/pull/1584)) -* Node: Added OBJECT IDLETIME command ([#1567](https://github.com/aws/glide-for-redis/pull/1567)) -* Node: Added OBJECT REFCOUNT command ([#1568](https://github.com/aws/glide-for-redis/pull/1568)) -* Python: Added SETBIT command ([#1571](https://github.com/aws/glide-for-redis/pull/1571)) -* Python: Added SRandMember command ([#1578](https://github.com/aws/glide-for-redis/pull/1578)) -* Python: Added GETBIT command ([#1575](https://github.com/aws/glide-for-redis/pull/1575)) -* Python: Added BITCOUNT command ([#1592](https://github.com/aws/glide-for-redis/pull/1592)) -* Python: Added FLUSHALL command ([#1579](https://github.com/aws/glide-for-redis/pull/1579)) -* Python: Added TOUCH command ([#1582](https://github.com/aws/glide-for-redis/pull/1582)) -* Python: Added BITOP command ([#1596](https://github.com/aws/glide-for-redis/pull/1596)) -* Python: Added BITPOS command ([#1604](https://github.com/aws/glide-for-redis/pull/1604)) -* Python: Added GETEX command ([#1612](https://github.com/aws/glide-for-redis/pull/1612)) -* Python: Added BITFIELD and BITFIELD_RO commands ([#1615](https://github.com/aws/glide-for-redis/pull/1615)) -* Python: Added ZREVRANK command ([#1614](https://github.com/aws/glide-for-redis/pull/1614)) -* Python: Added XDEL command ([#1619](https://github.com/aws/glide-for-redis/pull/1619)) -* Python: Added XRANGE command ([#1624](https://github.com/aws/glide-for-redis/pull/1624)) -* Python: Added COPY command ([#1626](https://github.com/aws/glide-for-redis/pull/1626)) -* Python: Added XREVRANGE command ([#1625](https://github.com/aws/glide-for-redis/pull/1625)) -* Python: Added XREAD command ([#1644](https://github.com/aws/glide-for-redis/pull/1644)) -* Python: Added XGROUP CREATE and XGROUP DESTROY commands ([#1646](https://github.com/aws/glide-for-redis/pull/1646)) -* Python: Added XGROUP CREATECONSUMER and XGROUP DELCONSUMER commands ([#1658](https://github.com/aws/glide-for-redis/pull/1658)) -* Python: Added LOLWUT command ([#1657](https://github.com/aws/glide-for-redis/pull/1657)) -* Python: Added XREADGROUP command ([#1679](https://github.com/aws/glide-for-redis/pull/1679)) -* Python: Added XACK command ([#1681](https://github.com/aws/glide-for-redis/pull/1681)) -* Python: Added FLUSHDB command ([#1680](https://github.com/aws/glide-for-redis/pull/1680)) + +- Node: Added ZINTERSTORE command ([#1513](https://github.com/aws/glide-for-redis/pull/1513)) +- Python: Added OBJECT ENCODING command ([#1471](https://github.com/aws/glide-for-redis/pull/1471)) +- Python: Added OBJECT FREQ command ([#1472](https://github.com/aws/glide-for-redis/pull/1472)) +- Python: Added OBJECT IDLETIME command ([#1474](https://github.com/aws/glide-for-redis/pull/1474)) +- Python: Added GEOSEARCH command ([#1482](https://github.com/aws/glide-for-redis/pull/1482)) +- Python: Added GEOSEARCHSTORE command ([#1581](https://github.com/aws/glide-for-redis/pull/1581)) +- Node: Added RENAMENX command ([#1483](https://github.com/aws/glide-for-redis/pull/1483)) +- Python: Added OBJECT REFCOUNT command ([#1485](https://github.com/aws/glide-for-redis/pull/1485)) +- Python: Added RENAMENX command ([#1492](https://github.com/aws/glide-for-redis/pull/1492)) +- Python: Added PFCOUNT command ([#1493](https://github.com/aws/glide-for-redis/pull/1493)) +- Python: Added PFMERGE command ([#1497](https://github.com/aws/glide-for-redis/pull/1497)) +- Node: Added SINTER command ([#1500](https://github.com/aws/glide-for-redis/pull/1500)) +- Python: Added XLEN command ([#1503](https://github.com/aws/glide-for-redis/pull/1503)) +- Python: Added LASTSAVE command ([#1509](https://github.com/aws/glide-for-redis/pull/1509)) +- Python: Added GETDEL command ([#1514](https://github.com/aws/glide-for-redis/pull/1514)) +- Python: Added GETRANGE command ([#1585](https://github.com/aws/glide-for-redis/pull/1585)) +- Python: Added ZINTER, ZUNION commands ([#1478](https://github.com/aws/glide-for-redis/pull/1478)) +- Python: Added SINTERCARD command ([#1511](https://github.com/aws/glide-for-redis/pull/1511)) +- Python: Added SORT command ([#1439](https://github.com/aws/glide-for-redis/pull/1439)) +- Node: Added OBJECT ENCODING command ([#1518](https://github.com/aws/glide-for-redis/pull/1518), [#1559](https://github.com/aws/glide-for-redis/pull/1559)) +- Python: Added LMOVE and BLMOVE commands ([#1536](https://github.com/aws/glide-for-redis/pull/1536)) +- Node: Added SUNIONSTORE command ([#1549](https://github.com/aws/glide-for-redis/pull/1549)) +- Python: Added SUNION command ([#1583](https://github.com/aws/glide-for-redis/pull/1583)) +- Node: Added PFCOUNT command ([#1545](https://github.com/aws/glide-for-redis/pull/1545)) +- Node: Added OBJECT FREQ command ([#1542](https://github.com/aws/glide-for-redis/pull/1542), [#1559](https://github.com/aws/glide-for-redis/pull/1559)) +- Node: Added LINSERT command ([#1544](https://github.com/aws/glide-for-redis/pull/1544)) +- Node: Added XLEN command ([#1555](https://github.com/aws/glide-for-redis/pull/1555)) +- Node: Added ZINTERCARD command ([#1553](https://github.com/aws/glide-for-redis/pull/1553)) +- Python: Added ZINCBY command ([#1586](https://github.com/aws/glide-for-redis/pull/1586)) +- Python: Added LMPOP and BLMPOP commands ([#1547](https://github.com/aws/glide-for-redis/pull/1547)) +- Python: Added HSTRLEN command ([#1564](https://github.com/aws/glide-for-redis/pull/1564)) +- Python: Added MSETNX command ([#1565](https://github.com/aws/glide-for-redis/pull/1565)) +- Python: Added MOVE command ([#1566](https://github.com/aws/glide-for-redis/pull/1566)) +- Python: Added EXPIRETIME, PEXPIRETIME commands ([#1587](https://github.com/aws/glide-for-redis/pull/1587)) +- Python: Added LSET command ([#1584](https://github.com/aws/glide-for-redis/pull/1584)) +- Node: Added OBJECT IDLETIME command ([#1567](https://github.com/aws/glide-for-redis/pull/1567)) +- Node: Added OBJECT REFCOUNT command ([#1568](https://github.com/aws/glide-for-redis/pull/1568)) +- Python: Added SETBIT command ([#1571](https://github.com/aws/glide-for-redis/pull/1571)) +- Python: Added SRandMember command ([#1578](https://github.com/aws/glide-for-redis/pull/1578)) +- Python: Added GETBIT command ([#1575](https://github.com/aws/glide-for-redis/pull/1575)) +- Python: Added BITCOUNT command ([#1592](https://github.com/aws/glide-for-redis/pull/1592)) +- Python: Added FLUSHALL command ([#1579](https://github.com/aws/glide-for-redis/pull/1579)) +- Python: Added TOUCH command ([#1582](https://github.com/aws/glide-for-redis/pull/1582)) +- Python: Added BITOP command ([#1596](https://github.com/aws/glide-for-redis/pull/1596)) +- Python: Added BITPOS command ([#1604](https://github.com/aws/glide-for-redis/pull/1604)) +- Python: Added GETEX command ([#1612](https://github.com/aws/glide-for-redis/pull/1612)) +- Python: Added BITFIELD and BITFIELD_RO commands ([#1615](https://github.com/aws/glide-for-redis/pull/1615)) +- Python: Added ZREVRANK command ([#1614](https://github.com/aws/glide-for-redis/pull/1614)) +- Python: Added XDEL command ([#1619](https://github.com/aws/glide-for-redis/pull/1619)) +- Python: Added XRANGE command ([#1624](https://github.com/aws/glide-for-redis/pull/1624)) +- Python: Added COPY command ([#1626](https://github.com/aws/glide-for-redis/pull/1626)) +- Python: Added XREVRANGE command ([#1625](https://github.com/aws/glide-for-redis/pull/1625)) +- Python: Added XREAD command ([#1644](https://github.com/aws/glide-for-redis/pull/1644)) +- Python: Added XGROUP CREATE and XGROUP DESTROY commands ([#1646](https://github.com/aws/glide-for-redis/pull/1646)) +- Python: Added XGROUP CREATECONSUMER and XGROUP DELCONSUMER commands ([#1658](https://github.com/aws/glide-for-redis/pull/1658)) +- Python: Added LOLWUT command ([#1657](https://github.com/aws/glide-for-redis/pull/1657)) +- Python: Added XREADGROUP command ([#1679](https://github.com/aws/glide-for-redis/pull/1679)) +- Python: Added XACK command ([#1681](https://github.com/aws/glide-for-redis/pull/1681)) +- Python: Added FLUSHDB command ([#1680](https://github.com/aws/glide-for-redis/pull/1680)) +- Python: Added SCAN command ([#1623](https://github.com/aws/glide-for-redis/pull/1623)) ### Breaking Changes -* Node: Update XREAD to return a Map of Map ([#1494](https://github.com/aws/glide-for-redis/pull/1494)) -* Node: Rename RedisClient to GlideClient and RedisClusterClient to GlideClusterClient ([#1670](https://github.com/aws/glide-for-redis/pull/1670)) -* Python: Rename RedisClient to GlideClient, RedisClusterClient to GlideClusterClient and BaseRedisClient to BaseClient([#1669](https://github.com/aws/glide-for-redis/pull/1669)) + +- Node: Update XREAD to return a Map of Map ([#1494](https://github.com/aws/glide-for-redis/pull/1494)) +- Node: Rename RedisClient to GlideClient and RedisClusterClient to GlideClusterClient ([#1670](https://github.com/aws/glide-for-redis/pull/1670)) +- Python: Rename RedisClient to GlideClient, RedisClusterClient to GlideClusterClient and BaseRedisClient to BaseClient([#1669](https://github.com/aws/glide-for-redis/pull/1669)) ## 0.4.1 (2024-02-06) #### Fixes -* Node: Fix set command bug with expiry option ([#1508](https://github.com/aws/glide-for-redis/pull/1508)) + +- Node: Fix set command bug with expiry option ([#1508](https://github.com/aws/glide-for-redis/pull/1508)) ## 0.4.0 (2024-05-26) #### Changes -* Python: Added JSON.DEL JSON.FORGET commands ([#1146](https://github.com/aws/glide-for-redis/pull/1146)) -* Python: Added STRLEN command ([#1230](https://github.com/aws/glide-for-redis/pull/1230)) -* Python: Added HKEYS command ([#1228](https://github.com/aws/glide-for-redis/pull/1228)) -* Python: Added RPUSHX and LPUSHX commands ([#1239](https://github.com/aws/glide-for-redis/pull/1239)) -* Python: Added ZREMRANGEBYSCORE command ([#1151](https://github.com/aws/glide-for-redis/pull/1151)) -* Node, Python: Added SPOP, SPOPCOUNT commands. ([#1117](https://github.com/aws/glide-for-redis/pull/1117), [#1261](https://github.com/aws/glide-for-redis/pull/1261)) -* Node: Added ZRANGE command ([#1115](https://github.com/aws/glide-for-redis/pull/1115)) -* Python: Added RENAME command ([#1252](https://github.com/aws/glide-for-redis/pull/1252)) -* Python: Added APPEND command ([#1152](https://github.com/aws/glide-for-redis/pull/1152)) -* Python: Added GEOADD command ([#1259](https://github.com/aws/glide-for-redis/pull/1259)) -* Python: Added GEODIST command ([#1260](https://github.com/aws/glide-for-redis/pull/1260)) -* Python: Added GEOHASH command ([#1281](https://github.com/aws/glide-for-redis/pull/1281)) -* Python: Added ZLEXCOUNT command ([#1305](https://github.com/aws/glide-for-redis/pull/1305)) -* Python: Added ZREMRANGEBYLEX command ([#1306](https://github.com/aws/glide-for-redis/pull/1306)) -* Python: Added LINSERT command ([#1304](https://github.com/aws/glide-for-redis/pull/1304)) -* Python: Added GEOPOS command ([#1301](https://github.com/aws/glide-for-redis/pull/1301)) -* Node: Added PFADD command ([#1317](https://github.com/aws/glide-for-redis/pull/1317)) -* Python: Added PFADD command ([#1315](https://github.com/aws/glide-for-redis/pull/1315)) -* Python: Added ZMSCORE command ([#1357](https://github.com/aws/glide-for-redis/pull/1357)) -* Python: Added HRANDFIELD command ([#1334](https://github.com/aws/glide-for-redis/pull/1334)) -* Node: Added BLPOP command ([#1223](https://github.com/aws/glide-for-redis/pull/1223)) -* Python: Added XADD, XTRIM commands ([#1320](https://github.com/aws/glide-for-redis/pull/1320)) -* Python: Added BLPOP and BRPOP commands ([#1369](https://github.com/aws/glide-for-redis/pull/1369)) -* Python: Added ZRANGESTORE command ([#1377](https://github.com/aws/glide-for-redis/pull/1377)) -* Python: Added ZDIFFSTORE command ([#1378](https://github.com/aws/glide-for-redis/pull/1378)) -* Python: Added ZDIFF command ([#1401](https://github.com/aws/glide-for-redis/pull/1401)) -* Python: Added BZPOPMIN and BZPOPMAX commands ([#1399](https://github.com/aws/glide-for-redis/pull/1399)) -* Python: Added ZUNIONSTORE, ZINTERSTORE commands ([#1388](https://github.com/aws/glide-for-redis/pull/1388)) -* Python: Added ZRANDMEMBER command ([#1413](https://github.com/aws/glide-for-redis/pull/1413)) -* Python: Added BZMPOP command ([#1412](https://github.com/aws/glide-for-redis/pull/1412)) -* Python: Added ZINTERCARD command ([#1418](https://github.com/aws/glide-for-redis/pull/1418)) -* Python: Added ZMPOP command ([#1417](https://github.com/aws/glide-for-redis/pull/1417)) -* Python: Added SMOVE command ([#1421](https://github.com/aws/glide-for-redis/pull/1421)) -* Python: Added SUNIONSTORE command ([#1423](https://github.com/aws/glide-for-redis/pull/1423)) -* Python: Added SINTER command ([#1434](https://github.com/aws/glide-for-redis/pull/1434)) -* Python: Added SDIFF command ([#1437](https://github.com/aws/glide-for-redis/pull/1437)) -* Python: Added SDIFFSTORE command ([#1449](https://github.com/aws/glide-for-redis/pull/1449)) -* Python: Added SINTERSTORE command ([#1459](https://github.com/aws/glide-for-redis/pull/1459)) -* Python: Added SMISMEMBER command ([#1461](https://github.com/aws/glide-for-redis/pull/1461)) -* Python: Added SETRANGE command ([#1453](https://github.com/aws/glide-for-redis/pull/1453)) + +- Python: Added JSON.DEL JSON.FORGET commands ([#1146](https://github.com/aws/glide-for-redis/pull/1146)) +- Python: Added STRLEN command ([#1230](https://github.com/aws/glide-for-redis/pull/1230)) +- Python: Added HKEYS command ([#1228](https://github.com/aws/glide-for-redis/pull/1228)) +- Python: Added RPUSHX and LPUSHX commands ([#1239](https://github.com/aws/glide-for-redis/pull/1239)) +- Python: Added ZREMRANGEBYSCORE command ([#1151](https://github.com/aws/glide-for-redis/pull/1151)) +- Node, Python: Added SPOP, SPOPCOUNT commands. ([#1117](https://github.com/aws/glide-for-redis/pull/1117), [#1261](https://github.com/aws/glide-for-redis/pull/1261)) +- Node: Added ZRANGE command ([#1115](https://github.com/aws/glide-for-redis/pull/1115)) +- Python: Added RENAME command ([#1252](https://github.com/aws/glide-for-redis/pull/1252)) +- Python: Added APPEND command ([#1152](https://github.com/aws/glide-for-redis/pull/1152)) +- Python: Added GEOADD command ([#1259](https://github.com/aws/glide-for-redis/pull/1259)) +- Python: Added GEODIST command ([#1260](https://github.com/aws/glide-for-redis/pull/1260)) +- Python: Added GEOHASH command ([#1281](https://github.com/aws/glide-for-redis/pull/1281)) +- Python: Added ZLEXCOUNT command ([#1305](https://github.com/aws/glide-for-redis/pull/1305)) +- Python: Added ZREMRANGEBYLEX command ([#1306](https://github.com/aws/glide-for-redis/pull/1306)) +- Python: Added LINSERT command ([#1304](https://github.com/aws/glide-for-redis/pull/1304)) +- Python: Added GEOPOS command ([#1301](https://github.com/aws/glide-for-redis/pull/1301)) +- Node: Added PFADD command ([#1317](https://github.com/aws/glide-for-redis/pull/1317)) +- Python: Added PFADD command ([#1315](https://github.com/aws/glide-for-redis/pull/1315)) +- Python: Added ZMSCORE command ([#1357](https://github.com/aws/glide-for-redis/pull/1357)) +- Python: Added HRANDFIELD command ([#1334](https://github.com/aws/glide-for-redis/pull/1334)) +- Node: Added BLPOP command ([#1223](https://github.com/aws/glide-for-redis/pull/1223)) +- Python: Added XADD, XTRIM commands ([#1320](https://github.com/aws/glide-for-redis/pull/1320)) +- Python: Added BLPOP and BRPOP commands ([#1369](https://github.com/aws/glide-for-redis/pull/1369)) +- Python: Added ZRANGESTORE command ([#1377](https://github.com/aws/glide-for-redis/pull/1377)) +- Python: Added ZDIFFSTORE command ([#1378](https://github.com/aws/glide-for-redis/pull/1378)) +- Python: Added ZDIFF command ([#1401](https://github.com/aws/glide-for-redis/pull/1401)) +- Python: Added BZPOPMIN and BZPOPMAX commands ([#1399](https://github.com/aws/glide-for-redis/pull/1399)) +- Python: Added ZUNIONSTORE, ZINTERSTORE commands ([#1388](https://github.com/aws/glide-for-redis/pull/1388)) +- Python: Added ZRANDMEMBER command ([#1413](https://github.com/aws/glide-for-redis/pull/1413)) +- Python: Added BZMPOP command ([#1412](https://github.com/aws/glide-for-redis/pull/1412)) +- Python: Added ZINTERCARD command ([#1418](https://github.com/aws/glide-for-redis/pull/1418)) +- Python: Added ZMPOP command ([#1417](https://github.com/aws/glide-for-redis/pull/1417)) +- Python: Added SMOVE command ([#1421](https://github.com/aws/glide-for-redis/pull/1421)) +- Python: Added SUNIONSTORE command ([#1423](https://github.com/aws/glide-for-redis/pull/1423)) +- Python: Added SINTER command ([#1434](https://github.com/aws/glide-for-redis/pull/1434)) +- Python: Added SDIFF command ([#1437](https://github.com/aws/glide-for-redis/pull/1437)) +- Python: Added SDIFFSTORE command ([#1449](https://github.com/aws/glide-for-redis/pull/1449)) +- Python: Added SINTERSTORE command ([#1459](https://github.com/aws/glide-for-redis/pull/1459)) +- Python: Added SMISMEMBER command ([#1461](https://github.com/aws/glide-for-redis/pull/1461)) +- Python: Added SETRANGE command ([#1453](https://github.com/aws/glide-for-redis/pull/1453)) #### Fixes -* Python: Fix typing error "‘type’ object is not subscriptable" ([#1203](https://github.com/aws/glide-for-redis/pull/1203)) -* Core: Fixed blocking commands to use the specified timeout from the command argument ([#1283](https://github.com/aws/glide-for-redis/pull/1283)) + +- Python: Fix typing error "‘type’ object is not subscriptable" ([#1203](https://github.com/aws/glide-for-redis/pull/1203)) +- Core: Fixed blocking commands to use the specified timeout from the command argument ([#1283](https://github.com/aws/glide-for-redis/pull/1283)) ### Breaking Changes -* Node: Changed `smembers` and `spopCount` functions to return Set instead of string[] ([#1299](https://github.com/aws/glide-for-redis/pull/1299)) + +- Node: Changed `smembers` and `spopCount` functions to return Set instead of string[] ([#1299](https://github.com/aws/glide-for-redis/pull/1299)) #### Features -* Node: Added support for alpine based platform (Or any x64-musl or arm64-musl based platforms) ([#1379](https://github.com/aws/glide-for-redis/pull/1379)) + +- Node: Added support for alpine based platform (Or any x64-musl or arm64-musl based platforms) ([#1379](https://github.com/aws/glide-for-redis/pull/1379)) ## 0.3.3 (2024-03-28) #### Fixes -* Node: Fix issue with dual usage, `CommonJS` and `ECMAScript` modules. ([#1199](https://github.com/aws/glide-for-redis/pull/1199)) +- Node: Fix issue with dual usage, `CommonJS` and `ECMAScript` modules. ([#1199](https://github.com/aws/glide-for-redis/pull/1199)) ## 0.3.0 (2024-03-25) #### Changes -* Python Node: Allow routing Cluster requests by address. ([#1021](https://github.com/aws/glide-for-redis/pull/1021)) -* Python, Node: Added HSETNX command. ([#954](https://github.com/aws/glide-for-redis/pull/954), [#1091](https://github.com/aws/glide-for-redis/pull/1091)) -* Python, Node: Added SISMEMBER command ([#972](https://github.com/aws/glide-for-redis/pull/972), [#1083](https://github.com/aws/glide-for-redis/pull/1083)) -* Python, Node: Added TYPE command ([#945](https://github.com/aws/glide-for-redis/pull/945), [#980](https://github.com/aws/glide-for-redis/pull/980)) -* Python, Node: Added HLEN command ([#944](https://github.com/aws/glide-for-redis/pull/944), [#981](https://github.com/aws/glide-for-redis/pull/981)) -* Python, Node: Added ZCOUNT command ([#878](https://github.com/aws/glide-for-redis/pull/878)) ([#909](https://github.com/aws/glide-for-redis/pull/909)) -* Python, Node: Added ECHO command ([#953](https://github.com/aws/glide-for-redis/pull/953), [#1010](https://github.com/aws/glide-for-redis/pull/1010)) -* Python, Node: Added ZPOPMIN command ([#975](https://github.com/aws/glide-for-redis/pull/975), [#1008](https://github.com/aws/glide-for-redis/pull/1008)) -* Node: Added STRLEN command ([#993](https://github.com/aws/glide-for-redis/pull/993)) -* Node: Added LINDEX command ([#999](https://github.com/aws/glide-for-redis/pull/999)) -* Python, Node: Added ZPOPMAX command ([#996](https://github.com/aws/glide-for-redis/pull/996), [#1009](https://github.com/aws/glide-for-redis/pull/1009)) -* Python: Added ZRANGE command ([#906](https://github.com/aws/glide-for-redis/pull/906)) -* Python, Node: Added PTTL command ([#1036](https://github.com/aws/glide-for-redis/pull/1036), [#1082](https://github.com/aws/glide-for-redis/pull/1082)) -* Python, Node: Added HVAL command ([#1130](https://github.com/aws/glide-for-redis/pull/1130)), ([#1022](https://github.com/aws/glide-for-redis/pull/1022)) -* Python, Node: Added PERSIST command ([#1129](https://github.com/aws/glide-for-redis/pull/1129)), ([#1023](https://github.com/aws/glide-for-redis/pull/1023)) -* Node: Added ZREMRANGEBYSCORE command ([#926](https://github.com/aws/glide-for-redis/pull/926)) -* Node: Added ZREMRANGEBYRANK command ([#924](https://github.com/aws/glide-for-redis/pull/924)) -* Node: Added Xadd, Xtrim commands. ([#1057](https://github.com/aws/glide-for-redis/pull/1057)) -* Python: Added json module and JSON.SET JSON.GET commands ([#1056](https://github.com/aws/glide-for-redis/pull/1056)) -* Python, Node: Added Time command ([#1147](https://github.com/aws/glide-for-redis/pull/1147)), ([#1114](https://github.com/aws/glide-for-redis/pull/1114)) -* Python, Node: Added LINDEX command ([#1058](https://github.com/aws/glide-for-redis/pull/1058), [#999](https://github.com/aws/glide-for-redis/pull/999)) -* Python, Node: Added ZRANK command ([#1065](https://github.com/aws/glide-for-redis/pull/1065), [#1149](https://github.com/aws/glide-for-redis/pull/1149)) -* Core: Enabled Cluster Mode periodic checks by default ([#1089](https://github.com/aws/glide-for-redis/pull/1089)) -* Node: Added Rename command. ([#1124](https://github.com/aws/glide-for-redis/pull/1124)) -* Python: Added JSON.TOGGLE command ([#1184](https://github.com/aws/glide-for-redis/pull/1184)) +- Python Node: Allow routing Cluster requests by address. ([#1021](https://github.com/aws/glide-for-redis/pull/1021)) +- Python, Node: Added HSETNX command. ([#954](https://github.com/aws/glide-for-redis/pull/954), [#1091](https://github.com/aws/glide-for-redis/pull/1091)) +- Python, Node: Added SISMEMBER command ([#972](https://github.com/aws/glide-for-redis/pull/972), [#1083](https://github.com/aws/glide-for-redis/pull/1083)) +- Python, Node: Added TYPE command ([#945](https://github.com/aws/glide-for-redis/pull/945), [#980](https://github.com/aws/glide-for-redis/pull/980)) +- Python, Node: Added HLEN command ([#944](https://github.com/aws/glide-for-redis/pull/944), [#981](https://github.com/aws/glide-for-redis/pull/981)) +- Python, Node: Added ZCOUNT command ([#878](https://github.com/aws/glide-for-redis/pull/878)) ([#909](https://github.com/aws/glide-for-redis/pull/909)) +- Python, Node: Added ECHO command ([#953](https://github.com/aws/glide-for-redis/pull/953), [#1010](https://github.com/aws/glide-for-redis/pull/1010)) +- Python, Node: Added ZPOPMIN command ([#975](https://github.com/aws/glide-for-redis/pull/975), [#1008](https://github.com/aws/glide-for-redis/pull/1008)) +- Node: Added STRLEN command ([#993](https://github.com/aws/glide-for-redis/pull/993)) +- Node: Added LINDEX command ([#999](https://github.com/aws/glide-for-redis/pull/999)) +- Python, Node: Added ZPOPMAX command ([#996](https://github.com/aws/glide-for-redis/pull/996), [#1009](https://github.com/aws/glide-for-redis/pull/1009)) +- Python: Added ZRANGE command ([#906](https://github.com/aws/glide-for-redis/pull/906)) +- Python, Node: Added PTTL command ([#1036](https://github.com/aws/glide-for-redis/pull/1036), [#1082](https://github.com/aws/glide-for-redis/pull/1082)) +- Python, Node: Added HVAL command ([#1130](https://github.com/aws/glide-for-redis/pull/1130)), ([#1022](https://github.com/aws/glide-for-redis/pull/1022)) +- Python, Node: Added PERSIST command ([#1129](https://github.com/aws/glide-for-redis/pull/1129)), ([#1023](https://github.com/aws/glide-for-redis/pull/1023)) +- Node: Added ZREMRANGEBYSCORE command ([#926](https://github.com/aws/glide-for-redis/pull/926)) +- Node: Added ZREMRANGEBYRANK command ([#924](https://github.com/aws/glide-for-redis/pull/924)) +- Node: Added Xadd, Xtrim commands. ([#1057](https://github.com/aws/glide-for-redis/pull/1057)) +- Python: Added json module and JSON.SET JSON.GET commands ([#1056](https://github.com/aws/glide-for-redis/pull/1056)) +- Python, Node: Added Time command ([#1147](https://github.com/aws/glide-for-redis/pull/1147)), ([#1114](https://github.com/aws/glide-for-redis/pull/1114)) +- Python, Node: Added LINDEX command ([#1058](https://github.com/aws/glide-for-redis/pull/1058), [#999](https://github.com/aws/glide-for-redis/pull/999)) +- Python, Node: Added ZRANK command ([#1065](https://github.com/aws/glide-for-redis/pull/1065), [#1149](https://github.com/aws/glide-for-redis/pull/1149)) +- Core: Enabled Cluster Mode periodic checks by default ([#1089](https://github.com/aws/glide-for-redis/pull/1089)) +- Node: Added Rename command. ([#1124](https://github.com/aws/glide-for-redis/pull/1124)) +- Python: Added JSON.TOGGLE command ([#1184](https://github.com/aws/glide-for-redis/pull/1184)) #### Features -* Python: Allow chaining function calls on transaction. ([#987](https://github.com/aws/glide-for-redis/pull/987)) -* Node: Adding support for GLIDE's usage in projects based on either `CommonJS` or `ECMAScript` modules. ([#1132](https://github.com/aws/glide-for-redis/pull/1132)) -* Python, Node: Added Cluster Mode configuration for periodic checks interval ([#1089](https://github.com/aws/glide-for-redis/pull/1089), [#1158](https://github.com/aws/glide-for-redis/pull/1158)) +- Python: Allow chaining function calls on transaction. ([#987](https://github.com/aws/glide-for-redis/pull/987)) +- Node: Adding support for GLIDE's usage in projects based on either `CommonJS` or `ECMAScript` modules. ([#1132](https://github.com/aws/glide-for-redis/pull/1132)) +- Python, Node: Added Cluster Mode configuration for periodic checks interval ([#1089](https://github.com/aws/glide-for-redis/pull/1089), [#1158](https://github.com/aws/glide-for-redis/pull/1158)) ## 0.2.0 (2024-02-11) #### Changes -* Python, Node: Added ZCARD command ([#871](https://github.com/aws/glide-for-redis/pull/871), [#885](https://github.com/aws/glide-for-redis/pull/885)) -* Python, Node: Added ZADD and ZADDINCR commands ([#814](https://github.com/aws/glide-for-redis/pull/814), [#830](https://github.com/aws/glide-for-redis/pull/830)) -* Python, Node: Added ZREM command ([#834](https://github.com/aws/glide-for-redis/pull/834), [#831](https://github.com/aws/glide-for-redis/pull/831)) -* Python, Node: Added ZSCORE command ([#877](https://github.com/aws/glide-for-redis/pull/877), [#889](https://github.com/aws/glide-for-redis/pull/889)) -* Use jemalloc as default allocator. ([#847](https://github.com/aws/glide-for-redis/pull/847)) -* Python, Node: Added RPOPCOUNT and LPOPCOUNT to transaction ([#874](https://github.com/aws/glide-for-redis/pull/874)) -* Standalone client: Improve connection errors. ([#854](https://github.com/aws/glide-for-redis/pull/854)) -* Python, Node: When recieving LPOP/RPOP with count, convert result to Array. ([#811](https://github.com/aws/glide-for-redis/pull/811)) -* Python, Node: Added TYPE command ([#945](https://github.com/aws/glide-for-redis/pull/945), [#980](https://github.com/aws/glide-for-redis/pull/980)) -* Python, Node: Added HLEN command ([#944](https://github.com/aws/glide-for-redis/pull/944), [#981](https://github.com/aws/glide-for-redis/pull/981)) -* Python, Node: Added ZCOUNT command ([#878](https://github.com/aws/glide-for-redis/pull/878)) ([#909](https://github.com/aws/glide-for-redis/pull/909)) -* Python: Added ECHO command ([#953](https://github.com/aws/glide-for-redis/pull/953)) -* Python, Node: Added ZPOPMIN command ([#975](https://github.com/aws/glide-for-redis/pull/975), [#1008](https://github.com/aws/glide-for-redis/pull/1008)) -* Node: Added STRLEN command ([#993](https://github.com/aws/glide-for-redis/pull/993)) -* Node: Added LINDEX command ([#999](https://github.com/aws/glide-for-redis/pull/999)) -* Python, Node: Added ZPOPMAX command ([#996](https://github.com/aws/glide-for-redis/pull/996), [#1009](https://github.com/aws/glide-for-redis/pull/1009)) -* Python: Added DBSIZE command ([#1040](https://github.com/aws/glide-for-redis/pull/1040)) + +- Python, Node: Added ZCARD command ([#871](https://github.com/aws/glide-for-redis/pull/871), [#885](https://github.com/aws/glide-for-redis/pull/885)) +- Python, Node: Added ZADD and ZADDINCR commands ([#814](https://github.com/aws/glide-for-redis/pull/814), [#830](https://github.com/aws/glide-for-redis/pull/830)) +- Python, Node: Added ZREM command ([#834](https://github.com/aws/glide-for-redis/pull/834), [#831](https://github.com/aws/glide-for-redis/pull/831)) +- Python, Node: Added ZSCORE command ([#877](https://github.com/aws/glide-for-redis/pull/877), [#889](https://github.com/aws/glide-for-redis/pull/889)) +- Use jemalloc as default allocator. ([#847](https://github.com/aws/glide-for-redis/pull/847)) +- Python, Node: Added RPOPCOUNT and LPOPCOUNT to transaction ([#874](https://github.com/aws/glide-for-redis/pull/874)) +- Standalone client: Improve connection errors. ([#854](https://github.com/aws/glide-for-redis/pull/854)) +- Python, Node: When recieving LPOP/RPOP with count, convert result to Array. ([#811](https://github.com/aws/glide-for-redis/pull/811)) +- Python, Node: Added TYPE command ([#945](https://github.com/aws/glide-for-redis/pull/945), [#980](https://github.com/aws/glide-for-redis/pull/980)) +- Python, Node: Added HLEN command ([#944](https://github.com/aws/glide-for-redis/pull/944), [#981](https://github.com/aws/glide-for-redis/pull/981)) +- Python, Node: Added ZCOUNT command ([#878](https://github.com/aws/glide-for-redis/pull/878)) ([#909](https://github.com/aws/glide-for-redis/pull/909)) +- Python: Added ECHO command ([#953](https://github.com/aws/glide-for-redis/pull/953)) +- Python, Node: Added ZPOPMIN command ([#975](https://github.com/aws/glide-for-redis/pull/975), [#1008](https://github.com/aws/glide-for-redis/pull/1008)) +- Node: Added STRLEN command ([#993](https://github.com/aws/glide-for-redis/pull/993)) +- Node: Added LINDEX command ([#999](https://github.com/aws/glide-for-redis/pull/999)) +- Python, Node: Added ZPOPMAX command ([#996](https://github.com/aws/glide-for-redis/pull/996), [#1009](https://github.com/aws/glide-for-redis/pull/1009)) +- Python: Added DBSIZE command ([#1040](https://github.com/aws/glide-for-redis/pull/1040)) #### Features -* Python, Node: Added support in Lua Scripts ([#775](https://github.com/aws/glide-for-redis/pull/775), [#860](https://github.com/aws/glide-for-redis/pull/860)) -* Node: Allow chaining function calls on transaction. ([#902](https://github.com/aws/glide-for-redis/pull/902)) + +- Python, Node: Added support in Lua Scripts ([#775](https://github.com/aws/glide-for-redis/pull/775), [#860](https://github.com/aws/glide-for-redis/pull/860)) +- Node: Allow chaining function calls on transaction. ([#902](https://github.com/aws/glide-for-redis/pull/902)) #### Fixes -* Core: Fixed `Connection Refused` error not to close the client ([#872](https://github.com/aws/glide-for-redis/pull/872)) -* Socket listener: fix identifier for closed reader error. ([#853](https://github.com/aws/glide-for-redis/pull/853)) -* Node: Fix issues with type import & exports ([#767](https://github.com/aws/glide-for-redis/pull/767)) -* Core: Added handling to "?" and NULL hostnames in CLUSTER SLOTS ([#104](https://github.com/amazon-contributing/redis-rs/pull/104)) -* Core: Cluster connection now reconnects after full disconnect. ([#100](https://github.com/amazon-contributing/redis-rs/pull/100)) + +- Core: Fixed `Connection Refused` error not to close the client ([#872](https://github.com/aws/glide-for-redis/pull/872)) +- Socket listener: fix identifier for closed reader error. ([#853](https://github.com/aws/glide-for-redis/pull/853)) +- Node: Fix issues with type import & exports ([#767](https://github.com/aws/glide-for-redis/pull/767)) +- Core: Added handling to "?" and NULL hostnames in CLUSTER SLOTS ([#104](https://github.com/amazon-contributing/redis-rs/pull/104)) +- Core: Cluster connection now reconnects after full disconnect. ([#100](https://github.com/amazon-contributing/redis-rs/pull/100)) ## 0.1.0 (2024-01-17) diff --git a/python/python/glide/async_commands/cluster_commands.py b/python/python/glide/async_commands/cluster_commands.py index b3e40f3115..c4ff590701 100644 --- a/python/python/glide/async_commands/cluster_commands.py +++ b/python/python/glide/async_commands/cluster_commands.py @@ -708,4 +708,6 @@ async def scan( ) cursor_str = cast(str, casted_response[0]) cursor = ClusterScanCursor(cursor_str) - return cast(List[Union[ClusterScanCursor, List[str]]], [cursor, casted_response[1]]) + return cast( + List[Union[ClusterScanCursor, List[str]]], [cursor, casted_response[1]] + ) diff --git a/python/python/tests/test_async_client.py b/python/python/tests/test_async_client.py index a038e3dbd5..db4a1ef2aa 100644 --- a/python/python/tests/test_async_client.py +++ b/python/python/tests/test_async_client.py @@ -6490,7 +6490,7 @@ async def test_lolwut(self, redis_client: TGlideClient): # Cluster scan tests @pytest.mark.parametrize("cluster_mode", [True]) @pytest.mark.parametrize("protocol", [ProtocolVersion.RESP2, ProtocolVersion.RESP3]) - async def test_simple_cluster_scan(self, redis_client: RedisClusterClient): + async def test_simple_cluster_scan(self, redis_client: GlideClusterClient): expected_keys = [f"key:{i}" for i in range(100)] for key in expected_keys: await redis_client.set(key, "value") @@ -6506,7 +6506,7 @@ async def test_simple_cluster_scan(self, redis_client: RedisClusterClient): @pytest.mark.parametrize("cluster_mode", [True]) @pytest.mark.parametrize("protocol", [ProtocolVersion.RESP2, ProtocolVersion.RESP3]) async def test_cluster_scan_with_object_type_and_pattern( - self, redis_client: RedisClusterClient + self, redis_client: GlideClusterClient ): expected_keys = [f"key:{i}" for i in range(100)] for key in expected_keys: @@ -6532,7 +6532,7 @@ async def test_cluster_scan_with_object_type_and_pattern( @pytest.mark.parametrize("cluster_mode", [True]) @pytest.mark.parametrize("protocol", [ProtocolVersion.RESP2, ProtocolVersion.RESP3]) - async def test_cluster_scan_with_count(self, redis_client: RedisClusterClient): + async def test_cluster_scan_with_count(self, redis_client: GlideClusterClient): expected_keys = [f"key:{i}" for i in range(1000)] for key in expected_keys: await redis_client.set(key, "value") @@ -6558,7 +6558,7 @@ async def test_cluster_scan_with_count(self, redis_client: RedisClusterClient): @pytest.mark.parametrize("cluster_mode", [True]) @pytest.mark.parametrize("protocol", [ProtocolVersion.RESP2, ProtocolVersion.RESP3]) - async def test_cluster_scan_with_match(self, redis_client: RedisClusterClient): + async def test_cluster_scan_with_match(self, redis_client: GlideClusterClient): unexpected_keys = [f"{i}" for i in range(100)] for key in unexpected_keys: await redis_client.set(key, "value") @@ -6577,7 +6577,7 @@ async def test_cluster_scan_with_match(self, redis_client: RedisClusterClient): @pytest.mark.parametrize("cluster_mode", [True]) @pytest.mark.parametrize("protocol", [ProtocolVersion.RESP2, ProtocolVersion.RESP3]) # We test whther the cursor is cleaned up after it is deleted, which we expect to happen when th GC is called - async def test_cluster_scan_cleaning_cursor(self, redis_client: RedisClusterClient): + async def test_cluster_scan_cleaning_cursor(self, redis_client: GlideClusterClient): keys = [f"key:{i}" for i in range(100)] for key in keys: await redis_client.set(key, "value") @@ -6593,7 +6593,7 @@ async def test_cluster_scan_cleaning_cursor(self, redis_client: RedisClusterClie @pytest.mark.parametrize("cluster_mode", [True]) @pytest.mark.parametrize("protocol", [ProtocolVersion.RESP2, ProtocolVersion.RESP3]) - async def test_cluster_scan_all_types(self, redis_client: RedisClusterClient): + async def test_cluster_scan_all_types(self, redis_client: GlideClusterClient): # We test that the scan command work for all types of keys string_keys = [f"key:{i}" for i in range(100)] for key in string_keys: @@ -6666,7 +6666,7 @@ async def test_cluster_scan_all_types(self, redis_client: RedisClusterClient): # Standalone scan tests @pytest.mark.parametrize("cluster_mode", [False]) @pytest.mark.parametrize("protocol", [ProtocolVersion.RESP2, ProtocolVersion.RESP3]) - async def test_simple_scan(self, redis_client: RedisClient): + async def test_simple_scan(self, redis_client: GlideClient): expected_keys = [f"key:{i}" for i in range(100)] for key in expected_keys: await redis_client.set(key, "value") @@ -6682,7 +6682,7 @@ async def test_simple_scan(self, redis_client: RedisClient): @pytest.mark.parametrize("cluster_mode", [False]) @pytest.mark.parametrize("protocol", [ProtocolVersion.RESP2, ProtocolVersion.RESP3]) - async def test_scan_with_object_type_and_pattern(self, redis_client: RedisClient): + async def test_scan_with_object_type_and_pattern(self, redis_client: GlideClient): expected_keys = [f"key:{i}" for i in range(100)] for key in expected_keys: await redis_client.set(key, "value") @@ -6708,7 +6708,7 @@ async def test_scan_with_object_type_and_pattern(self, redis_client: RedisClient @pytest.mark.parametrize("cluster_mode", [False]) @pytest.mark.parametrize("protocol", [ProtocolVersion.RESP2, ProtocolVersion.RESP3]) - async def test_scan_with_count(self, redis_client: RedisClient): + async def test_scan_with_count(self, redis_client: GlideClient): expected_keys = [f"key:{i}" for i in range(1000)] for key in expected_keys: await redis_client.set(key, "value") @@ -6733,7 +6733,7 @@ async def test_scan_with_count(self, redis_client: RedisClient): @pytest.mark.parametrize("cluster_mode", [False]) @pytest.mark.parametrize("protocol", [ProtocolVersion.RESP2, ProtocolVersion.RESP3]) - async def test_cluster_with_match(self, redis_client: RedisClient): + async def test_cluster_with_match(self, redis_client: GlideClient): unexpected_keys = [f"{i}" for i in range(100)] for key in unexpected_keys: await redis_client.set(key, "value") @@ -6753,7 +6753,7 @@ async def test_cluster_with_match(self, redis_client: RedisClient): @pytest.mark.parametrize("cluster_mode", [False]) @pytest.mark.parametrize("protocol", [ProtocolVersion.RESP2, ProtocolVersion.RESP3]) - async def test_scan_all_types(self, redis_client: RedisClient): + async def test_scan_all_types(self, redis_client: GlideClient): # We test that the scan command work for all types of keys string_keys = [f"key:{i}" for i in range(100)] for key in string_keys: