@valkey/valkey-glide 2.0.0-rc5 → 2.0.0

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.
@@ -714,18 +714,18 @@ export declare class BaseBatch<T extends BaseBatch<T>> {
714
714
  * @param end - The end of the range.
715
715
  *
716
716
  * Command Response - always "OK".
717
- * If `start` exceeds the end of the list, or if `start` is greater than `end`, the result will be an empty list (which causes key to be removed).
717
+ * If `start` exceeds the end of the list, or if `start` is greater than `end`, the list is emptied and the key is removed.
718
718
  * If `end` exceeds the actual end of the list, it will be treated like the last element of the list.
719
719
  * If `key` does not exist the command will be ignored.
720
720
  */
721
721
  ltrim(key: GlideString, start: number, end: number): T;
722
722
  /** Removes the first `count` occurrences of elements equal to `element` from the list stored at `key`.
723
- * If `count` is positive : Removes elements equal to `element` moving from head to tail.
724
- * If `count` is negative : Removes elements equal to `element` moving from tail to head.
725
- * If `count` is 0 or `count` is greater than the occurrences of elements equal to `element`: Removes all elements equal to `element`.
726
723
  *
727
724
  * @param key - The key of the list.
728
725
  * @param count - The count of the occurrences of elements equal to `element` to remove.
726
+ * If `count` is positive : Removes elements equal to `element` moving from head to tail.
727
+ * If `count` is negative : Removes elements equal to `element` moving from tail to head.
728
+ * If `count` is 0 or `count` is greater than the occurrences of elements equal to `element`: Removes all elements equal to `element`.
729
729
  * @param element - The element to remove from the list.
730
730
  *
731
731
  * Command Response - the number of the removed elements.
package/build-ts/Batch.js CHANGED
@@ -834,7 +834,7 @@ class BaseBatch {
834
834
  * @param end - The end of the range.
835
835
  *
836
836
  * Command Response - always "OK".
837
- * If `start` exceeds the end of the list, or if `start` is greater than `end`, the result will be an empty list (which causes key to be removed).
837
+ * If `start` exceeds the end of the list, or if `start` is greater than `end`, the list is emptied and the key is removed.
838
838
  * If `end` exceeds the actual end of the list, it will be treated like the last element of the list.
839
839
  * If `key` does not exist the command will be ignored.
840
840
  */
@@ -842,12 +842,12 @@ class BaseBatch {
842
842
  return this.addAndReturn((0, _1.createLTrim)(key, start, end));
843
843
  }
844
844
  /** Removes the first `count` occurrences of elements equal to `element` from the list stored at `key`.
845
- * If `count` is positive : Removes elements equal to `element` moving from head to tail.
846
- * If `count` is negative : Removes elements equal to `element` moving from tail to head.
847
- * If `count` is 0 or `count` is greater than the occurrences of elements equal to `element`: Removes all elements equal to `element`.
848
845
  *
849
846
  * @param key - The key of the list.
850
847
  * @param count - The count of the occurrences of elements equal to `element` to remove.
848
+ * If `count` is positive : Removes elements equal to `element` moving from head to tail.
849
+ * If `count` is negative : Removes elements equal to `element` moving from tail to head.
850
+ * If `count` is 0 or `count` is greater than the occurrences of elements equal to `element`: Removes all elements equal to `element`.
851
851
  * @param element - The element to remove from the list.
852
852
  *
853
853
  * Command Response - the number of the removed elements.
@@ -1953,6 +1953,9 @@ export namespace connection_request {
1953
1953
 
1954
1954
  /** ConnectionRequest connectionTimeout */
1955
1955
  connectionTimeout?: (number|null);
1956
+
1957
+ /** ConnectionRequest lazyConnect */
1958
+ lazyConnect?: (boolean|null);
1956
1959
  }
1957
1960
 
1958
1961
  /** Represents a ConnectionRequest. */
