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

44 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
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
28afc33c9a Remove snack_case and always use camelCase 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
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
97ae78877b Implement CLIENT REPLY ON|OFF|SKIP 2016-04-29 04:10:23 +02:00
Ruben Bridgewater
0c5947be51 Add string_numbers option to handle very big numbers 2016-03-27 03:19:18 +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
e48e1e845f Windows fixes
Skip redis process spawn on windows for now
2016-03-07 02:03:10 +01:00
Ruben Bridgewater
6013ee7f90 callFuncAfter should fire the passed fn everytime called above the minimum
Also pass individual ports to the redis process through
2016-03-07 01:57:56 +01:00
Ruben Bridgewater
8dcf06754d Add warnings and handle protocol errors gracefuly 2016-03-01 17:59:16 +01:00
Paddy Byers
0596480b03 Fix a few style/whitespace errors 2015-11-23 16:58:46 +01:00
Paddy Byers
1fa9f15ae4 Add tests for TLS connections 2015-11-23 16:56:37 +01:00
Paddy Byers
eae5596a3c Add support for TLS connections 2015-11-23 16:56:37 +01:00
Ruben Bridgewater
241e156499 Fix saving buffers with charsets other than utf-8 while using multi
This will also improve pipelinening for buffers and fixes the return value of Batch.exec

Fixes #913
2015-11-18 02:43:43 +01:00
Ruben Bridgewater
d454e4025b Fix an issue with .multi after a reconnect on node 0.10
Add .path to .createClient options object for unix sockets
2015-10-29 23:23:20 +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
987e4f8a7c Add hiredis to the tests if it's present 2015-10-10 02:17:31 +02:00
bcoe
aad5045c8e use the max port # in newer versions of node 2015-10-03 21:13:18 -07:00
bcoe
0db1152492 tests were failing on my old mac (node 0.10.40, osx 10.9.5, 2.8.7) 2015-10-03 21:08:00 -07:00
Ruben Bridgewater
fba050802b Move command out of the index.js 2015-09-30 02:03:37 +02:00
Ruben Bridgewater
5f261c5823 Minor changes
Move utility functions in lib/utils.js
Improve the js parser in cases the buffer is incomplete
Rename lib/parser to lib/parsers

Fix smaller issues with test suite and fix parser errors not being catched

Fixed wrong test for the new .end flush parameter
Fixed test suite options being partly mutated
Add some more tests
2015-09-25 02:12:48 +02:00
Ruben Bridgewater
55e4a9b847 Fix issues with returning buffers
Fixes #818 and #354
2015-09-21 03:07:55 +02:00
Ruben Bridgewater
89c8dd056b Do not emit the broken mode twice if exec is called
Add more tests
2015-09-16 05:22:43 +02:00
Ruben Bridgewater
0b8705abe9 Do not run all tests with every single connection (if one connection works, the others are going to be fine too) 2015-09-16 05:22:07 +02:00
Ruben Bridgewater
4bdcf8a598 Fix regression: version detection in tests did not work properly anymore 2015-09-14 23:53:52 +02:00
Benjamin Coe
0b46a69c7e fix merge, run linting as part of the test suite 2015-09-12 18:44:01 -07:00
Benjamin Coe
a0bf9e2314 tweaks based on running test-suite on Windows on an older Redis 2015-09-12 18:29:50 -07:00
Benjamin Coe
b4da975785 prep for getting tests to work on appveyor 2015-09-12 18:24:14 -07:00
Ruben Bridgewater
43e25e73c9 Remove async dependency 2015-09-12 19:36:07 +02:00
Ruben Bridgewater
1ae280dcec Fix some tests and deactivate broken ones 2015-09-12 18:56:49 +02:00
Ruben Bridgewater
9acbd6c860 Add simicolons and remove trailing whitespace 2015-09-12 18:56:49 +02:00
Ruben Bridgewater
06c5f1922b Add jshint and fix errors accordingly (including broken tests) 2015-09-12 18:56:49 +02:00
Ruben Bridgewater
89e1f6f067 Improve code coverage by adding tests and removing unnecessary code 2015-09-03 22:26:01 +02:00
Ruben Bridgewater
a5938f3ade Refactor the test suite and remove duplicated code 2015-09-01 23:28:41 +02:00
Benjamin Coe
a0832c3744 slight refactor from code review
smoke test large list of commands

ported more tests to mocha, some slight cleanup in tests

move sinon and uuid to dev dependencies

finished porting eval tests over to mocha

rebased mocha testing branch with master

ported client and script tests

ported watch tests

ported detect_buffers tests

ported unref tests

ported auth tests over to mocha

ported idle and no_delay tests

ported hlen, hset

continuing marching forward

ported hincrby, sinter, sort, pubsub tests. improved logic in redis-process, I was still occasionally having issues where redis failed to exit.

switch back to default test command

ported del, exists, hlen, keys, randomkey, type

cleanup based on what I've learned so far from refactor. we now start and stop redis less often. moved tests to their final resting place

finished porting node_redis client tests

ported hgetall, mget, msetnx, rename, renamenx, setex, setnx

ported hgetall, mget, msetnx, rename, renamenx, setex, setnx

ported queue tests to mocha

amalgamated some of the helper logic

ported sadd, scard, sismember, srem, utf-8
2015-08-14 21:31:18 -07:00