1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00

104 Commits

Author SHA1 Message Date
Leibale Eidelman
fbca5cda0a Upgrade node and dependencies (#1578)
* upgrade workflow actions

* fix setup-node version

* change redis-64 version to 3.0.503

* fix "no password is set" for redis6,
fix tests to work with redis6,
add redis6 to workflows

* do not use assert.match (was added only at v13.6.0 & v12.16.0)

* fix errors.subscribeUnsubscribeOnly regex

* fix invaliodPassword typo

* send --save "" to redis-server in tests

* upgrade dependencies, set node minimum version to 10, use current LTS versions in tests and benchmark workflows

* change windows tests too

* revert mocha back to ^4.1.0

* fix for f5528504a0 - revert mocha back to ^4.1.0

* fix some tests and upgrade mocha

* fix two more tests

* try to fix tests in windows

* upgrade denque and redis-commands
ref #1575

* replace `new Buffer` (deprecated) with `Buffer.from`

* Buffer.from(0) should be Buffer.alloc(0)
2021-03-08 14:12:26 -05:00
Mike Diarmid
f2050f9daf tests: setup GitHub Actions to replace Travis (#1497)
Additionally adds testing against many Node.js versions and Redis versions.
2020-02-11 00:17:09 +00:00
Salakar
176bfc2101 tests: add comments about travis windows issue workaround 2020-02-09 14:23:47 +00:00
Salakar
9f01198c04 chore: try workaround travis windows hanging issue 2020-02-09 14:13:05 +00:00
Salakar
79927c56a0 tests: remove unused parser client option from all tests & helpers 2020-02-09 06:08:30 +00:00
Salakar
c0cc0bfab4 start of work towards v3 release 2020-02-09 02:05:21 +00:00
Mike Diarmid
1d8fa45689 tests: fix windows text 2020-02-07 02:01:52 +00:00
Salakar
3569a68f5d tests: fix test on windows 2020-02-07 01:46:35 +00:00
Salakar
9220016c7d tests: use util.getSystemErrorName for errno 2020-02-07 01:06:47 +00:00
Salakar
9e3b57eae7 tests: use util.getSystemErrorName for errno 2020-02-07 00:54:52 +00:00
Salakar
13ec6afe58 tests: fix Error & Domain tests on Node >= 13 2020-02-06 23:59:31 +00:00
Salakar
36b62fe579 tests: fix error codes test Node >= 13 2020-02-06 22:26:55 +00:00
Vissarut Tantiwattanarom
78936ac50c feat(parser): update to latest Redis parser & errors (#1470)
* Update redis errors and redis parser
* Fix lint errors
* Add node 12 to travis ci
* Add appveyor node 12
* Fix some of existing errors

This drops support for hiredis.
2020-02-03 17:53:56 +00:00
JinHyuk Kim
50b4009005 fix incorrect code for eslint rules (#1367)
* fix code for eslint rules
2019-02-06 15:19:03 +01:00
Andy Ganchrow
128ca62346 test: Fix typo encountert in test 2019-02-05 21:39:03 +01:00
Mark McNelis
19c80c617c fix: client duplicate function now allows db param to be passed 2018-02-23 17:14:47 +00:00
Ruben Bridgewater
1380ad67a3 fix: test on old node versions 2017-08-01 00:36:12 -03:00
Ruben Bridgewater
ad8355a137 fix: add command tests 2017-08-01 00:25:52 -03:00
Ruben Bridgewater
51fdbb7fc2 chore: improve new add_command and add documentation 2017-08-01 00:10:57 -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
8688986051 Add issue to corresponding spec 2017-01-16 09:47:37 +01:00
Ruben Bridgewater
db0e8c53cc Fixed parser not being reset in case the redis connection
closed ASAP for overcoming of output buffer limits.

Fixes #1190
2017-01-15 13:23:20 +01: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
7eaba8c10d Add tests to make sure no invalid function names get exported 2016-06-02 00:59:54 +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
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
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
ce1678c778 Improve coverage; make tests ready for Redis 3.2
Add command sanity check
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
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
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
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
3fd865bbb3 Move the exposed and documented api into a separate file 2016-03-31 19:23:46 +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
344291a98a Fix monitoring mode 2016-03-25 16:09:20 +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
2913eaccaf Make tests more robust and print more details if one might still fail 2016-03-07 11:52:48 +01:00
Ruben Bridgewater
c2e25a7f71 Move lots code into separate files and split big functions party into smaller ones
Also refactor small stuff here
Removed the .send_anyway boolean and use .ready instead
2016-03-07 01:57:56 +01:00
Ruben Bridgewater
575ad7357b Insert deprecation warnings and some minor refactoring 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
8dcf06754d Add warnings and handle protocol errors gracefuly 2016-03-01 17:59:16 +01:00