1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-01 16:46:54 +03:00

1873 Commits

Author SHA1 Message Date
ba31c8a50e fix #2443 - fix multiple sockets on error in socket initiator (#2480)
* fix #2443 - fix multiple sockets on error in socket initiator

* handle `error` events in test
2023-04-26 12:56:42 -04:00
e1658ba6ef fix cluster extractFirstKey skip commandOptions() passed to args (#2439)
* cluster extractFirstKey skip commandOptions() passed to args

* cluster with commandOptions unit test

* improve performance

* fix type

* fix type

---------

Co-authored-by: Leibale Eidelman <me@leibale.com>
2023-04-26 12:56:04 -04:00
c88dea6151 Augment subpackages npm info (#2478)
* augment subpackages npm info

* some more keywords

---------

Co-authored-by: Leibale Eidelman <me@leibale.com>
2023-04-24 12:41:44 -04:00
9f2e27d07d Fixed a bug in the updateIsActive function (#2476)
Missing PubSubType.SHARDED and duplicate comparison of PubSubType.CHANNELS when comparing listeners size in updateIsActive function
2023-04-24 12:41:30 -04:00
d65a641b2d revert 1d8302c9db 2023-03-17 09:52:30 -04:00
1d8302c9db FT.CREATE - set FIRST_KEY_INDEX to 1 (#2440) 2023-03-14 12:37:13 -04:00
ca1d04f2ba Release redis@4.6.5 redis@4.6.5 2023-02-24 18:22:13 -05:00
4745fae37f ugprade subpackages 2023-02-24 18:16:56 -05:00
f756d9aaa9 Release client@1.5.6 client@1.5.6 2023-02-24 18:10:07 -05:00
f0794ece01 Release search@1.1.2 search@1.1.2 2023-02-24 18:07:31 -05:00
4937efca6b upgrade dependencies (#2426) 2023-02-24 18:05:43 -05:00
e95b258dca fix #2419 - fix RESP2 array decoder in edge cases (#2424) 2023-02-24 17:34:19 -05:00
63e5228ce6 fix #2411 - export RedisFlushModes (#2425) 2023-02-24 17:34:00 -05:00
26e057ebf9 fix FT.SEARCH RETURN [] (#2421)
* ref #2419 - fix FT.SEARCH RETURN []

* fix transformReply

* fix PROFILE SEARCH as well

* fix PROFILE SEARCH preserve

* move preserve login to `pushSearchOptions`

* attach preserve only if true

* fix RETURN: [] test
2023-02-24 17:33:33 -05:00
0f28dad2a2 Execute empty MULTI (#2423)
* Fix multi.exec with empty queue and previous watch

When calling exec on a multi instance which you did not use, no command is sent currently.

This is a problem for watched keys, because no EXEC means no unwatch, which might cause hard-to-debug problems.

Proposed Fix: Sending UNWATCH

* execute empty multi command (instead of skipping)

* Update index.ts

* Update index.ts

* Update multi-command.ts

* Update multi-command.ts

* Update multi-command.ts

* Update multi-command.ts

* short circuit empty pipelines

* Update index.ts

---------

Co-authored-by: Leibale <me@leibale.com>
2023-02-24 17:33:16 -05:00
1be84228b5 Remove redundant UNF sub-option in JSON example (#2418)
UNF option is not required with JSON and makes the 
example harder to read and understand.
2023-02-21 10:45:48 -05: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