You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-04 15:02:09 +03:00
replace @redis with @node-redis
This commit is contained in:
6
.github/README.md
vendored
6
.github/README.md
vendored
@@ -281,9 +281,9 @@ Node Redis is supported with the following versions of Redis:
|
|||||||
| Name | Description |
|
| Name | Description |
|
||||||
|-------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|-------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||||
| [redis](../) | [](https://www.npmjs.com/package/redis/v/next) [](https://www.npmjs.com/package/redis/v/next) |
|
| [redis](../) | [](https://www.npmjs.com/package/redis/v/next) [](https://www.npmjs.com/package/redis/v/next) |
|
||||||
| [@redis/client](../packages/client) | [](https://www.npmjs.com/package/@redis/client/v/next) [](https://www.npmjs.com/package/@redis/client/v/next) |
|
| [@node-redis/client](../packages/client) | [](https://www.npmjs.com/package/@node-redis/client/v/next) [](https://www.npmjs.com/package/@node-redis/client/v/next) |
|
||||||
| [@redis/json](../packages/json) | [](https://www.npmjs.com/package/@redis/json/v/next) [](https://www.npmjs.com/package/@redis/json/v/next) [Redis JSON](https://oss.redis.com/redisjson/) commands |
|
| [@node-redis/json](../packages/json) | [](https://www.npmjs.com/package/@node-redis/json/v/next) [](https://www.npmjs.com/package/@node-redis/json/v/next) [Redis JSON](https://oss.redis.com/redisjson/) commands |
|
||||||
| [@redis/search](../packages/search) | [](https://www.npmjs.com/package/@redis/search/v/next) [](https://www.npmjs.com/package/@redis/search/v/next) [Redis Search](https://oss.redis.com/redisearch/) commands |
|
| [@node-redis/search](../packages/search) | [](https://www.npmjs.com/package/@node-redis/search/v/next) [](https://www.npmjs.com/package/@node-redis/search/v/next) [Redis Search](https://oss.redis.com/redisearch/) commands |
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
|
18
index.ts
18
index.ts
@@ -1,13 +1,13 @@
|
|||||||
import { createClient as _createClient, createCluster as _createCluster } from '@redis/client';
|
import { createClient as _createClient, createCluster as _createCluster } from '@node-redis/client';
|
||||||
import { RedisScripts } from '@redis/client/dist/lib/commands';
|
import { RedisScripts } from '@node-redis/client/dist/lib/commands';
|
||||||
import { RedisClientOptions, RedisClientType } from '@redis/client/dist/lib/client';
|
import { RedisClientOptions, RedisClientType } from '@node-redis/client/dist/lib/client';
|
||||||
import { RedisClusterOptions, RedisClusterType } from '@redis/client/dist/lib/cluster';
|
import { RedisClusterOptions, RedisClusterType } from '@node-redis/client/dist/lib/cluster';
|
||||||
import RedisJSON from '@redis/json';
|
import RedisJSON from '@node-redis/json';
|
||||||
import RediSearch from '@redis/search';
|
import RediSearch from '@node-redis/search';
|
||||||
|
|
||||||
export * from '@redis/client';
|
export * from '@node-redis/client';
|
||||||
export * from '@redis/json';
|
export * from '@node-redis/json';
|
||||||
export * from '@redis/search';
|
export * from '@node-redis/search';
|
||||||
|
|
||||||
const modules = {
|
const modules = {
|
||||||
json: RedisJSON,
|
json: RedisJSON,
|
||||||
|
192
package-lock.json
generated
192
package-lock.json
generated
@@ -12,9 +12,9 @@
|
|||||||
"./packages/*"
|
"./packages/*"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@redis/client": "^1.0.0-rc",
|
"@node-redis/client": "^1.0.0-rc",
|
||||||
"@redis/json": "^1.0.0-rc",
|
"@node-redis/json": "^1.0.0-rc",
|
||||||
"@redis/search": "^1.0.0-rc"
|
"@node-redis/search": "^1.0.0-rc"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@tsconfig/node12": "^1.0.9",
|
"@tsconfig/node12": "^1.0.9",
|
||||||
@@ -653,6 +653,22 @@
|
|||||||
"node": ">=8"
|
"node": ">=8"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@node-redis/client": {
|
||||||
|
"resolved": "packages/client",
|
||||||
|
"link": true
|
||||||
|
},
|
||||||
|
"node_modules/@node-redis/json": {
|
||||||
|
"resolved": "packages/json",
|
||||||
|
"link": true
|
||||||
|
},
|
||||||
|
"node_modules/@node-redis/search": {
|
||||||
|
"resolved": "packages/search",
|
||||||
|
"link": true
|
||||||
|
},
|
||||||
|
"node_modules/@node-redis/test-utils": {
|
||||||
|
"resolved": "packages/test-utils",
|
||||||
|
"link": true
|
||||||
|
},
|
||||||
"node_modules/@nodelib/fs.scandir": {
|
"node_modules/@nodelib/fs.scandir": {
|
||||||
"version": "2.1.5",
|
"version": "2.1.5",
|
||||||
"resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",
|
"resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",
|
||||||
@@ -820,22 +836,6 @@
|
|||||||
"@octokit/openapi-types": "^11.2.0"
|
"@octokit/openapi-types": "^11.2.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@redis/client": {
|
|
||||||
"resolved": "packages/client",
|
|
||||||
"link": true
|
|
||||||
},
|
|
||||||
"node_modules/@redis/json": {
|
|
||||||
"resolved": "packages/json",
|
|
||||||
"link": true
|
|
||||||
},
|
|
||||||
"node_modules/@redis/search": {
|
|
||||||
"resolved": "packages/search",
|
|
||||||
"link": true
|
|
||||||
},
|
|
||||||
"node_modules/@redis/test-utils": {
|
|
||||||
"resolved": "packages/test-utils",
|
|
||||||
"link": true
|
|
||||||
},
|
|
||||||
"node_modules/@sindresorhus/is": {
|
"node_modules/@sindresorhus/is": {
|
||||||
"version": "4.2.0",
|
"version": "4.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-4.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-4.2.0.tgz",
|
||||||
@@ -6411,6 +6411,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"packages/client": {
|
"packages/client": {
|
||||||
|
"name": "@node-redis/client",
|
||||||
"version": "1.0.0-rc",
|
"version": "1.0.0-rc",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -6421,7 +6422,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@istanbuljs/nyc-config-typescript": "^1.0.1",
|
"@istanbuljs/nyc-config-typescript": "^1.0.1",
|
||||||
"@redis/test-utils": "*",
|
"@node-redis/test-utils": "*",
|
||||||
"@types/node": "^16.11.7",
|
"@types/node": "^16.11.7",
|
||||||
"@types/redis-parser": "^3.0.0",
|
"@types/redis-parser": "^3.0.0",
|
||||||
"@types/sinon": "^10.0.6",
|
"@types/sinon": "^10.0.6",
|
||||||
@@ -6444,11 +6445,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"packages/json": {
|
"packages/json": {
|
||||||
|
"name": "@node-redis/json",
|
||||||
"version": "1.0.0-rc.0",
|
"version": "1.0.0-rc.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@istanbuljs/nyc-config-typescript": "^1.0.1",
|
"@istanbuljs/nyc-config-typescript": "^1.0.1",
|
||||||
"@redis/test-utils": "*",
|
"@node-redis/test-utils": "*",
|
||||||
"@types/node": "^16.11.7",
|
"@types/node": "^16.11.7",
|
||||||
"nyc": "^15.1.0",
|
"nyc": "^15.1.0",
|
||||||
"release-it": "^14.11.7",
|
"release-it": "^14.11.7",
|
||||||
@@ -6457,15 +6459,16 @@
|
|||||||
"typescript": "^4.4.4"
|
"typescript": "^4.4.4"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@redis/client": "^1.0.0-rc"
|
"@node-redis/client": "^1.0.0-rc"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"packages/search": {
|
"packages/search": {
|
||||||
|
"name": "@node-redis/search",
|
||||||
"version": "1.0.0-rc.0",
|
"version": "1.0.0-rc.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@istanbuljs/nyc-config-typescript": "^1.0.1",
|
"@istanbuljs/nyc-config-typescript": "^1.0.1",
|
||||||
"@redis/test-utils": "*",
|
"@node-redis/test-utils": "*",
|
||||||
"@types/node": "^16.11.7",
|
"@types/node": "^16.11.7",
|
||||||
"nyc": "^15.1.0",
|
"nyc": "^15.1.0",
|
||||||
"release-it": "^14.11.7",
|
"release-it": "^14.11.7",
|
||||||
@@ -6474,10 +6477,11 @@
|
|||||||
"typescript": "^4.4.4"
|
"typescript": "^4.4.4"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@redis/client": "^1.0.0-rc"
|
"@node-redis/client": "^1.0.0-rc"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"packages/test-utils": {
|
"packages/test-utils": {
|
||||||
|
"name": "@node-redis/test-utils",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@istanbuljs/nyc-config-typescript": "^1.0.1",
|
"@istanbuljs/nyc-config-typescript": "^1.0.1",
|
||||||
"@types/mocha": "^9.0.0",
|
"@types/mocha": "^9.0.0",
|
||||||
@@ -6492,7 +6496,7 @@
|
|||||||
"yargs": "^17.2.1"
|
"yargs": "^17.2.1"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@redis/client": "^1.0.0-rc"
|
"@node-redis/client": "^1.0.0-rc"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -6981,6 +6985,75 @@
|
|||||||
"integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==",
|
"integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"@node-redis/client": {
|
||||||
|
"version": "file:packages/client",
|
||||||
|
"requires": {
|
||||||
|
"@istanbuljs/nyc-config-typescript": "^1.0.1",
|
||||||
|
"@node-redis/test-utils": "*",
|
||||||
|
"@types/node": "^16.11.7",
|
||||||
|
"@types/redis-parser": "^3.0.0",
|
||||||
|
"@types/sinon": "^10.0.6",
|
||||||
|
"@types/yallist": "^4.0.1",
|
||||||
|
"@typescript-eslint/eslint-plugin": "^5.4.0",
|
||||||
|
"@typescript-eslint/parser": "^5.4.0",
|
||||||
|
"cluster-key-slot": "1.1.0",
|
||||||
|
"eslint": "^8.2.0",
|
||||||
|
"generic-pool": "3.8.2",
|
||||||
|
"nyc": "^15.1.0",
|
||||||
|
"redis-parser": "3.0.0",
|
||||||
|
"release-it": "^14.11.7",
|
||||||
|
"sinon": "^12.0.1",
|
||||||
|
"source-map-support": "^0.5.20",
|
||||||
|
"ts-node": "^10.4.0",
|
||||||
|
"typedoc": "^0.22.9",
|
||||||
|
"typedoc-github-wiki-theme": "^0.6.0",
|
||||||
|
"typedoc-plugin-markdown": "^3.11.6",
|
||||||
|
"typescript": "^4.4.4",
|
||||||
|
"yallist": "4.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@node-redis/json": {
|
||||||
|
"version": "file:packages/json",
|
||||||
|
"requires": {
|
||||||
|
"@istanbuljs/nyc-config-typescript": "^1.0.1",
|
||||||
|
"@node-redis/test-utils": "*",
|
||||||
|
"@types/node": "^16.11.7",
|
||||||
|
"nyc": "^15.1.0",
|
||||||
|
"release-it": "^14.11.7",
|
||||||
|
"source-map-support": "^0.5.20",
|
||||||
|
"ts-node": "^10.4.0",
|
||||||
|
"typescript": "^4.4.4"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@node-redis/search": {
|
||||||
|
"version": "file:packages/search",
|
||||||
|
"requires": {
|
||||||
|
"@istanbuljs/nyc-config-typescript": "^1.0.1",
|
||||||
|
"@node-redis/test-utils": "*",
|
||||||
|
"@types/node": "^16.11.7",
|
||||||
|
"nyc": "^15.1.0",
|
||||||
|
"release-it": "^14.11.7",
|
||||||
|
"source-map-support": "^0.5.20",
|
||||||
|
"ts-node": "^10.4.0",
|
||||||
|
"typescript": "^4.4.4"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@node-redis/test-utils": {
|
||||||
|
"version": "file:packages/test-utils",
|
||||||
|
"requires": {
|
||||||
|
"@istanbuljs/nyc-config-typescript": "^1.0.1",
|
||||||
|
"@types/mocha": "^9.0.0",
|
||||||
|
"@types/node": "^16.11.7",
|
||||||
|
"@types/yargs": "^17.0.5",
|
||||||
|
"mocha": "^9.1.3",
|
||||||
|
"nyc": "^15.1.0",
|
||||||
|
"release-it": "^14.11.7",
|
||||||
|
"source-map-support": "^0.5.20",
|
||||||
|
"ts-node": "^10.4.0",
|
||||||
|
"typescript": "^4.4.4",
|
||||||
|
"yargs": "^17.2.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
"@nodelib/fs.scandir": {
|
"@nodelib/fs.scandir": {
|
||||||
"version": "2.1.5",
|
"version": "2.1.5",
|
||||||
"resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",
|
"resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",
|
||||||
@@ -7131,75 +7204,6 @@
|
|||||||
"@octokit/openapi-types": "^11.2.0"
|
"@octokit/openapi-types": "^11.2.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@redis/client": {
|
|
||||||
"version": "file:packages/client",
|
|
||||||
"requires": {
|
|
||||||
"@istanbuljs/nyc-config-typescript": "^1.0.1",
|
|
||||||
"@redis/test-utils": "*",
|
|
||||||
"@types/node": "^16.11.7",
|
|
||||||
"@types/redis-parser": "^3.0.0",
|
|
||||||
"@types/sinon": "^10.0.6",
|
|
||||||
"@types/yallist": "^4.0.1",
|
|
||||||
"@typescript-eslint/eslint-plugin": "^5.4.0",
|
|
||||||
"@typescript-eslint/parser": "^5.4.0",
|
|
||||||
"cluster-key-slot": "1.1.0",
|
|
||||||
"eslint": "^8.2.0",
|
|
||||||
"generic-pool": "3.8.2",
|
|
||||||
"nyc": "^15.1.0",
|
|
||||||
"redis-parser": "3.0.0",
|
|
||||||
"release-it": "^14.11.7",
|
|
||||||
"sinon": "^12.0.1",
|
|
||||||
"source-map-support": "^0.5.20",
|
|
||||||
"ts-node": "^10.4.0",
|
|
||||||
"typedoc": "^0.22.9",
|
|
||||||
"typedoc-github-wiki-theme": "^0.6.0",
|
|
||||||
"typedoc-plugin-markdown": "^3.11.6",
|
|
||||||
"typescript": "^4.4.4",
|
|
||||||
"yallist": "4.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"@redis/json": {
|
|
||||||
"version": "file:packages/json",
|
|
||||||
"requires": {
|
|
||||||
"@istanbuljs/nyc-config-typescript": "^1.0.1",
|
|
||||||
"@redis/test-utils": "*",
|
|
||||||
"@types/node": "^16.11.7",
|
|
||||||
"nyc": "^15.1.0",
|
|
||||||
"release-it": "^14.11.7",
|
|
||||||
"source-map-support": "^0.5.20",
|
|
||||||
"ts-node": "^10.4.0",
|
|
||||||
"typescript": "^4.4.4"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"@redis/search": {
|
|
||||||
"version": "file:packages/search",
|
|
||||||
"requires": {
|
|
||||||
"@istanbuljs/nyc-config-typescript": "^1.0.1",
|
|
||||||
"@redis/test-utils": "*",
|
|
||||||
"@types/node": "^16.11.7",
|
|
||||||
"nyc": "^15.1.0",
|
|
||||||
"release-it": "^14.11.7",
|
|
||||||
"source-map-support": "^0.5.20",
|
|
||||||
"ts-node": "^10.4.0",
|
|
||||||
"typescript": "^4.4.4"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"@redis/test-utils": {
|
|
||||||
"version": "file:packages/test-utils",
|
|
||||||
"requires": {
|
|
||||||
"@istanbuljs/nyc-config-typescript": "^1.0.1",
|
|
||||||
"@types/mocha": "^9.0.0",
|
|
||||||
"@types/node": "^16.11.7",
|
|
||||||
"@types/yargs": "^17.0.5",
|
|
||||||
"mocha": "^9.1.3",
|
|
||||||
"nyc": "^15.1.0",
|
|
||||||
"release-it": "^14.11.7",
|
|
||||||
"source-map-support": "^0.5.20",
|
|
||||||
"ts-node": "^10.4.0",
|
|
||||||
"typescript": "^4.4.4",
|
|
||||||
"yargs": "^17.2.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"@sindresorhus/is": {
|
"@sindresorhus/is": {
|
||||||
"version": "4.2.0",
|
"version": "4.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-4.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-4.2.0.tgz",
|
||||||
|
@@ -17,9 +17,9 @@
|
|||||||
"build-all": "npm run build:client && npm run build:test-utils && npm run build:modules && npm run build"
|
"build-all": "npm run build:client && npm run build:test-utils && npm run build:modules && npm run build"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@redis/client": "^1.0.0-rc",
|
"@node-redis/client": "^1.0.0-rc",
|
||||||
"@redis/json": "^1.0.0-rc",
|
"@node-redis/json": "^1.0.0-rc",
|
||||||
"@redis/search": "^1.0.0-rc"
|
"@node-redis/search": "^1.0.0-rc"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@tsconfig/node12": "^1.0.9",
|
"@tsconfig/node12": "^1.0.9",
|
||||||
|
@@ -1,2 +1,2 @@
|
|||||||
# @redis/client
|
# @node-redis/client
|
||||||
The sources and docs for this package are in the main [node-redis](https://github.com/redis/node-redis) repo.
|
The sources and docs for this package are in the main [node-redis](https://github.com/redis/node-redis) repo.
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
import TestUtils from '@redis/test-utils';
|
import TestUtils from '@node-redis/test-utils';
|
||||||
import { SinonSpy } from 'sinon';
|
import { SinonSpy } from 'sinon';
|
||||||
import { promiseTimeout } from './utils';
|
import { promiseTimeout } from './utils';
|
||||||
|
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "@redis/client",
|
"name": "@node-redis/client",
|
||||||
"version": "1.0.0-rc",
|
"version": "1.0.0-rc",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@istanbuljs/nyc-config-typescript": "^1.0.1",
|
"@istanbuljs/nyc-config-typescript": "^1.0.1",
|
||||||
"@redis/test-utils": "*",
|
"@node-redis/test-utils": "*",
|
||||||
"@types/node": "^16.11.7",
|
"@types/node": "^16.11.7",
|
||||||
"@types/redis-parser": "^3.0.0",
|
"@types/redis-parser": "^3.0.0",
|
||||||
"@types/sinon": "^10.0.6",
|
"@types/sinon": "^10.0.6",
|
||||||
|
@@ -1,2 +1,2 @@
|
|||||||
# @redis/json
|
# @node-redis/json
|
||||||
The sources and docs for this package are in the main [node-redis](https://github.com/redis/node-redis) repo.
|
The sources and docs for this package are in the main [node-redis](https://github.com/redis/node-redis) repo.
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
import { pushVerdictArguments } from '@redis/client/dist/lib/commands/generic-transformers';
|
import { pushVerdictArguments } from '@node-redis/client/dist/lib/commands/generic-transformers';
|
||||||
|
|
||||||
export const FIRST_KEY_INDEX = 1;
|
export const FIRST_KEY_INDEX = 1;
|
||||||
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
import TestUtils from '@redis/test-utils';
|
import TestUtils from '@node-redis/test-utils';
|
||||||
import RedisJSON from '.';
|
import RedisJSON from '.';
|
||||||
|
|
||||||
export default new TestUtils({
|
export default new TestUtils({
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "@redis/json",
|
"name": "@node-redis/json",
|
||||||
"version": "1.0.0-rc.0",
|
"version": "1.0.0-rc.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
@@ -9,11 +9,11 @@
|
|||||||
"build": "tsc"
|
"build": "tsc"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@redis/client": "^1.0.0-rc"
|
"@node-redis/client": "^1.0.0-rc"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@istanbuljs/nyc-config-typescript": "^1.0.1",
|
"@istanbuljs/nyc-config-typescript": "^1.0.1",
|
||||||
"@redis/test-utils": "*",
|
"@node-redis/test-utils": "*",
|
||||||
"@types/node": "^16.11.7",
|
"@types/node": "^16.11.7",
|
||||||
"nyc": "^15.1.0",
|
"nyc": "^15.1.0",
|
||||||
"release-it": "^14.11.7",
|
"release-it": "^14.11.7",
|
||||||
|
@@ -1,2 +1,2 @@
|
|||||||
# @redis/search
|
# @node-redis/search
|
||||||
The sources and docs for this package are in the main [node-redis](https://github.com/redis/node-redis) repo.
|
The sources and docs for this package are in the main [node-redis](https://github.com/redis/node-redis) repo.
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
import { RedisCommandArguments } from '@redis/client/dist/lib/commands';
|
import { RedisCommandArguments } from '@node-redis/client/dist/lib/commands';
|
||||||
import { pushVerdictArgument, transformReplyTuples, TuplesObject } from '@redis/client/dist/lib/commands/generic-transformers';
|
import { pushVerdictArgument, transformReplyTuples, TuplesObject } from '@node-redis/client/dist/lib/commands/generic-transformers';
|
||||||
import { PropertyName, pushArgumentsWithLength, pushSortByArguments, SortByOptions } from '.';
|
import { PropertyName, pushArgumentsWithLength, pushSortByArguments, SortByOptions } from '.';
|
||||||
|
|
||||||
export enum AggregateSteps {
|
export enum AggregateSteps {
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
import { pushOptionalVerdictArgument } from '@redis/client/dist/lib/commands/generic-transformers';
|
import { pushOptionalVerdictArgument } from '@node-redis/client/dist/lib/commands/generic-transformers';
|
||||||
import { RedisSearchLanguages, PropertyName } from '.';
|
import { RedisSearchLanguages, PropertyName } from '.';
|
||||||
|
|
||||||
export enum SchemaFieldTypes {
|
export enum SchemaFieldTypes {
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
import { RedisCommandArguments } from '@redis/client/dist/lib/commands';
|
import { RedisCommandArguments } from '@node-redis/client/dist/lib/commands';
|
||||||
import { pushVerdictArguments } from '@redis/client/dist/lib/commands/generic-transformers';
|
import { pushVerdictArguments } from '@node-redis/client/dist/lib/commands/generic-transformers';
|
||||||
|
|
||||||
export function transformArguments(dictionary: string, term: string | Array<string>): RedisCommandArguments {
|
export function transformArguments(dictionary: string, term: string | Array<string>): RedisCommandArguments {
|
||||||
return pushVerdictArguments(['FT.DICTADD', dictionary], term);
|
return pushVerdictArguments(['FT.DICTADD', dictionary], term);
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
import { RedisCommandArguments } from '@redis/client/dist/lib/commands';
|
import { RedisCommandArguments } from '@node-redis/client/dist/lib/commands';
|
||||||
import { pushVerdictArguments } from '@redis/client/dist/lib/commands/generic-transformers';
|
import { pushVerdictArguments } from '@node-redis/client/dist/lib/commands/generic-transformers';
|
||||||
|
|
||||||
export function transformArguments(dictionary: string, term: string | Array<string>): RedisCommandArguments {
|
export function transformArguments(dictionary: string, term: string | Array<string>): RedisCommandArguments {
|
||||||
return pushVerdictArguments(['FT.DICTDEL', dictionary], term);
|
return pushVerdictArguments(['FT.DICTDEL', dictionary], term);
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
import { RedisCommandArguments } from '@redis/client/dist/lib/commands';
|
import { RedisCommandArguments } from '@node-redis/client/dist/lib/commands';
|
||||||
import { pushOptionalVerdictArgument, pushVerdictArgument, transformReplyTuples } from '@redis/client/dist/lib/commands/generic-transformers';
|
import { pushOptionalVerdictArgument, pushVerdictArgument, transformReplyTuples } from '@node-redis/client/dist/lib/commands/generic-transformers';
|
||||||
import { RedisSearchLanguages, PropertyName, pushSortByArguments, SortByOptions } from '.';
|
import { RedisSearchLanguages, PropertyName, pushSortByArguments, SortByOptions } from '.';
|
||||||
|
|
||||||
export const FIRST_KEY_INDEX = 1;
|
export const FIRST_KEY_INDEX = 1;
|
||||||
|
@@ -2,4 +2,4 @@ export function transformArguments(key: string, string: string): Array<string> {
|
|||||||
return ['FT.SUGDEL', key, string];
|
return ['FT.SUGDEL', key, string];
|
||||||
}
|
}
|
||||||
|
|
||||||
export { transformReplyBoolean as transformReply } from '@redis/client/dist/lib/commands/generic-transformers';
|
export { transformReplyBoolean as transformReply } from '@node-redis/client/dist/lib/commands/generic-transformers';
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
import { pushVerdictArguments } from '@redis/client/dist/lib/commands/generic-transformers';
|
import { pushVerdictArguments } from '@node-redis/client/dist/lib/commands/generic-transformers';
|
||||||
import { RedisCommandArguments } from '@redis/client/dist/lib/commands';
|
import { RedisCommandArguments } from '@node-redis/client/dist/lib/commands';
|
||||||
|
|
||||||
interface SynUpdateOptions {
|
interface SynUpdateOptions {
|
||||||
SKIPINITIALSCAN?: true;
|
SKIPINITIALSCAN?: true;
|
||||||
|
@@ -26,7 +26,7 @@ import * as SUGLEN from './SUGLEN';
|
|||||||
import * as SYNDUMP from './SYNDUMP';
|
import * as SYNDUMP from './SYNDUMP';
|
||||||
import * as SYNUPDATE from './SYNUPDATE';
|
import * as SYNUPDATE from './SYNUPDATE';
|
||||||
import * as TAGVALS from './TAGVALS';
|
import * as TAGVALS from './TAGVALS';
|
||||||
import { RedisCommandArguments } from '@redis/client/dist/lib/commands';
|
import { RedisCommandArguments } from '@node-redis/client/dist/lib/commands';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
_LIST,
|
_LIST,
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
import TestUtils from '@redis/test-utils';
|
import TestUtils from '@node-redis/test-utils';
|
||||||
import RediSearch from '.';
|
import RediSearch from '.';
|
||||||
|
|
||||||
export default new TestUtils({
|
export default new TestUtils({
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "@redis/search",
|
"name": "@node-redis/search",
|
||||||
"version": "1.0.0-rc.0",
|
"version": "1.0.0-rc.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
@@ -9,11 +9,11 @@
|
|||||||
"build": "tsc"
|
"build": "tsc"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@redis/client": "^1.0.0-rc"
|
"@node-redis/client": "^1.0.0-rc"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@istanbuljs/nyc-config-typescript": "^1.0.1",
|
"@istanbuljs/nyc-config-typescript": "^1.0.1",
|
||||||
"@redis/test-utils": "*",
|
"@node-redis/test-utils": "*",
|
||||||
"@types/node": "^16.11.7",
|
"@types/node": "^16.11.7",
|
||||||
"nyc": "^15.1.0",
|
"nyc": "^15.1.0",
|
||||||
"release-it": "^14.11.7",
|
"release-it": "^14.11.7",
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
import { createConnection } from 'net';
|
import { createConnection } from 'net';
|
||||||
import { once } from 'events';
|
import { once } from 'events';
|
||||||
import { RedisModules, RedisScripts } from '@redis/client/lib/commands';
|
import { RedisModules, RedisScripts } from '@node-redis/client/lib/commands';
|
||||||
import RedisClient, { RedisClientType } from '@redis/client/lib/client';
|
import RedisClient, { RedisClientType } from '@node-redis/client/lib/client';
|
||||||
import { promiseTimeout } from '@redis/client/lib/utils';
|
import { promiseTimeout } from '@node-redis/client/lib/utils';
|
||||||
import * as path from 'path';
|
import * as path from 'path';
|
||||||
import { promisify } from 'util';
|
import { promisify } from 'util';
|
||||||
import { exec } from 'child_process';
|
import { exec } from 'child_process';
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
import { RedisModules, RedisScripts } from '@redis/client/lib/commands';
|
import { RedisModules, RedisScripts } from '@node-redis/client/lib/commands';
|
||||||
import RedisClient, { RedisClientOptions, RedisClientType } from '@redis/client/lib/client';
|
import RedisClient, { RedisClientOptions, RedisClientType } from '@node-redis/client/lib/client';
|
||||||
import RedisCluster, { RedisClusterOptions, RedisClusterType } from '@redis/client/lib/cluster';
|
import RedisCluster, { RedisClusterOptions, RedisClusterType } from '@node-redis/client/lib/cluster';
|
||||||
import { RedisServerDockerConfig, spawnRedisServer, spawnRedisCluster } from './dockers';
|
import { RedisServerDockerConfig, spawnRedisServer, spawnRedisCluster } from './dockers';
|
||||||
import yargs from 'yargs';
|
import yargs from 'yargs';
|
||||||
import { hideBin } from 'yargs/helpers';
|
import { hideBin } from 'yargs/helpers';
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "@redis/test-utils",
|
"name": "@node-redis/test-utils",
|
||||||
"private": true,
|
"private": true,
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
"test": "echo \"TODO\""
|
"test": "echo \"TODO\""
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@redis/client": "^1.0.0-rc"
|
"@node-redis/client": "^1.0.0-rc"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@istanbuljs/nyc-config-typescript": "^1.0.1",
|
"@istanbuljs/nyc-config-typescript": "^1.0.1",
|
||||||
|
Reference in New Issue
Block a user