1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00

425 Commits

Author SHA1 Message Date
Guy Korland
428e1c8a7b Add support for Redis 6 auth pass [user] (#1508)
* Add support for `auth pass user`

* fix lint issues

* fix typo

* fix more lint issues

* more lints fixes

* reverse password user order

* update redis-commands

* Update individualCommands.js

Clean code

* Update individualCommands.js

* Update auth.spec.js

* Update index.js

Co-authored-by: Leibale Eidelman <leibale1998@gmail.com>
2021-03-17 19:21:37 -04:00
Salakar
da31ade348 tests: improve coverage & fix unreachable code branches 2020-02-09 15:44:52 +00:00
Salakar
24824efdcc remove deprecated new Buffer() usage 2020-02-09 03:58:55 +00:00
Salakar
c0cc0bfab4 start of work towards v3 release 2020-02-09 02:05:21 +00:00
Salakar
9e3b57eae7 tests: use util.getSystemErrorName for errno 2020-02-07 00:54:52 +00:00
Salakar
9d65e1c3ed tests: fix buffer test (failed due to new parser) & remove unused node feature checks (< 4) 2020-02-07 00:31:08 +00:00
Vissarut Tantiwattanarom
78936ac50c feat(parser): update to latest Redis parser & errors (#1470)
* Update redis errors and redis parser
* Fix lint errors
* Add node 12 to travis ci
* Add appveyor node 12
* Fix some of existing errors

This drops support for hiredis.
2020-02-03 17:53:56 +00:00
Bryan English
12265a5079 Remove clientError handler
This event is never emitted on net.Socket or tls.TLSSocket streams in
any of the supported versions of Node.js.
2019-02-07 13:36:00 +01:00
Andy Ganchrow
171cbc5a09 Fix typo in index.js 2019-02-05 21:39:03 +01:00
Xin
8ee1b9822b add option socket_initialdelay 2018-11-29 11:59:44 +11:00
Salakar
648e65a2bc swap out queue library 2018-02-11 14:18:34 +00:00
Kyle Davis
0437aa4985 enabled adding abritary commands
added test and add_command alias

original and special char commands

tweaked code spacing
2017-08-01 00:10:23 -03:00
Ruben Bridgewater
4f7f1adf50 fix: silence auth errors on reconnect 2017-07-23 14:45:17 -03:00
Ruben Bridgewater
16632f43f1 fix emitting internal auth error on reconnect 2017-07-20 21:24:38 -03:00
Rahul
439d629c81 Minor grammar fix 2017-03-15 14:38:04 -07:00
Ruben Bridgewater
a2255d7fe2 Fix error messages not being visible in the stack trace of AbortErrors 2017-03-11 15:17:44 -03:00
Jacky Liu
6bb0d0007f Fix option param null bug
options.rename_commands could be null, and the repo README.md list the default value is "null";
2017-03-02 11:35:44 +08:00
Ruben Bridgewater
476e554fcd Fix typo 2017-01-16 09:47:30 +01:00
Ruben Bridgewater
db0e8c53cc Fixed parser not being reset in case the redis connection
closed ASAP for overcoming of output buffer limits.

Fixes #1190
2017-01-15 13:23:20 +01:00
Ruben Bridgewater
dffa8a6aee Fix parser being reset in case (p)message_buffer is attached
without the parser set to return buffers.

This might result in corrupt data if the listener is attached
while the parser holds partial data.
2017-01-15 13:20:00 +01:00
Ruben Bridgewater
b9540d4965 Fix monitor mode not working with IPv6, sockets or lua scripts
Fixes #1189
Fixes #1037
2017-01-12 23:51:41 +01:00
Ruben Bridgewater
41d26dc0c8 Fix domain handling and tls camelCase settings
Fixes #1106
Fixes #1103
Closes #1104
2016-10-31 20:54:13 +01:00
Ruben Bridgewater
c1f7755142 Keep monitoring mode if once activated and use internal function for select and monitor while connecting 2016-05-31 15:11:18 +02:00
Ruben Bridgewater
2c6e1e0cc0 Improve error stacks in development and debug mode 2016-05-29 01:38:34 +02:00
Ruben Bridgewater
8b6f2dd35e Refactor command parsing 2016-05-29 01:38:34 +02:00
Ruben Bridgewater
899f9b7fe4 Fix hungry developer typo 2016-05-29 01:38:34 +02:00
Ruben Bridgewater
fe00bf271d Update redis-parser to v.2.0.0
Update all code accordingly
2016-05-29 01:38:34 +02:00
Ruben Bridgewater
03f1a606f7 Improve error handling
Added individual error classes
Don't silently fail for commands without callback from now on
General polishing (e.g. better error messages)

Fix typos
2016-04-29 04:31:39 +02:00
Ruben Bridgewater
f7c4d131be Remove jshint comments and update istanbul comments 2016-04-29 04:10:23 +02:00
Ruben Bridgewater
625f14e6ba Fix address always set to 127.0.0.1:6379 in case the host/port is set in the tls options 2016-04-29 04:10:23 +02:00
Ruben Bridgewater
0dc45bd0a3 Improve pub sub mode further 2016-04-29 04:10:23 +02:00
Ruben Bridgewater
e58e310225 Remove unnecessary unallocation. This is done by the queue itself
The total size is kept in the queue but this does not have to be reset each time
2016-04-29 04:10:23 +02:00
Ruben Bridgewater
a857829a36 Improve error handling
Arguments are now passed to an command error in case they exist
An error is only emitted if that very same error is not already handled in a callback
2016-04-29 04:10:23 +02:00
Ruben Bridgewater
97ae78877b Implement CLIENT REPLY ON|OFF|SKIP 2016-04-29 04:10:23 +02:00
Ruben Bridgewater
3038c9043d Make sure all individual handled command work in multi context the same
Fix quit possibly resulting in reconnections
2016-04-29 04:10:23 +02:00
Ruben Bridgewater
0424cb0bf3 Move pub sub command into individual commands and use call_on_write 2016-04-29 04:10:23 +02:00
Ruben Bridgewater
683815de9d Refactor pipelining 2016-04-29 04:10:23 +02:00
Ruben Bridgewater
5d12659583 Fix typos / comments 2016-04-29 04:10:23 +02:00
Ruben Bridgewater
cd58e1fd89 Implement message_buffer and pmessage_buffer events 2016-04-29 04:10:23 +02:00
Ruben Bridgewater
a9d565b8f4 Fix auth regression
Fixes #1028
2016-04-29 04:10:23 +02:00
Ruben Bridgewater
d2b8f2f391 Add support for camelCase
Fixes missing `EXEC_BATCH` on multi
2016-04-29 04:10:23 +02:00
Ruben Bridgewater
14170f9d02 Improve tests a bit
Reduce timeouts if possible
Extend timeouts if needed (windows tests need their time)
Don't expose the redis socket to others than the owner
Don't create the stunnel log
2016-04-01 11:42:22 +02:00
Ruben Bridgewater
79c1767f86 Fix pubsub further
Unsubscribing from all channels did not work properly with reconnect
Pub sub did not work properly with the new `string_numbers` option
2016-03-31 19:23:46 +02:00
Ruben Bridgewater
3fd865bbb3 Move the exposed and documented api into a separate file 2016-03-31 19:23:46 +02:00
Ruben Bridgewater
861749f4d6 Fix send_command working with hooked internal functions 2016-03-31 19:23:46 +02:00
Ruben Bridgewater
48481552c9 Calling quit should always close the connection 2016-03-27 05:18:38 +02:00
Ruben Bridgewater
0c5947be51 Add string_numbers option to handle very big numbers 2016-03-27 03:19:18 +02:00
Ruben Bridgewater
94e9f1fcfc Replace jshint with eslint and add lots of rules
Fix eslint errors accordingly
2016-03-26 14:45:12 +01:00
Ruben Bridgewater
7a5a4aa535 Fix pub sub mode
There is likely a better and more performant way to fix this but this works so far
and should be good enough to release and improve later.

Make test more robust

Add another test
2016-03-26 02:14:10 +01:00
Ruben Bridgewater
344291a98a Fix monitoring mode 2016-03-25 16:09:20 +01:00