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

289 Commits

Author SHA1 Message Date
49fdb79897 Update doctest client with latest v4 release (#2844) 2024-09-29 13:19:06 +03:00
e895fa1d71 Adding redis-stack-docker (#2380) 2023-01-18 12:53:09 -05:00
5a41d6d60b Update README.md
https://github.com/badges/shields/issues/8671
2022-12-19 16:15:19 -05:00
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
72cbceedfd Removing LGTM as the service is going offline shortly (#2335) 2022-11-30 16:27:41 -05:00
64f86d6a00 disconnect in basic example (#2235) 2022-10-31 09:47:53 -04:00
e129d10952 Fixes typo Redis Search -> RediSearch (#2278) 2022-10-26 15:29:20 -04:00
c1fd86778a adding link to om client (#2180) 2022-07-14 09:57:54 -04:00
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
1e51680205 simplify example (#2072)
top level await is supported in modules
2022-04-25 16:54:59 -04:00
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
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
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
e3c314ee7a update README.md (#1826) 2022-01-12 09:40:21 -05:00
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
b97d18b610 fix some types 2021-12-23 17:17:19 -05:00
a0de7967f9 buffers, buffers everywhere... 2021-12-20 14:47:51 -05:00
72072f6b1c fix packages table in README 2021-12-13 15:58:51 -05:00
578725d895 add @node-redis/time-series to README 2021-12-13 15:45:25 -05:00
7565ae349d fix generated documentation 2021-12-13 14:21:02 -05:00
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
e63ebf6792 fix discord link 2021-12-07 11:10:57 -05:00
88f55a48cd update license badge link 2021-12-06 22:00:24 -05:00
72a53a37a1 update tests badge link 2021-12-06 21:59:43 -05:00
b6cb1b11f6 Add the event doc (#1753) 2021-12-02 14:12:16 -05:00
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
957f5a1733 update README 2021-11-24 22:06:00 -05:00
4ff9a05098 update docs 2021-11-24 21:17:55 -05:00
8e95cde0fe Minor wording updates. 2021-11-24 21:14:09 +00:00
994d8dcbe1 update readmes, add createCluster to the redis package 2021-11-15 16:00:28 -05:00
ab339d396a fix #1714 - update README(s) 2021-11-09 18:07:26 -05:00
3eb99dbe83 use dockers for tests, use npm workspaces, add rejson & redisearch modules, fix some bugs 2021-11-08 19:21:15 -05:00
5cff3320d2 use dockers for tests, fix some bugs 2021-11-01 11:30:25 -04:00
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
d06ecc7743 Fixes a bug in the Scan Iterator section. (#1694) 2021-10-22 14:57:02 -04:00
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
a79b8fae4f move from "NodeRedis" to "Redis" 2021-10-13 13:37:57 -04:00
eb11f8386a fix README 2021-10-12 11:43:53 -04:00
cc83cee22c fix #1671 - add support for all client configurations in cluster 2021-10-07 10:20:21 -04:00
9237a4e68a fix README 2021-09-23 11:06:30 -04:00
ad151cd10d fix README, remove unused import, downgrade typedoc & typedoc-plugin-markdown 2021-09-21 18:45:17 -04:00
d79bc55df6 upgrade dependencies, update README 2021-09-20 19:35:13 -04:00
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
7983dd4c26 update workflows & README 2021-09-02 11:12:55 -04:00
4e6d018d77 V4 (#1624)
* init v4

* add .gitignore to benchmark

* spawn redis-servers for tests,
add some tests,
fix client auth on connect

* add tests coverage report

* add tests workflow, replace nyc text reporter with text-summary

* run tests with node 16.x & redis 6.x only (for now)

* add socket events on client,
stop reconnectiong when manually calling disconnect,
remove abort signal listener when a command is written on the socket

* add isOpen boolean getter on client, add maxLength option to command queue, add test for client.multi

* move to use CommonJS

* add MULTI and EXEC commands to when executing multi command, make client.multi return type innerit the module commands, clean some tests, exclute spec files from coverage report

* missing file from commit 61edd4f1b5

* exclude spec files from coverage report

* add support for options in a command function (.get, .set, ...), add support for the SELECT command, implement a couple of commands, fix client socket reconnection strategy, add support for using replicas (RO) in cluster, and more..

* fix client.blPop test

* use which to find redis-server path

* change command options to work with Symbol rather then WeakSet

* implement more commands

* Add support for lua scripts in client & muilti, fix client socket initiator, implement simple cluster nodes discovery strategy

* replace `callbackify` with `legacyMode`

* add the SCAN command and client.scanIterator

* rename scanIterator

* init benchmark workflow

* fix benchmark workflow

* fix benchmark workflow

* fix benchmark workflow

* push coverage report to Coveralls

* fix Coveralls

* generator lcov (for Coveralls)

* fix .nycrc.json

* PubSub

* add support for all set commands (including sScanIterator)

* support pipeline

* fix KEEPTTL in SET

* remove console.log

* add HyperLogLog commands

* update README.md (thanks to @guyroyse)

* add support for most of the "keys commands"

* fix EXPIREAT.spec.ts

* add support for date in both EXPIREAT & EXPIRE

* add tests

* better cluster nodes discorvery strategy after MOVED error, add PubSub test

* fix PubSub UNSUBSCRIBE/PUNSUBSCRIBE without channel and/or listener

* fix PubSub

* add release-it to dev dependencies

* Release 4.0.0-next.0

* fix .npmignore

* Release 4.0.0-next.1

* fix links in README.md

* fix .npmignore

* Release 4.0.0-next.2

* add support for all sorted set commands

* add support for most stream commands

* add missing file from commit 53de279afe

* lots of todo commends

* make PubSub test more stable

* clean ZPOPMAX

* add support for lua scripts and modules in cluster, spawn cluster for tests, add some cluster tests, fix pubsub listener arguments

* GET.spec.ts

* add support for List commands, fix some Sorted Set commands, add some cluster commands, spawn cluster for testing, add support for command options in cluster, and more

* add missing file from commit faab94fab2

* clean ZRANK and ZREVRANK

* add XREAD and XREADGROUP commands

* remove unused files

* implement a couple of more commands, make cluster random iterator be per node (instead of per slot)

* Release 4.0.0-next.3

* app spec files to npmignore

* fix some code analyzers (LGTM, deepsource, codeclimate) issues

* fix CLUSTER_NODES, add some tests

* add HSCAN, clean some commands, add tests for generic transformers

* add missing files from 0feb35a1fb

* update README.md (thanks to @guyroyse)

* handle ASK errors, add some commands and tests

* Release 4.0.0-next.4

* replace "modern" with "v4"

* remove unused imports

* add all ACL subcommands, all MODULE subcommands, and some other commands

* remove 2 unused imports

* fix BITFIELD command

* fix XTRIM spec file

* clean code

* fix package.json types field

* better modules support, fix some bugs in legacy mode, add some tests

* remove unused function

* add test for hScanIterator

* change node mimimum version to 12 (latest LTS)

* update tsconfig.json to support node 12, run tests on Redis 5 & 6 and on all node live versions

* remove future node releases :P

* remove "lib" from ts compiler options

* Update tsconfig.json

* fix build

* run some tests only on supported redis versions, use coveralls parallel mode

* fix tests

* Do not use "timers/promises", fix "isRedisVersionGreaterThan"

* skip AbortController tests when not available

* use 'fs'.promises instead of 'fs/promises'

* add some missing commands

* run GETDEL tests only if the redis version is greater than 6.2

* implement some GEO commands, improve scan generic transformer, expose RPUSHX

* fix GEOSEARCH & GEOSEARCHSTORE

* use socket.setNoDelay and queueMicrotask to improve latency

* commands-queue.ts: String length / byte length counting issue (#1630)

* Update commands-queue.ts

Hopefully fixing #1628

* Reverted 2fa5ea6, and implemented test for byte length check

* Changed back to Buffer.byteLength, due to issue author input. Updated test to look for 4 bytes.

* Fixed. There were two places that length was calculated.

* Removed redundant string assignment

* add 2 bytes test as well

Co-authored-by: Leibale Eidelman <leibale1998@gmail.com>

* fix scripts in multi

* do not hide bugs in redis

* fix for e7bf09644b

* remove unused import

* implement WATCH command, fix ZRANGESTORE & GEOSEARCHSTORE tests

* update README.md

Co-authored-by: @GuyRoyse

* use typedoc to auto generate documentation

* run "npm install" before "npm run documentation"

* clean documentation workflow

* fix WATCH spec file

* increase "CLUSTER_NODE_TIMEOUT" to 5000ms to avoid "CLUSTERDOWN" errors in tests

* pull cluster state every 100 ms

* await meetPromises before pulling the cluster state

* enhance the way commanders (client/multi/cluster) get extended with modules and scripts

* add test for socket retry strategy

* implement more commands

* set GETEX minimum version to 6.2

* remove unused imports

* add support for multi in cluster

* upgrade dependencies

* Release 4.0.0-next.5

* remove unused imports

* improve benchmarking

* use the same Multi with duplicated clients

* exclude some files from the documentation, add some exports, clean code

* fix #1636 - handle null in multi.exec

* remove unused import

* add supoprt for tuples in HSET

* add FIRST_KEY_INDEX to HSET

* add a bunch of missing commands, fix MSET and HELLO, add some tests

* add FIRST_KEY_INDEX to MSET and MSETNX

* upgrade actions

* fix coverallsapp/github-action version

* Update documentation.yml

* Update documentation.yml

* clean code

* remove unused imports

* use "npm ci" instead of "npm install"

* fix `self` binding on client modules, use connection pool for `duplicateConnection`

* add client.executeIsolated, rename "duplicateConnection" to "isolated", update README.md (thanks to @GuyRoyse and @SimonPrickett)

* update README (thanks to @GuyRoyse), add some tests

* try to fix "cluster is down" errors in tests

* try to fix "cluster is down" errors in tests

* upgrade dependencies

* update package-lock

* Release 4.0.0-next.6

* fix #1636 - fix WatchError

* fix for f1bf0beebf - remove .only from multi tests

* Release 4.0.0-next.7

* update README and other markdown files

Co-authored-by: @GuyRoyse & @SimonPrickett

* Doc updates. (#1640)

* update docs, upgrade dependencies

* fix README

* Release 4.0.0-rc.0

* Update README.md

* update docs, add `connectTimeout` options, fix tls

Co-authored-by: Guy Royse <guy@guyroyse.com>

* npm update, "fix" some tests, clean code

* fix AssertionError import

* fix #1642 - fix XREAD, XREADGROUP and XTRIM

* fix #1644 - add the QUIT command

* add socket.noDelay and socket.keepAlive configurations

* Update README.md (#1645)

* Update README.md

Fixed issue with how connection string was specified.
Now you can have user@host without having to specify a password, which just makes more sense

* Update client-configuration.md as well

Co-authored-by: Leibale Eidelman <leibale1998@gmail.com>

* update socket.reconnectStrategy description

* fix borken link in v3-to-v4.md

* increase test coverage, fix bug in cluster redirection strategy, implement CLIENT_ID, remove unused EXEC command

Co-authored-by: Nova <novaw@warrenservices.co.uk>
Co-authored-by: Simon Prickett <simon@crudworks.org>
Co-authored-by: Guy Royse <guy@guyroyse.com>
2021-09-02 10:04:48 -04:00
7e77de84bc Add Chat (#1594) 2021-04-08 10:03:22 -04:00
b797cf28f5 add user to README.md 2021-03-31 17:50:03 -04:00
bb208d0b9d Add codeclimate badge (#1572)
Co-authored-by: Leibale Eidelman <leibale1998@gmail.com>
2021-03-10 12:36:13 +02:00
2a34d41558 Add LGTM badge (#1571) 2021-03-07 00:22:33 +02:00
3c8ff5c420 Merge branch 'master' into improve-docs 2021-03-04 23:20:04 +02:00