@valkey/valkey-glide 1.3.5-rc10 → 1.3.5-rc12
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 +5 -11
- package/build-ts/BaseClient.d.ts +5 -11
- package/build-ts/BaseClient.js +251 -229
- package/build-ts/Batch.d.ts +5 -5
- package/build-ts/Batch.js +219 -220
- package/build-ts/Commands.d.ts +1 -2
- package/build-ts/Commands.js +4 -5
- package/build-ts/GlideClient.d.ts +1 -3
- package/build-ts/GlideClient.js +53 -54
- package/build-ts/GlideClusterClient.d.ts +1 -4
- package/build-ts/GlideClusterClient.js +52 -54
- package/build-ts/Logger.js +3 -3
- package/build-ts/OpenTelemetry.d.ts +87 -0
- package/build-ts/OpenTelemetry.js +117 -0
- package/build-ts/ProtobufMessage.d.ts +12 -81
- package/build-ts/ProtobufMessage.js +42 -177
- package/build-ts/index.d.ts +2 -2
- package/build-ts/index.js +2 -25
- package/build-ts/native.d.ts +66 -0
- package/build-ts/native.js +6 -0
- 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 +1 -3
- package/build-ts/server-modules/GlideJson.js +2 -2
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -29,24 +29,18 @@ The release of Valkey GLIDE was tested on the following platforms:
|
|
|
29
29
|
|
|
30
30
|
### Linux GNU
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
Manual tests have been done on:
|
|
34
|
-
|
|
35
|
-
- Fedora 39
|
|
36
|
-
- Ubuntu 22.04
|
|
37
|
-
- Amazon Linux 2
|
|
38
|
-
- Debian 12.
|
|
32
|
+
Linux with **glibc 2.17** or higher.
|
|
39
33
|
|
|
40
34
|
### MacOS (Darwin)
|
|
41
35
|
|
|
42
36
|
MacOS Apple Silicon/aarch_64 and x86_64/amd64.
|
|
43
37
|
|
|
44
38
|
- Full tests are running on MacOS 15.0 arm64/aarch64
|
|
45
|
-
- Minimal tests are running on: MacOS 13.5 x86*64/amd64
|
|
39
|
+
- Minimal tests are running on: MacOS 13.5 x86*64/amd64*(We do not recommend using MacOS Intel for production, It is supported for development purposes)\_
|
|
46
40
|
|
|
47
41
|
### Alpine
|
|
48
42
|
|
|
49
|
-
All alpine versions that are using
|
|
43
|
+
All alpine versions that are using *musl libc* 1.2.3 (All Alpine non deprecated alpine versions) or higher should be supported.
|
|
50
44
|
Tests are running on:
|
|
51
45
|
|
|
52
46
|
- node:alpine (x86_64/amd64 and arm64/aarch64)
|
|
@@ -72,7 +66,7 @@ npm i @valkey/valkey-glide
|
|
|
72
66
|
|
|
73
67
|
## Basic Examples
|
|
74
68
|
|
|
75
|
-
#### Standalone Mode
|
|
69
|
+
#### Standalone Mode:
|
|
76
70
|
|
|
77
71
|
```typescript
|
|
78
72
|
import { GlideClient, GlideClusterClient, Logger } from "@valkey/valkey-glide";
|
|
@@ -99,7 +93,7 @@ const get_response = await client.get("foo");
|
|
|
99
93
|
console.log(`Get response is = ${get_response}`);
|
|
100
94
|
```
|
|
101
95
|
|
|
102
|
-
#### Cluster Mode
|
|
96
|
+
#### Cluster Mode:
|
|
103
97
|
|
|
104
98
|
```typescript
|
|
105
99
|
import { GlideClient, GlideClusterClient, Logger } from "@valkey/valkey-glide";
|
package/build-ts/BaseClient.d.ts
CHANGED
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
import { Buffer, Writer } from "protobufjs/minimal";
|
|
2
|
-
import {
|
|
3
|
-
import { command_request, connection_request, response } from "../build-ts/ProtobufMessage";
|
|
4
|
-
import { AggregationType, BaseScanOptions, BatchOptions, BitFieldGet, // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
2
|
+
import { AggregationType, BaseScanOptions, BitFieldGet, // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
5
3
|
BitFieldSubCommands, // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
6
|
-
BitOffsetOptions, BitwiseOperation, Boundary,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
RangeByIndex, RangeByLex, RangeByScore, RestoreOptions, ScoreFilter, SearchOrigin, SetOptions, SortOptions, StreamAddOptions, StreamClaimOptions, StreamGroupOptions, StreamPendingOptions, StreamReadGroupOptions, StreamReadOptions, StreamTrimOptions, TimeUnit, ZAddOptions, ZScanOptions } from "./Commands";
|
|
10
|
-
import { ConnectionError, RequestError, ValkeyError } from "./Errors";
|
|
11
|
-
import { GlideClientConfiguration } from "./GlideClient";
|
|
12
|
-
import { GlideClusterClientConfiguration, Routes } from "./GlideClusterClient";
|
|
4
|
+
BitOffsetOptions, BitwiseOperation, Boundary, ConnectionError, ExpireOptions, GeoAddOptions, // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
5
|
+
GeoSearchResultOptions, GeoSearchShape, GeoSearchStoreResultOptions, GeoUnit, GeospatialData, GlideClientConfiguration, GlideClusterClientConfiguration, HScanOptions, InsertPosition, KeyWeight, LPosOptions, ListDirection, RangeByIndex, RangeByLex, RangeByScore, RequestError, RestoreOptions, Routes, ScoreFilter, Script, SearchOrigin, SetOptions, SortOptions, StreamAddOptions, StreamClaimOptions, StreamGroupOptions, StreamPendingOptions, StreamReadGroupOptions, StreamReadOptions, StreamTrimOptions, TimeUnit, ValkeyError, ZAddOptions, ZScanOptions } from ".";
|
|
6
|
+
import { command_request, connection_request, response } from "../build-ts/ProtobufMessage";
|
|
13
7
|
type PromiseFunction = (value?: any) => void;
|
|
14
8
|
type ErrorFunction = (error: ValkeyError) => void;
|
|
15
9
|
export type ReturnTypeRecord = {
|
|
@@ -334,7 +328,6 @@ export interface PubSubMsg {
|
|
|
334
328
|
channel: GlideString;
|
|
335
329
|
pattern?: GlideString | null;
|
|
336
330
|
}
|
|
337
|
-
export type WritePromiseOptions = BaseOptions | (BaseOptions & (ClusterBatchOptions | BatchOptions));
|
|
338
331
|
/**
|
|
339
332
|
* Base client interface for GLIDE
|
|
340
333
|
*/
|
|
@@ -355,6 +348,7 @@ export declare class BaseClient {
|
|
|
355
348
|
protected configurePubsub(options: GlideClusterClientConfiguration | GlideClientConfiguration, configuration: connection_request.IConnectionRequest): void;
|
|
356
349
|
private handleReadData;
|
|
357
350
|
protected toProtobufRoute(route: Routes | undefined): command_request.Routes | undefined;
|
|
351
|
+
private dropCommandSpan;
|
|
358
352
|
processResponse(message: response.Response): void;
|
|
359
353
|
processPush(response: response.Response): void;
|
|
360
354
|
protected getCallbackIndex(): number;
|