@postgresx/noredis-redis 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 ADDED
@@ -0,0 +1,23 @@
1
+ # @postgresx/noredis-redis
2
+
3
+ Thin re-export package for projects using npm alias migrations such as:
4
+
5
+ ```json
6
+ {
7
+ "dependencies": {
8
+ "redis": "npm:@postgresx/noredis-redis"
9
+ }
10
+ }
11
+ ```
12
+
13
+ It exposes `createRedisJsAdapter()` from `@postgresx/noredis/adapters/redis`.
14
+ It is not a Redis protocol client and does not provide a drop-in `createClient()`
15
+ replacement. Create a normal `PgredisClient` first, then wrap it:
16
+
17
+ ```ts
18
+ import { createPgredis } from "@postgresx/noredis";
19
+ import { createRedisJsAdapter } from "redis";
20
+
21
+ const pg = createPgredis({ sql });
22
+ const redis = createRedisJsAdapter({ client: pg });
23
+ ```
@@ -0,0 +1 @@
1
+ export { RedisJsAdapterOptions, RedisJsLikeAdapter, createRedisJsAdapter, createRedisJsAdapter as default } from '@postgresx/noredis/adapters/redis';
package/dist/index.js ADDED
@@ -0,0 +1,9 @@
1
+ // src/index.ts
2
+ import {
3
+ createRedisJsAdapter
4
+ } from "@postgresx/noredis/adapters/redis";
5
+ import { createRedisJsAdapter as createRedisJsAdapter2 } from "@postgresx/noredis/adapters/redis";
6
+ export {
7
+ createRedisJsAdapter,
8
+ createRedisJsAdapter2 as default
9
+ };
package/package.json ADDED
@@ -0,0 +1,39 @@
1
+ {
2
+ "name": "@postgresx/noredis-redis",
3
+ "version": "0.2.2",
4
+ "description": "Thin node-redis-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-redis"
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
+ }