Ruben Bridgewater
0d53d3dcdf
feat: add auto pipeline
2017-05-28 05:23:19 +02:00
Ruben Bridgewater
8c63233968
feat: parse info data as numbers if possible and improve parsing
2017-05-28 01:45:19 +02:00
Ruben Bridgewater
8da9e98fe6
chore: refactor flush and error
2017-05-28 01:45:18 +02:00
Ruben Bridgewater
2aa3b68fc6
chore: refactor main code into smaller parts
2017-05-27 03:41:27 +02:00
Ruben Bridgewater
8cca9ccf58
chore: guard against inherited properties
2017-05-27 01:01:42 +02:00
Ruben Bridgewater
1f179ef791
chore: refactor main code base into smaller parts
2017-05-26 23:34:28 +02:00
Ruben Bridgewater
3065e2e7be
chore: refactor parts out of the index.js file
2017-05-26 18:45:52 +02:00
Ruben Bridgewater
a3a74559da
chore: improve multi performance by refactoring a array check away
2017-05-26 18:17:26 +02:00
Ruben Bridgewater
6794478066
chore: remove let due to performance reasons
2017-05-26 18:17:26 +02:00
Ruben Bridgewater
065eebad9c
feat: always return the client from the duplicate function
2017-05-26 18:17:25 +02:00
Ruben Bridgewater
35dc6d9784
doc: add jsdoc comments
2017-05-26 12:32:05 +02:00
Ruben Bridgewater
cd8f2d27c1
chore: use es6 for multi
2017-05-26 12:32:05 +02:00
Ruben Bridgewater
54671f6c52
chore: use arrow functions
2017-05-26 12:32:04 +02:00
Ruben Bridgewater
6ea202132b
feat: accept Map and Set and flatten arguments
2017-05-26 12:32:04 +02:00
Ruben Bridgewater
4182059b7c
chore: improve debug statements
2017-05-26 10:28:27 +02:00
Ruben Bridgewater
4d103b4aee
chore: update dependencies
2017-05-26 10:27:17 +02:00
Ruben Bridgewater
6be5575c5b
chore: refactor codebase to promises
2017-05-19 06:14:29 +02:00
Ruben Bridgewater
b2613b2270
test fixup
2017-05-06 08:16:19 +02:00
Ruben Bridgewater
f1a7bcd735
chore: use standard
2017-05-06 07:06:52 +02:00
Ruben Bridgewater
19f3d20b47
chore: remove support for UPPER_CASE commands
2017-05-06 01:49:48 +02:00
Ruben Bridgewater
5822939686
fixup underscore
2017-05-06 01:49:47 +02:00
Ruben Bridgewater
a6053c510a
chore: remove obsolete feature detection and only override name if not set / different
2017-05-06 01:49:47 +02:00
Ruben Bridgewater
086c90d938
doc: fix typos
2017-05-06 01:49:46 +02:00
Ruben Bridgewater
28afc33c9a
Remove snack_case and always use camelCase
2017-05-06 01:49:05 +02:00
Ruben Bridgewater
ce3227dedd
Remove print helper
2017-05-06 01:48:59 +02:00
Ruben Bridgewater
77281cadad
fix: always copy subscribe unsubscribe arguments
2017-05-05 18:41:04 +02:00
Josh Yudaken
3f1b9ce650
Generalise monitor_regex
2017-03-14 09:03:17 -07:00
Ruben Bridgewater
60998b0b20
Fix missing semicolons
2017-03-11 15:30:09 -03:00
Ruben Bridgewater
a2255d7fe2
Fix error messages not being visible in the stack trace of AbortErrors
2017-03-11 15:17:44 -03: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
de0a9628aa
Fire the individual original callbacks when using transactions
...
Fixes #1089
2016-06-16 12:29:00 +02:00
Ruben Bridgewater
7eaba8c10d
Add tests to make sure no invalid function names get exported
2016-06-02 00:59:54 +02:00
Dan MacTough
68ca5c760b
Ensure synthetic function names conform to naming requirements
...
The "restore-asking" function name is not valid and was causing co-redis (by way of its usage of thenify) to throw because thenify uses the function name to rewrite async functions with promises.
This PR will change the name of the "restore-asking" function to "restore_asking", which is valid.
This sanitation is a bit stricter than necessary, since it also sanitizes valid unicode characters, but it covers this module's potential use cases just fine.
2016-06-01 13:15:04 -04:00
Ruben Bridgewater
a41cfa9aae
Add good stack traces tests and fix stack traces in debug mode
2016-06-01 14:04:25 +02:00
Ruben Bridgewater
a0c7431787
Inherit the name property in the error classes
2016-05-31 15:11:57 +02:00
Ruben Bridgewater
2c6e1e0cc0
Improve error stacks in development and debug mode
2016-05-29 01:38:34 +02:00
Ruben Bridgewater
ce44213d65
A function name is only configurable from v8 >= v.4.3
2016-05-29 01:38:34 +02:00
Ruben Bridgewater
25aa8f6710
Fix monitoring mode not always activating soon enough
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
ffaaf0f6d5
Add name property to all Redis functions
2016-05-29 01:38:34 +02:00
Ruben Bridgewater
55528d8b1b
Revert 228573b8d7
...
Not inheriting from the prototype is a BC
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
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