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

1665 Commits

Author SHA1 Message Date
leibale
d32f1edf8a Release client@1.0.0-rc.0 client@1.0.0-rc.0 2021-11-15 18:03:13 -05:00
leibale
4f1af43b5f update .release-it.json 2021-11-15 18:01:03 -05:00
leibale
9540032283 update .npmignore and .release-it.json 2021-11-15 17:56:27 -05:00
leibale
d79a815b29 update changelog.md 2021-11-15 17:47:06 -05:00
leibale
397f14cee1 add tests and licence badges 2021-11-15 17:25:23 -05:00
leibale
93e7c908af npm update, remove html from readme 2021-11-15 17:11:39 -05:00
Evert Pot
7d2629f083 Support esModuleInterop set to false. (#1717)
* Support esModuleInterop set to false.

When testing the upcoming 4.x release, we got a bunch of typescript
errors emitted from this project.

We quickly realized this is because the library uses the esModuleInterop
flag. This makes some imports _slightly_ easier to write, but it comes
at a cost: it forces any application or library using this library to
*also* have esModuleInterop on.

The `esModuleInterop` flag is a bit of a holdover from an earlier time,
and I would not recommend using it in libraries. The main issue is that
if it's set to true, you are forcing any users of the library to also
have `esModuleInterop`, where if you keep have it set to `false` (the
default), you leave the decision to the user.

This change should have no rammifications to users with
`esModuleInterop` on, but it will enable support for those that have it
off.

This is especially good for library authors such as myself, because I
would also like to keep this flag off to not force *my* users into this
feature.

* All tests now pass!

* Move @types/redis-parser into client sub-package

and removed a comma
2021-11-15 16:52:48 -05:00
leibale
ddf539ad5f run tests on pull requests too 2021-11-15 16:45:10 -05:00
leibale
3979e30222 add .release-it.json files, update some md files 2021-11-15 16:42:34 -05:00
leibale
571468e00b Merge branch 'master' of https://github.com/redis/node-redis 2021-11-15 16:00:39 -05:00
leibale
994d8dcbe1 update readmes, add createCluster to the redis package 2021-11-15 16:00:28 -05:00
Henrique Corrêa
a9337b414f fix 'Scenario' typo (#1720) 2021-11-14 15:52:59 -05:00
leibale
f93e28f8f2 remove empty lines 2021-11-11 18:52:31 -05:00
leibale
ba66892b7c fix some Z (sorted list) commands, increase commands test coverage 2021-11-11 18:50:32 -05:00
leibale
41423fe8aa fix #1716 - decode username and password from url 2021-11-11 17:43:17 -05:00
Leibale Eidelman
a6a1637686 Update socket.ts 2021-11-11 00:45:34 -05:00
Da-Jin Chu
d4f63219af Add rejectedUnauthorized and other TLS options (#1708) 2021-11-10 23:44:22 -05:00
leibale
53bc564793 fix #1707 - handle number arguments in legacy mode 2021-11-10 16:57:15 -05:00
leibale
3d009780ee fix live resharding test 2021-11-10 14:42:53 -05:00
leibale
f1f9c7ac24 fix bug in cluster slots, enhance live resharding test 2021-11-10 14:20:46 -05:00
leibale
27a1fa7d14 fix tests workflow 2021-11-09 19:57:04 -05:00
leibale
38426fe2a4 move "all-in-one" to root folder 2021-11-09 19:55:16 -05:00
leibale
57539e7c3f fix test-utils 2021-11-09 19:32:31 -05:00
leibale
0e70f245c8 uncomment some tests 2021-11-09 19:32:15 -05:00
leibale
3ad8a227eb update examples 2021-11-09 18:24:01 -05:00
leibale
162ac4ce64 update CONTRIBUTING.md 2021-11-09 18:14:32 -05:00
leibale
ca4ec86f89 add package-lock.json 2021-11-09 18:09:19 -05:00
leibale
ab339d396a fix #1714 - update README(s) 2021-11-09 18:07:26 -05:00
leibale
8b3daad88a uncomment "should handle live resharding" test 2021-11-09 13:38:08 -05:00
leibale
28018caf48 fix tests.yml 2021-11-09 13:09:35 -05:00
leibale
cd74f9632e use codecov 2021-11-09 13:07:53 -05:00
leibale
64df5dc76e uncomment TIME tests 2021-11-09 12:32:21 -05:00
leibale
69d98bf39c fix #1712 - fix LINDEX return type 2021-11-09 10:39:07 -05:00
leibale
3eb99dbe83 use dockers for tests, use npm workspaces, add rejson & redisearch modules, fix some bugs 2021-11-08 19:21:15 -05:00
Chayim
ecbd5b6968 release drafter (#1683)
* release drafter

* fixing contributors
2021-11-04 12:15:52 -04:00
leibale
97dd75a9e5 increase dockers timeout to 30s 2021-11-01 11:33:45 -04:00
leibale
5cff3320d2 use dockers for tests, fix some bugs 2021-11-01 11:30:25 -04:00
Leibale Eidelman
f6f9b3dccd fix #1706 - HSET return type should be number 2021-10-31 21:09:51 -04:00
Kalki
d409120e5b Issue # 1697 FIX - creates an example script that shows how to use the SSCAN iterator (#1699)
* #1697 fix for set scan example

* adds the js file

* adds comment

* Minor layout and comment adjustment.

Co-authored-by: srawat2 <shashank19aug>
Co-authored-by: Simon Prickett <simon@redislabs.com>

Closes #1697.
2021-10-27 21:54:12 +01:00
Rohan Kumar
fdffa2383f Add command-with-modifiers.js example (#1695)
* Adds TypeScript note and corrects a typo.

* Adds command-with-modifiers example. (redis#1688)

* Adds command-with-modifiers example. (redis#1688)

* Adds command-with-modifiers example. (redis#1688)

* Removed callbacks.

Co-authored-by: Simon Prickett <simon@redislabs.com>

Closes #1688.
2021-10-27 00:22:19 +01:00
Aditya Rastogi
9c3c42f113 Add(examples): Create an example for blPop & lPush (#1696)
* Add(examples): Create an example for blPop & lPush

Signed-off-by: Aditya Rastogi <adit.rastogi2014@gmail.com>

* Update(examples): fix case, add timeout, update readme

Signed-off-by: Aditya Rastogi <adit.rastogi2014@gmail.com>

Closes #1693.
2021-10-25 23:43:47 +01:00
Joshua T
9a4ac34f18 Add lua-multi-incr.js example (#1692)
Also fix syntax error in the lua example in the README

Closes #1689.
2021-10-25 23:31:19 +01:00
Simon Prickett
55391557ca Made examples use local version. 2021-10-25 22:53:22 +01:00
Suze Shardlow
d06ecc7743 Fixes a bug in the Scan Iterator section. (#1694) 2021-10-22 14:57:02 -04:00
Simon Prickett
dec504851e Adds TypeScript note and corrects a typo. 2021-10-21 21:48:29 +01:00
leibale
6fc631781a fix ACL GETUSER 2021-10-19 17:16:51 -04:00
leibale
dd85537c58 fix client.quit and client.disconnect 2021-10-19 17:14:31 -04:00
leibale
9f32ae728d fix ACL GETUSER test 2021-10-19 16:32:49 -04:00
leibale
5be091f7a1 fix tests with redis 6.0.x 2021-10-19 16:29:42 -04:00
leibale
2a7a7c1c2e update docs, add 6.0.x to the tests matrix, add eslint, npm update, fix some commands, fix some types
Co-authored-by: Simon Prickett <simon@crudworks.org>
2021-10-19 16:20:02 -04:00