@valkey/valkey-glide-darwin-x64 1.3.4 → 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.
Files changed (45) hide show
  1. package/package.json +31 -95
  2. package/README.md +0 -106
  3. package/build-ts/index.d.ts +0 -14
  4. package/build-ts/index.js +0 -34
  5. package/build-ts/index.js.map +0 -1
  6. package/build-ts/src/BaseClient.d.ts +0 -5254
  7. package/build-ts/src/BaseClient.js +0 -6391
  8. package/build-ts/src/BaseClient.js.map +0 -1
  9. package/build-ts/src/Commands.d.ts +0 -1034
  10. package/build-ts/src/Commands.js +0 -2710
  11. package/build-ts/src/Commands.js.map +0 -1
  12. package/build-ts/src/Errors.d.ts +0 -21
  13. package/build-ts/src/Errors.js +0 -43
  14. package/build-ts/src/Errors.js.map +0 -1
  15. package/build-ts/src/GlideClient.d.ts +0 -832
  16. package/build-ts/src/GlideClient.js +0 -940
  17. package/build-ts/src/GlideClient.js.map +0 -1
  18. package/build-ts/src/GlideClusterClient.d.ts +0 -1323
  19. package/build-ts/src/GlideClusterClient.js +0 -1276
  20. package/build-ts/src/GlideClusterClient.js.map +0 -1
  21. package/build-ts/src/Logger.d.ts +0 -32
  22. package/build-ts/src/Logger.js +0 -68
  23. package/build-ts/src/Logger.js.map +0 -1
  24. package/build-ts/src/ProtobufMessage.d.ts +0 -2889
  25. package/build-ts/src/ProtobufMessage.js +0 -8785
  26. package/build-ts/src/ProtobufMessage.js.map +0 -1
  27. package/build-ts/src/Transaction.d.ts +0 -2963
  28. package/build-ts/src/Transaction.js +0 -3388
  29. package/build-ts/src/Transaction.js.map +0 -1
  30. package/build-ts/src/server-modules/GlideFt.d.ts +0 -412
  31. package/build-ts/src/server-modules/GlideFt.js +0 -664
  32. package/build-ts/src/server-modules/GlideFt.js.map +0 -1
  33. package/build-ts/src/server-modules/GlideFtOptions.d.ts +0 -244
  34. package/build-ts/src/server-modules/GlideFtOptions.js +0 -6
  35. package/build-ts/src/server-modules/GlideFtOptions.js.map +0 -1
  36. package/build-ts/src/server-modules/GlideJson.d.ts +0 -1335
  37. package/build-ts/src/server-modules/GlideJson.js +0 -1628
  38. package/build-ts/src/server-modules/GlideJson.js.map +0 -1
  39. package/index.ts +0 -15
  40. package/node_modules/glide-rs/glide-rs.darwin-x64.node +0 -0
  41. package/node_modules/glide-rs/index.d.ts +0 -71
  42. package/node_modules/glide-rs/index.js +0 -317
  43. package/node_modules/glide-rs/package.json +0 -65
  44. package/npm/glide/index.ts +0 -391
  45. package/npm/glide/package.json +0 -67
package/package.json CHANGED
@@ -1,102 +1,38 @@
1
1
  {
2
- "description": "General Language Independent Driver for the Enterprise (GLIDE) for Valkey",
3
- "main": "build-ts/index.js",
4
- "module": "build-ts/index.js",
5
- "types": "./build-ts/index.d.ts",
6
- "type": "commonjs",
7
- "repository": {
8
- "type": "git",
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
- "scripts": {
21
- "build": "npm run prereq && npm run build-internal && npm run build-protobuf && npm run build-external",
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
- "os": [
97
- "darwin"
98
- ],
99
- "name": "@valkey/valkey-glide-darwin-x64",
100
- "version": "1.3.4",
101
- "//libc": ""
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,106 +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 (Apple silicon/aarch_64 and Intel/x86_64)
23
- Testing are being done on macOS arm64 platforms.
24
- Please note that the package is not tested on macOS intel platforms, only minimal testing is done during CD.
25
-
26
- Alpine:
27
-
28
- - node:alpine (default on aarch64 and x86_64)
29
-
30
- ## NodeJS supported version
31
-
32
- Node.js 16.20 or higher.
33
-
34
- ## Documentation
35
-
36
- 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.
37
-
38
- ### Building & Testing
39
-
40
- 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.
41
-
42
- ## Basic Examples
43
-
44
- #### Standalone Mode:
45
-
46
- ```typescript
47
- import { GlideClient, GlideClusterClient, Logger } from "@valkey/valkey-glide";
48
- // When Valkey is in standalone mode, add address of the primary node, and any replicas you'd like to be able to read from.
49
- const addresses = [
50
- {
51
- host: "localhost",
52
- port: 6379,
53
- },
54
- ];
55
- // Check `GlideClientConfiguration/GlideClusterClientConfiguration` for additional options.
56
- const client = await GlideClient.createClient({
57
- addresses: addresses,
58
- // if the server uses TLS, you'll need to enable it. Otherwise, the connection attempt will time out silently.
59
- // useTLS: true,
60
- clientName: "test_standalone_client",
61
- });
62
- // The empty array signifies that there are no additional arguments.
63
- const pong = await client.customCommand(["PING"]);
64
- console.log(pong);
65
- const set_response = await client.set("foo", "bar");
66
- console.log(`Set response is = ${set_response}`);
67
- const get_response = await client.get("foo");
68
- console.log(`Get response is = ${get_response}`);
69
- ```
70
-
71
- #### Cluster Mode:
72
-
73
- ```typescript
74
- import { GlideClient, GlideClusterClient, Logger } from "@valkey/valkey-glide";
75
- // When Valkey is in cluster mode, add address of any nodes, and the client will find all nodes in the cluster.
76
- const addresses = [
77
- {
78
- host: "localhost",
79
- port: 6379,
80
- },
81
- ];
82
- // Check `GlideClientConfiguration/GlideClusterClientConfiguration` for additional options.
83
- const client = await GlideClusterClient.createClient({
84
- addresses: addresses,
85
- // if the cluster nodes use TLS, you'll need to enable it. Otherwise the connection attempt will time out silently.
86
- // useTLS: true,
87
- clientName: "test_cluster_client",
88
- });
89
- // The empty array signifies that there are no additional arguments.
90
- const pong = await client.customCommand(["PING"], { route: "randomNode" });
91
- console.log(pong);
92
- const set_response = await client.set("foo", "bar");
93
- console.log(`Set response is = ${set_response}`);
94
- const get_response = await client.get("foo");
95
- console.log(`Get response is = ${get_response}`);
96
- client.close();
97
- ```
98
-
99
- ### Supported platforms
100
-
101
- Currently, the package is tested on:
102
-
103
- | Operation systems | C lib | Architecture |
104
- | ----------------- | -------------------- | ----------------- |
105
- | `Linux` | `glibc`, `musl libc` | `x86_64`, `arm64` |
106
- | `macOS` | `Darwin` | `arm64`, `x86_64` |
@@ -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
@@ -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"}