@valkey/valkey-glide-darwin-x64 1.3.4-rc6 → 255.255.255
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/package.json +31 -95
- package/README.md +0 -104
- package/build-ts/index.d.ts +0 -14
- package/build-ts/index.js +0 -34
- package/build-ts/index.js.map +0 -1
- package/build-ts/src/BaseClient.d.ts +0 -5254
- package/build-ts/src/BaseClient.js +0 -6391
- package/build-ts/src/BaseClient.js.map +0 -1
- package/build-ts/src/Commands.d.ts +0 -1034
- package/build-ts/src/Commands.js +0 -2710
- package/build-ts/src/Commands.js.map +0 -1
- package/build-ts/src/Errors.d.ts +0 -21
- package/build-ts/src/Errors.js +0 -43
- package/build-ts/src/Errors.js.map +0 -1
- package/build-ts/src/GlideClient.d.ts +0 -832
- package/build-ts/src/GlideClient.js +0 -940
- package/build-ts/src/GlideClient.js.map +0 -1
- package/build-ts/src/GlideClusterClient.d.ts +0 -1323
- package/build-ts/src/GlideClusterClient.js +0 -1276
- package/build-ts/src/GlideClusterClient.js.map +0 -1
- package/build-ts/src/Logger.d.ts +0 -32
- package/build-ts/src/Logger.js +0 -68
- package/build-ts/src/Logger.js.map +0 -1
- package/build-ts/src/ProtobufMessage.d.ts +0 -2889
- package/build-ts/src/ProtobufMessage.js +0 -8785
- package/build-ts/src/ProtobufMessage.js.map +0 -1
- package/build-ts/src/Transaction.d.ts +0 -2963
- package/build-ts/src/Transaction.js +0 -3388
- package/build-ts/src/Transaction.js.map +0 -1
- package/build-ts/src/server-modules/GlideFt.d.ts +0 -412
- package/build-ts/src/server-modules/GlideFt.js +0 -664
- package/build-ts/src/server-modules/GlideFt.js.map +0 -1
- package/build-ts/src/server-modules/GlideFtOptions.d.ts +0 -244
- package/build-ts/src/server-modules/GlideFtOptions.js +0 -6
- package/build-ts/src/server-modules/GlideFtOptions.js.map +0 -1
- package/build-ts/src/server-modules/GlideJson.d.ts +0 -1335
- package/build-ts/src/server-modules/GlideJson.js +0 -1628
- package/build-ts/src/server-modules/GlideJson.js.map +0 -1
- package/index.ts +0 -15
- package/node_modules/glide-rs/glide-rs.darwin-x64.node +0 -0
- package/node_modules/glide-rs/index.d.ts +0 -71
- package/node_modules/glide-rs/index.js +0 -317
- package/node_modules/glide-rs/package.json +0 -65
- package/npm/glide/index.ts +0 -391
- package/npm/glide/package.json +0 -67
package/package.json
CHANGED
|
@@ -1,102 +1,38 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"url": "git+https://github.com/valkey-io/valkey-glide.git"
|
|
10
|
-
},
|
|
11
|
-
"homepage": "https://github.com/valkey-io/valkey-glide#readme",
|
|
12
|
-
"dependencies": {
|
|
13
|
-
"glide-rs": "file:rust-client",
|
|
14
|
-
"long": "5",
|
|
15
|
-
"protobufjs": "7"
|
|
16
|
-
},
|
|
17
|
-
"bundleDependencies": [
|
|
18
|
-
"glide-rs"
|
|
2
|
+
"name": "@valkey/valkey-glide-darwin-x64",
|
|
3
|
+
"version": "255.255.255",
|
|
4
|
+
"description": "Native bindings for valkey-glide on darwin-x64",
|
|
5
|
+
"bin": "glide-rs.darwin-x64.node",
|
|
6
|
+
"main": "glide-rs.darwin-x64.node",
|
|
7
|
+
"files": [
|
|
8
|
+
"glide-rs.darwin-x64.node"
|
|
19
9
|
],
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"build:release": "npm run build-internal:release && npm run build-protobuf && npm run build-external:release",
|
|
23
|
-
"build:benchmark": "npm run build-internal:benchmark && npm run build-protobuf && npm run build-external",
|
|
24
|
-
"build-internal": "cd rust-client && npm run build",
|
|
25
|
-
"build-internal:release": "cd rust-client && npm run build:release",
|
|
26
|
-
"build-internal:benchmark": "cd rust-client && npm run build:benchmark",
|
|
27
|
-
"build-external": "rm -rf build-ts && tsc && npm run copy-protobuf-type",
|
|
28
|
-
"build-external:release": "rm -rf build-ts && tsc --stripInternal && npm run copy-protobuf-type",
|
|
29
|
-
"build-protobuf": "npm run compile-protobuf-files && npm run fix-protobuf-file",
|
|
30
|
-
"copy-protobuf-type": "cp src/ProtobufMessage.d.ts build-ts/src/ProtobufMessage.d.ts",
|
|
31
|
-
"compile-protobuf-files": "cd src && pbjs -t static-module -o ProtobufMessage.js ../../glide-core/src/protobuf/*.proto && pbts -o ProtobufMessage.d.ts ProtobufMessage.js",
|
|
32
|
-
"clean": "rm -rf build-ts rust-client/target docs glide-logs rust-client/glide-rs.*.node rust-client/index.* src/ProtobufMessage.*",
|
|
33
|
-
"fix-protobuf-file": "replace 'this\\.encode\\(message, writer\\)\\.ldelim' 'this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim' src/ProtobufMessage.js",
|
|
34
|
-
"test": "npm run build-test-utils && jest --verbose --testPathIgnorePatterns='ServerModules'",
|
|
35
|
-
"test-dbg": "npm run build-test-utils && jest --runInBand",
|
|
36
|
-
"test-minimum": "npm run build-test-utils && jest --verbose --runInBand --testNamePattern='^(.(?!(GlideJson|GlideFt|pubsub|kill)))*$'",
|
|
37
|
-
"test-modules": "npm run build-test-utils && jest --verbose --runInBand --testNamePattern='(GlideJson|GlideFt)'",
|
|
38
|
-
"build-test-utils": "cd ../utils && npm i && npm run build",
|
|
39
|
-
"lint:fix": "npm run install-linting && npx eslint -c ../eslint.config.mjs --fix && npm run prettier:format",
|
|
40
|
-
"lint": "npm run install-linting && npx eslint -c ../eslint.config.mjs && npm run prettier:check:ci",
|
|
41
|
-
"install-linting": "cd ../ & npm install",
|
|
42
|
-
"prepack": "npmignore --auto",
|
|
43
|
-
"prereq": "npm install",
|
|
44
|
-
"prettier:check:ci": "npx prettier --check . --ignore-unknown '!**/*.{js,d.ts}'",
|
|
45
|
-
"prettier:format": "npx prettier --write . --ignore-unknown '!**/*.{js,d.ts}'"
|
|
46
|
-
},
|
|
47
|
-
"devDependencies": {
|
|
48
|
-
"@jest/globals": "^29",
|
|
49
|
-
"@types/jest": "^29",
|
|
50
|
-
"@types/minimist": "^1",
|
|
51
|
-
"@types/redis-server": "^1",
|
|
52
|
-
"@types/semver": "^7",
|
|
53
|
-
"@types/uuid": "^10.0.0",
|
|
54
|
-
"find-free-port": "^2.0.0",
|
|
55
|
-
"jest": "29",
|
|
56
|
-
"jest-html-reporter": "4",
|
|
57
|
-
"npmignore": "0.3",
|
|
58
|
-
"protobufjs-cli": "1",
|
|
59
|
-
"replace": "1",
|
|
60
|
-
"semver": "7",
|
|
61
|
-
"ts-jest": "29",
|
|
62
|
-
"ts-node": "10",
|
|
63
|
-
"typedoc": "0.28",
|
|
64
|
-
"typedoc-plugin-markdown": "4",
|
|
65
|
-
"typescript": "5",
|
|
66
|
-
"uuid": "11"
|
|
67
|
-
},
|
|
68
|
-
"author": "Valkey GLIDE Maintainers",
|
|
69
|
-
"license": "Apache-2.0",
|
|
70
|
-
"publishConfig": {
|
|
71
|
-
"@valkey:registry": "https://registry.npmjs.org/",
|
|
72
|
-
"ignore": [
|
|
73
|
-
"src/**",
|
|
74
|
-
"tests/",
|
|
75
|
-
"rust-client/**",
|
|
76
|
-
"!build-ts/**",
|
|
77
|
-
".prettierignore",
|
|
78
|
-
"jest.config.js",
|
|
79
|
-
"hybrid-node-tests/**",
|
|
80
|
-
"docs/",
|
|
81
|
-
"DEVELOPER.md",
|
|
82
|
-
".ort.yml",
|
|
83
|
-
"tsconfig.json",
|
|
84
|
-
"THIRD_PARTY_LICENSES_NODE"
|
|
85
|
-
]
|
|
86
|
-
},
|
|
87
|
-
"engines": {
|
|
88
|
-
"node": ">=16"
|
|
89
|
-
},
|
|
90
|
-
"//": [
|
|
91
|
-
"The fields below have been commented out and are only necessary for publishing the package."
|
|
10
|
+
"os": [
|
|
11
|
+
"darwin"
|
|
92
12
|
],
|
|
93
13
|
"cpu": [
|
|
94
14
|
"x64"
|
|
95
15
|
],
|
|
96
|
-
"
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
16
|
+
"license": "Apache-2.0",
|
|
17
|
+
"keywords": [
|
|
18
|
+
"valkey",
|
|
19
|
+
"redis",
|
|
20
|
+
"client",
|
|
21
|
+
"driver",
|
|
22
|
+
"database",
|
|
23
|
+
"napi",
|
|
24
|
+
"typescript",
|
|
25
|
+
"rust",
|
|
26
|
+
"cross-platform",
|
|
27
|
+
"cluster",
|
|
28
|
+
"standalone",
|
|
29
|
+
"high-availability",
|
|
30
|
+
"performance",
|
|
31
|
+
"open-source",
|
|
32
|
+
"fault-tolerant",
|
|
33
|
+
"distributed",
|
|
34
|
+
"scalable",
|
|
35
|
+
"resilient",
|
|
36
|
+
"valkey-glide"
|
|
37
|
+
]
|
|
102
38
|
}
|
package/README.md
DELETED
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
# Valkey GLIDE
|
|
2
|
-
|
|
3
|
-
Valkey General Language Independent Driver for the Enterprise (GLIDE), is an open-source Valkey client library. Valkey GLIDE is one of the official client libraries for Valkey, and it supports all Valkey commands. Valkey GLIDE supports Valkey 7.2 and above, and Redis open-source 6.2, 7.0 and 7.2. Application programmers use Valkey GLIDE to safely and reliably connect their applications to Valkey- and Redis OSS- compatible services. Valkey GLIDE is designed for reliability, optimized performance, and high-availability, for Valkey and Redis OSS based applications. It is sponsored and supported by AWS, and is pre-configured with best practices learned from over a decade of operating Redis OSS-compatible services used by hundreds of thousands of customers. To help ensure consistency in application development and operations, Valkey GLIDE is implemented using a core driver framework, written in Rust, with language specific extensions. This design ensures consistency in features across languages and reduces overall complexity.
|
|
4
|
-
|
|
5
|
-
## Supported Engine Versions
|
|
6
|
-
|
|
7
|
-
Refer to the [Supported Engine Versions table](https://github.com/valkey-io/valkey-glide/blob/main/README.md#supported-engine-versions) for details.
|
|
8
|
-
|
|
9
|
-
# Getting Started - Node Wrapper
|
|
10
|
-
|
|
11
|
-
## System Requirements
|
|
12
|
-
|
|
13
|
-
The release of Valkey GLIDE was tested on the following platforms:
|
|
14
|
-
|
|
15
|
-
Linux:
|
|
16
|
-
|
|
17
|
-
- Ubuntu 22.04.1 (x86_64 and aarch64)
|
|
18
|
-
- Amazon Linux 2023 (AL2023) (x86_64)
|
|
19
|
-
|
|
20
|
-
macOS:
|
|
21
|
-
|
|
22
|
-
- macOS 14.7 (Apple silicon/aarch_64)
|
|
23
|
-
|
|
24
|
-
Alpine:
|
|
25
|
-
|
|
26
|
-
- node:alpine (default on aarch64 and x86_64)
|
|
27
|
-
|
|
28
|
-
## NodeJS supported version
|
|
29
|
-
|
|
30
|
-
Node.js 16.20 or higher.
|
|
31
|
-
|
|
32
|
-
## Documentation
|
|
33
|
-
|
|
34
|
-
Visit our [wiki](https://github.com/valkey-io/valkey-glide/wiki/NodeJS-wrapper) for examples and further details on TLS, Read strategy, Timeouts and various other configurations.
|
|
35
|
-
|
|
36
|
-
### Building & Testing
|
|
37
|
-
|
|
38
|
-
Development instructions for local building & testing the package are in the [DEVELOPER.md](https://github.com/valkey-io/valkey-glide/blob/main/node/DEVELOPER.md#build-from-source) file.
|
|
39
|
-
|
|
40
|
-
## Basic Examples
|
|
41
|
-
|
|
42
|
-
#### Standalone Mode:
|
|
43
|
-
|
|
44
|
-
```typescript
|
|
45
|
-
import { GlideClient, GlideClusterClient, Logger } from "@valkey/valkey-glide";
|
|
46
|
-
// When Valkey is in standalone mode, add address of the primary node, and any replicas you'd like to be able to read from.
|
|
47
|
-
const addresses = [
|
|
48
|
-
{
|
|
49
|
-
host: "localhost",
|
|
50
|
-
port: 6379,
|
|
51
|
-
},
|
|
52
|
-
];
|
|
53
|
-
// Check `GlideClientConfiguration/GlideClusterClientConfiguration` for additional options.
|
|
54
|
-
const client = await GlideClient.createClient({
|
|
55
|
-
addresses: addresses,
|
|
56
|
-
// if the server uses TLS, you'll need to enable it. Otherwise, the connection attempt will time out silently.
|
|
57
|
-
// useTLS: true,
|
|
58
|
-
clientName: "test_standalone_client",
|
|
59
|
-
});
|
|
60
|
-
// The empty array signifies that there are no additional arguments.
|
|
61
|
-
const pong = await client.customCommand(["PING"]);
|
|
62
|
-
console.log(pong);
|
|
63
|
-
const set_response = await client.set("foo", "bar");
|
|
64
|
-
console.log(`Set response is = ${set_response}`);
|
|
65
|
-
const get_response = await client.get("foo");
|
|
66
|
-
console.log(`Get response is = ${get_response}`);
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
#### Cluster Mode:
|
|
70
|
-
|
|
71
|
-
```typescript
|
|
72
|
-
import { GlideClient, GlideClusterClient, Logger } from "@valkey/valkey-glide";
|
|
73
|
-
// When Valkey is in cluster mode, add address of any nodes, and the client will find all nodes in the cluster.
|
|
74
|
-
const addresses = [
|
|
75
|
-
{
|
|
76
|
-
host: "localhost",
|
|
77
|
-
port: 6379,
|
|
78
|
-
},
|
|
79
|
-
];
|
|
80
|
-
// Check `GlideClientConfiguration/GlideClusterClientConfiguration` for additional options.
|
|
81
|
-
const client = await GlideClusterClient.createClient({
|
|
82
|
-
addresses: addresses,
|
|
83
|
-
// if the cluster nodes use TLS, you'll need to enable it. Otherwise the connection attempt will time out silently.
|
|
84
|
-
// useTLS: true,
|
|
85
|
-
clientName: "test_cluster_client",
|
|
86
|
-
});
|
|
87
|
-
// The empty array signifies that there are no additional arguments.
|
|
88
|
-
const pong = await client.customCommand(["PING"], { route: "randomNode" });
|
|
89
|
-
console.log(pong);
|
|
90
|
-
const set_response = await client.set("foo", "bar");
|
|
91
|
-
console.log(`Set response is = ${set_response}`);
|
|
92
|
-
const get_response = await client.get("foo");
|
|
93
|
-
console.log(`Get response is = ${get_response}`);
|
|
94
|
-
client.close();
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
### Supported platforms
|
|
98
|
-
|
|
99
|
-
Currently, the package is tested on:
|
|
100
|
-
|
|
101
|
-
| Operation systems | C lib | Architecture |
|
|
102
|
-
| ----------------- | -------------------- | ----------------- |
|
|
103
|
-
| `Linux` | `glibc`, `musl libc` | `x86_64`, `arm64` |
|
|
104
|
-
| `macOS` | `Darwin` | `arm64` |
|
package/build-ts/index.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
|
|
3
|
-
*/
|
|
4
|
-
export { ClusterScanCursor, Script } from "glide-rs";
|
|
5
|
-
export * from "./src/BaseClient";
|
|
6
|
-
export * from "./src/Commands";
|
|
7
|
-
export * from "./src/Errors";
|
|
8
|
-
export * from "./src/GlideClient";
|
|
9
|
-
export * from "./src/GlideClusterClient";
|
|
10
|
-
export * from "./src/Logger";
|
|
11
|
-
export * from "./src/server-modules/GlideJson";
|
|
12
|
-
export * from "./src/server-modules/GlideFt";
|
|
13
|
-
export * from "./src/server-modules/GlideFtOptions";
|
|
14
|
-
export * from "./src/Transaction";
|
package/build-ts/index.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
17
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
18
|
-
};
|
|
19
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.Script = exports.ClusterScanCursor = void 0;
|
|
21
|
-
var glide_rs_1 = require("glide-rs");
|
|
22
|
-
Object.defineProperty(exports, "ClusterScanCursor", { enumerable: true, get: function () { return glide_rs_1.ClusterScanCursor; } });
|
|
23
|
-
Object.defineProperty(exports, "Script", { enumerable: true, get: function () { return glide_rs_1.Script; } });
|
|
24
|
-
__exportStar(require("./src/BaseClient"), exports);
|
|
25
|
-
__exportStar(require("./src/Commands"), exports);
|
|
26
|
-
__exportStar(require("./src/Errors"), exports);
|
|
27
|
-
__exportStar(require("./src/GlideClient"), exports);
|
|
28
|
-
__exportStar(require("./src/GlideClusterClient"), exports);
|
|
29
|
-
__exportStar(require("./src/Logger"), exports);
|
|
30
|
-
__exportStar(require("./src/server-modules/GlideJson"), exports);
|
|
31
|
-
__exportStar(require("./src/server-modules/GlideFt"), exports);
|
|
32
|
-
__exportStar(require("./src/server-modules/GlideFtOptions"), exports);
|
|
33
|
-
__exportStar(require("./src/Transaction"), exports);
|
|
34
|
-
//# sourceMappingURL=index.js.map
|
package/build-ts/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;AAEH,qCAAqD;AAA5C,6GAAA,iBAAiB,OAAA;AAAE,kGAAA,MAAM,OAAA;AAClC,mDAAiC;AACjC,iDAA+B;AAC/B,+CAA6B;AAC7B,oDAAkC;AAClC,2DAAyC;AACzC,+CAA6B;AAC7B,iEAA+C;AAC/C,+DAA6C;AAC7C,sEAAoD;AACpD,oDAAkC"}
|