Skip to content

Commit cf79a80

Browse files
committed
WIP
1 parent 05f9f0e commit cf79a80

22 files changed

+2389
-7896
lines changed

docs/RESP.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
2828
## Map keys and Set members
2929

30-
When decoding Map to `Map | object` or Set to `Set`, keys/members (respectively) of type "Simple String" or "Blob String" will be decoded as `string`s (ignoring flags) to allow lookup by type. If you need them as `Buffer`s, make sure to decode `Map`s/`Set`s as `Array`s.
30+
When decoding Map to `Map | object` or Set to `Set`, keys/members (respectively) of type "Simple String" or "Blob String" will be decoded as `string`s (ignoring type mapping) to allow lookup by type. If you need them as `Buffer`s, make sure to decode `Map`s/`Set`s as `Array`s.
3131

3232
## Not Implemented
3333

docs/v5.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ await client.connect();
1313

1414
client.hGetAll('key'); // Record<string, string>
1515

16-
client.withFlags({
16+
client.withTypeMapping({
1717
[TYPES.MAP]: Map
1818
}).hGetAll('key'); // Map<string, string>
1919

20-
client.withFlags({
20+
client.withTypeMapping({
2121
[TYPES.MAP]: Map,
2222
[TYPES.BLOB_STRING]: Buffer
2323
}).hGetAll('key'); // Map<string, Buffer>

package-lock.json

+1,393-5,639
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+14-8
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,22 @@
66
],
77
"scripts": {
88
"test": "npm run test -ws --if-present",
9-
"build:client": "npm run build -w ./packages/client",
10-
"build:test-utils": "npm run build -w ./packages/test-utils",
11-
"build:modules": "npm run build -w ./packages/bloom -w ./packages/graph -w ./packages/json -w ./packages/search -w ./packages/time-series",
12-
"build:redis": "npm run build -w ./packages/redis",
13-
"build": "npm run build:client && npm run build:test-utils && npm run build:modules && npm run build:redis",
14-
"documentation": "npm run documentation -ws --if-present",
9+
"build": "tsc --build",
10+
"documentation": "typedoc",
1511
"gh-pages": "gh-pages -d ./documentation -e ./documentation -u 'documentation-bot <documentation@bot>'"
1612
},
1713
"devDependencies": {
18-
"@tsconfig/node16": "^1.0.3",
19-
"gh-pages": "^5.0.0"
14+
"@istanbuljs/nyc-config-typescript": "^1.0.2",
15+
"@tsconfig/node16": "^1.0.4",
16+
"@types/mocha": "^10.0.1",
17+
"@typescript-eslint/eslint-plugin": "^5.59.7",
18+
"@typescript-eslint/parser": "^5.59.7",
19+
"gh-pages": "^5.0.0",
20+
"mocha": "^10.2.0",
21+
"nyc": "^15.1.0",
22+
"source-map-support": "^0.5.21",
23+
"ts-node": "^10.9.1",
24+
"typedoc": "^0.24.7",
25+
"typescript": "^5.0.4"
2026
}
2127
}

packages/bloom/package.json

+3-13
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,13 @@
88
"dist/"
99
],
1010
"scripts": {
11-
"test": "nyc -r text-summary -r lcov mocha -r source-map-support/register -r ts-node/register './lib/**/*.spec.ts'",
12-
"build": "tsc",
13-
"documentation": "typedoc"
11+
"test": "nyc -r text-summary -r lcov mocha -r source-map-support/register -r ts-node/register './lib/**/*.spec.ts'"
1412
},
1513
"peerDependencies": {
16-
"@redis/client": "^1.0.0"
14+
"@redis/client": "*"
1715
},
1816
"devDependencies": {
19-
"@istanbuljs/nyc-config-typescript": "^1.0.2",
20-
"@redis/test-utils": "*",
21-
"@types/node": "^18.16.1",
22-
"nyc": "^15.1.0",
23-
"release-it": "^15.10.1",
24-
"source-map-support": "^0.5.21",
25-
"ts-node": "^10.9.1",
26-
"typedoc": "^0.24.6",
27-
"typescript": "^5.0.4"
17+
"@redis/test-utils": "*"
2818
},
2919
"repository": {
3020
"type": "git",

packages/client/.eslintrc.json

-15
This file was deleted.

0 commit comments

Comments
 (0)