@keyv/redis
Advanced tools
Comparing version 3.0.0-rc.1 to 3.0.0
{ | ||
"name": "@keyv/redis", | ||
"version": "3.0.0-rc.1", | ||
"version": "3.0.0", | ||
"description": "Redis storage adapter for Keyv", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"main": "dist/cjs/index.js", | ||
"module": "dist/esm/index.js", | ||
"types": "dist/esm/index.d.ts", | ||
"exports": { | ||
".": { | ||
"require": "./dist/cjs/index.js", | ||
"import": "./dist/esm/index.js" | ||
} | ||
}, | ||
"scripts": { | ||
"build": "tsc --project tsconfig.dist.json", | ||
"build": "rm -rf dist && tsc --project tsconfig.cjs.json && tsc --project tsconfig.esm.json", | ||
"prepare": "yarn build", | ||
@@ -56,6 +63,6 @@ "test": "xo --fix && vitest run --coverage", | ||
"@keyv/test-suite": "*", | ||
"keyv": "^5.0.0-rc.1", | ||
"keyv": "^5.0.0", | ||
"timekeeper": "^2.3.1", | ||
"tsd": "^0.31.0", | ||
"xo": "^0.58.0" | ||
"tsd": "^0.31.1", | ||
"xo": "^0.59.3" | ||
}, | ||
@@ -66,7 +73,8 @@ "tsd": { | ||
"engines": { | ||
"node": ">= 14" | ||
"node": ">= 18" | ||
}, | ||
"files": [ | ||
"dist" | ||
"dist", | ||
"LICENSE" | ||
] | ||
} |
@@ -1,2 +0,2 @@ | ||
# @keyv/redis [<img width="100" align="right" src="https://jaredwray.com/images/keyv.svg" alt="keyv">](https://github.com/jaredwra/keyv) | ||
# @keyv/redis [<img width="100" align="right" src="https://jaredwray.com/images/keyv-symbol.svg" alt="keyv">](https://github.com/jaredwra/keyv) | ||
@@ -23,5 +23,6 @@ > Redis storage adapter for Keyv | ||
```js | ||
const Keyv = require('keyv'); | ||
import Keyv from 'keyv'; | ||
import KeyvRedis from '@keyv/redis'; | ||
const keyv = new Keyv('redis://user:pass@localhost:6379'); | ||
const keyv = new Keyv(new KeyvRedis('redis://user:pass@localhost:6379')); | ||
keyv.on('error', handleConnectionError); | ||
@@ -35,3 +36,3 @@ ``` | ||
```js | ||
const keyv = new Keyv('redis://user:pass@localhost:6379', { disable_resubscribing: true }); | ||
const keyv = new Keyv(new KeyvRedis('redis://user:pass@localhost:6379', { disable_resubscribing: true })); | ||
``` | ||
@@ -42,4 +43,4 @@ | ||
```js | ||
const KeyvRedis = require('@keyv/redis'); | ||
const Keyv = require('keyv'); | ||
import Keyv from 'keyv'; | ||
import KeyvRedis from '@keyv/redis'; | ||
@@ -53,5 +54,5 @@ const keyvRedis = new KeyvRedis('redis://user:pass@localhost:6379'); | ||
```js | ||
const KeyvRedis = require('@keyv/redis'); | ||
const Redis = require('ioredis'); | ||
const Keyv = require('keyv'); | ||
import Keyv from 'keyv'; | ||
import Redis from 'ioredis'; | ||
import KeyvRedis from '@keyv/redis'; | ||
@@ -66,5 +67,5 @@ const redis = new Redis('redis://user:pass@localhost:6379'); | ||
```js | ||
const KeyvRedis = require('@keyv/redis'); | ||
const Redis = require('ioredis'); | ||
const Keyv = require('keyv'); | ||
import Keyv from 'keyv'; | ||
import Redis from 'ioredis'; | ||
import KeyvRedis from '@keyv/redis'; | ||
@@ -98,5 +99,5 @@ const redis = new Redis.Cluster('redis://user:pass@localhost:6379'); | ||
```js | ||
const Keyv = require('keyv'); | ||
import Keyv from 'keyv'; | ||
const keyv = new Keyv('redis://user:pass@localhost:6379', { useRedisSets: false }); | ||
const keyv = new Keyv(new KeyvRedis('redis://user:pass@localhost:6379', { useRedisSets: false })); | ||
``` | ||
@@ -106,2 +107,2 @@ | ||
MIT © Jared Wray | ||
[MIT © Jared Wray](LISCENCE) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
29156
15
346
0
102
1