1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-04 15:02:09 +03:00
Commit Graph

67 Commits

Author SHA1 Message Date
Ruben Bridgewater
2b4ab10305 chore - remove standard and use individual config
Standard is not as up to date and still uses a old eslint version.
Instead, use the airbnb default with a couple of modifications.

All required changes are included.
2017-11-28 21:38:21 -02:00
Ruben Bridgewater
581d4a29f3 chore: improve coverage further 2017-05-30 07:28:43 +02:00
Ruben Bridgewater
b6c317dbb0 chore: improve coverage 2017-05-30 06:45:28 +02:00
Ruben Bridgewater
ac26d0524d fix: always emit an error when the connection drops 2017-05-30 04:38:02 +02:00
Ruben Bridgewater
0276e15f04 chore: add print helper again and refactor some code
Expose the RedisClient directly instead of only being a property
2017-05-29 18:23:24 +02:00
Ruben Bridgewater
b2e18344d9 chore: mark private variables as such and remove obsolete ones 2017-05-28 07:15:20 +02:00
Ruben Bridgewater
b837b46e76 chore: use short handle for process.nextTick 2017-05-28 05:23:20 +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
3065e2e7be chore: refactor parts out of the index.js file 2017-05-26 18:45:52 +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
27ed4db537 feat: return channel number and channels from subscribe / unsubscribe calls 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
a86c998a64 Skip tests 2017-05-06 01:49:05 +02:00
Ruben Bridgewater
78187142cb Remove deprecated parser option 2017-05-06 01:49:04 +02:00
Ruben Bridgewater
59725e3f20 Remove deprecated max_delay 2017-05-06 01:49:02 +02:00
Ruben Bridgewater
b3106a45c4 Remove deprecated max_attempts 2017-05-06 01:49:02 +02:00
Ruben Bridgewater
4e98cb9442 Improve error message 2016-10-31 20:54:13 +01: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
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
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
5d12659583 Fix typos / comments 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
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
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
Ruben Bridgewater
e48e1e845f Windows fixes
Skip redis process spawn on windows for now
2016-03-07 02:03:10 +01:00
Ruben Bridgewater
575ad7357b Insert deprecation warnings and some minor refactoring 2016-03-07 01:57:56 +01:00
Ruben Bridgewater
cc540dbc3c Implement retry_strategy and add more info to the reconnect event 2016-03-07 01:57:56 +01:00
Ruben Bridgewater
711d51c387 Add unify_options / createClient tests 2016-03-07 01:57:56 +01:00
Ruben Bridgewater
4f3c4a2ef6 Add more tests
Add execution order tests
Fix flaky test
Add utils tests
Improve other tests
2016-03-07 01:57:56 +01:00
Ruben Bridgewater
d739ff3a76 Fix test race condition 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
5ef24a90b6 Add tests and improve older tests 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
b91692e928 Skip tls tests on windows and stunnel
This will also remove the libwrap option to work on arch
2015-11-23 18:20:15 +01:00
Ruben Bridgewater
b6a81a4297 Use a .create_stream function, so other libraries can mock the stream if wanted
Reference https://github.com/hdachev/fakeredis/pull/34
2015-11-23 11:31:41 +01:00
Ruben Bridgewater
8f9ad00de2 Add the redis url to the options object and accept .createClient(null, host, options) 2015-11-23 11:30:50 +01:00
Ruben Bridgewater
30d2184dbb Throw on other protocols provided than the redis protocol 2015-11-23 11:30:50 +01:00
Ruben Bridgewater
d3352bf550 Auto detect ip family if a IP has been provided 2015-11-23 11:30:50 +01:00
Ruben Bridgewater
8bf794fb36 Stricten tests by always ending redis with .end(true) if possible 2015-11-22 16:56:54 +01:00