Socket
Socket
Sign inDemoInstall

ioredis

Package Overview
Dependencies
Maintainers
2
Versions
228
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ioredis - npm Package Compare versions

Comparing version 5.0.0-beta.4 to 5.0.0

21

package.json
{
"name": "ioredis",
"version": "5.0.0-beta.4",
"version": "5.0.0",
"description": "A robust, performance-focused and full-featured Redis client for Node.js.",

@@ -12,5 +12,5 @@ "main": "./built/index.js",

"test:tsd": "npm run build && tsd",
"test:js": "TS_NODE_TRANSPILE_ONLY=true NODE_ENV=test mocha \"test/helpers/*.ts\" \"test/**/*.ts\"",
"test:js": "TS_NODE_TRANSPILE_ONLY=true NODE_ENV=test mocha \"test/helpers/*.ts\" \"test/unit/**/*.ts\" \"test/functional/**/*.ts\"",
"test:cov": "nyc npm run test:js",
"test:js:cluster": "TS_NODE_TRANSPILE_ONLY=true NODE_ENV=test mocha \"test-cluster/**/*.ts\"",
"test:js:cluster": "TS_NODE_TRANSPILE_ONLY=true NODE_ENV=test mocha \"test/cluster/**/*.ts\"",
"test": "npm run test:js && npm run test:tsd",

@@ -35,2 +35,5 @@ "lint": "eslint --ext .js,.ts ./lib",

],
"tsd": {
"directory": "test/typing"
},
"author": "Zihua Li <i@zihua.li> (http://zihua.li)",

@@ -63,14 +66,14 @@ "license": "MIT",

"@types/mocha": "^9.1.0",
"@types/node": "^17.0.18",
"@types/node": "^14.18.12",
"@types/redis-errors": "^1.2.1",
"@types/sinon": "^10.0.11",
"@typescript-eslint/eslint-plugin": "^5.12.0",
"@typescript-eslint/parser": "^5.12.0",
"@typescript-eslint/eslint-plugin": "^5.16.0",
"@typescript-eslint/parser": "^5.16.0",
"chai": "^4.3.6",
"chai-as-promised": "^7.1.1",
"eslint": "^8.9.0",
"eslint": "^8.12.0",
"eslint-config-prettier": "^8.4.0",
"mocha": "^9.2.1",
"nyc": "^15.1.0",
"prettier": "^2.5.1",
"prettier": "^2.6.1",
"semantic-release": "^19.0.2",

@@ -82,3 +85,3 @@ "server-destroy": "^1.0.1",

"typedoc": "^0.22.12",
"typescript": "^4.5.5",
"typescript": "^4.6.3",
"uuid": "^8.3.0"

@@ -85,0 +88,0 @@ },

@@ -21,3 +21,2 @@ [![ioredis](https://cdn.jsdelivr.net/gh/luin/ioredis@b5e8c74/logo.svg)](https://github.com/luin/ioredis)

0. Delightful API 😄. It works with Node callbacks and Native promises.
0. Official TypeScript declarations.
0. Transformation of command arguments and replies.

@@ -34,19 +33,19 @@ 0. Transparent key prefixing.

0. Supports NAT mapping.
0. Supports autopipelining
0. Supports autopipelining.
# Versions
**100% written in TypeScript and official declarations are provided:**
| NPM Version | Branch | Node.js Version | Redis Version |
| ------------ | ------ | --------------- | --------------- |
| 5.x.x (beta) | main | >= 12 | 2.6.12 ~ latest |
| 4.x.x | v4 | >= 6 | 2.6.12 ~ 7 |
<img width="837" src="resources/ts-screenshot.png" alt="TypeScript Screenshot" />
V5 is still in the beta stage. You can install it with:
# Versions
```
$ npm install ioredis@next
```
| NPM Version | Branch | Node.js Version | Redis Version |
| -------------- | ------ | --------------- | --------------- |
| 5.x.x (latest) | main | >= 12 | 2.6.12 ~ latest |
| 4.x.x | v4 | >= 6 | 2.6.12 ~ 7 |
Refer to [CHANGELOG.md](CHANGELOG.md) for features and bug fixes introduced in v5.
🚀 [Upgrading from v4 to v5](https://github.com/luin/ioredis/wiki/Upgrading-from-v4-to-v5)
# Links

@@ -57,3 +56,2 @@

- [Migrating from node_redis](https://github.com/luin/ioredis/wiki/Migrating-from-node_redis)
- [Error Handling](#error-handling)

@@ -113,2 +111,8 @@ <hr>

In a TypeScript project, you may want to add TypeScript declarations for Node.js:
```shell
$ npm install --save-dev @types/node
```
## Basic Usage

@@ -115,0 +119,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc