@valkey/valkey-glide 1.3.4 → 1.3.5-rc2
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/LICENSE +201 -0
- package/README.md +36 -14
- package/build-ts/{src/BaseClient.d.ts → BaseClient.d.ts} +62 -118
- package/build-ts/BaseClient.js +6049 -0
- package/build-ts/{src/Transaction.d.ts → Batch.d.ts} +124 -67
- package/build-ts/Batch.js +3457 -0
- package/build-ts/{src/Commands.d.ts → Commands.d.ts} +171 -791
- package/build-ts/Commands.js +2708 -0
- package/build-ts/Errors.js +42 -0
- package/build-ts/{src/GlideClient.d.ts → GlideClient.d.ts} +55 -19
- package/build-ts/GlideClient.js +899 -0
- package/build-ts/{src/GlideClusterClient.d.ts → GlideClusterClient.d.ts} +78 -42
- package/build-ts/GlideClusterClient.js +1251 -0
- package/build-ts/Logger.js +67 -0
- package/build-ts/{src/ProtobufMessage.d.ts → ProtobufMessage.d.ts} +171 -634
- package/build-ts/ProtobufMessage.js +5265 -0
- package/build-ts/index.d.ts +16 -11
- package/build-ts/index.js +53 -216
- package/build-ts/native.d.ts +14 -0
- package/build-ts/native.js +342 -0
- package/build-ts/server-modules/GlideFt.js +628 -0
- package/build-ts/{src/server-modules → server-modules}/GlideFtOptions.d.ts +1 -1
- package/build-ts/server-modules/GlideFtOptions.js +5 -0
- package/build-ts/{src/server-modules → server-modules}/GlideJson.d.ts +65 -65
- package/build-ts/server-modules/GlideJson.js +1572 -0
- package/package.json +141 -64
- /package/build-ts/{src/Errors.d.ts → Errors.d.ts} +0 -0
- /package/build-ts/{src/Logger.d.ts → Logger.d.ts} +0 -0
- /package/build-ts/{src/server-modules → server-modules}/GlideFt.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,67 +1,144 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
2
|
+
"name": "@valkey/valkey-glide",
|
|
3
|
+
"description": "General Language Independent Driver for the Enterprise (GLIDE) for Valkey",
|
|
4
|
+
"main": "build-ts/index.js",
|
|
5
|
+
"module": "build-ts/index.js",
|
|
6
|
+
"types": "build-ts/index.d.ts",
|
|
7
|
+
"version": "1.3.5-rc2",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": {
|
|
11
|
+
"types": "./build-ts/index.d.ts",
|
|
12
|
+
"default": "./build-ts/index.js"
|
|
13
|
+
},
|
|
14
|
+
"require": {
|
|
15
|
+
"types": "./build-ts/index.d.ts",
|
|
16
|
+
"default": "./build-ts/index.js"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"build-ts/**",
|
|
22
|
+
"README.md",
|
|
23
|
+
"LICENSE"
|
|
24
|
+
],
|
|
25
|
+
"type": "commonjs",
|
|
26
|
+
"repository": {
|
|
27
|
+
"type": "git",
|
|
28
|
+
"url": "git+https://github.com/valkey-io/valkey-glide.git"
|
|
29
|
+
},
|
|
30
|
+
"homepage": "https://valkey.io/valkey-glide/node/",
|
|
31
|
+
"author": "Valkey GLIDE Maintainers",
|
|
32
|
+
"license": "Apache-2.0",
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"long": "5",
|
|
35
|
+
"protobufjs-minimal": "6.11.5"
|
|
36
|
+
},
|
|
37
|
+
"keywords": [
|
|
38
|
+
"valkey",
|
|
39
|
+
"redis",
|
|
40
|
+
"client",
|
|
41
|
+
"driver",
|
|
42
|
+
"database",
|
|
43
|
+
"napi",
|
|
44
|
+
"typescript",
|
|
45
|
+
"rust",
|
|
46
|
+
"cross-platform",
|
|
47
|
+
"cluster",
|
|
48
|
+
"standalone",
|
|
49
|
+
"high-availability",
|
|
50
|
+
"performance",
|
|
51
|
+
"open-source",
|
|
52
|
+
"fault-tolerant",
|
|
53
|
+
"distributed",
|
|
54
|
+
"scalable",
|
|
55
|
+
"resilient",
|
|
56
|
+
"valkey-glide"
|
|
57
|
+
],
|
|
58
|
+
"scripts": {
|
|
59
|
+
"clean:build": "rm -rf build-ts dist/*/target rust-client/target rust-client/valkey-glide.*.node src/valkey-glide.*.node build/*.tsbuildinfo",
|
|
60
|
+
"clean": "rm -rf build-ts dist/*/target node_modules rust-client/node_modules */node_modules rust-client/target glide-logs rust-client/valkey-glide.*.node src/valkey-glide.*.node rust-client/index.* src/ProtobufMessage.* *.tsbuildinfo test-report*.html yarn.lock package-lock.json rust-client/package-lock.json rust-client/Cargo.lock",
|
|
61
|
+
"prebuild": "npm run clean:build",
|
|
62
|
+
"build": "BUILD_MODE=dev npm run build:flow",
|
|
63
|
+
"build:release": "BUILD_MODE=release npm run build:flow",
|
|
64
|
+
"build:benchmark": "BUILD_MODE=benchmark npm run build:flow",
|
|
65
|
+
"build:flow": "npm run prereq && npm run build-protobuf && npm run build:rust-client && npm run build:ts",
|
|
66
|
+
"build:rust-client": "cd rust-client && npm run build:${BUILD_MODE:-dev}",
|
|
67
|
+
"build:ts": "tsc",
|
|
68
|
+
"build:ts:release": "tsc --stripInternal",
|
|
69
|
+
"build-protobuf": "mkdir -p build-ts && pbjs -t static-module -w commonjs --no-verify --no-convert -o build-ts/ProtobufMessage.js ../glide-core/src/protobuf/*.proto && pbts -o build-ts/ProtobufMessage.d.ts build-ts/ProtobufMessage.js && replace 'this\\.encode\\(message, writer\\)\\.ldelim' 'this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim' build-ts/ProtobufMessage.js",
|
|
70
|
+
"test": "npm run build-test-utils && jest --verbose --testPathIgnorePatterns='ServerModules'",
|
|
71
|
+
"test:debug": "npm run build-test-utils && jest --runInBand",
|
|
72
|
+
"test:minimum": "npm run build-test-utils && jest --verbose --runInBand --testNamePattern='^(.(?!(GlideJson|GlideFt|pubsub|kill)))*$'",
|
|
73
|
+
"test:modules": "npm run build-test-utils && jest --verbose --runInBand --testNamePattern='(GlideJson|GlideFt)'",
|
|
74
|
+
"build-test-utils": "cd ../utils && npm i && npm run build",
|
|
75
|
+
"repl": "ts-node --project tsconfig.json",
|
|
76
|
+
"lint": "npm run install-linting && eslint -c ../eslint.config.mjs && npm run prettier:check",
|
|
77
|
+
"lint:fix": "npm run install-linting && eslint -c ../eslint.config.mjs --fix && npm run prettier:format",
|
|
78
|
+
"install-linting": "(cd ../ && npm install)",
|
|
79
|
+
"prettier:check": "prettier --check . --ignore-unknown '!**/*.{js,d.ts}'",
|
|
80
|
+
"prettier:format": "prettier --write . --ignore-unknown '!**/*.{js,d.ts}'",
|
|
81
|
+
"staged": "lint-staged",
|
|
82
|
+
"prereq": "npm install",
|
|
83
|
+
"artifacts": "napi artifacts",
|
|
84
|
+
"prepublishOnly": "cd ../.. && napi prepublish --config npm/glide/package.json -t npm --skip-gh-release"
|
|
85
|
+
},
|
|
86
|
+
"devDependencies": {
|
|
87
|
+
"@jest/globals": "29",
|
|
88
|
+
"@types/jest": "29",
|
|
89
|
+
"@types/minimist": "1",
|
|
90
|
+
"@types/semver": "7",
|
|
91
|
+
"@types/uuid": "10",
|
|
92
|
+
"find-free-port": "2",
|
|
93
|
+
"lint-staged": "16",
|
|
94
|
+
"jest": "29",
|
|
95
|
+
"jest-html-reporter": "4",
|
|
96
|
+
"protobufjs-cli": "1",
|
|
97
|
+
"replace": "1",
|
|
98
|
+
"semver": "7",
|
|
99
|
+
"ts-jest": "29",
|
|
100
|
+
"ts-node": "10",
|
|
101
|
+
"typedoc": "0.28",
|
|
102
|
+
"typedoc-plugin-markdown": "4",
|
|
103
|
+
"typescript": "5",
|
|
104
|
+
"uuid": "11"
|
|
105
|
+
},
|
|
106
|
+
"lint-staged": {
|
|
107
|
+
"*.@(js|ts|tsx)": [
|
|
108
|
+
"npx eslint -c ../eslint.config.mjs --fix"
|
|
28
109
|
],
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
"
|
|
52
|
-
|
|
53
|
-
"plugin:@typescript-eslint/recommended"
|
|
54
|
-
],
|
|
55
|
-
"parser": "@typescript-eslint/parser",
|
|
56
|
-
"plugins": [
|
|
57
|
-
"@typescript-eslint"
|
|
58
|
-
],
|
|
59
|
-
"ignorePatterns": [
|
|
60
|
-
"build-ts/*"
|
|
61
|
-
],
|
|
62
|
-
"root": true
|
|
63
|
-
},
|
|
64
|
-
"dependencies": {
|
|
65
|
-
"detect-libc": "^2.0.3"
|
|
110
|
+
"*.@(js|ts|tsx|yml|yaml|md|json)": [
|
|
111
|
+
"prettier --write"
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
"publishConfig": {
|
|
115
|
+
"registry": "https://registry.npmjs.org/",
|
|
116
|
+
"access": "public"
|
|
117
|
+
},
|
|
118
|
+
"engines": {
|
|
119
|
+
"node": ">=16",
|
|
120
|
+
"npm": ">=11"
|
|
121
|
+
},
|
|
122
|
+
"napi": {
|
|
123
|
+
"name": "valkey-glide",
|
|
124
|
+
"triples": {
|
|
125
|
+
"defaults": false,
|
|
126
|
+
"additional": [
|
|
127
|
+
"x86_64-apple-darwin",
|
|
128
|
+
"aarch64-apple-darwin",
|
|
129
|
+
"x86_64-unknown-linux-gnu",
|
|
130
|
+
"aarch64-unknown-linux-gnu",
|
|
131
|
+
"x86_64-unknown-linux-musl",
|
|
132
|
+
"aarch64-unknown-linux-musl"
|
|
133
|
+
]
|
|
66
134
|
}
|
|
67
|
-
}
|
|
135
|
+
},
|
|
136
|
+
"optionalDependencies": {
|
|
137
|
+
"@valkey/valkey-glide-darwin-x64": "1.3.5-rc2",
|
|
138
|
+
"@valkey/valkey-glide-darwin-arm64": "1.3.5-rc2",
|
|
139
|
+
"@valkey/valkey-glide-linux-x64-gnu": "1.3.5-rc2",
|
|
140
|
+
"@valkey/valkey-glide-linux-arm64-gnu": "1.3.5-rc2",
|
|
141
|
+
"@valkey/valkey-glide-linux-x64-musl": "1.3.5-rc2",
|
|
142
|
+
"@valkey/valkey-glide-linux-arm64-musl": "1.3.5-rc2"
|
|
143
|
+
}
|
|
144
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|