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
dffc27d83f
v.2.6.0
v.2.6.0
2016-06-01 16:24:26 +02:00
Ruben Bridgewater
79fc40036b
Merge pull request #1074 from NodeRedis/v.2.6.0-proposal
...
v.2.6.0-proposal
2016-06-01 16:21:49 +02: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
579584d629
Test Node.js 6 on appyevor
2016-05-31 15:57:04 +02:00
Ruben Bridgewater
a0c7431787
Inherit the name property in the error classes
2016-05-31 15:11:57 +02: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
b3e89fee31
Support Node.js 6
2016-05-29 01:39:51 +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
a90b791295
Only run detect_buffers tests once
2016-05-29 01:38:34 +02:00
Ruben Bridgewater
8008fb5eb4
Fix changelog entry
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
84abf5c4c2
Fix benchmark not using individual options
2016-05-29 01:38:34 +02:00
Ruben Bridgewater
27eac2f594
Prevent a race condition by just forcefully ending the connection in the test
2016-05-29 01:38:34 +02:00
Michael Diarmid
bfdbf16d68
Merge pull request #1063 from a0viedo/patch-1
...
link build badge to master branch
2016-05-17 17:40:21 +01:00
Alejandro Oviedo
3e03f1961b
link build badge to master branch
2016-05-17 10:01:07 -03:00
Ruben Bridgewater
3ab19e963d
Merge pull request #1055 from kevinresol/patch-1
...
Fix snake_case typo
2016-05-04 10:10:34 +02:00
Kevin Leung
bd633d7306
Do you mean snake_case instead of snack_case?
2016-05-04 15:18:26 +08:00
Ruben Bridgewater
a1755b91fb
Add release date
2016-04-29 04:43:56 +02:00
Ruben Bridgewater
6fdf629595
v.2.6.0-2
v.2.6.0-2
2016-04-29 04:42:09 +02:00
Ruben Bridgewater
0b8090b461
v.2.6.0-2 pre-release
2016-04-29 04:33:53 +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
5368e7477e
Add changelog
2016-04-29 04:10:24 +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
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
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
8308a3e6ae
Update dependencies
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
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