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

132 Commits

Author SHA1 Message Date
leibale
9a62f61536 Release client@1.1.0 2022-05-02 11:58:47 -04:00
leibale
e5aaf38531 Release client@1.0.6 2022-05-02 11:55:18 -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
Leibale Eidelman
baf67fd87f fix #1976 - XSETID (#2104) 2022-04-26 09:05:44 -04:00
Leibale Eidelman
b586ccb9d7 fix #1904 - ACL DRYRUN (#2102)
* fix #1904 - ACL DRYRUN

* clean code

* fix test
2022-04-26 09:04:21 -04:00
Leibale Eidelman
432a7e3ebb upgrade deps (#2098) 2022-04-25 16:42:20 -04:00
Leibale Eidelman
11c6c24881 Add support for redis functions (#2020)
* fix #1906 - implement BITFIELD_RO

* initial support for redis functions

* fix test utils

* redis functions commands and tests

* upgrade deps

* fix "Property 'uninstall' does not exist on type 'SinonFakeTimers'"

* upgrade dockers version

* Merge branch 'master' of github.com:redis/node-redis into functions

* fix FUNCTION LIST WITHCODE and FUNCTION STATS

* upgrade deps

* set minimum version for FCALL and FCALL_RO

* fix FUNCTION LOAD

* FUNCTION LOAD

* fix FUNCTION LOAD & FUNCTION LIST & FUNCTION LOAD WITHCODE

* fix FUNCTION_LIST_WITHCODE test
2022-04-25 09:09:23 -04:00
Leibale Eidelman
23b65133c9 New RESP2 parser (#1899)
* parser

* a new RESP parser :)

* clean code

* fix simple string and bulk string cursor

* performance improvements

* change typescript compiler target

* do not use stream.Transform

* Update decoder.ts

* fix for 1d09acb

* improve integer performance

* revert 1d09acb

* improve RESP2 decoder performance

* improve performance

* improve encode performance

* remove unused import

* upgrade benchmark deps

* clean code

* fix socket error handlers, reset parser on error

* fix #2080 - reset pubSubState on socket error

* reset decoder on socket error

* fix pubsub

* fix "RedisSocketInitiator"

* fix returnStringsAsBuffers

* fix merge
2022-04-25 08:24:33 -04:00
Avital Fine
b1a0b48d2c Support new muilti pop commands (#2051)
* Support new muilti pop commands

* remove .only

* clean code

* fix for 4558ec6a31

* fix tests

Co-authored-by: leibale <leibale1998@gmail.com>
2022-04-25 07:50:43 -04:00
Leibale Eidelman
e6de453fdd fix socket error handlers (#2092)
* fix socket error handlers, reset parser on error

* fix #2080 - reset pubSubState on socket error

* fix pubsub

* fix "RedisSocketInitiator"
2022-04-25 05:47:51 -04:00
Leibale Eidelman
79ee8f2029 upgrade dependencies (#2081) 2022-04-18 12:29:01 -04:00
Guy Royse
c5b706b385 exported GeoReplyWith (#2082) 2022-04-18 12:28:53 -04:00
Leibale Eidelman
c473c5fcce call setKeepAlive after the connect event (#2074) 2022-04-11 13:28:03 -04:00
Joe Price
329885b4ae Flatten array arguments in legacyMode multi commands (#2064) 2022-04-06 11:43:32 -04:00
leibale
9f85da9369 Merge branch 'master' of github.com:redis/node-redis 2022-03-31 14:41:59 +03:00
leibale
20b73b0a90 Release client@1.0.5 2022-03-31 14:25:17 +03:00
Leibale Eidelman
33a3f3f6c6 run tests with redis 7 as well - copied from #2020 (#2062)
* run tests on redis 7 as well - copied from #2020

* copy some changes from #2020

* clean BITCOUNT
2022-03-30 08:12:21 -04:00
Avital Fine
b0fb3bd63f Support COMMAND GETKEYSANDFLAGS (#2039)
* Support COMMAND GETKEYSANDFLAGS

* Update COMMAND_GETKEYSANDFLAGS.spec.ts

remove '.only'

* clean code

Co-authored-by: leibale <leibale1998@gmail.com>
2022-03-30 06:31:26 -04:00
Leibale Eidelman
18ec52d5ee fix #2044 - handle "isolated clients" errors (#2059) 2022-03-30 06:30:43 -04:00
Avital Fine
f6f645bdbb Support SORT_RO (#2041)
* Support SORT_RO

* move pushSortReadOnlyArgs and SortReadOnlyOptions to generic-transformers

* clean code

Co-authored-by: leibale <leibale1998@gmail.com>
2022-03-28 18:36:47 -04:00
Avital Fine
5821fcbe4d Support CLUSTER commands (#2015)
* Support CLUSTER commands

* add some client tests

* remove only

* delete cluster slaves

* delete reset clietn test

* SET SLOT

* test with client

* fix fail

* Update CLUSTER_COUNTKEYSINSLOT.spec.ts

* move commands to client/commands.ts

* clusterNode

* remove CLUSTER-SET-CONFIG-EPOCH test with client

* clean code

Co-authored-by: leibale <leibale1998@gmail.com>
2022-03-28 18:31:15 -04:00
Leibale Eidelman
5ade5dadc0 upgrade dependencies (#2057)
* upgrade dependencies

* fix "Property 'uninstall' does not exist on type 'SinonFakeTimers'."
2022-03-27 16:27:05 -04:00
Avital Fine
515adf1346 Support OBJECT [...] commands (#2014)
* Support OBJECT [...] commands

* move commands to cluster/commands.ts

Co-authored-by: leibale <leibale1998@gmail.com>
2022-03-27 13:35:01 -04:00
Quentin Rankin
6ca45f674d support command LATENCY DOCTOR (#2053)
* The Latency Doctor Command has been added to the project

* Update LATENCY_DOCTOR.ts

* Update LATENCY_DOCTOR.spec.ts

* Update LATENCY_DOCTOR.spec.ts

Co-authored-by: QuentinRK <q.rankin@outlook.com>
Co-authored-by: Leibale Eidelman <leibale1998@gmail.com>
2022-03-27 13:29:10 -04:00
Avital Fine
6b8a40a36b Support new cluster commands (#2050)
* Support new cluster commands

* clean code

Co-authored-by: leibale <leibale1998@gmail.com>
2022-03-27 13:06:27 -04:00
Avital Fine
fe16dc0eae Support BIT|BYTE option (#2035)
* Support BIT|BYTE option

* clean code

* clean code

* clean code

Co-authored-by: leibale <leibale1998@gmail.com>
2022-03-24 11:00:08 -04:00
Avital Fine
24cd9ba9a4 Support new expire features (#2036)
* Support new expire features

* Update PEXPIRETIME.ts

* Update EXPIRETIME.ts

* fix version skip

* clean code

Co-authored-by: leibale <leibale1998@gmail.com>
2022-03-24 10:17:01 -04:00
Avital Fine
c5c2bf9042 Support multiple parametrs on CONFIG SET (#2042)
* support multiple parametrs on CONFIG SET

* clean code

Co-authored-by: leibale <leibale1998@gmail.com>
2022-03-20 13:40:27 -04:00
Avital Fine
875298e6e3 Support ZINTERCARD and SINTERCARD (#2040)
* Support ZINTERCARD and SINTERCARD

* clean code

* clean code

Co-authored-by: leibale <leibale1998@gmail.com>
2022-03-20 13:40:19 -04:00
Avital Fine
be51abe347 Support COMMAND LIST (#2013)
* Support COMMAND LIST

* Update COMMAND_LIST.spec.ts

* add version check

* clean code

Co-authored-by: leibale <leibale1998@gmail.com>
2022-03-10 12:20:01 -05:00
Leibale Eidelman
c57da8b78b add missing FIRST_KEY_INDEX (#2028) 2022-03-08 17:26:13 -05:00
John Hiesey
f79e14c8c3 Fix #1870: TypeError in PubSub (#2016)
* Fix #1870: TypeError in PubSub

* Add test

This test is for a race condition; it should reliably pass now,
but is not guaranteed to fail with the previous version.
2022-03-07 07:27:04 -05:00
Simon Prickett
88586048e1 Fixes the time command response. (#2008)
* Fixes the time command response.

* Adds TIME example.

* Update TIME.ts

* Update get-server-time.js

Co-authored-by: Leibale Eidelman <leibale1998@gmail.com>
2022-03-07 07:20:19 -05:00
Leibale Eidelman
9180b91047 fix #1906 - implement BITFIELD_RO (#1988)
* fix #1906 - implement BITFIELD_RO

* set bitfield_ro min version to 6.2
2022-03-02 05:29:42 -05:00
leibale
be3b331bb4 Release client@1.0.4 2022-02-21 20:50:58 -05:00
Leibale Eidelman
c03ab8803d fix #1998 - fix RPOPLPUSH return type (#1999) 2022-02-21 12:56:42 -05:00
Leibale Eidelman
0803f4e19c add nodeAddressMap config for cluster (#1827)
* add `nodeAddressMap` config for cluster

* Update cluster-slots.ts

* Update cluster-slots.ts

* update docs

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

Co-authored-by: Guy Royse <guy@guyroyse.com>
2022-02-14 15:23:35 -05:00
Leibale Eidelman
6dd15d96aa ref #1888 - add disableOfflineQueue (#1900)
* ref #1888 - add disableOfflineQueue

* fix flushQueuesOnError

* update docs

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

Co-authored-by: Guy Royse <guy@guyroyse.com>
2022-02-14 15:23:18 -05:00
leibale
287b334849 Release client@1.0.3 2022-01-31 13:01:54 -05:00
leibale
d78d25a008 upgrade dependencies 2022-01-31 12:57:39 -05: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
Leibale Eidelman
46b831c922 fix #1864 - cluster.quit (#1886) 2022-01-31 08:35:35 -05:00
Leibale Eidelman
8160fa7d65 fix #1865 - add defaults to RedisModules and RedisScripts (#1885) 2022-01-31 08:35:24 -05:00
Leibale Eidelman
51475211a3 fix #1874 - fix TIME return type (#1880) 2022-01-31 05:41:38 -05:00
Leibale Eidelman
21270ba6e2 fix #1875 - fix XPENDING_RANGE id type (#1879) 2022-01-31 05:41:31 -05:00
Matan Yemini
741aff0c30 update tls type to be boolean instead of "true" (RedisTlsSocketOptions) (#1851)
* update tls type to be boolean instead of "true"

* Update socket.ts

* Update socket.ts

* Update socket.ts

Co-authored-by: Matan Yemini <matan@engageli.com>
Co-authored-by: Leibale Eidelman <leibale1998@gmail.com>
2022-01-31 04:33:11 -05:00
leibale
84aebcca0f upgrade dependencies 2022-01-24 13:14:20 -05:00
Leibale Eidelman
7ded3dd79f fix #1846 - handle arguments that are not buffers or strings (#1849)
* fix #1846 - handle arguments that are not buffers or strings

* use toString() instead of throw TypeError

* remove .only and uncomment tests
2022-01-24 12:04:30 -05:00
Leibale Eidelman
551d2041dc fix #1854 - fix __redis__:invalidate messages handler (#1856) 2022-01-24 12:03:40 -05:00
Leibale Eidelman
a2299509a0 upgrade dependencies (#1863) 2022-01-20 16:23:31 -05:00