@valkey/valkey-glide 1.3.5-rc6 → 1.3.5-rc7
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/build-ts/BaseClient.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Buffer, Writer } from "protobufjs/minimal";
|
|
1
|
+
import { Buffer, Writer } from "protobufjs/minimal.js";
|
|
2
|
+
import { command_request, connection_request, response } from "../build-ts/ProtobufMessage";
|
|
2
3
|
import { AggregationType, BaseScanOptions, BatchOptions, BitFieldGet, // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
3
4
|
BitFieldSubCommands, // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
4
5
|
BitOffsetOptions, BitwiseOperation, Boundary, ClusterBatchOptions, // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
@@ -9,7 +10,6 @@ import { ConnectionError, RequestError, ValkeyError } from "./Errors";
|
|
|
9
10
|
import { GlideClientConfiguration } from "./GlideClient";
|
|
10
11
|
import { GlideClusterClientConfiguration, Routes } from "./GlideClusterClient";
|
|
11
12
|
import { Script } from "./native";
|
|
12
|
-
import { command_request, connection_request, response } from "../build-ts/ProtobufMessage";
|
|
13
13
|
type PromiseFunction = (value?: any) => void;
|
|
14
14
|
type ErrorFunction = (error: ValkeyError) => void;
|
|
15
15
|
export type ReturnTypeRecord = {
|
package/build-ts/BaseClient.js
CHANGED
|
@@ -42,12 +42,12 @@ exports.convertRecordToGlideRecord = convertRecordToGlideRecord;
|
|
|
42
42
|
* Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
|
|
43
43
|
*/
|
|
44
44
|
const net = __importStar(require("net"));
|
|
45
|
-
const
|
|
45
|
+
const minimal_js_1 = require("protobufjs/minimal.js");
|
|
46
|
+
const ProtobufMessage_1 = require("../build-ts/ProtobufMessage");
|
|
46
47
|
const Commands_1 = require("./Commands");
|
|
47
48
|
const Errors_1 = require("./Errors");
|
|
48
49
|
const Logger_1 = require("./Logger");
|
|
49
50
|
const native_1 = require("./native");
|
|
50
|
-
const ProtobufMessage_1 = require("../build-ts/ProtobufMessage");
|
|
51
51
|
var ProtocolVersion;
|
|
52
52
|
(function (ProtocolVersion) {
|
|
53
53
|
/** Use RESP2 to communicate with the server nodes. */
|
|
@@ -217,7 +217,7 @@ class BaseClient {
|
|
|
217
217
|
? Buffer.concat([this.remainingReadData, data])
|
|
218
218
|
: data;
|
|
219
219
|
let lastPos = 0;
|
|
220
|
-
const reader =
|
|
220
|
+
const reader = minimal_js_1.Reader.create(buf);
|
|
221
221
|
while (reader.pos < reader.len) {
|
|
222
222
|
lastPos = reader.pos;
|
|
223
223
|
let message = undefined;
|
|
@@ -379,7 +379,7 @@ class BaseClient {
|
|
|
379
379
|
constructor(socket, options) {
|
|
380
380
|
this.promiseCallbackFunctions = [];
|
|
381
381
|
this.availableCallbackSlots = [];
|
|
382
|
-
this.requestWriter = new
|
|
382
|
+
this.requestWriter = new minimal_js_1.BufferWriter();
|
|
383
383
|
this.writeInProgress = false;
|
|
384
384
|
this.isClosed = false;
|
|
385
385
|
this.defaultDecoder = Decoder.String;
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.GlideClusterClient = exports.GlideClusterClientConfiguration = void 0;
|
|
7
|
+
const ProtobufMessage_1 = require("../build-ts/ProtobufMessage");
|
|
7
8
|
const BaseClient_1 = require("./BaseClient");
|
|
8
9
|
const Commands_1 = require("./Commands");
|
|
9
10
|
const native_1 = require("./native");
|
|
10
|
-
const ProtobufMessage_1 = require("../build-ts/ProtobufMessage");
|
|
11
11
|
/* eslint-disable-next-line @typescript-eslint/no-namespace */
|
|
12
12
|
var GlideClusterClientConfiguration;
|
|
13
13
|
(function (GlideClusterClientConfiguration) {
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"main": "build-ts/index.js",
|
|
5
5
|
"module": "build-ts/index.js",
|
|
6
6
|
"types": "build-ts/index.d.ts",
|
|
7
|
-
"version": "1.3.5-
|
|
7
|
+
"version": "1.3.5-rc7",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
10
|
"import": {
|
|
@@ -133,11 +133,11 @@
|
|
|
133
133
|
}
|
|
134
134
|
},
|
|
135
135
|
"optionalDependencies": {
|
|
136
|
-
"@valkey/valkey-glide-darwin-x64": "1.3.5-
|
|
137
|
-
"@valkey/valkey-glide-darwin-arm64": "1.3.5-
|
|
138
|
-
"@valkey/valkey-glide-linux-x64-gnu": "1.3.5-
|
|
139
|
-
"@valkey/valkey-glide-linux-arm64-gnu": "1.3.5-
|
|
140
|
-
"@valkey/valkey-glide-linux-x64-musl": "1.3.5-
|
|
141
|
-
"@valkey/valkey-glide-linux-arm64-musl": "1.3.5-
|
|
136
|
+
"@valkey/valkey-glide-darwin-x64": "1.3.5-rc7",
|
|
137
|
+
"@valkey/valkey-glide-darwin-arm64": "1.3.5-rc7",
|
|
138
|
+
"@valkey/valkey-glide-linux-x64-gnu": "1.3.5-rc7",
|
|
139
|
+
"@valkey/valkey-glide-linux-arm64-gnu": "1.3.5-rc7",
|
|
140
|
+
"@valkey/valkey-glide-linux-x64-musl": "1.3.5-rc7",
|
|
141
|
+
"@valkey/valkey-glide-linux-arm64-musl": "1.3.5-rc7"
|
|
142
142
|
}
|
|
143
143
|
}
|