1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00
Commit Graph

296 Commits

Author SHA1 Message Date
Bobby I.
49d6b2d465 Update README.MD (#2924)
* Update README.MD

* docs: update programmability.md examples

+ add Programmability section to README and

* fix imports according to the new v5 exports

* more v5 docs updates

---------

Co-authored-by: Nikolay Karadzhov <nkaradzhov89@gmail.com>
2025-04-30 16:28:22 +03:00
Bobby I.
ca85f8268d refactor!: Remove graph module (#2897)
https://redis.io/blog/redisgraph-eol/
2025-03-18 14:27:37 +02:00
Bobby I.
33cdc00746 churn(docs) update entraid documentation (#2898) 2025-02-18 15:57:40 +02:00
Shaya Potter
b2d35c5286 V5 bringing RESP3, Sentinel and TypeMapping to node-redis
RESP3 Support
   - Some commands responses in RESP3 aren't stable yet and therefore return an "untyped" ReplyUnion.
 
Sentinel

TypeMapping

Correctly types Multi commands

Note: some API changes to be further documented in v4-to-v5.md
2024-10-15 17:46:52 +03:00
Chayim
5a96058c2f Linking to Redis learning resources (#2628) 2023-12-20 12:32:49 +02:00
Francisco Presencia
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
Leibale Eidelman
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
Samuel CHEMLA
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
Chayim
e895fa1d71 Adding redis-stack-docker (#2380) 2023-01-18 12:53:09 -05:00
Leibale Eidelman
5a41d6d60b Update README.md
https://github.com/badges/shields/issues/8671
2022-12-19 16:15:19 -05:00
Simon Prickett
da3face951 Add connection status check example and documentation. (#2340)
* Adds example for transactions with arbitrary commands.

* Formatting.

* Adds isReady doc and example for isReady and isOpen.

* Improved example.

* Added isOpen explanation.

* Removed example from a different PR.
2022-12-13 15:19:45 -05:00
Chayim
72cbceedfd Removing LGTM as the service is going offline shortly (#2335) 2022-11-30 16:27:41 -05:00
reviewher
64f86d6a00 disconnect in basic example (#2235) 2022-10-31 09:47:53 -04:00
Simon Prickett
e129d10952 Fixes typo Redis Search -> RediSearch (#2278) 2022-10-26 15:29:20 -04:00
Chayim
c1fd86778a adding link to om client (#2180) 2022-07-14 09:57:54 -04:00
Leibale Eidelman
0752f143a6 prepare 4.1.0 (#2111)
* increase test coverage

* @node-redis to @redis

* ugprade deps

* fix benchmark

* use 7.0 docker (not rc), update readmes, clean code, fix @-redis import

* update readme

* fix function in cluster

* update docs

Co-authored-by: Chayim <chayim@users.noreply.github.com>

* Update clustering.md

* add subpackages move warning

* drop support for node 12

* upgrade deps

* fix tsconfig.base.json

Co-authored-by: Chayim <chayim@users.noreply.github.com>
2022-05-02 11:48:12 -04:00
Mikael Finstad
1e51680205 simplify example (#2072)
top level await is supported in modules
2022-04-25 16:54:59 -04:00
Leibale Eidelman
3547b20293 Graph (#1887)
* init

* implement graph commands

* add graph to packages table

* fix ts.infoDebug

* fix redisearch tests

* Update INFO_DEBUG.ts

* fix INFO.spec.ts

* test QUERY and SLOWLOG

Co-authored-by: Avital-Fine <avital.fine@redis.com>
2022-01-31 12:52:19 -05:00
Guy Korland
2ff7084b72 Update README.md (#1840)
* Update README.md

* Update README.md

Co-authored-by: Leibale Eidelman <leibale1998@gmail.com>
2022-01-15 11:48:33 -05:00
AnnAngela
9516b88f61 Add the list of removed events to migration guide (#1761)
* Update v3-to-v4.md

* Update README.md

* Correct the wrong description

* Update docs/v3-to-v4.md

Co-authored-by: Simon Prickett <simon@crudworks.org>

* Update docs/v3-to-v4.md

Co-authored-by: Simon Prickett <simon@crudworks.org>

Co-authored-by: Simon Prickett <simon@crudworks.org>
2022-01-13 06:51:41 -05:00
Leibale Eidelman
e3c314ee7a update README.md (#1826) 2022-01-12 09:40:21 -05:00
Avital Fine
f93ac04436 Bloom commands (#1786)
* ft.alter

* bloom commands

* tdigest

* delete tdigest

* uncomment tests

* small changes

* Update MADD.ts

* small changes

* clean code

* Update README.md

* Update README.md

Co-authored-by: leibale <leibale1998@gmail.com>
2021-12-29 11:55:09 -05:00
leibale
b97d18b610 fix some types 2021-12-23 17:17:19 -05:00
leibale
a0de7967f9 buffers, buffers everywhere... 2021-12-20 14:47:51 -05:00
leibale
72072f6b1c fix packages table in README 2021-12-13 15:58:51 -05:00
leibale
578725d895 add @node-redis/time-series to README 2021-12-13 15:45:25 -05:00
leibale
7565ae349d fix generated documentation 2021-12-13 14:21:02 -05:00
Guy Korland
0b2a8d7c3c Add LGTM (#1773)
* Update README.md

* Update README.md

Co-authored-by: Leibale Eidelman <leibale1998@gmail.com>
2021-12-09 02:57:20 -05:00
leibale
e63ebf6792 fix discord link 2021-12-07 11:10:57 -05:00
leibale
88f55a48cd update license badge link 2021-12-06 22:00:24 -05:00
leibale
72a53a37a1 update tests badge link 2021-12-06 21:59:43 -05:00
AnnAngela
b6cb1b11f6 Add the event doc (#1753) 2021-12-02 14:12:16 -05:00
Simon Prickett
14b16b9e17 Fixed zScanIterator example (#1733)
The example for `zScanIterator` had the wrong values in the `for` loop.
2021-11-26 18:51:54 -05:00
leibale
957f5a1733 update README 2021-11-24 22:06:00 -05:00
leibale
4ff9a05098 update docs 2021-11-24 21:17:55 -05:00
Simon Prickett
8e95cde0fe Minor wording updates. 2021-11-24 21:14:09 +00:00
leibale
994d8dcbe1 update readmes, add createCluster to the redis package 2021-11-15 16:00:28 -05:00
leibale
ab339d396a fix #1714 - update README(s) 2021-11-09 18:07:26 -05:00
leibale
3eb99dbe83 use dockers for tests, use npm workspaces, add rejson & redisearch modules, fix some bugs 2021-11-08 19:21:15 -05:00
leibale
5cff3320d2 use dockers for tests, fix some bugs 2021-11-01 11:30:25 -04:00
Joshua T
9a4ac34f18 Add lua-multi-incr.js example (#1692)
Also fix syntax error in the lua example in the README

Closes #1689.
2021-10-25 23:31:19 +01:00
Suze Shardlow
d06ecc7743 Fixes a bug in the Scan Iterator section. (#1694) 2021-10-22 14:57:02 -04:00
leibale
2a7a7c1c2e update docs, add 6.0.x to the tests matrix, add eslint, npm update, fix some commands, fix some types
Co-authored-by: Simon Prickett <simon@crudworks.org>
2021-10-19 16:20:02 -04:00
leibale
a79b8fae4f move from "NodeRedis" to "Redis" 2021-10-13 13:37:57 -04:00
leibale
eb11f8386a fix README 2021-10-12 11:43:53 -04:00
leibale
cc83cee22c fix #1671 - add support for all client configurations in cluster 2021-10-07 10:20:21 -04:00
leibale
9237a4e68a fix README 2021-09-23 11:06:30 -04:00
leibale
ad151cd10d fix README, remove unused import, downgrade typedoc & typedoc-plugin-markdown 2021-09-21 18:45:17 -04:00
leibale
d79bc55df6 upgrade dependencies, update README 2021-09-20 19:35:13 -04:00
Richard Samuelsson
64f456767e Update invalid code example in README.md (#1654)
* Update invalid code example in README.md

* Update README.md

Co-authored-by: Leibale Eidelman <leibale1998@gmail.com>
2021-09-13 22:08:11 -04:00