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

244 Commits

Author SHA1 Message Date
Ruben Bridgewater
340cddb6d1 Use process.nextTick to uncork 2016-04-29 06:11:12 +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
ce1678c778 Improve coverage; make tests ready for Redis 3.2
Add command sanity check
2016-04-29 04:10:23 +02:00
Ruben Bridgewater
eae16938cd Add monitor transaction warning / error 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
f500398cab Run tests only with the js parser instead of hiredis and js parser from now on
This removes the optional-dev-dependency as this is not needed from now on anymore
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
5fac5958c3 Fix async test executed sync 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
aff765adf0 Fix execution order
If the command_queue and the offline_queue holds commands,
the offline_queue should be choosen instead of the command_queue.
2016-04-29 04:10:23 +02:00
Ruben Bridgewater
8e24380d53 Add optional callback option to duplicate function 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
228573b8d7 Support __proto__ and similar as object attribute in hgetall 2016-04-23 12:54:43 +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
2e68a7a270 Make test more robust by waiting till redis answered
The former fix was actually not working as expected
2016-03-26 15:44:46 +01:00
Ruben Bridgewater
68f2a8894e Make test more robust
The redis server ends the connection and the stream end might be triggered
before the quit command returned and is therefor racy.
2016-03-26 15:22:36 +01: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
12579e5e8e Test pubsub numsub
Closes #740
2016-03-26 04:53:27 +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
7af90043c8 Improve test 2016-03-26 01:00:32 +01:00
Ruben Bridgewater
344291a98a Fix monitoring mode 2016-03-25 16:09:20 +01:00
Ruben Bridgewater
db6cf0a3b5 Don't throw on invalid data types but throw a warning instead
Fixes #1013
2016-03-21 17:22:03 +01:00
Ruben Bridgewater
359820c766 Support redis 2.4 info command
Fixes #1008
2016-03-16 23:50:29 +01:00
Ruben Bridgewater
eb9500bb9f Fix redis 2.4 auth support 2016-03-16 23:15:21 +01:00
Ruben Bridgewater
24e7486a5a Fix forgotten optional info section
Fixes #1003
2016-03-15 09:59:09 +01:00
Ruben Bridgewater
6598da5366 Indicate transmission errors 2016-03-15 03:56:47 +01:00
Ruben Bridgewater
ff19663d9d Remove code overhead
Add another domain test

Fix test on node 0.10
2016-03-15 03:56:36 +01:00
Ruben Bridgewater
f75b38a3e2 Make windows tests more robust 2016-03-14 23:10:46 +01:00
Ruben Bridgewater
d858bd8383 Passing a stream as second parameter in the constructor
To support private streams this is implemented.
This needs some monkey patching to work, so it is not officially
supported and might be removed at any time!

Fixes #950
Closes #951
2016-03-10 22:01:23 +01:00
Ruben Bridgewater
2913eaccaf Make tests more robust and print more details if one might still fail 2016-03-07 11:52:48 +01:00
Matt Berther
7ddb955517 updating the test filename to match the command 2016-03-07 09:41:40 +01:00
Matt Berther
b14cbaf1d5 updating the test description to match the command 2016-03-07 03:31:38 +01:00
Ruben Bridgewater
e48e1e845f Windows fixes
Skip redis process spawn on windows for now
2016-03-07 02:03:10 +01:00
Ruben Bridgewater
31a2d843e8 Add slave ready test 2016-03-07 01:57:56 +01:00
Ruben Bridgewater
c2e25a7f71 Move lots code into separate files and split big functions party into smaller ones
Also refactor small stuff here
Removed the .send_anyway boolean and use .ready instead
2016-03-07 01:57:56 +01:00
Ruben Bridgewater
535db5231e Fix rename command not working together with key prefixes 2016-03-07 01:57:56 +01:00
Ruben Bridgewater
575ad7357b Insert deprecation warnings and some minor refactoring 2016-03-07 01:57:56 +01:00
Ruben Bridgewater
89209b8adc Handle very big pipelines without crashing 2016-03-07 01:57:56 +01:00