@valkey/valkey-glide 2.2.7 → 2.3.0-rc6
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/README.md +1 -2
- package/build-ts/BaseClient.d.ts +5 -5
- package/build-ts/BaseClient.js +9 -6
- package/build-ts/Batch.d.ts +5 -5
- package/build-ts/Batch.js +5 -5
- package/build-ts/Commands.js +6 -2
- package/build-ts/GlideClient.d.ts +22 -4
- package/build-ts/GlideClient.js +8 -4
- package/build-ts/GlideClusterClient.d.ts +5 -5
- package/build-ts/GlideClusterClient.js +5 -5
- package/build-ts/OpenTelemetry.d.ts +104 -16
- package/build-ts/OpenTelemetry.js +172 -20
- package/build-ts/ProtobufMessage.d.ts +131 -1
- package/build-ts/ProtobufMessage.js +317 -2
- package/build-ts/native.d.ts +5 -0
- package/build-ts/native.js +2 -1
- package/package.json +8 -8
|
@@ -887,6 +887,13 @@ $root.command_request = (function() {
|
|
|
887
887
|
* @property {number} Subscribe=911 Subscribe value
|
|
888
888
|
* @property {number} SUnsubscribe=912 SUnsubscribe value
|
|
889
889
|
* @property {number} Unsubscribe=913 Unsubscribe value
|
|
890
|
+
* @property {number} SubscribeBlocking=914 SubscribeBlocking value
|
|
891
|
+
* @property {number} UnsubscribeBlocking=915 UnsubscribeBlocking value
|
|
892
|
+
* @property {number} PSubscribeBlocking=916 PSubscribeBlocking value
|
|
893
|
+
* @property {number} PUnsubscribeBlocking=917 PUnsubscribeBlocking value
|
|
894
|
+
* @property {number} SSubscribeBlocking=918 SSubscribeBlocking value
|
|
895
|
+
* @property {number} SUnsubscribeBlocking=919 SUnsubscribeBlocking value
|
|
896
|
+
* @property {number} GetSubscriptions=920 GetSubscriptions value
|
|
890
897
|
* @property {number} Eval=1001 Eval value
|
|
891
898
|
* @property {number} EvalReadOnly=1002 EvalReadOnly value
|
|
892
899
|
* @property {number} EvalSha=1003 EvalSha value
|
|
@@ -916,7 +923,7 @@ $root.command_request = (function() {
|
|
|
916
923
|
* @property {number} AclLoad=1107 AclLoad value
|
|
917
924
|
* @property {number} AclLog=1108 AclLog value
|
|
918
925
|
* @property {number} AclSave=1109 AclSave value
|
|
919
|
-
* @property {number}
|
|
926
|
+
* @property {number} AclSetUser=1110 AclSetUser value
|
|
920
927
|
* @property {number} AclUsers=1111 AclUsers value
|
|
921
928
|
* @property {number} AclWhoami=1112 AclWhoami value
|
|
922
929
|
* @property {number} BgRewriteAof=1113 BgRewriteAof value
|
|
@@ -1278,6 +1285,13 @@ $root.command_request = (function() {
|
|
|
1278
1285
|
values[valuesById[911] = "Subscribe"] = 911;
|
|
1279
1286
|
values[valuesById[912] = "SUnsubscribe"] = 912;
|
|
1280
1287
|
values[valuesById[913] = "Unsubscribe"] = 913;
|
|
1288
|
+
values[valuesById[914] = "SubscribeBlocking"] = 914;
|
|
1289
|
+
values[valuesById[915] = "UnsubscribeBlocking"] = 915;
|
|
1290
|
+
values[valuesById[916] = "PSubscribeBlocking"] = 916;
|
|
1291
|
+
values[valuesById[917] = "PUnsubscribeBlocking"] = 917;
|
|
1292
|
+
values[valuesById[918] = "SSubscribeBlocking"] = 918;
|
|
1293
|
+
values[valuesById[919] = "SUnsubscribeBlocking"] = 919;
|
|
1294
|
+
values[valuesById[920] = "GetSubscriptions"] = 920;
|
|
1281
1295
|
values[valuesById[1001] = "Eval"] = 1001;
|
|
1282
1296
|
values[valuesById[1002] = "EvalReadOnly"] = 1002;
|
|
1283
1297
|
values[valuesById[1003] = "EvalSha"] = 1003;
|
|
@@ -1307,7 +1321,7 @@ $root.command_request = (function() {
|
|
|
1307
1321
|
values[valuesById[1107] = "AclLoad"] = 1107;
|
|
1308
1322
|
values[valuesById[1108] = "AclLog"] = 1108;
|
|
1309
1323
|
values[valuesById[1109] = "AclSave"] = 1109;
|
|
1310
|
-
values[valuesById[1110] = "
|
|
1324
|
+
values[valuesById[1110] = "AclSetUser"] = 1110;
|
|
1311
1325
|
values[valuesById[1111] = "AclUsers"] = 1111;
|
|
1312
1326
|
values[valuesById[1112] = "AclWhoami"] = 1112;
|
|
1313
1327
|
values[valuesById[1113] = "BgRewriteAof"] = 1113;
|
|
@@ -4125,6 +4139,214 @@ $root.connection_request = (function() {
|
|
|
4125
4139
|
return values;
|
|
4126
4140
|
})();
|
|
4127
4141
|
|
|
4142
|
+
/**
|
|
4143
|
+
* CompressionBackend enum.
|
|
4144
|
+
* @name connection_request.CompressionBackend
|
|
4145
|
+
* @enum {number}
|
|
4146
|
+
* @property {number} ZSTD=0 ZSTD value
|
|
4147
|
+
* @property {number} LZ4=1 LZ4 value
|
|
4148
|
+
*/
|
|
4149
|
+
connection_request.CompressionBackend = (function() {
|
|
4150
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
4151
|
+
values[valuesById[0] = "ZSTD"] = 0;
|
|
4152
|
+
values[valuesById[1] = "LZ4"] = 1;
|
|
4153
|
+
return values;
|
|
4154
|
+
})();
|
|
4155
|
+
|
|
4156
|
+
connection_request.CompressionConfig = (function() {
|
|
4157
|
+
|
|
4158
|
+
/**
|
|
4159
|
+
* Properties of a CompressionConfig.
|
|
4160
|
+
* @memberof connection_request
|
|
4161
|
+
* @interface ICompressionConfig
|
|
4162
|
+
* @property {boolean|null} [enabled] CompressionConfig enabled
|
|
4163
|
+
* @property {connection_request.CompressionBackend|null} [backend] CompressionConfig backend
|
|
4164
|
+
* @property {number|null} [compressionLevel] CompressionConfig compressionLevel
|
|
4165
|
+
* @property {number|null} [minCompressionSize] CompressionConfig minCompressionSize
|
|
4166
|
+
*/
|
|
4167
|
+
|
|
4168
|
+
/**
|
|
4169
|
+
* Constructs a new CompressionConfig.
|
|
4170
|
+
* @memberof connection_request
|
|
4171
|
+
* @classdesc Represents a CompressionConfig.
|
|
4172
|
+
* @implements ICompressionConfig
|
|
4173
|
+
* @constructor
|
|
4174
|
+
* @param {connection_request.ICompressionConfig=} [properties] Properties to set
|
|
4175
|
+
*/
|
|
4176
|
+
function CompressionConfig(properties) {
|
|
4177
|
+
if (properties)
|
|
4178
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
4179
|
+
if (properties[keys[i]] != null)
|
|
4180
|
+
this[keys[i]] = properties[keys[i]];
|
|
4181
|
+
}
|
|
4182
|
+
|
|
4183
|
+
/**
|
|
4184
|
+
* CompressionConfig enabled.
|
|
4185
|
+
* @member {boolean} enabled
|
|
4186
|
+
* @memberof connection_request.CompressionConfig
|
|
4187
|
+
* @instance
|
|
4188
|
+
*/
|
|
4189
|
+
CompressionConfig.prototype.enabled = false;
|
|
4190
|
+
|
|
4191
|
+
/**
|
|
4192
|
+
* CompressionConfig backend.
|
|
4193
|
+
* @member {connection_request.CompressionBackend} backend
|
|
4194
|
+
* @memberof connection_request.CompressionConfig
|
|
4195
|
+
* @instance
|
|
4196
|
+
*/
|
|
4197
|
+
CompressionConfig.prototype.backend = 0;
|
|
4198
|
+
|
|
4199
|
+
/**
|
|
4200
|
+
* CompressionConfig compressionLevel.
|
|
4201
|
+
* @member {number|null|undefined} compressionLevel
|
|
4202
|
+
* @memberof connection_request.CompressionConfig
|
|
4203
|
+
* @instance
|
|
4204
|
+
*/
|
|
4205
|
+
CompressionConfig.prototype.compressionLevel = null;
|
|
4206
|
+
|
|
4207
|
+
/**
|
|
4208
|
+
* CompressionConfig minCompressionSize.
|
|
4209
|
+
* @member {number} minCompressionSize
|
|
4210
|
+
* @memberof connection_request.CompressionConfig
|
|
4211
|
+
* @instance
|
|
4212
|
+
*/
|
|
4213
|
+
CompressionConfig.prototype.minCompressionSize = 0;
|
|
4214
|
+
|
|
4215
|
+
// OneOf field names bound to virtual getters and setters
|
|
4216
|
+
var $oneOfFields;
|
|
4217
|
+
|
|
4218
|
+
// Virtual OneOf for proto3 optional field
|
|
4219
|
+
Object.defineProperty(CompressionConfig.prototype, "_compressionLevel", {
|
|
4220
|
+
get: $util.oneOfGetter($oneOfFields = ["compressionLevel"]),
|
|
4221
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
4222
|
+
});
|
|
4223
|
+
|
|
4224
|
+
/**
|
|
4225
|
+
* Creates a new CompressionConfig instance using the specified properties.
|
|
4226
|
+
* @function create
|
|
4227
|
+
* @memberof connection_request.CompressionConfig
|
|
4228
|
+
* @static
|
|
4229
|
+
* @param {connection_request.ICompressionConfig=} [properties] Properties to set
|
|
4230
|
+
* @returns {connection_request.CompressionConfig} CompressionConfig instance
|
|
4231
|
+
*/
|
|
4232
|
+
CompressionConfig.create = function create(properties) {
|
|
4233
|
+
return new CompressionConfig(properties);
|
|
4234
|
+
};
|
|
4235
|
+
|
|
4236
|
+
/**
|
|
4237
|
+
* Encodes the specified CompressionConfig message. Does not implicitly {@link connection_request.CompressionConfig.verify|verify} messages.
|
|
4238
|
+
* @function encode
|
|
4239
|
+
* @memberof connection_request.CompressionConfig
|
|
4240
|
+
* @static
|
|
4241
|
+
* @param {connection_request.ICompressionConfig} message CompressionConfig message or plain object to encode
|
|
4242
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
4243
|
+
* @returns {$protobuf.Writer} Writer
|
|
4244
|
+
*/
|
|
4245
|
+
CompressionConfig.encode = function encode(message, writer) {
|
|
4246
|
+
if (!writer)
|
|
4247
|
+
writer = $Writer.create();
|
|
4248
|
+
if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled"))
|
|
4249
|
+
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled);
|
|
4250
|
+
if (message.backend != null && Object.hasOwnProperty.call(message, "backend"))
|
|
4251
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.backend);
|
|
4252
|
+
if (message.compressionLevel != null && Object.hasOwnProperty.call(message, "compressionLevel"))
|
|
4253
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.compressionLevel);
|
|
4254
|
+
if (message.minCompressionSize != null && Object.hasOwnProperty.call(message, "minCompressionSize"))
|
|
4255
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.minCompressionSize);
|
|
4256
|
+
return writer;
|
|
4257
|
+
};
|
|
4258
|
+
|
|
4259
|
+
/**
|
|
4260
|
+
* Encodes the specified CompressionConfig message, length delimited. Does not implicitly {@link connection_request.CompressionConfig.verify|verify} messages.
|
|
4261
|
+
* @function encodeDelimited
|
|
4262
|
+
* @memberof connection_request.CompressionConfig
|
|
4263
|
+
* @static
|
|
4264
|
+
* @param {connection_request.ICompressionConfig} message CompressionConfig message or plain object to encode
|
|
4265
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
4266
|
+
* @returns {$protobuf.Writer} Writer
|
|
4267
|
+
*/
|
|
4268
|
+
CompressionConfig.encodeDelimited = function encodeDelimited(message, writer) {
|
|
4269
|
+
return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
|
|
4270
|
+
};
|
|
4271
|
+
|
|
4272
|
+
/**
|
|
4273
|
+
* Decodes a CompressionConfig message from the specified reader or buffer.
|
|
4274
|
+
* @function decode
|
|
4275
|
+
* @memberof connection_request.CompressionConfig
|
|
4276
|
+
* @static
|
|
4277
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
4278
|
+
* @param {number} [length] Message length if known beforehand
|
|
4279
|
+
* @returns {connection_request.CompressionConfig} CompressionConfig
|
|
4280
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4281
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4282
|
+
*/
|
|
4283
|
+
CompressionConfig.decode = function decode(reader, length, error) {
|
|
4284
|
+
if (!(reader instanceof $Reader))
|
|
4285
|
+
reader = $Reader.create(reader);
|
|
4286
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.connection_request.CompressionConfig();
|
|
4287
|
+
while (reader.pos < end) {
|
|
4288
|
+
var tag = reader.uint32();
|
|
4289
|
+
if (tag === error)
|
|
4290
|
+
break;
|
|
4291
|
+
switch (tag >>> 3) {
|
|
4292
|
+
case 1: {
|
|
4293
|
+
message.enabled = reader.bool();
|
|
4294
|
+
break;
|
|
4295
|
+
}
|
|
4296
|
+
case 2: {
|
|
4297
|
+
message.backend = reader.int32();
|
|
4298
|
+
break;
|
|
4299
|
+
}
|
|
4300
|
+
case 3: {
|
|
4301
|
+
message.compressionLevel = reader.int32();
|
|
4302
|
+
break;
|
|
4303
|
+
}
|
|
4304
|
+
case 4: {
|
|
4305
|
+
message.minCompressionSize = reader.uint32();
|
|
4306
|
+
break;
|
|
4307
|
+
}
|
|
4308
|
+
default:
|
|
4309
|
+
reader.skipType(tag & 7);
|
|
4310
|
+
break;
|
|
4311
|
+
}
|
|
4312
|
+
}
|
|
4313
|
+
return message;
|
|
4314
|
+
};
|
|
4315
|
+
|
|
4316
|
+
/**
|
|
4317
|
+
* Decodes a CompressionConfig message from the specified reader or buffer, length delimited.
|
|
4318
|
+
* @function decodeDelimited
|
|
4319
|
+
* @memberof connection_request.CompressionConfig
|
|
4320
|
+
* @static
|
|
4321
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
4322
|
+
* @returns {connection_request.CompressionConfig} CompressionConfig
|
|
4323
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4324
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4325
|
+
*/
|
|
4326
|
+
CompressionConfig.decodeDelimited = function decodeDelimited(reader) {
|
|
4327
|
+
if (!(reader instanceof $Reader))
|
|
4328
|
+
reader = new $Reader(reader);
|
|
4329
|
+
return this.decode(reader, reader.uint32());
|
|
4330
|
+
};
|
|
4331
|
+
|
|
4332
|
+
/**
|
|
4333
|
+
* Gets the default type url for CompressionConfig
|
|
4334
|
+
* @function getTypeUrl
|
|
4335
|
+
* @memberof connection_request.CompressionConfig
|
|
4336
|
+
* @static
|
|
4337
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
4338
|
+
* @returns {string} The default type url
|
|
4339
|
+
*/
|
|
4340
|
+
CompressionConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
4341
|
+
if (typeUrlPrefix === undefined) {
|
|
4342
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
4343
|
+
}
|
|
4344
|
+
return typeUrlPrefix + "/connection_request.CompressionConfig";
|
|
4345
|
+
};
|
|
4346
|
+
|
|
4347
|
+
return CompressionConfig;
|
|
4348
|
+
})();
|
|
4349
|
+
|
|
4128
4350
|
connection_request.PubSubChannelsOrPatterns = (function() {
|
|
4129
4351
|
|
|
4130
4352
|
/**
|
|
@@ -4458,7 +4680,12 @@ $root.connection_request = (function() {
|
|
|
4458
4680
|
* @property {boolean|null} [refreshTopologyFromInitialNodes] ConnectionRequest refreshTopologyFromInitialNodes
|
|
4459
4681
|
* @property {string|null} [libName] ConnectionRequest libName
|
|
4460
4682
|
* @property {Array.<Uint8Array>|null} [rootCerts] ConnectionRequest rootCerts
|
|
4683
|
+
* @property {connection_request.ICompressionConfig|null} [compressionConfig] ConnectionRequest compressionConfig
|
|
4684
|
+
* @property {Uint8Array|null} [clientCert] ConnectionRequest clientCert
|
|
4685
|
+
* @property {Uint8Array|null} [clientKey] ConnectionRequest clientKey
|
|
4461
4686
|
* @property {boolean|null} [tcpNodelay] ConnectionRequest tcpNodelay
|
|
4687
|
+
* @property {number|null} [pubsubReconciliationIntervalMs] ConnectionRequest pubsubReconciliationIntervalMs
|
|
4688
|
+
* @property {boolean|null} [readOnly] ConnectionRequest readOnly
|
|
4462
4689
|
*/
|
|
4463
4690
|
|
|
4464
4691
|
/**
|
|
@@ -4638,6 +4865,30 @@ $root.connection_request = (function() {
|
|
|
4638
4865
|
*/
|
|
4639
4866
|
ConnectionRequest.prototype.rootCerts = $util.emptyArray;
|
|
4640
4867
|
|
|
4868
|
+
/**
|
|
4869
|
+
* ConnectionRequest compressionConfig.
|
|
4870
|
+
* @member {connection_request.ICompressionConfig|null|undefined} compressionConfig
|
|
4871
|
+
* @memberof connection_request.ConnectionRequest
|
|
4872
|
+
* @instance
|
|
4873
|
+
*/
|
|
4874
|
+
ConnectionRequest.prototype.compressionConfig = null;
|
|
4875
|
+
|
|
4876
|
+
/**
|
|
4877
|
+
* ConnectionRequest clientCert.
|
|
4878
|
+
* @member {Uint8Array} clientCert
|
|
4879
|
+
* @memberof connection_request.ConnectionRequest
|
|
4880
|
+
* @instance
|
|
4881
|
+
*/
|
|
4882
|
+
ConnectionRequest.prototype.clientCert = $util.newBuffer([]);
|
|
4883
|
+
|
|
4884
|
+
/**
|
|
4885
|
+
* ConnectionRequest clientKey.
|
|
4886
|
+
* @member {Uint8Array} clientKey
|
|
4887
|
+
* @memberof connection_request.ConnectionRequest
|
|
4888
|
+
* @instance
|
|
4889
|
+
*/
|
|
4890
|
+
ConnectionRequest.prototype.clientKey = $util.newBuffer([]);
|
|
4891
|
+
|
|
4641
4892
|
/**
|
|
4642
4893
|
* ConnectionRequest tcpNodelay.
|
|
4643
4894
|
* @member {boolean|null|undefined} tcpNodelay
|
|
@@ -4646,6 +4897,22 @@ $root.connection_request = (function() {
|
|
|
4646
4897
|
*/
|
|
4647
4898
|
ConnectionRequest.prototype.tcpNodelay = null;
|
|
4648
4899
|
|
|
4900
|
+
/**
|
|
4901
|
+
* ConnectionRequest pubsubReconciliationIntervalMs.
|
|
4902
|
+
* @member {number|null|undefined} pubsubReconciliationIntervalMs
|
|
4903
|
+
* @memberof connection_request.ConnectionRequest
|
|
4904
|
+
* @instance
|
|
4905
|
+
*/
|
|
4906
|
+
ConnectionRequest.prototype.pubsubReconciliationIntervalMs = null;
|
|
4907
|
+
|
|
4908
|
+
/**
|
|
4909
|
+
* ConnectionRequest readOnly.
|
|
4910
|
+
* @member {boolean|null|undefined} readOnly
|
|
4911
|
+
* @memberof connection_request.ConnectionRequest
|
|
4912
|
+
* @instance
|
|
4913
|
+
*/
|
|
4914
|
+
ConnectionRequest.prototype.readOnly = null;
|
|
4915
|
+
|
|
4649
4916
|
// OneOf field names bound to virtual getters and setters
|
|
4650
4917
|
var $oneOfFields;
|
|
4651
4918
|
|
|
@@ -4660,12 +4927,30 @@ $root.connection_request = (function() {
|
|
|
4660
4927
|
set: $util.oneOfSetter($oneOfFields)
|
|
4661
4928
|
});
|
|
4662
4929
|
|
|
4930
|
+
// Virtual OneOf for proto3 optional field
|
|
4931
|
+
Object.defineProperty(ConnectionRequest.prototype, "_compressionConfig", {
|
|
4932
|
+
get: $util.oneOfGetter($oneOfFields = ["compressionConfig"]),
|
|
4933
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
4934
|
+
});
|
|
4935
|
+
|
|
4663
4936
|
// Virtual OneOf for proto3 optional field
|
|
4664
4937
|
Object.defineProperty(ConnectionRequest.prototype, "_tcpNodelay", {
|
|
4665
4938
|
get: $util.oneOfGetter($oneOfFields = ["tcpNodelay"]),
|
|
4666
4939
|
set: $util.oneOfSetter($oneOfFields)
|
|
4667
4940
|
});
|
|
4668
4941
|
|
|
4942
|
+
// Virtual OneOf for proto3 optional field
|
|
4943
|
+
Object.defineProperty(ConnectionRequest.prototype, "_pubsubReconciliationIntervalMs", {
|
|
4944
|
+
get: $util.oneOfGetter($oneOfFields = ["pubsubReconciliationIntervalMs"]),
|
|
4945
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
4946
|
+
});
|
|
4947
|
+
|
|
4948
|
+
// Virtual OneOf for proto3 optional field
|
|
4949
|
+
Object.defineProperty(ConnectionRequest.prototype, "_readOnly", {
|
|
4950
|
+
get: $util.oneOfGetter($oneOfFields = ["readOnly"]),
|
|
4951
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
4952
|
+
});
|
|
4953
|
+
|
|
4669
4954
|
/**
|
|
4670
4955
|
* Creates a new ConnectionRequest instance using the specified properties.
|
|
4671
4956
|
* @function create
|
|
@@ -4732,8 +5017,18 @@ $root.connection_request = (function() {
|
|
|
4732
5017
|
if (message.rootCerts != null && message.rootCerts.length)
|
|
4733
5018
|
for (var i = 0; i < message.rootCerts.length; ++i)
|
|
4734
5019
|
writer.uint32(/* id 20, wireType 2 =*/162).bytes(message.rootCerts[i]);
|
|
5020
|
+
if (message.compressionConfig != null && Object.hasOwnProperty.call(message, "compressionConfig"))
|
|
5021
|
+
$root.connection_request.CompressionConfig.encode(message.compressionConfig, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
|
|
5022
|
+
if (message.clientCert != null && Object.hasOwnProperty.call(message, "clientCert"))
|
|
5023
|
+
writer.uint32(/* id 22, wireType 2 =*/178).bytes(message.clientCert);
|
|
5024
|
+
if (message.clientKey != null && Object.hasOwnProperty.call(message, "clientKey"))
|
|
5025
|
+
writer.uint32(/* id 23, wireType 2 =*/186).bytes(message.clientKey);
|
|
4735
5026
|
if (message.tcpNodelay != null && Object.hasOwnProperty.call(message, "tcpNodelay"))
|
|
4736
5027
|
writer.uint32(/* id 24, wireType 0 =*/192).bool(message.tcpNodelay);
|
|
5028
|
+
if (message.pubsubReconciliationIntervalMs != null && Object.hasOwnProperty.call(message, "pubsubReconciliationIntervalMs"))
|
|
5029
|
+
writer.uint32(/* id 25, wireType 0 =*/200).uint32(message.pubsubReconciliationIntervalMs);
|
|
5030
|
+
if (message.readOnly != null && Object.hasOwnProperty.call(message, "readOnly"))
|
|
5031
|
+
writer.uint32(/* id 26, wireType 0 =*/208).bool(message.readOnly);
|
|
4737
5032
|
return writer;
|
|
4738
5033
|
};
|
|
4739
5034
|
|
|
@@ -4854,10 +5149,30 @@ $root.connection_request = (function() {
|
|
|
4854
5149
|
message.rootCerts.push(reader.bytes());
|
|
4855
5150
|
break;
|
|
4856
5151
|
}
|
|
5152
|
+
case 21: {
|
|
5153
|
+
message.compressionConfig = $root.connection_request.CompressionConfig.decode(reader, reader.uint32());
|
|
5154
|
+
break;
|
|
5155
|
+
}
|
|
5156
|
+
case 22: {
|
|
5157
|
+
message.clientCert = reader.bytes();
|
|
5158
|
+
break;
|
|
5159
|
+
}
|
|
5160
|
+
case 23: {
|
|
5161
|
+
message.clientKey = reader.bytes();
|
|
5162
|
+
break;
|
|
5163
|
+
}
|
|
4857
5164
|
case 24: {
|
|
4858
5165
|
message.tcpNodelay = reader.bool();
|
|
4859
5166
|
break;
|
|
4860
5167
|
}
|
|
5168
|
+
case 25: {
|
|
5169
|
+
message.pubsubReconciliationIntervalMs = reader.uint32();
|
|
5170
|
+
break;
|
|
5171
|
+
}
|
|
5172
|
+
case 26: {
|
|
5173
|
+
message.readOnly = reader.bool();
|
|
5174
|
+
break;
|
|
5175
|
+
}
|
|
4861
5176
|
default:
|
|
4862
5177
|
reader.skipType(tag & 7);
|
|
4863
5178
|
break;
|
package/build-ts/native.d.ts
CHANGED
|
@@ -79,6 +79,11 @@ export declare function valueFromSplitPointer(highBits: number, lowBits: number,
|
|
|
79
79
|
export declare function createLeakedStringVec(message: Array<Uint8Array>): [number, number]
|
|
80
80
|
/** Creates an open telemetry span with the given name and returns a pointer to the span */
|
|
81
81
|
export declare function createLeakedOtelSpan(name: string): [number, number]
|
|
82
|
+
/**
|
|
83
|
+
* Creates an open telemetry span with the given name as a child of a remote span context.
|
|
84
|
+
* Falls back to creating a standalone span if the trace context is invalid.
|
|
85
|
+
*/
|
|
86
|
+
export declare function createOtelSpanWithTraceContext(name: string, traceId: string, spanId: string, traceFlags: number, traceState?: string | undefined | null): [number, number]
|
|
82
87
|
export declare function dropOtelSpan(spanPtr: bigint): void
|
|
83
88
|
export declare function getStatistics(): object
|
|
84
89
|
export declare class AsyncClient {
|
package/build-ts/native.js
CHANGED
|
@@ -310,7 +310,7 @@ if (!nativeBinding) {
|
|
|
310
310
|
throw new Error(`Failed to load native binding`)
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
-
const { Level, MAX_REQUEST_ARGS_LEN, DEFAULT_REQUEST_TIMEOUT_IN_MILLISECONDS, DEFAULT_CONNECTION_TIMEOUT_IN_MILLISECONDS, DEFAULT_INFLIGHT_REQUESTS_LIMIT, AsyncClient, StartSocketConnection, InitOpenTelemetry, log, InitInternalLogger, valueFromSplitPointer, createLeakedStringVec, createLeakedOtelSpan, dropOtelSpan, Script, ClusterScanCursor, getStatistics } = nativeBinding
|
|
313
|
+
const { Level, MAX_REQUEST_ARGS_LEN, DEFAULT_REQUEST_TIMEOUT_IN_MILLISECONDS, DEFAULT_CONNECTION_TIMEOUT_IN_MILLISECONDS, DEFAULT_INFLIGHT_REQUESTS_LIMIT, AsyncClient, StartSocketConnection, InitOpenTelemetry, log, InitInternalLogger, valueFromSplitPointer, createLeakedStringVec, createLeakedOtelSpan, createOtelSpanWithTraceContext, dropOtelSpan, Script, ClusterScanCursor, getStatistics } = nativeBinding
|
|
314
314
|
|
|
315
315
|
module.exports.Level = Level
|
|
316
316
|
module.exports.MAX_REQUEST_ARGS_LEN = MAX_REQUEST_ARGS_LEN
|
|
@@ -325,6 +325,7 @@ module.exports.InitInternalLogger = InitInternalLogger
|
|
|
325
325
|
module.exports.valueFromSplitPointer = valueFromSplitPointer
|
|
326
326
|
module.exports.createLeakedStringVec = createLeakedStringVec
|
|
327
327
|
module.exports.createLeakedOtelSpan = createLeakedOtelSpan
|
|
328
|
+
module.exports.createOtelSpanWithTraceContext = createOtelSpanWithTraceContext
|
|
328
329
|
module.exports.dropOtelSpan = dropOtelSpan
|
|
329
330
|
module.exports.Script = Script
|
|
330
331
|
module.exports.ClusterScanCursor = ClusterScanCursor
|
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": "2.
|
|
7
|
+
"version": "2.3.0-rc6",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
10
|
"import": {
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"typedoc": "0.28",
|
|
104
104
|
"typedoc-plugin-markdown": "4",
|
|
105
105
|
"typescript": "5",
|
|
106
|
-
"uuid": "
|
|
106
|
+
"uuid": "13"
|
|
107
107
|
},
|
|
108
108
|
"lint-staged": {
|
|
109
109
|
"*.@(js|ts|tsx)": [
|
|
@@ -135,11 +135,11 @@
|
|
|
135
135
|
}
|
|
136
136
|
},
|
|
137
137
|
"optionalDependencies": {
|
|
138
|
-
"@valkey/valkey-glide-darwin-x64": "2.
|
|
139
|
-
"@valkey/valkey-glide-darwin-arm64": "2.
|
|
140
|
-
"@valkey/valkey-glide-linux-x64-gnu": "2.
|
|
141
|
-
"@valkey/valkey-glide-linux-arm64-gnu": "2.
|
|
142
|
-
"@valkey/valkey-glide-linux-x64-musl": "2.
|
|
143
|
-
"@valkey/valkey-glide-linux-arm64-musl": "2.
|
|
138
|
+
"@valkey/valkey-glide-darwin-x64": "2.3.0-rc6",
|
|
139
|
+
"@valkey/valkey-glide-darwin-arm64": "2.3.0-rc6",
|
|
140
|
+
"@valkey/valkey-glide-linux-x64-gnu": "2.3.0-rc6",
|
|
141
|
+
"@valkey/valkey-glide-linux-arm64-gnu": "2.3.0-rc6",
|
|
142
|
+
"@valkey/valkey-glide-linux-x64-musl": "2.3.0-rc6",
|
|
143
|
+
"@valkey/valkey-glide-linux-arm64-musl": "2.3.0-rc6"
|
|
144
144
|
}
|
|
145
145
|
}
|