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

48 Commits

Author SHA1 Message Date
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
265ce48af4 chore: minor refactoring 2017-05-30 00:44:57 +02:00
4e593587cb feat: consolidate pubsub emitters 2017-05-28 09:00:32 +02:00
5d6f072e56 feat: always return strings from "message" listener
Listening to "messageBuffer" returns Buffers
2017-05-28 08:41:01 +02:00
6796f8806a fix: messageBuffers is now handled properly again 2017-05-28 08:32:38 +02:00
b2e18344d9 chore: mark private variables as such and remove obsolete ones 2017-05-28 07:15:20 +02:00
2aa3b68fc6 chore: refactor main code into smaller parts 2017-05-27 03:41:27 +02:00
3065e2e7be chore: refactor parts out of the index.js file 2017-05-26 18:45:52 +02:00
6ea202132b feat: accept Map and Set and flatten arguments 2017-05-26 12:32:04 +02:00
4d103b4aee chore: update dependencies 2017-05-26 10:27:17 +02:00
6be5575c5b chore: refactor codebase to promises 2017-05-19 06:14:29 +02:00
b2613b2270 test fixup 2017-05-06 08:16:19 +02:00
f1a7bcd735 chore: use standard 2017-05-06 07:06:52 +02:00
2e7fc76720 fix: flaky test 2017-05-06 01:49:48 +02:00
27ed4db537 feat: return channel number and channels from subscribe / unsubscribe calls 2017-05-06 01:49:47 +02:00
28afc33c9a Remove snack_case and always use camelCase 2017-05-06 01:49:05 +02:00
78187142cb Remove deprecated parser option 2017-05-06 01:49:04 +02:00
dffa8a6aee Fix parser being reset in case (p)message_buffer is attached
without the parser set to return buffers.

This might result in corrupt data if the listener is attached
while the parser holds partial data.
2017-01-15 13:20:00 +01:00
8b6f2dd35e Refactor command parsing 2016-05-29 01:38:34 +02:00
55528d8b1b Revert 228573b8d7
Not inheriting from the prototype is a BC
2016-05-29 01:38:34 +02:00
ce1678c778 Improve coverage; make tests ready for Redis 3.2
Add command sanity check
2016-04-29 04:10:23 +02:00
0dc45bd0a3 Improve pub sub mode further 2016-04-29 04:10:23 +02:00
cd58e1fd89 Implement message_buffer and pmessage_buffer events 2016-04-29 04:10:23 +02:00
228573b8d7 Support __proto__ and similar as object attribute in hgetall 2016-04-23 12:54:43 +02:00
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
79c1767f86 Fix pubsub further
Unsubscribing from all channels did not work properly with reconnect
Pub sub did not work properly with the new `string_numbers` option
2016-03-31 19:23:46 +02:00
94e9f1fcfc Replace jshint with eslint and add lots of rules
Fix eslint errors accordingly
2016-03-26 14:45:12 +01:00
12579e5e8e Test pubsub numsub
Closes #740
2016-03-26 04:53:27 +01:00
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
0207163655 Remove support of redis 2.4
All tests require at least redis 2.6 from now on. Anyone who wants to run the tests should be able to install a newer version.
2015-11-30 13:31:26 +01:00
33d5981ebf Remove .only ... 2015-11-27 21:42:23 +01:00
59984136fe Update changelog and fix a test 2015-11-27 21:40:32 +01:00
a0cc715206 Ignore still running commands for pub sub tests after the test ended 2015-11-24 21:23:19 +01:00
4ba72703fd Fix test for appveyor 2015-11-24 21:01:54 +01:00
d55017a01e Use .end(true) to stricten test cases and improve coverage 2015-11-24 00:23:18 +01:00
0ec2c43603 Fix fired but not yet returned commands not being rejected after a connection loss 2015-10-28 23:53:10 +01:00
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
06f57fd1d9 Add some more notes and tests 2015-10-12 17:21:58 +02:00
90033bdd00 Fix some tests 2015-10-10 19:37:42 +02:00
25113e6759 Fix test 2015-10-03 04:13:04 +02:00
e8d9858e29 Add disable_resubscribingg option. Fixes #472 2015-10-02 23:28:59 +02:00
97db227a8d Fix for channel names with spaces. Fixes #691
Channel names with spaces were not properly resubscribed after a reconnection.
Conflicts:
	index.js
2015-09-18 02:44:29 +02:00
a0bf9e2314 tweaks based on running test-suite on Windows on an older Redis 2015-09-12 18:29:50 -07:00
9acbd6c860 Add simicolons and remove trailing whitespace 2015-09-12 18:56:49 +02:00
06c5f1922b Add jshint and fix errors accordingly (including broken tests) 2015-09-12 18:56:49 +02:00
a5938f3ade Refactor the test suite and remove duplicated code 2015-09-01 23:28:41 +02:00
d1558eddc2 add test demonstrating psubscribe, and pmessage 2015-08-16 18:02:26 -07:00
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