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

1863 Commits

Author SHA1 Message Date
901ca5a5d8 Update index.spec.ts 2023-02-09 08:17:37 -05:00
81742eb9a1 Update dockers.ts 2023-02-09 08:17:21 -05:00
6ea2d0f737 Merge branch 'master' into 2370-scan-iterator-buffers 2023-02-08 11:54:07 -05:00
1a8fde001f implement h/s/zScanIterator
Co-authored-by: Leibale Eidelman <me@leibale.com>
2023-02-08 18:52:07 +02:00
9ffae592f1 Release redis@4.6.4 redis@4.6.4 2023-01-30 14:30:00 -05:00
9209245611 upgrade subpackages 2023-01-30 14:29:38 -05:00
e4229a40b6 Release client@1.5.5 client@1.5.5 2023-01-30 14:27:42 -05:00
7cb467ad23 fix #2398 - fix v4 interface in legacyMode (#2402) 2023-01-30 14:24:11 -05:00
b3c260a5db fix graph tests 2023-01-30 14:02:15 -05:00
bb9a024d91 fix: Fix small typo in Redis Pub/Sub docs (#2400) 2023-01-30 12:23:17 -05:00
7a0334f396 Release redis@4.6.3 redis@4.6.3 2023-01-28 18:27:34 -05:00
a8915536bf upgrade subpackages 2023-01-28 18:26:55 -05:00
f1e951debe Release client@1.5.4 client@1.5.4 2023-01-28 18:24:14 -05:00
b3cd78503d fix reconnecting event (#2396)
* fix #2395 - fix reconnecting event

* Update socket.ts
2023-01-28 18:20:48 -05:00
58e572bdc7 Release redis@4.6.2 redis@4.6.2 2023-01-27 09:51:20 -05:00
c00b20f02a upgrade subpackages 2023-01-27 09:50:34 -05:00
be335efc20 Release client@1.5.3 client@1.5.3 2023-01-27 09:47:16 -05:00
2dba7f200b fix #2392 - handle errors in legacyMode (#2394) 2023-01-27 09:45:22 -05:00
00e365250e Release redis@4.6.1 redis@4.6.1 2023-01-25 20:49:08 -05:00
b0ae4aa53e upgrade @redis/client 2023-01-25 20:48:42 -05:00
92043563f2 Release client@1.5.2 client@1.5.2 2023-01-25 20:46:05 -05:00
c6587e219a Release client@1.5.1 client@1.5.1 2023-01-25 20:38:56 -05:00
3bd28a9924 fix #2391 - remove node: prefix from imports 2023-01-25 20:37:00 -05:00
c6e1124dff Update pub-sub.md 2023-01-25 13:41:53 -05:00
9decde68ab Release redis@4.6.0 redis@4.6.0 2023-01-25 13:31:01 -05:00
d3c5019e3c upgrade subpackages 2023-01-25 13:30:15 -05:00
4904fe4a5d Release client@1.5.0 client@1.5.0 2023-01-25 13:23:58 -05:00
e9de74c96f revert client version to 1.4.2 2023-01-25 13:23:28 -05:00
f3ed246ff8 Release search@1.1.1 search@1.1.1 2023-01-25 13:19:21 -05:00
b06f92ae00 Release bloom@1.2.0 bloom@1.2.0 2023-01-25 13:15:45 -05:00
0a46fcbdaf upgrade dependencies (#2381)
* upgrade deps

* upgrade dependencies

* fix v3 benchmark

* update package-lock.json
2023-01-25 13:05:42 -05:00
3b1bad2296 Add support for sharded PubSub (#2373)
* refactor pubsub, add support for sharded pub sub

* run tests in redis 7 only, fix PUBSUB SHARDCHANNELS test

* add some comments and fix some bugs

* PubSubType, not PubSubTypes 🤦‍♂️

* remove test.txt

* fix some bugs, add tests

* add some tests

* fix #2345 - allow PING in PubSub mode (remove client side validation)

* remove .only

* revert changes in cluster/index.ts

* fix tests minimum version

* handle server sunsubscribe

* add 'sharded-channel-moved' event to docs, improve the events section in the main README (fix #2302)

* exit "resubscribe" if pubsub not active

* Update commands-queue.ts

* Release client@1.5.0-rc.0

* WIP

* use `node:util` instead of `node:util/types` (to support node 14)

* run PubSub resharding test with Redis 7+

* fix inconsistency in live resharding test

* add some tests

* fix iterateAllNodes when starting from a replica

* fix iterateAllNodes random

* fix slotNodesIterator

* fix slotNodesIterator

* clear pubSubNode when node in use

* wait for all nodes cluster state to be ok before testing

* `cluster.minimizeConections` tests

* `client.reconnectStrategry = false | 0` tests

* sharded pubsub + cluster 🎉

* add minimum version to sharded pubsub tests

* add cluster sharded pubsub live reshard test, use stable dockers for tests, make sure to close pubsub clients when a node disconnects from the cluster

* fix "ssubscribe & sunsubscribe" test

* lock search docker to 2.4.9

* change numberOfMasters default to 2

* use edge for bloom

* add tests

* add back getMasters and getSlotMaster as deprecated functions

* add some tests

* fix reconnect strategy + docs

* sharded pubsub docs

* Update pub-sub.md

* some jsdoc, docs, cluster topology test

* clean pub-sub docs

Co-authored-by: Simon Prickett <simon@redislabs.com>

* reconnect startegy docs and bug fix

Co-authored-by: Simon Prickett <simon@redislabs.com>

* refine jsdoc and some docs

Co-authored-by: Simon Prickett <simon@redislabs.com>

* I'm stupid

* fix cluster topology test

* fix cluster topology test

* Update README.md

* Update clustering.md

* Update pub-sub.md

Co-authored-by: Simon Prickett <simon@redislabs.com>
2023-01-25 11:00:39 -05:00
e75a5db3e4 Add CLIENT LIST command and fix CLIENT INFO (#2368)
* fix client info

* add client list

* fix key validation in transformClientInfoReply

* fix issue with field in CLIENT LIST reply

* clean code

* fix multimem

* fix qbufFree argvMem totMem multiMem

Co-authored-by: Leibale <me@leibale.com>
2023-01-25 10:52:59 -05:00
2287efdd1e Fix legacyMode/pingInterval issue (#2386)
* Add a test for legacyMode pingInterval

* Apply patch to fix legacy mode ping interval

* use this.#sendCommand instead of this.#v4

Co-authored-by: Leibale <me@leibale.com>
2023-01-24 20:11:48 -05:00
85bf97bb39 doc: add defaults option example to cluster documentation (#2377)
* doc: add defaults option example to cluster documentation

* Formatting update.

* Formatting.

Co-authored-by: Simon Prickett <simon@redis.com>
2023-01-24 17:52:15 -05:00
29a2dc5027 update issue templates and add new documentation issue template (#2357)
* feat: update issue templates and add new documentation issue template

* update templates

* refine templates

Co-authored-by: Leibale <me@leibale.com>
2023-01-24 17:31:21 -05:00
d77be811be add keywords in root package.json (#2389) 2023-01-24 13:02:08 -05:00
6642278f96 Add 'Network error handling' section to documentation (#2250)
* Add 'Network error handling' section to documentation

* Merge 'Network error handling' section with existing doc

* typo

* Update README.md

* typos

Co-authored-by: Samuel CHEMLA <samuel.chemla@orange.com>
Co-authored-by: Leibale Eidelman <me@leibale.com>
2023-01-24 09:15:14 -05:00
3511995cf7 revert unwanted changes 2023-01-19 19:21:05 +02:00
bf272742e4 ref #2370 add support for CommandIterator in ScanIterator
Co-authored-by: Leibale Eidelman <me@leibale.com>
2023-01-19 19:13:27 +02:00
abf2b4bc82 update examples/README.md - add search-knn to the table 2023-01-18 14:36:57 -05:00
fa47b572d4 Adds example for mixing arbitrary and supported commands in a transaction context. (#2315)
* Adds example for transactions with arbitrary commands.

* Formatting.

* Update transaction-with-arbitrary-commands.js

Co-authored-by: Leibale Eidelman <me@leibale.com>
2023-01-18 12:59:04 -05:00
63511e5b9b Add latency graph command (#2359)
* add latency graph command

* fix coding style

* Clean code

* use "enable-debug-command" is redis 7+ only

* Update LATENCY_GRAPH.spec.ts

Co-authored-by: Leibale Eidelman <me@leibale.com>
2023-01-18 12:55:38 -05:00
fad23973a5 fix #2333 - fix quit reply (#2346) 2023-01-18 12:55:11 -05:00
2042a67f3c KNN example (#2352)
* Sketch KNN example

* Got KNN example to work. Closes #2351

* clean example

Co-authored-by: Leibale Eidelman <me@leibale.com>
2023-01-18 12:54:51 -05:00
a1dfa22517 fix #2364 - fix FT.SEARCH RETURN [] (#2366)
* fix #2364 - fix FT.SEARCH RETURN []

* remove console.log
2023-01-18 12:54:42 -05:00
aa75ee49c6 #2038 Resolve legacy mode hGetAll returning in the wrong format compared to v3 results (#2367)
* Ensure that transformReply is optionally passed through to commands in legacy mode within multi

* Execute transformReply on legacy #sendCommand

* Scope transform changes to hGetAll

* Extensible method of transforming legacy replies, expands RedisCommand interface

* check `TRANSFORM_LEGACY_REPLY` on client creation (rather then on command exec), add tests

Co-authored-by: Leibale Eidelman <me@leibale.com>
2023-01-18 12:54:29 -05:00
e895fa1d71 Adding redis-stack-docker (#2380) 2023-01-18 12:53:09 -05:00
a55fbafb88 Add support for BF.CARD command (#2376)
* Add support for BF.CARD command

* Update index.ts

* Update CARD.ts

* Update CARD.spec.ts

Co-authored-by: Leibale Eidelman <me@leibale.com>
2023-01-18 12:53:00 -05:00
c5b6f77c33 exclude dist from coverage report 2022-12-26 13:35:37 -05:00