@postgresx/noredis-ioredis 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +9 -0
- package/package.json +39 -0
package/README.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# @postgresx/noredis-ioredis
|
|
2
|
+
|
|
3
|
+
Thin re-export package for projects using npm alias migrations such as:
|
|
4
|
+
|
|
5
|
+
```json
|
|
6
|
+
{
|
|
7
|
+
"dependencies": {
|
|
8
|
+
"ioredis": "npm:@postgresx/noredis-ioredis"
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
It exposes `createIoredisAdapter()` from `@postgresx/noredis/adapters/ioredis`.
|
|
14
|
+
It is not a Redis protocol client and does not provide a drop-in `new Redis()`
|
|
15
|
+
constructor. Create a normal `PgredisClient` first, then wrap it:
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
import { createPgredis } from "@postgresx/noredis";
|
|
19
|
+
import { createIoredisAdapter } from "ioredis";
|
|
20
|
+
|
|
21
|
+
const pg = createPgredis({ sql });
|
|
22
|
+
const redis = createIoredisAdapter({ client: pg });
|
|
23
|
+
```
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { IoredisAdapterOptions, IoredisLikeAdapter, createIoredisAdapter, createIoredisAdapter as default } from '@postgresx/noredis/adapters/ioredis';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// src/index.ts
|
|
2
|
+
import {
|
|
3
|
+
createIoredisAdapter
|
|
4
|
+
} from "@postgresx/noredis/adapters/ioredis";
|
|
5
|
+
import { createIoredisAdapter as createIoredisAdapter2 } from "@postgresx/noredis/adapters/ioredis";
|
|
6
|
+
export {
|
|
7
|
+
createIoredisAdapter,
|
|
8
|
+
createIoredisAdapter2 as default
|
|
9
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@postgresx/noredis-ioredis",
|
|
3
|
+
"version": "0.2.2",
|
|
4
|
+
"description": "Thin ioredis-shaped facade package for @postgresx/noredis migrations",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/zuohuadong/postgresx",
|
|
10
|
+
"directory": "packages/noredis-ioredis"
|
|
11
|
+
},
|
|
12
|
+
"sideEffects": false,
|
|
13
|
+
"files": [
|
|
14
|
+
"dist/**/*",
|
|
15
|
+
"README.md"
|
|
16
|
+
],
|
|
17
|
+
"main": "dist/index.js",
|
|
18
|
+
"types": "dist/index.d.ts",
|
|
19
|
+
"exports": {
|
|
20
|
+
".": {
|
|
21
|
+
"types": "./dist/index.d.ts",
|
|
22
|
+
"import": "./dist/index.js",
|
|
23
|
+
"default": "./dist/index.js"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "tsup src/index.ts --format esm --dts --clean --out-dir dist --external @postgresx/noredis",
|
|
28
|
+
"check": "tsc --noEmit -p tsconfig.json"
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@postgresx/noredis": "^0.5.2"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@types/bun": "^1.3.14",
|
|
35
|
+
"@types/node": "^25.0.0",
|
|
36
|
+
"tsup": "^8.5.0",
|
|
37
|
+
"typescript": "^6.0.3"
|
|
38
|
+
}
|
|
39
|
+
}
|