@valkey/valkey-glide 1.3.5-rc9 → 2.0.0-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/README.md +18 -7
- package/build-ts/BaseClient.d.ts +125 -22
- package/build-ts/BaseClient.js +293 -250
- package/build-ts/Batch.d.ts +10 -10
- package/build-ts/Batch.js +234 -234
- package/build-ts/Commands.d.ts +14 -2
- package/build-ts/Commands.js +24 -12
- package/build-ts/Errors.js +1 -0
- package/build-ts/GlideClient.d.ts +7 -38
- package/build-ts/GlideClient.js +56 -55
- package/build-ts/GlideClusterClient.d.ts +12 -4
- package/build-ts/GlideClusterClient.js +60 -54
- package/build-ts/Logger.d.ts +30 -15
- package/build-ts/Logger.js +36 -24
- package/build-ts/OpenTelemetry.d.ts +101 -0
- package/build-ts/OpenTelemetry.js +134 -0
- package/build-ts/ProtobufMessage.d.ts +22 -82
- package/build-ts/ProtobufMessage.js +59 -176
- package/build-ts/index.d.ts +2 -2
- package/build-ts/index.js +2 -25
- package/build-ts/native.d.ts +158 -14
- package/build-ts/native.js +134 -105
- package/build-ts/server-modules/GlideFt.d.ts +1 -4
- package/build-ts/server-modules/GlideFt.js +10 -11
- package/build-ts/server-modules/GlideFtOptions.d.ts +1 -2
- package/build-ts/server-modules/GlideJson.d.ts +3 -5
- package/build-ts/server-modules/GlideJson.js +2 -2
- package/package.json +7 -7
package/build-ts/Batch.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
|
|
3
3
|
*/
|
|
4
|
-
import { ElementAndScore, GlideRecord, GlideString, HashDataType, // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
5
|
-
Score } from "./BaseClient";
|
|
6
4
|
import { AggregationType, BaseScanOptions, BitFieldGet, // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
7
5
|
BitFieldSubCommands, // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
8
6
|
BitOffsetOptions, BitwiseOperation, Boundary, // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
9
|
-
ExpireOptions, FlushMode, FunctionListOptions, // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
7
|
+
ElementAndScore, ExpireOptions, FlushMode, FunctionListOptions, // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
10
8
|
FunctionRestorePolicy, // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
11
9
|
GeoAddOptions, // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
12
|
-
GeoSearchResultOptions, GeoSearchShape, GeoSearchStoreResultOptions, GeoUnit, GeospatialData,
|
|
13
|
-
|
|
10
|
+
GeoSearchResultOptions, GeoSearchShape, GeoSearchStoreResultOptions, GeoUnit, GeospatialData, // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
11
|
+
GlideRecord, GlideString, HScanOptions, HashDataType, InfoOptions, InsertPosition, KeyWeight, LPosOptions, ListDirection, LolwutOptions, // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
12
|
+
RangeByIndex, RangeByLex, RangeByScore, // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
13
|
+
RestoreOptions, Score, ScoreFilter, SearchOrigin, SetOptions, SortOptions, StreamAddOptions, StreamClaimOptions, StreamGroupOptions, StreamPendingOptions, StreamReadGroupOptions, StreamReadOptions, StreamTrimOptions, TimeUnit, ZAddOptions, ZScanOptions } from ".";
|
|
14
14
|
import { command_request } from "../build-ts/ProtobufMessage";
|
|
15
15
|
/**
|
|
16
16
|
* Base class encompassing shared commands for both standalone and cluster mode implementations in a Batch.
|
|
@@ -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
|
|
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.
|
|
@@ -2149,7 +2149,7 @@ export declare class BaseBatch<T extends BaseBatch<T>> {
|
|
|
2149
2149
|
* @param key - The key of the HyperLogLog data structure to add elements into.
|
|
2150
2150
|
* @param elements - An array of members to add to the HyperLogLog stored at `key`.
|
|
2151
2151
|
* Command Response - If the HyperLogLog is newly created, or if the HyperLogLog approximated cardinality is
|
|
2152
|
-
* altered, then returns `
|
|
2152
|
+
* altered, then returns `true`. Otherwise, returns `false`.
|
|
2153
2153
|
*/
|
|
2154
2154
|
pfadd(key: GlideString, elements: GlideString[]): T;
|
|
2155
2155
|
/** Estimates the cardinality of the data stored in a HyperLogLog structure for a single key or
|