Skip to content

Commit 2255a52

Browse files
authored
Update dependencies & update documentation (#1428)
1 parent 7eea86d commit 2255a52

File tree

8 files changed

+62
-66
lines changed

8 files changed

+62
-66
lines changed

.mocharc.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@
66
"test/user_code/**",
77
"scripts"
88
],
9-
"reporter": "mocha-jenkins-reporter",
10-
"reporter-option": [
11-
"junit_report_name=Node.js Client Tests",
12-
"junit_report_path=report.xml",
13-
"junit_report_stack=1"
14-
],
159
"require": ["source-map-support/register", "ts-node/register/transpile-only"],
1610
"recursive": true
1711
}

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Contributing to Hazelcast
22

3-
> **WARNING: Minimum Node version for development is 12.22.**
3+
> **WARNING: Minimum Node version for development is 14.14.**
44
55
Hazelcast Node.js client is Open Source software, and licensed under the [Apache 2.0. license](LICENSE).
66
The main benefit of Open Source is that you don't need to wait for a vendor to provide a fix or a feature.

package.json

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,23 @@
99
"lib/**/*.d.ts"
1010
],
1111
"dependencies": {
12-
"@types/long": "4.0.2",
12+
"@types/long": "4.0.0",
1313
"long": "4.0.0"
1414
},
1515
"devDependencies": {
16-
"@istanbuljs/nyc-config-typescript": "^1.0.2",
16+
"@istanbuljs/nyc-config-typescript": "~1.0.2",
1717
"@types/node": "~10.17.60",
18-
"@typescript-eslint/eslint-plugin": "~5.27.0",
19-
"@typescript-eslint/parser": "~5.27.0",
18+
"@typescript-eslint/eslint-plugin": "~5.45.0",
19+
"@typescript-eslint/parser": "~5.45.0",
2020
"chai": "~4.3.6",
2121
"chai-as-promised": "~7.1.1",
22-
"eslint": "~8.16.0",
22+
"eslint": "~8.28.0",
2323
"eslint-plugin-mocha": "~9.0.0",
2424
"husky": "~6.0.0",
2525
"jsonschema": "~1.4.0",
2626
"markdown-link-check": "~3.10.2",
27-
"markdownlint-cli": "~0.31.1",
27+
"markdownlint-cli": "~0.32.2",
2828
"mocha": "~9.2.2",
29-
"mocha-jenkins-reporter": "~0.4.7",
3029
"mousse": "~0.3.1",
3130
"nyc": "~15.1.0",
3231
"path-exists-cli": "~2.0.0",
@@ -35,10 +34,10 @@
3534
"sinon-chai": "~3.7.0",
3635
"source-map-support": "~0.5.21",
3736
"thrift": "~0.16.0",
38-
"ts-node": "~10.7.0",
39-
"typedoc": "~0.22.10",
40-
"typescript": "~4.7.2",
41-
"winston": "~3.7.2",
37+
"ts-node": "~10.9.1",
38+
"typedoc": "~0.22.18",
39+
"typescript": "~4.7.4",
40+
"winston": "~3.8.2",
4241
"yargs": "~17.5.1"
4342
},
4443
"engines": {

src/HazelcastClient.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import {
2020
DistributedObject,
2121
DistributedObjectListener,
2222
LoadBalancer,
23-
IllegalStateError
23+
IllegalStateError,
2424
} from './core';
2525
import {ClientGetDistributedObjectsCodec} from './codec/ClientGetDistributedObjectsCodec';
2626
import {ClientConfig, ClientConfigImpl} from './config/Config';
@@ -147,8 +147,8 @@ export class HazelcastClient {
147147
this.config.properties['hazelcast.logging.level'] as string);
148148
const logger = this.loggingService.getLogger();
149149
this.schemaService = new SchemaService(
150-
this.config,
151-
() => this.clusterService,
150+
this.config,
151+
() => this.clusterService,
152152
() => this.invocationService,
153153
logger
154154
);

src/config/SSLConfig.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,12 @@ export interface SSLConfig {
3232
* Default SSL options are empty which means the following default configuration
3333
* is used while connecting to the server.
3434
*
35+
* ```json
3536
* {
3637
* checkServerIdentity: (): any => null,
3738
* rejectUnauthorized: true,
3839
* };
40+
* ```
3941
*
4042
* If you want to override the default behavior, you can define your own options.
4143
*/

src/serialization/compact/CompactReader.ts

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ export interface CompactReader {
4040
* Reads a boolean.
4141
*
4242
* This method can also read a nullable boolean, as long as it is not
43-
* {@code null}. If a {@code null} value is read with this method,
43+
* `null`. If a `null` value is read with this method,
4444
* {@link HazelcastSerializationError} is thrown.
45-
*
45+
*
4646
* @param fieldName name of the field.
4747
* @throws {@link HazelcastSerializationError} if the field does not exist in the
4848
* schema, or the type of the field does not match with the one defined in the schema.
@@ -54,9 +54,9 @@ export interface CompactReader {
5454
* Reads an 8-bit two's complement signed integer.
5555
*
5656
* This method can also read a nullable int8, as long as it is not
57-
* {@code null}. If a {@code null} value is read with this method,
57+
* `null`. If a `null` value is read with this method,
5858
* {@link HazelcastSerializationError} is thrown.
59-
*
59+
*
6060
* @param fieldName name of the field.
6161
* @throws {@link HazelcastSerializationError} if the field does not exist in the
6262
* schema, or the type of the field does not match with the one defined in the schema.
@@ -68,9 +68,9 @@ export interface CompactReader {
6868
* Reads a 16-bit two's complement signed integer.
6969
*
7070
* This method can also read a nullable int16, as long as it is not
71-
* {@code null}. If a {@code null} value is read with this method,
71+
* `null`. If a `null` value is read with this method,
7272
* {@link HazelcastSerializationError} is thrown.
73-
*
73+
*
7474
* @param fieldName name of the field.
7575
* @throws {@link HazelcastSerializationError} if the field does not exist in the
7676
* schema, or the type of the field does not match with the one defined in the schema.
@@ -82,9 +82,9 @@ export interface CompactReader {
8282
* Reads a 32-bit two's complement signed integer.
8383
*
8484
* This method can also read a nullable int32, as long as it is not
85-
* {@code null}. If a {@code null} value is read with this method,
85+
* `null`. If a `null` value is read with this method,
8686
* {@link HazelcastSerializationError} is thrown.
87-
*
87+
*
8888
* @param fieldName name of the field.
8989
* @throws {@link HazelcastSerializationError} if the field does not exist in the
9090
* schema, or the type of the field does not match with the one defined in the schema.
@@ -96,9 +96,9 @@ export interface CompactReader {
9696
* Reads a 64-bit two's complement signed integer.
9797
*
9898
* This method can also read a nullable int64, as long as it is not
99-
* {@code null}. If a {@code null} value is read with this method,
99+
* `null`. If a `null` value is read with this method,
100100
* {@link HazelcastSerializationError} is thrown.
101-
*
101+
*
102102
* @param fieldName name of the field.
103103
* @throws {@link HazelcastSerializationError} if the field does not exist in the
104104
* schema, or the type of the field does not match with the one defined in the schema.
@@ -110,9 +110,9 @@ export interface CompactReader {
110110
* Reads a 32-bit IEEE 754 floating point number.
111111
*
112112
* This method can also read a nullable float32, as long as it is not
113-
* {@code null}. If a {@code null} value is read with this method,
113+
* `null`. If a `null` value is read with this method,
114114
* {@link HazelcastSerializationError} is thrown.
115-
*
115+
*
116116
* @param fieldName name of the field.
117117
* @throws {@link HazelcastSerializationError} if the field does not exist in the
118118
* schema, or the type of the field does not match with the one defined in the schema.
@@ -124,9 +124,9 @@ export interface CompactReader {
124124
* Reads a 64-bit IEEE 754 floating point number.
125125
*
126126
* This method can also read a nullable float64, as long as it is not
127-
* {@code null}. If a {@code null} value is read with this method,
127+
* `null`. If a `null` value is read with this method,
128128
* {@link HazelcastSerializationError} is thrown.
129-
*
129+
*
130130
* @param fieldName name of the field.
131131
* @throws {@link HazelcastSerializationError} if the field does not exist in the
132132
* schema, or the type of the field does not match with the one defined in the schema.
@@ -208,9 +208,9 @@ export interface CompactReader {
208208
* Reads an array of booleans.
209209
*
210210
* This method can also read an array of nullable booleans, as long as it
211-
* does not contain {@code null} values. If a {@code null} array item is
211+
* does not contain `null` values. If a `null` array item is
212212
* read with this method, {@link HazelcastSerializationError} is thrown.
213-
*
213+
*
214214
* @param fieldName name of the field.
215215
* @throws {@link HazelcastSerializationError} if the field does not exist in the
216216
* schema, or the type of the field does not match with the one defined in the schema.
@@ -222,9 +222,9 @@ export interface CompactReader {
222222
* Reads an array of 8-bit two's complement signed integers.
223223
*
224224
* This method can also read an array of nullable int8s, as long as it
225-
* does not contain {@code null} values. If a {@code null} array item is
225+
* does not contain `null` values. If a `null` array item is
226226
* read with this method, {@link HazelcastSerializationError} is thrown.
227-
*
227+
*
228228
* @param fieldName name of the field.
229229
* @throws {@link HazelcastSerializationError} if the field does not exist in the
230230
* schema, or the type of the field does not match with the one defined in the schema.
@@ -236,9 +236,9 @@ export interface CompactReader {
236236
* Reads an array of 16-bit two's complement signed integers.
237237
*
238238
* This method can also read an array of nullable int16s, as long as it
239-
* does not contain {@code null} values. If a {@code null} array item is
239+
* does not contain `null` values. If a `null` array item is
240240
* read with this method, {@link HazelcastSerializationError} is thrown.
241-
*
241+
*
242242
* @param fieldName name of the field.
243243
* @throws {@link HazelcastSerializationError} if the field does not exist in the
244244
* schema, or the type of the field does not match with the one defined in the schema.
@@ -250,9 +250,9 @@ export interface CompactReader {
250250
* Reads an array of 32-bit two's complement signed integers.
251251
*
252252
* This method can also read an array of nullable int32s, as long as it
253-
* does not contain {@code null} values. If a {@code null} array item is
253+
* does not contain `null` values. If a `null` array item is
254254
* read with this method, {@link HazelcastSerializationError} is thrown.
255-
*
255+
*
256256
* @param fieldName name of the field.
257257
* @throws {@link HazelcastSerializationError} if the field does not exist in the
258258
* schema, or the type of the field does not match with the one defined in the schema.
@@ -264,9 +264,9 @@ export interface CompactReader {
264264
* Reads an array of 64-bit two's complement signed integers.
265265
*
266266
* This method can also read an array of nullable int64s, as long as it
267-
* does not contain {@code null} values. If a {@code null} array item is
267+
* does not contain `null` values. If a `null` array item is
268268
* read with this method, {@link HazelcastSerializationError} is thrown.
269-
*
269+
*
270270
* @param fieldName name of the field.
271271
* @throws {@link HazelcastSerializationError} if the field does not exist in the
272272
* schema, or the type of the field does not match with the one defined in the schema.
@@ -278,9 +278,9 @@ export interface CompactReader {
278278
* Reads an array of 32-bit IEEE 754 floating point numbers.
279279
*
280280
* This method can also read an array of nullable float32s, as long as it
281-
* does not contain {@code null} values. If a {@code null} array item is
281+
* does not contain `null` values. If a `null` array item is
282282
* read with this method, {@link HazelcastSerializationError} is thrown.
283-
*
283+
*
284284
* @param fieldName name of the field.
285285
* @throws {@link HazelcastSerializationError} if the field does not exist in the
286286
* schema, or the type of the field does not match with the one defined in the schema.
@@ -292,9 +292,9 @@ export interface CompactReader {
292292
* Reads an array of 64-bit IEEE 754 floating point numbers.
293293
*
294294
* This method can also read an array of nullable float64s, as long as it
295-
* does not contain {@code null} values. If a {@code null} array item is
295+
* does not contain `null` values. If a `null` array item is
296296
* read with this method, {@link HazelcastSerializationError} is thrown.
297-
*
297+
*
298298
* @param fieldName name of the field.
299299
* @throws {@link HazelcastSerializationError} if the field does not exist in the
300300
* schema, or the type of the field does not match with the one defined in the schema.
@@ -377,7 +377,7 @@ export interface CompactReader {
377377
* Reads a nullable boolean.
378378
*
379379
* This method can also read a non-nullable boolean.
380-
*
380+
*
381381
* @param fieldName name of the field.
382382
* @throws {@link HazelcastSerializationError} if the field does not exist in the
383383
* schema, or the type of the field does not match with the one defined in the schema.
@@ -389,7 +389,7 @@ export interface CompactReader {
389389
* Reads a nullable 8-bit two's complement signed integer.
390390
*
391391
* This method can also read a non-nullable int8.
392-
*
392+
*
393393
* @param fieldName name of the field.
394394
* @throws {@link HazelcastSerializationError} if the field does not exist in the
395395
* schema, or the type of the field does not match with the one defined in the schema.
@@ -401,7 +401,7 @@ export interface CompactReader {
401401
* Reads a nullable 16-bit two's complement signed integer.
402402
*
403403
* This method can also read a non-nullable int16.
404-
*
404+
*
405405
* @param fieldName name of the field.
406406
* @throws {@link HazelcastSerializationError} if the field does not exist in the
407407
* schema, or the type of the field does not match with the one defined in the schema.
@@ -413,7 +413,7 @@ export interface CompactReader {
413413
* Reads a nullable 32-bit two's complement signed integer.
414414
*
415415
* This method can also read a non-nullable int32.
416-
*
416+
*
417417
* @param fieldName name of the field.
418418
* @throws {@link HazelcastSerializationError} if the field does not exist in the
419419
* schema, or the type of the field does not match with the one defined in the schema.
@@ -425,7 +425,7 @@ export interface CompactReader {
425425
* Reads a nullable 64-bit two's complement signed integer.
426426
*
427427
* This method can also read a non-nullable int64.
428-
*
428+
*
429429
* @param fieldName name of the field.
430430
* @throws {@link HazelcastSerializationError} if the field does not exist in the
431431
* schema, or the type of the field does not match with the one defined in the schema.
@@ -437,7 +437,7 @@ export interface CompactReader {
437437
* Reads a nullable 32-bit IEEE 754 floating point number.
438438
*
439439
* This method can also read a non-nullable float32.
440-
*
440+
*
441441
* @param fieldName name of the field.
442442
* @throws {@link HazelcastSerializationError} if the field does not exist in the
443443
* schema, or the type of the field does not match with the one defined in the schema.
@@ -449,7 +449,7 @@ export interface CompactReader {
449449
* Reads a nullable 64-bit IEEE 754 floating point number.
450450
*
451451
* This method can also read a non-nullable float64.
452-
*
452+
*
453453
* @param fieldName name of the field.
454454
* @throws {@link HazelcastSerializationError} if the field does not exist in the
455455
* schema, or the type of the field does not match with the one defined in the schema.
@@ -461,7 +461,7 @@ export interface CompactReader {
461461
* Reads a nullable array of nullable booleans.
462462
*
463463
* This method can also read array of non-nullable booleans.
464-
*
464+
*
465465
* @param fieldName name of the field.
466466
* @throws {@link HazelcastSerializationError} if the field does not exist in the
467467
* schema, or the type of the field does not match with the one defined in the schema.
@@ -473,7 +473,7 @@ export interface CompactReader {
473473
* Reads a nullable array of nullable 8-bit two's complement signed integers.
474474
*
475475
* This method can also read array of non-nullable int8s.
476-
*
476+
*
477477
* @param fieldName name of the field.
478478
* @throws {@link HazelcastSerializationError} if the field does not exist in the
479479
* schema, or the type of the field does not match with the one defined in the schema.
@@ -485,7 +485,7 @@ export interface CompactReader {
485485
* Reads a nullable array of nullable 16-bit two's complement signed integers.
486486
*
487487
* This method can also read array of non-nullable int16s.
488-
*
488+
*
489489
* @param fieldName name of the field.
490490
* @throws {@link HazelcastSerializationError} if the field does not exist in the
491491
* schema, or the type of the field does not match with the one defined in the schema.
@@ -497,7 +497,7 @@ export interface CompactReader {
497497
* Reads a nullable array of nullable 32-bit two's complement signed integers.
498498
*
499499
* This method can also read array of non-nullable int32s.
500-
*
500+
*
501501
* @param fieldName name of the field.
502502
* @throws {@link HazelcastSerializationError} if the field does not exist in the
503503
* schema, or the type of the field does not match with the one defined in the schema.
@@ -509,7 +509,7 @@ export interface CompactReader {
509509
* Reads a nullable array of nullable 64-bit two's complement signed integers.
510510
*
511511
* This method can also read array of non-nullable int64s.
512-
*
512+
*
513513
* @param fieldName name of the field.
514514
* @throws {@link HazelcastSerializationError} if the field does not exist in the
515515
* schema, or the type of the field does not match with the one defined in the schema.
@@ -521,7 +521,7 @@ export interface CompactReader {
521521
* Reads a nullable array of nullable 32-bit IEEE 754 floating point numbers.
522522
*
523523
* This method can also read array of non-nullable float32s.
524-
*
524+
*
525525
* @param fieldName name of the field.
526526
* @throws {@link HazelcastSerializationError} if the field does not exist in the
527527
* schema, or the type of the field does not match with the one defined in the schema.
@@ -533,7 +533,7 @@ export interface CompactReader {
533533
* Reads a nullable array of nullable 64-bit IEEE 754 floating point numbers.
534534
*
535535
* This method can also read array of non-nullable float64s.
536-
*
536+
*
537537
* @param fieldName name of the field.
538538
* @throws {@link HazelcastSerializationError} if the field does not exist in the
539539
* schema, or the type of the field does not match with the one defined in the schema.

0 commit comments

Comments
 (0)