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
bf394923fd
Use built-in error classes to make errors more specific
2016-04-29 04:10:24 +02:00
Ruben Bridgewater
eae16938cd
Add monitor transaction warning / error
2016-04-29 04:10:23 +02:00
Ruben Bridgewater
f7c4d131be
Remove jshint comments and update istanbul comments
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
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
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
5e42302636
Accept arbitrary arguments in the debug function
2016-04-23 12:54:43 +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
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
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
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
5e8a87b4dc
Improve createClient function to detect faulty input and throw
2016-03-07 01:57:56 +01:00
Ruben Bridgewater
290bf1d651
Small utils improvements
...
Don't write "Error:" infront of errors
2016-03-07 01:57:56 +01:00
Ruben Bridgewater
614e35ab57
Move multi; commands; createClient code into separate files
2016-03-07 01:57:56 +01:00
Ruben Bridgewater
518e46dcc7
Use a own clone function instead of using JSON.parse(JSON.stringify())
...
This will also clone functions
2016-03-01 17:59:16 +01:00
Ruben Bridgewater
8dcf06754d
Add warnings and handle protocol errors gracefuly
2016-03-01 17:59:16 +01:00
Ruben Bridgewater
3514a32825
Remove unused function from utils
2015-12-31 06:00:20 +01:00
Ruben Bridgewater
e89bcec1c2
Deprecate and warn on null / undefined arguments
2015-12-30 16:18:17 +01:00
Ruben Bridgewater
16a1d69c82
Move parsers into seperate module and improve js parser performance
2015-11-30 13:31:26 +01:00
Ruben Bridgewater
56861a89d2
Escape js parser protocol error characters
2015-11-27 21:40:32 +01:00
Ruben Bridgewater
3f945dbf3e
Fix parser regression
...
Add regression test
Rename big_offset to big_str_size
Fixes #924
2015-11-25 23:32:40 +01:00
Ruben Bridgewater
f877c3950c
Add prefix option
...
Fixes #323
Add key prefix tests
Add changelog entry for prefix
2015-11-24 00:23:18 +01:00
Ruben Bridgewater
ac9ff9a3b1
Refactor js parser
...
Fix tests to work with Node.js 0.10
Improve average use case speed by up to 20%
Fix some small js parser issues
2015-11-23 11:32:23 +01:00
Ruben Bridgewater
bc85c4a01d
Minor hiredis handling improvement
2015-11-23 11:30:50 +01:00
Ruben Bridgewater
06a1bdd7b0
Fix js parser handling big values not fast enough
...
Fixes #678
2015-11-23 11:30:35 +01:00
Ruben Bridgewater
ff857f97ae
Intermediate fix js parser handling big values very slow
...
Closes #900
2015-11-08 23:05:15 +01:00
Ruben Bridgewater
5d08132f7c
Fix: do not stop parsing a chunk if the first character is a line break
...
Add changelog entry
2015-10-27 11:28:03 +01:00
Ruben Bridgewater
9b3b090119
Simplify parser and remove dead code
2015-10-27 11:27:54 +01:00
Ruben Bridgewater
2a65ee48dd
Fix some minor issues and add more tests
...
Do not mutate the options object and add some more tests
2015-10-17 21:56:16 +02:00
Ruben Bridgewater
e47ba4a583
Improve performance further
2015-10-11 03:35:21 +02:00
Ruben Bridgewater
2232a8948e
Exchange queue with a better one
2015-10-11 03:33:52 +02:00
Ruben Bridgewater
e951bfb177
Fix parser regression
2015-10-10 02:00:16 +02:00
Ruben Bridgewater
331ea59ca7
Improve the parser
2015-10-10 02:00:16 +02:00
Ruben Bridgewater
7922d4eb85
Small style changes
2015-10-07 16:34:41 +02:00