1
0
mirror of https://github.com/redis/node-redis.git synced 2025-07-31 05:44:24 +03:00

2183 Commits

Author SHA1 Message Date
0ee3278085 chore(search): export languages (#2651) 2023-11-20 13:41:44 -05:00
623b56b5ca fix cluster.sUnsubscribe - make listener optional 2023-11-20 13:40:38 -05:00
e91509a3e1 fix GRAPH.EXPLAIN - fix transform typo in transformReply 2023-11-20 13:40:06 -05:00
68d835d7a2 fix #2632 - handle socket close in "socket initiator" phase (#2653) 2023-11-20 13:16:36 -05:00
a8b81bdd01 Send client user-agent during connection, via CLIENT SETINFO (#2645)
* Add SETINFO support to client connection, with the ability to disable sending the user agent if the end user desires.  * Also enables modifying the user-agent with a tag to enable distinguishing different usages.
2023-11-07 14:43:20 +02:00
c64ce74383 Release redis@4.6.10 redis@4.6.10 2023-09-22 07:03:52 -04:00
14909e7ccb ugprade subpackages 2023-09-22 07:03:34 -04:00
3862fd2e9f Release search@1.1.5 search@1.1.5 2023-09-22 07:03:00 -04:00
f7d400e896 Release json@1.0.6 json@1.0.6 2023-09-22 07:02:29 -04:00
d1fdf1e7e2 Release client@1.5.11 client@1.5.11 2023-09-22 07:01:48 -04:00
38e9a40d1a fix #2619 #2618 #2617 #2616 - support for node >= 14 2023-09-22 07:00:26 -04:00
7706a5e86d Release redis@4.6.9 redis@4.6.9 2023-09-19 17:58:47 -04:00
077e099938 upgrade subpackages 2023-09-19 17:58:22 -04:00
d258296f33 Release json@1.0.5 json@1.0.5 2023-09-19 17:56:29 -04:00
6cc635cb93 Release search@1.1.4 search@1.1.4 2023-09-19 17:54:58 -04:00
fef006cc1d Release client@1.5.10 client@1.5.10 2023-09-19 17:53:20 -04:00
e00041e0eb Fix: XAUTOCLAIM after a TRIM with pending messages returns nil (#2565)
* fix(client): XCLAIM & XAUTOCLAIM after a TRIM might return nils

* fix(client): Fix race condition in specs

* revert test utils changes

* make tests faster

---------

Co-authored-by: Leibale Eidelman <me@leibale.com>
2023-09-19 17:37:16 -04:00
4ec97be4f0 fix #1956 - add support for LATENCY HISTORY (#2555)
* added support for LATENCY_HISTORY command

* clean code

* Update LATENCY_HISTORY.ts

---------

Co-authored-by: Leibale Eidelman <me@leibale.com>
2023-09-19 16:21:54 -04:00
6848f3d207 Add support for PUBSUB SHARDNUMSUB (#2541)
* Add support for command 'PUBSUB SHARDNUMSUB'

* Use import from PUBSUB_SHARDNUMSUB

* Add test case for non-empty reply

* clean tests

* run tests in redis >= 7, fix integration test

---------

Co-authored-by: Leibale Eidelman <me@leibale.com>
2023-09-19 15:59:02 -04:00
01ca54e907 fix #1970 - add support for RESTORE (#2535)
* - Added RESTORE functionality

* add FIRST_KEY_INDEX, fix tests, clean example, add example to examples table

* use returnBuffers in test

---------

Co-authored-by: Leibale Eidelman <me@leibale.com>
2023-09-18 19:45:33 -04:00
8ecfd3ebda Add support for CLUSTER MYSHARDID (#2528)
* Add support for CLUSTER.MYSHARDID command

* Update CLUSTER_MYSHARDID.ts

* Update CLUSTER_MYSHARDID.spec.ts

* add test and clean code

---------

Co-authored-by: Leibale Eidelman <me@leibale.com>
2023-09-18 19:31:03 -04:00
d8ae8cf0ff Upgrade actions/checkout & actions/setup-node 2023-09-18 19:03:18 -04:00
a217cc1a88 Add support for FT.SEARCH NOCONTENT (#2610)
* Add support for NOCONTENT in FT.SEARCH

* Move support for NOCONTENT search option from client.search to client.searchNoContent

* Add test for SEARCH_NOCONTENT#transformReply

* Fix typo

* Enable test

* Update test field type

---------

Co-authored-by: Leibale <me@leibale.com>
2023-09-18 18:33:17 -04:00
1f97893785 fix ACL GETUSER test 2023-09-18 18:25:13 -04:00
cf21c1a1f8 Add support for JSON.MERGE (#2511)
* Support JSON.MERGE Command

* test only 2.6+ ReJson version

* test on edge

* review

* Update test-utils.ts

---------

Co-authored-by: Leibale Eidelman <me@leibale.com>
2023-09-18 17:54:25 -04:00
8c8740a4ba Add 7.2 to tests matrix 2023-09-18 17:51:40 -04:00
4e610c2f8a Add support for CLIENT NO-TOUCH (#2497) 2023-09-18 17:49:37 -04:00
fb255eb5d0 Have client.connect() return a Promise<RedisClient> (#2602)
* Connect returns the instance of the client

* Added a test

* No auto setup

* Added a bit of docs

* fix the return type, test, and the docs

* fix return type

* Update packages/client/lib/client/index.spec.ts

Co-authored-by: Francisco Presencia <franciscop@users.noreply.github.com>

---------

Co-authored-by: Leibale Eidelman <me@leibale.com>
2023-09-18 17:40:08 -04:00
5a108265da Add support for JSON.MSET (#2605)
* Added MSET command

MSET command added. Requires all keys to have the same JSON Path, which might fit most use cases, but is a limitation.  Optionally we could make the path an array as well to support all use cases.

* change JSON.MSET signature, add to json command object, fix tests

* its `item.value`, not `item.json`..

* Update MSET.ts

Removed unused RedisCommandArguments

---------

Co-authored-by: Leibale Eidelman <me@leibale.com>
2023-09-18 17:39:23 -04:00
26b9e6dc78 remove node 19 2023-09-18 17:31:28 -04:00
4976231f24 upgrade deps, remove node 14 & 16 from tests matrix 2023-09-18 17:23:01 -04:00
294cbf8367 Release redis@4.6.8 redis@4.6.8 2023-08-23 15:32:52 -04:00
b3fe14e224 ugprade subpackages 2023-08-23 15:32:22 -04:00
afd8c235fb Release time-series@1.0.5 time-series@1.0.5 2023-08-23 15:30:19 -04:00
504a05baad Release client@1.5.9 client@1.5.9 2023-08-23 15:16:51 -04:00
fe74e322dd upgrade deps 2023-08-23 14:53:26 -04:00
bc8abd5a38 fixes #2524 delaying graceful exit while pingInterval is set (#2525)
* fixes #2524

* `clearTimeout` in `disconnect` too

---------

Co-authored-by: Leibale Eidelman <me@leibale.com>
2023-08-23 13:20:20 -04:00
259e9b2e1f Updating all client licenses to clearly be MIT (#2596) 2023-08-10 10:50:57 +02:00
b58833b6ea fix #2569 - fix @redis/search README 2023-07-20 16:09:35 -04:00
a7d5bc7ca4 fix #2526 - fix json README links (#2527) 2023-06-06 10:24:59 -04:00
79b0df8229 Release redis@4.6.7 redis@4.6.7 2023-05-31 15:47:56 +03:00
9250fd740c upgrade subpackages 2023-05-31 15:47:25 +03:00
2baf5df23c Release client@1.5.8 client@1.5.8 2023-05-31 15:46:32 +03:00
99c7cd7c55 Release search@1.1.3 search@1.1.3 2023-05-31 15:44:12 +03:00
454617bf83 Add a note about multiple Pub/Sub channel listeners (#2433)
* Add multiple listener language to pub/sub docks

Clarify that multiple subscriptions create multiple listeners.

* Update pub-sub.md

---------

Co-authored-by: Leibale Eidelman <me@leibale.com>
2023-05-29 09:04:30 -04:00
0298c1ac41 upgrade deps (#2517)
* upgrade deps

* fix graph tests
2023-05-29 09:01:34 -04:00
100a5232ac use setImmediate instead of queueMicrotask (to improve performance) (#2516) 2023-05-29 09:01:22 -04:00
e696653bf9 Add support for LATENCY LATEST (#2514)
* Add support for LATENCY LATEST.

* Fix the review comments.

* Fix the review comments.

* Update LATENCY_LATEST.ts

* Update dockers.ts

* Update LATENCY_GRAPH.spec.ts

* enable debug mode in tests

---------

Co-authored-by: Leibale Eidelman <me@leibale.com>
2023-05-29 09:00:58 -04:00
499ea85594 Update search-hashes.js (#2519) 2023-05-29 07:18:59 -04:00
85091cde5a Add count option to FT.CURSOR READ (#2492)
* feat: Add count option to FT.CURSOR READ

* Update CURSOR_READ.spec.ts

---------

Co-authored-by: Leibale Eidelman <me@leibale.com>
2023-05-21 08:08:27 -04:00