Skip to content

Release 4.0.0-rc.3 #1678

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 45 commits into from
Oct 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
7983dd4
update workflows & README
leibale Sep 2, 2021
e421dc4
add .deepsource.toml
leibale Sep 2, 2021
b80afc6
fix client.quit, add error events on cluster, fix some "deepsource.io…
leibale Sep 2, 2021
18ad329
Release 4.0.0-rc.1
leibale Sep 6, 2021
1413a69
add cluster.duplicate, add some tests
leibale Sep 9, 2021
08837c8
fix #1650 - add support for Buffer in some commands, add GET_BUFFER c…
leibale Sep 13, 2021
9fc08d4
fix GET and GET_BUFFER return type
leibale Sep 13, 2021
b91897a
update FAQ
leibale Sep 14, 2021
64f4567
Update invalid code example in README.md (#1654)
ricsam Sep 14, 2021
0f5a278
fix #1652
leibale Sep 14, 2021
d5fa6a3
Merge branch 'master' of https://github.com/NodeRedis/node-redis
leibale Sep 14, 2021
0ab2245
ref #1653 - better types
leibale Sep 18, 2021
5412479
better types
leibale Sep 18, 2021
10b9c59
fix 54124793ad1b633d39d372bdff487c9888c017a7
leibale Sep 18, 2021
3cd31e3
Update GEOSEARCHSTORE.spec.ts
leibale Sep 18, 2021
3a169d5
fix #1660 - add support for client.HSET('key', 'field', 'value')
leibale Sep 20, 2021
4585a52
Merge branch 'master' of https://github.com/NodeRedis/node-redis
leibale Sep 20, 2021
d79bc55
upgrade dependencies, update README
leibale Sep 20, 2021
1819b9c
fix #1659 - add support for db-number in client options url
leibale Sep 21, 2021
ad151cd
fix README, remove unused import, downgrade typedoc & typedoc-plugin-…
leibale Sep 21, 2021
1c13a65
update client-configurations.md
leibale Sep 21, 2021
9237a4e
fix README
leibale Sep 23, 2021
42dcf80
add CLUSTER_SLOTS, add some tests
leibale Sep 23, 2021
5be5474
Merge branch 'v4.0' of https://github.com/NodeRedis/node-redis
leibale Sep 23, 2021
7d286e7
fix "createClient with url" test with redis 5
leibale Sep 23, 2021
06ee6af
remove unused imports
leibale Sep 23, 2021
01df651
Release 4.0.0-rc.2
leibale Sep 23, 2021
1c863c5
Merge branch 'v4.0' of https://github.com/NodeRedis/node-redis
leibale Sep 23, 2021
9a1beed
add missing semicolon
leibale Sep 23, 2021
c19d200
replace empty "transformReply" functions with typescript "declare"
leibale Sep 29, 2021
068f7f4
fix EVAL & EVALSHA, add some tests, npm update
leibale Sep 29, 2021
43e546d
fix #1665 - add ZRANGEBYLEX, ZRANGEBYSCORE, ZRANGEBYSCORE_WITHSCORES
leibale Oct 1, 2021
5eb06bc
new issue templates
leibale Oct 1, 2021
6e7844e
add all COMMAND commands
leibale Oct 4, 2021
833416c
run COMMAND & COMMAND INFO tests only on redis >6
leibale Oct 4, 2021
ef93bb1
Create SECURITY.md
leibale Oct 5, 2021
cc83cee
fix #1671 - add support for all client configurations in cluster
leibale Oct 7, 2021
1d68406
Merge branch 'master' of https://github.com/NodeRedis/node-redis
leibale Oct 7, 2021
d7026f6
ref #1671 - add support for defaults
leibale Oct 7, 2021
13d4414
remove some commands from cluster, npm update, clean code,
leibale Oct 11, 2021
c650d86
lock benny version
leibale Oct 11, 2021
4097258
fix #1674 - remove `isolationPoolOptions` when creating isolated conn…
leibale Oct 11, 2021
61cec9d
increase test coverage
leibale Oct 11, 2021
b0f657c
update .npmignore
leibale Oct 11, 2021
235db19
Release 4.0.0-rc.3
leibale Oct 11, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions .github/ISSUE_TEMPLATE.md

This file was deleted.

15 changes: 15 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: Bug
assignees: ''
---

<!-- Describe your issue here -->

**Environment:**
- **Node.js Version**: <!-- e.g. "node --version" -->
- **Redis Server Version**: <!-- e.g. "redis-server --version" -->
- **Node Redis Version**: <!-- e.g. "npm ls redis" -->
- **Platform**: <!-- e.g. Ubuntu 20.04.3, Windows 10, Mac OS 11.6 -->
7 changes: 7 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: Bug
assignees: ''
---
3 changes: 2 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
.vscode/
.idea/
node_modules/
.nyc_output
.nyc_output/
coverage/
dump.rdb
documentation/
CONTRIBUTING.md
tsconfig.json
.deepsource.toml
.nycrc.json
benchmark/
.github/
Expand Down
34 changes: 15 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ The above code connects to localhost on port 6379. To connect to a different hos

```typescript
createClient({
url: 'redis://alice:[email protected]:6380',
url: 'redis://alice:[email protected]:6380'
});
```

Expand All @@ -78,7 +78,7 @@ Modifiers to commands are specified using a JavaScript object:
```typescript
await client.set('key', 'value', {
EX: 10,
NX: true,
NX: true
});
```

Expand Down Expand Up @@ -181,12 +181,9 @@ for await (const key of client.scanIterator()) {
This works with `HSCAN`, `SSCAN`, and `ZSCAN` too:

```typescript
for await (const member of client.hScanIterator('hash')) {
}
for await (const { field, value } of client.sScanIterator('set')) {
}
for await (const { member, score } of client.zScanIterator('sorted-set')) {
}
for await (const member of client.hScanIterator('hash')) {}
for await (const { field, value } of client.sScanIterator('set')) {}
for await (const { member, score } of client.zScanIterator('sorted-set')) {}
```

You can override the default options by providing a configuration object:
Expand All @@ -204,7 +201,8 @@ client.scanIterator({
Define new functions using [Lua scripts](https://redis.io/commands/eval) which execute on the Redis server:

```typescript
import { createClient, defineScript } from 'redis';
import { createClient } from 'redis';
import { defineScript } from 'redis/lua-script';

(async () => {
const client = createClient({
Expand All @@ -218,9 +216,9 @@ import { createClient, defineScript } from 'redis';
},
transformReply(reply: number): number {
return reply;
},
}),
},
}
})
}
});

await client.connect();
Expand All @@ -241,14 +239,12 @@ import { createCluster } from 'redis';
const cluster = createCluster({
rootNodes: [
{
host: '10.0.0.1',
port: 30001,
url: 'redis://10.0.0.1:30001'
},
{
host: '10.0.0.2',
port: 30002,
},
],
url: 'redis://10.0.0.2:30002'
}
]
});

cluster.on('error', (err) => console.log('Redis Cluster Error', err));
Expand All @@ -274,7 +270,7 @@ Of course, if you don't do something with your Promises you're certain to get [u
```typescript
await Promise.all([
client.set('Tm9kZSBSZWRpcw==', 'users:1'),
client.sAdd('users:1:tokens', 'Tm9kZSBSZWRpcw=='),
client.sAdd('users:1:tokens', 'Tm9kZSBSZWRpcw==')
]);
```

Expand Down
16 changes: 16 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Security Policy

## Supported Versions

Node Redis is generally backwards compatible with very few exceptions, so we recommend users to always use the latest version to experience stability, performance and security.

| Version | Supported |
| ------- | ------------------ |
| 4.0.x | :white_check_mark: |
| 3.1.x | :white_check_mark: |
| < 3.1 | :x: |

## Reporting a Vulnerability

If you believe you’ve discovered a serious vulnerability, please contact the Node Redis core team at [email protected]. We will evaluate your report and if necessary issue a fix and an advisory. If the issue was previously undisclosed,
we’ll also mention your name in the credits.
Loading