@valkey/valkey-glide-darwin-arm64 1.2.0-rc2 → 1.2.0-rc20
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 +8 -4
- package/build-ts/index.d.ts +2 -0
- package/build-ts/index.js +2 -0
- package/build-ts/index.js.map +1 -1
- package/build-ts/src/BaseClient.d.ts +164 -11
- package/build-ts/src/BaseClient.js +129 -20
- package/build-ts/src/BaseClient.js.map +1 -1
- package/build-ts/src/GlideClient.d.ts +84 -2
- package/build-ts/src/GlideClient.js +50 -0
- package/build-ts/src/GlideClient.js.map +1 -1
- package/build-ts/src/GlideClusterClient.d.ts +265 -4
- package/build-ts/src/GlideClusterClient.js +50 -2
- package/build-ts/src/GlideClusterClient.js.map +1 -1
- package/build-ts/src/ProtobufMessage.js +281 -3
- package/build-ts/src/ProtobufMessage.js.map +1 -1
- package/build-ts/src/server-modules/GlideFt.d.ts +412 -0
- package/build-ts/src/server-modules/GlideFt.js +664 -0
- package/build-ts/src/server-modules/GlideFt.js.map +1 -0
- package/build-ts/src/server-modules/GlideFtOptions.d.ts +244 -0
- package/build-ts/src/server-modules/GlideFtOptions.js +6 -0
- package/build-ts/src/server-modules/GlideFtOptions.js.map +1 -0
- package/build-ts/src/server-modules/GlideJson.d.ts +746 -17
- package/build-ts/src/server-modules/GlideJson.js +886 -17
- package/build-ts/src/server-modules/GlideJson.js.map +1 -1
- package/index.ts +2 -0
- package/node_modules/glide-rs/glide-rs.darwin-arm64.node +0 -0
- package/node_modules/glide-rs/index.d.ts +1 -0
- package/node_modules/glide-rs/index.js +2 -0
- package/npm/glide/index.ts +48 -0
- package/npm/glide/package.json +2 -2
- package/package.json +18 -9
- package/.ort.yml +0 -9
- package/.prettierignore +0 -7
- package/DEVELOPER.md +0 -191
- package/THIRD_PARTY_LICENSES_NODE +0 -35625
- package/npm/glide/tsconfig.json +0 -30
- package/tsconfig.json +0 -31
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GlideJson.js","sourceRoot":"","sources":["../../../src/server-modules/GlideJson.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;AAIH,gDAA6C;
|
|
1
|
+
{"version":3,"file":"GlideJson.js","sourceRoot":"","sources":["../../../src/server-modules/GlideJson.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;AAIH,gDAA6C;AA8B7C;;GAEG;AACH,SAAS,qBAAqB,CAAC,OAAuB;IAClD,MAAM,MAAM,GAAkB,EAAE,CAAC;IAEjC,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC;QACf,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;YAC9B,MAAM,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;QACjC,CAAC;aAAM,CAAC;YACJ,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAC9B,CAAC;IACL,CAAC;IAED,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;QACjB,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;IAC1C,CAAC;IAED,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;QAClB,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;IAC5C,CAAC;IAED,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC;QAChB,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACxC,CAAC;IAED,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;QACnB,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC5B,CAAC;IAED,OAAO,MAAM,CAAC;AAClB,CAAC;AAED;;GAEG;AACH,SAAS,eAAe,CACpB,MAAkB,EAClB,IAAmB,EACnB,OAAqC;IAErC,IAAI,MAAM,YAAY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E,IAAI,CAAC,CAAC;QACzC,CAAC;KAAA;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,MAAM,CAAO,MAAM,CACf,MAAkB,EAClB,GAAgB,EAChB,OAA+B;;YAE/B,MAAM,IAAI,GAAG,CAAC,aAAa,EAAE,GAAG,CAAC,CAAC;YAElC,IAAI,OAAO,EAAE,CAAC;gBACV,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YAC5B,CAAC;YAED,OAAO,eAAe,CAAyB,MAAM,EAAE,IAAI,CAAC,CAAC;QACjE,CAAC;KAAA;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,MAAM,CAAO,OAAO,CAChB,MAAkB,EAClB,GAAgB,EAChB,OAA+C;;YAE/C,MAAM,IAAI,GAAG,CAAC,cAAc,EAAE,GAAG,CAAC,CAAC;YAEnC,IAAI,OAAO,EAAE,CAAC;gBACV,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YAC5B,CAAC;YAED,OAAO,eAAe,CAAC,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAClD,CAAC;KAAA;CACJ;AA3iCD,8BA2iCC"}
|
package/index.ts
CHANGED
|
@@ -10,4 +10,6 @@ export * from "./src/GlideClient";
|
|
|
10
10
|
export * from "./src/GlideClusterClient";
|
|
11
11
|
export * from "./src/Logger";
|
|
12
12
|
export * from "./src/server-modules/GlideJson";
|
|
13
|
+
export * from "./src/server-modules/GlideFt";
|
|
14
|
+
export * from "./src/server-modules/GlideFtOptions";
|
|
13
15
|
export * from "./src/Transaction";
|
|
Binary file
|
|
@@ -26,6 +26,7 @@ export declare function valueFromSplitPointer(
|
|
|
26
26
|
stringDecoder: boolean,
|
|
27
27
|
): null | string | Uint8Array | number | {} | Boolean | BigInt | Set<any> | any[] | Buffer
|
|
28
28
|
export declare function createLeakedStringVec(message: Array<Uint8Array>): [number, number]
|
|
29
|
+
export declare function getStatistics(): object
|
|
29
30
|
export declare class AsyncClient {
|
|
30
31
|
static CreateConnection(connectionAddress: string): AsyncClient
|
|
31
32
|
get(key: string): Promise<string | Buffer | null>
|
|
@@ -297,6 +297,7 @@ const {
|
|
|
297
297
|
createLeakedStringVec,
|
|
298
298
|
Script,
|
|
299
299
|
ClusterScanCursor,
|
|
300
|
+
getStatistics,
|
|
300
301
|
} = nativeBinding
|
|
301
302
|
|
|
302
303
|
module.exports.Level = Level
|
|
@@ -311,3 +312,4 @@ module.exports.valueFromSplitPointer = valueFromSplitPointer
|
|
|
311
312
|
module.exports.createLeakedStringVec = createLeakedStringVec
|
|
312
313
|
module.exports.Script = Script
|
|
313
314
|
module.exports.ClusterScanCursor = ClusterScanCursor
|
|
315
|
+
module.exports.getStatistics = getStatistics
|
package/npm/glide/index.ts
CHANGED
|
@@ -118,9 +118,31 @@ function initialize() {
|
|
|
118
118
|
GlideClusterClient,
|
|
119
119
|
GlideClientConfiguration,
|
|
120
120
|
GlideJson,
|
|
121
|
+
GlideFt,
|
|
122
|
+
TextField,
|
|
123
|
+
TagField,
|
|
124
|
+
NumericField,
|
|
125
|
+
VectorField,
|
|
126
|
+
VectorFieldAttributesFlat,
|
|
127
|
+
VectorFieldAttributesHnsw,
|
|
128
|
+
FtCreateOptions,
|
|
129
|
+
FtSearchOptions,
|
|
130
|
+
FtInfoReturnType,
|
|
131
|
+
FtAggregateOptions,
|
|
132
|
+
FtAggregateLimit,
|
|
133
|
+
FtAggregateFilter,
|
|
134
|
+
FtAggregateGroupBy,
|
|
135
|
+
FtAggregateReducer,
|
|
136
|
+
FtAggregateSortBy,
|
|
137
|
+
FtAggregateSortProperty,
|
|
138
|
+
FtAggregateApply,
|
|
139
|
+
FtAggregateReturnType,
|
|
140
|
+
FtSearchReturnType,
|
|
141
|
+
FtProfileOtions,
|
|
121
142
|
GlideRecord,
|
|
122
143
|
GlideString,
|
|
123
144
|
JsonGetOptions,
|
|
145
|
+
JsonArrPopOptions,
|
|
124
146
|
SortedSetDataType,
|
|
125
147
|
StreamEntryDataType,
|
|
126
148
|
HashDataType,
|
|
@@ -204,6 +226,8 @@ function initialize() {
|
|
|
204
226
|
ReturnTypeMap,
|
|
205
227
|
ClusterResponse,
|
|
206
228
|
ReturnTypeAttribute,
|
|
229
|
+
ReturnTypeJson,
|
|
230
|
+
UniversalReturnTypeJson,
|
|
207
231
|
} = nativeBinding;
|
|
208
232
|
|
|
209
233
|
module.exports = {
|
|
@@ -228,10 +252,32 @@ function initialize() {
|
|
|
228
252
|
Decoder,
|
|
229
253
|
DecoderOption,
|
|
230
254
|
GeoAddOptions,
|
|
255
|
+
GlideFt,
|
|
256
|
+
TextField,
|
|
257
|
+
TagField,
|
|
258
|
+
NumericField,
|
|
259
|
+
VectorField,
|
|
260
|
+
VectorFieldAttributesFlat,
|
|
261
|
+
VectorFieldAttributesHnsw,
|
|
262
|
+
FtCreateOptions,
|
|
263
|
+
FtSearchOptions,
|
|
264
|
+
FtInfoReturnType,
|
|
265
|
+
FtAggregateOptions,
|
|
266
|
+
FtAggregateLimit,
|
|
267
|
+
FtAggregateFilter,
|
|
268
|
+
FtAggregateGroupBy,
|
|
269
|
+
FtAggregateReducer,
|
|
270
|
+
FtAggregateSortBy,
|
|
271
|
+
FtAggregateSortProperty,
|
|
272
|
+
FtAggregateApply,
|
|
273
|
+
FtAggregateReturnType,
|
|
274
|
+
FtSearchReturnType,
|
|
275
|
+
FtProfileOtions,
|
|
231
276
|
GlideRecord,
|
|
232
277
|
GlideJson,
|
|
233
278
|
GlideString,
|
|
234
279
|
JsonGetOptions,
|
|
280
|
+
JsonArrPopOptions,
|
|
235
281
|
SortedSetDataType,
|
|
236
282
|
StreamEntryDataType,
|
|
237
283
|
HashDataType,
|
|
@@ -329,6 +375,8 @@ function initialize() {
|
|
|
329
375
|
ReturnTypeMap,
|
|
330
376
|
ClusterResponse,
|
|
331
377
|
ReturnTypeAttribute,
|
|
378
|
+
ReturnTypeJson,
|
|
379
|
+
UniversalReturnTypeJson,
|
|
332
380
|
};
|
|
333
381
|
|
|
334
382
|
globalObject = Object.assign(global, nativeBinding);
|
package/npm/glide/package.json
CHANGED
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"lint": "eslint .",
|
|
11
11
|
"lint:fix": "eslint . --fix",
|
|
12
12
|
"clean": "rm -rf build-ts/",
|
|
13
|
-
"copy-declaration-files": "cp ../../build-ts/*.d.ts build-ts/ && cp ../../build-ts/src/*.d.ts build-ts/src/",
|
|
14
|
-
"build": "tsc && mkdir -p build-ts/src && npm run copy-declaration-files"
|
|
13
|
+
"copy-declaration-files": "cp ../../build-ts/*.d.ts build-ts/ && cp ../../build-ts/src/*.d.ts build-ts/src/ && cp ../../build-ts/src/server-modules/*.d.ts build-ts/src/server-modules/",
|
|
14
|
+
"build": "tsc && mkdir -p build-ts/src && mkdir -p build-ts/src/server-modules && npm run copy-declaration-files"
|
|
15
15
|
},
|
|
16
16
|
"files": [
|
|
17
17
|
"/build-ts"
|
package/package.json
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"glide-rs"
|
|
20
20
|
],
|
|
21
21
|
"scripts": {
|
|
22
|
-
"build": "npm run build-internal && npm run build-protobuf && npm run build-external",
|
|
22
|
+
"build": "npm run prereq && npm run build-internal && npm run build-protobuf && npm run build-external",
|
|
23
23
|
"build:release": "npm run build-internal:release && npm run build-protobuf && npm run build-external:release",
|
|
24
24
|
"build:benchmark": "npm run build-internal:benchmark && npm run build-protobuf && npm run build-external",
|
|
25
25
|
"build-internal": "cd rust-client && npm run build",
|
|
@@ -29,20 +29,24 @@
|
|
|
29
29
|
"build-external:release": "rm -rf build-ts && tsc --stripInternal",
|
|
30
30
|
"build-protobuf": "npm run compile-protobuf-files && npm run fix-protobuf-file",
|
|
31
31
|
"compile-protobuf-files": "cd src && pbjs -t static-module -o ProtobufMessage.js ../../glide-core/src/protobuf/*.proto && pbts -o ProtobufMessage.d.ts ProtobufMessage.js",
|
|
32
|
+
"clean": "rm -rf build-ts rust-client/target docs glide-logs rust-client/glide-rs.*.node rust-client/index.* src/ProtobufMessage.*",
|
|
32
33
|
"fix-protobuf-file": "replace 'this\\.encode\\(message, writer\\)\\.ldelim' 'this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim' src/ProtobufMessage.js",
|
|
33
|
-
"test": "npm run build-test-utils && jest --verbose --
|
|
34
|
-
"test-
|
|
34
|
+
"test": "npm run build-test-utils && jest --verbose --testPathIgnorePatterns='ServerModules'",
|
|
35
|
+
"test-dbg": "npm run build-test-utils && jest --runInBand",
|
|
36
|
+
"test-minimum": "npm run build-test-utils && jest --verbose --testNamePattern='^(.(?!(GlideJson|GlideFt|pubsub|kill)))*$'",
|
|
37
|
+
"test-modules": "npm run build-test-utils && jest --verbose --testNamePattern='(GlideJson|GlideFt)'",
|
|
35
38
|
"build-test-utils": "cd ../utils && npm i && npm run build",
|
|
36
39
|
"lint:fix": "npm run install-linting && npx eslint -c ../eslint.config.mjs --fix && npm run prettier:format",
|
|
37
40
|
"lint": "npm run install-linting && npx eslint -c ../eslint.config.mjs && npm run prettier:check:ci",
|
|
38
41
|
"install-linting": "cd ../ & npm install",
|
|
39
42
|
"prepack": "npmignore --auto",
|
|
43
|
+
"prereq": "npm install",
|
|
40
44
|
"prettier:check:ci": "npx prettier --check . --ignore-unknown '!**/*.{js,d.ts}'",
|
|
41
45
|
"prettier:format": "npx prettier --write . --ignore-unknown '!**/*.{js,d.ts}'"
|
|
42
46
|
},
|
|
43
47
|
"devDependencies": {
|
|
44
48
|
"@jest/globals": "^29.7.0",
|
|
45
|
-
"@types/jest": "^29.5.
|
|
49
|
+
"@types/jest": "^29.5.14",
|
|
46
50
|
"@types/minimist": "^1.2.5",
|
|
47
51
|
"@types/redis-server": "^1.2.2",
|
|
48
52
|
"@types/semver": "^7.5.8",
|
|
@@ -55,8 +59,9 @@
|
|
|
55
59
|
"replace": "^1.2.2",
|
|
56
60
|
"semver": "^7.6.3",
|
|
57
61
|
"ts-jest": "^29.2.5",
|
|
58
|
-
"
|
|
59
|
-
"
|
|
62
|
+
"ts-node": "^10.9.2",
|
|
63
|
+
"typescript": "^5.6.3",
|
|
64
|
+
"uuid": "^11.0.3"
|
|
60
65
|
},
|
|
61
66
|
"author": "Valkey GLIDE Maintainers",
|
|
62
67
|
"license": "Apache-2.0",
|
|
@@ -67,10 +72,14 @@
|
|
|
67
72
|
"tests/",
|
|
68
73
|
"rust-client/**",
|
|
69
74
|
"!build-ts/**",
|
|
70
|
-
"
|
|
75
|
+
".prettierignore",
|
|
71
76
|
"jest.config.js",
|
|
72
77
|
"hybrid-node-tests/**",
|
|
73
|
-
"docs/"
|
|
78
|
+
"docs/",
|
|
79
|
+
"DEVELOPER.md",
|
|
80
|
+
".ort.yml",
|
|
81
|
+
"tsconfig.json",
|
|
82
|
+
"THIRD_PARTY_LICENSES_NODE"
|
|
74
83
|
]
|
|
75
84
|
},
|
|
76
85
|
"//": [
|
|
@@ -83,5 +92,5 @@
|
|
|
83
92
|
"darwin"
|
|
84
93
|
],
|
|
85
94
|
"name": "@valkey/valkey-glide-darwin-arm64",
|
|
86
|
-
"version": "1.2.0-
|
|
95
|
+
"version": "1.2.0-rc20"
|
|
87
96
|
}
|
package/.ort.yml
DELETED
package/.prettierignore
DELETED
package/DEVELOPER.md
DELETED
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
# Developer Guide
|
|
2
|
-
|
|
3
|
-
This document describes how to set up your development environment to build and test Valkey GLIDE Node wrapper.
|
|
4
|
-
|
|
5
|
-
### Development Overview
|
|
6
|
-
|
|
7
|
-
The GLIDE Node wrapper consists of both TypeScript and Rust code. Rust bindings for Node.js are implemented using [napi-rs](https://github.com/napi-rs/napi-rs). The Node and Rust components communicate using the [protobuf](https://github.com/protocolbuffers/protobuf) protocol.
|
|
8
|
-
|
|
9
|
-
### Build from source
|
|
10
|
-
|
|
11
|
-
#### Prerequisites
|
|
12
|
-
|
|
13
|
-
Software Dependencies
|
|
14
|
-
|
|
15
|
-
##### **Note:** Nodejs Supported Version
|
|
16
|
-
|
|
17
|
-
If your Nodejs version is below the supported version specified in the client's [documentation](https://github.com/valkey-io/valkey-glide/blob/main/node/README.md#nodejs-supported-version), you can upgrade it using [NVM](https://github.com/nvm-sh/nvm?tab=readme-ov-file#install--update-script).
|
|
18
|
-
|
|
19
|
-
- npm
|
|
20
|
-
- git
|
|
21
|
-
- GCC
|
|
22
|
-
- pkg-config
|
|
23
|
-
- protoc (protobuf compiler)
|
|
24
|
-
- openssl
|
|
25
|
-
- openssl-dev
|
|
26
|
-
- rustup
|
|
27
|
-
|
|
28
|
-
**Dependencies installation for Ubuntu**
|
|
29
|
-
|
|
30
|
-
```bash
|
|
31
|
-
sudo apt update -y
|
|
32
|
-
sudo apt install -y nodejs npm git gcc pkg-config protobuf-compiler openssl libssl-dev
|
|
33
|
-
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
|
34
|
-
source "$HOME/.cargo/env"
|
|
35
|
-
# Check the installed node version
|
|
36
|
-
node -v
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
> **Note:** Ensure that you installed a supported Node.js version. For Ubuntu 22.04 or earlier, please refer to the instructions [here](#note-nodejs-supported-version) to upgrade your Node.js version.
|
|
40
|
-
|
|
41
|
-
**Dependencies installation for CentOS**
|
|
42
|
-
|
|
43
|
-
```bash
|
|
44
|
-
sudo yum update -y
|
|
45
|
-
sudo yum install -y nodejs git gcc pkgconfig protobuf-compiler openssl openssl-devel gettext
|
|
46
|
-
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
|
47
|
-
source "$HOME/.cargo/env"
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
**Dependencies installation for MacOS**
|
|
51
|
-
|
|
52
|
-
```bash
|
|
53
|
-
brew update
|
|
54
|
-
brew install nodejs git gcc pkgconfig protobuf openssl
|
|
55
|
-
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
|
56
|
-
source "$HOME/.cargo/env"
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
#### Building and installation steps
|
|
60
|
-
|
|
61
|
-
Before starting this step, make sure you've installed all software requirments.
|
|
62
|
-
|
|
63
|
-
1. Clone the repository:
|
|
64
|
-
```bash
|
|
65
|
-
git clone https://github.com/valkey-io/valkey-glide.git
|
|
66
|
-
cd valkey-glide
|
|
67
|
-
```
|
|
68
|
-
2. Install all node dependencies:
|
|
69
|
-
|
|
70
|
-
```bash
|
|
71
|
-
cd node
|
|
72
|
-
npm i
|
|
73
|
-
cd rust-client
|
|
74
|
-
npm i
|
|
75
|
-
cd ..
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
3. Build the Node wrapper (Choose a build option from the following and run it from the `node` folder):
|
|
79
|
-
|
|
80
|
-
1. Build in release mode, stripped from all debug symbols (optimized and minimized binary size):
|
|
81
|
-
|
|
82
|
-
```bash
|
|
83
|
-
npm run build:release
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
2. Build in release mode with debug symbols (optimized but large binary size):
|
|
87
|
-
|
|
88
|
-
```bash
|
|
89
|
-
npm run build:benchmark
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
3. For testing purposes, you can execute an unoptimized but fast build using:
|
|
93
|
-
|
|
94
|
-
```bash
|
|
95
|
-
npm run build
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
Once building completed, you'll find the compiled JavaScript code in the`./build-ts` folder.
|
|
99
|
-
|
|
100
|
-
4. Run tests:
|
|
101
|
-
1. Ensure that you have installed server and valkey-cli on your host. You can download Valkey at the following link: [Valkey Download page](https://valkey.io/download/).
|
|
102
|
-
2. Execute the following command from the node folder:
|
|
103
|
-
```bash
|
|
104
|
-
npm run build # make sure we have a debug build compiled first
|
|
105
|
-
npm test
|
|
106
|
-
```
|
|
107
|
-
5. Integrating the built GLIDE package into your project:
|
|
108
|
-
Add the package to your project using the folder path with the command `npm install <path to GLIDE>/node`.
|
|
109
|
-
|
|
110
|
-
- For a fast build, execute `npm run build`. This will perform a full, unoptimized build, which is suitable for developing tests. Keep in mind that performance is significantly affected in an unoptimized build, so it's required to build with the `build:release` or `build:benchmark` option when measuring performance.
|
|
111
|
-
- If your modifications are limited to the TypeScript code, run `npm run build-external` to build the external package without rebuilding the internal package.
|
|
112
|
-
- If your modifications are limited to the Rust code, execute `npm run build-internal` to build the internal package and generate TypeScript code.
|
|
113
|
-
- To generate Node's protobuf files, execute `npm run build-protobuf`. Keep in mind that protobuf files are generated as part of full builds (e.g., `build`, `build:release`, etc.).
|
|
114
|
-
|
|
115
|
-
> Note: Once building completed, you'll find the compiled JavaScript code in the `node/build-ts` folder.
|
|
116
|
-
|
|
117
|
-
### Troubleshooting
|
|
118
|
-
|
|
119
|
-
- If the build fails after running `npx tsc` because `glide-rs` isn't found, check if your npm version is in the range 9.0.0-9.4.1, and if so, upgrade it. 9.4.2 contains a fix to a change introduced in 9.0.0 that is required in order to build the library.
|
|
120
|
-
|
|
121
|
-
### Test
|
|
122
|
-
|
|
123
|
-
To run tests, use the following command:
|
|
124
|
-
|
|
125
|
-
```bash
|
|
126
|
-
npm test
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
To execute a specific test, include the [`testNamePattern`](https://jestjs.io/docs/cli#--testnamepatternregex) option. For example:
|
|
130
|
-
|
|
131
|
-
```bash
|
|
132
|
-
npm run test -- --testNamePattern="transaction"
|
|
133
|
-
```
|
|
134
|
-
|
|
135
|
-
IT suite starts the server for testing - standalone and cluster installation using `cluster_manager` script.
|
|
136
|
-
To run the integration tests with existing servers, run the following command:
|
|
137
|
-
|
|
138
|
-
```bash
|
|
139
|
-
npm run test -- --cluster-endpoints=localhost:7000 --standalone-endpoints=localhost:6379
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
### Submodules
|
|
143
|
-
|
|
144
|
-
After pulling new changes, ensure that you update the submodules by running the following command:
|
|
145
|
-
|
|
146
|
-
```bash
|
|
147
|
-
git submodule update
|
|
148
|
-
```
|
|
149
|
-
|
|
150
|
-
### Linters
|
|
151
|
-
|
|
152
|
-
Development on the Node wrapper may involve changes in either the TypeScript or Rust code. Each language has distinct linter tests that must be passed before committing changes.
|
|
153
|
-
|
|
154
|
-
#### Language-specific Linters
|
|
155
|
-
|
|
156
|
-
**TypeScript:**
|
|
157
|
-
|
|
158
|
-
- ESLint
|
|
159
|
-
- Prettier
|
|
160
|
-
|
|
161
|
-
**Rust:**
|
|
162
|
-
|
|
163
|
-
- clippy
|
|
164
|
-
- fmt
|
|
165
|
-
|
|
166
|
-
#### Running the linters
|
|
167
|
-
|
|
168
|
-
1. TypeScript
|
|
169
|
-
|
|
170
|
-
```bash
|
|
171
|
-
# Run from the node folder
|
|
172
|
-
npm run lint
|
|
173
|
-
# To automatically apply ESLint and/or prettier recommendations
|
|
174
|
-
npx run lint:fix
|
|
175
|
-
```
|
|
176
|
-
|
|
177
|
-
2. Rust
|
|
178
|
-
```bash
|
|
179
|
-
# Run from the `node/rust-client` folder
|
|
180
|
-
rustup component add clippy rustfmt
|
|
181
|
-
cargo clippy --all-features --all-targets -- -D warnings
|
|
182
|
-
cargo fmt --manifest-path ./Cargo.toml --all
|
|
183
|
-
```
|
|
184
|
-
|
|
185
|
-
### Recommended extensions for VS Code
|
|
186
|
-
|
|
187
|
-
- [Prettier - Code formatter](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) - JavaScript / TypeScript formatter.
|
|
188
|
-
- [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) - linter.
|
|
189
|
-
- [Jest Runner](https://marketplace.visualstudio.com/items?itemName=firsttris.vscode-jest-runner) - in-editor test runner.
|
|
190
|
-
- [Jest Test Explorer](https://marketplace.visualstudio.com/items?itemName=kavod-io.vscode-jest-test-adapter) - adapter to the VSCode testing UI.
|
|
191
|
-
- [rust-analyzer](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer) - Rust language support for VSCode.
|