@@ -2012,6 +2015,9 @@ export namespace connection_request {
2012
2015
  /** ConnectionRequest connectionTimeout. */
2013
2016
  public connectionTimeout: number;
2014
2017
 
2018
+ /** ConnectionRequest lazyConnect. */
2019
+ public lazyConnect: boolean;
2020
+
2015
2021
  /** ConnectionRequest periodicChecks. */
2016
2022
  public periodicChecks?: ("periodicChecksManualInterval"|"periodicChecksDisabled");
2017
2023
 
@@ -4115,6 +4115,7 @@ $root.connection_request = (function() {
4115
4115
  * @property {number|null} [inflightRequestsLimit] ConnectionRequest inflightRequestsLimit
4116
4116
  * @property {string|null} [clientAz] ConnectionRequest clientAz
4117
4117
  * @property {number|null} [connectionTimeout] ConnectionRequest connectionTimeout
4118
+ * @property {boolean|null} [lazyConnect] ConnectionRequest lazyConnect
4118
4119
  */
4119
4120
 
4120
4121
  /**
@@ -4261,6 +4262,14 @@ $root.connection_request = (function() {
4261
4262
  */
4262
4263
  ConnectionRequest.prototype.connectionTimeout = 0;
4263
4264
 
4265
+ /**
4266
+ * ConnectionRequest lazyConnect.
4267
+ * @member {boolean} lazyConnect
4268
+ * @memberof connection_request.ConnectionRequest
4269
+ * @instance
4270
+ */
4271
+ ConnectionRequest.prototype.lazyConnect = false;
4272
+
4264
4273
  // OneOf field names bound to virtual getters and setters
4265
4274
  var $oneOfFields;
4266
4275
 
@@ -4332,6 +4341,8 @@ $root.connection_request = (function() {
4332
4341
  writer.uint32(/* id 15, wireType 2 =*/122).string(message.clientAz);
4333
4342
  if (message.connectionTimeout != null && Object.hasOwnProperty.call(message, "connectionTimeout"))
4334
4343
  writer.uint32(/* id 16, wireType 0 =*/128).uint32(message.connectionTimeout);
4344
+ if (message.lazyConnect != null && Object.hasOwnProperty.call(message, "lazyConnect"))
4345
+ writer.uint32(/* id 17, wireType 0 =*/136).bool(message.lazyConnect);
4335
4346
  return writer;
4336
4347
  };
4337
4348
 
@@ -4434,6 +4445,10 @@ $root.connection_request = (function() {
4434
4445
  message.connectionTimeout = reader.uint32();
4435
4446
  break;
4436
4447
  }
4448
+ case 17: {
4449
+ message.lazyConnect = reader.bool();
4450
+ break;
4451
+ }
4437
4452
  default:
4438
4453
  reader.skipType(tag & 7);
4439
4454
  break;
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.0.0-rc5",
7
+ "version": "2.0.0",
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": "2.0.0-rc5",
137
- "@valkey/valkey-glide-darwin-arm64": "2.0.0-rc5",
138
- "@valkey/valkey-glide-linux-x64-gnu": "2.0.0-rc5",
139
- "@valkey/valkey-glide-linux-arm64-gnu": "2.0.0-rc5",
140
- "@valkey/valkey-glide-linux-x64-musl": "2.0.0-rc5",
141
- "@valkey/valkey-glide-linux-arm64-musl": "2.0.0-rc5"
136
+ "@valkey/valkey-glide-darwin-x64": "2.0.0",
137
+ "@valkey/valkey-glide-darwin-arm64": "2.0.0",
138
+ "@valkey/valkey-glide-linux-x64-gnu": "2.0.0",
139
+ "@valkey/valkey-glide-linux-arm64-gnu": "2.0.0",
140
+ "@valkey/valkey-glide-linux-x64-musl": "2.0.0",
141
+ "@valkey/valkey-glide-linux-arm64-musl": "2.0.0"
142
142
  }
143
143
  }