Skip to content

Commit a68a0bc

Browse files
committed
chore: bump version; update dependencies; update tap to work with TS as required by new version
1 parent 34c0b41 commit a68a0bc

File tree

4 files changed

+21
-18
lines changed

4 files changed

+21
-18
lines changed

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ IMMUDB_TEST_PORT=56789
55
IMMUDB_USER=immudb
66
IMMUDB_PWD=immudb
77
IMMUDB_DEFAULT_DB=defaultdb
8+
TAP_TS='1' # This is to enable the TypeScript support in tap testing library

package.json

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "immudb-node",
3-
"version": "1.0.10-rc.6",
4-
"description": "Node ts client for immudb",
3+
"version": "1.0.10-rc.7",
4+
"description": "Node.js SDK for immudb written in TypeScript",
55
"directories": {
66
"src": "src",
77
"test": "tests"
@@ -12,31 +12,32 @@
1212
"prepare": "npm run build",
1313
"build": "tsc",
1414
"test": "tests/test.sh",
15-
"test:dev": "tests/test.sh --dev"
15+
"test:dev": "tests/test.sh --dev",
16+
"tap": "tap --ts"
1617
},
1718
"author": "",
1819
"license": "ISC",
1920
"devDependencies": {
2021
"@types/lodash": "^4.14.170",
21-
"@types/node": "^14.14.13",
22-
"@types/tap": "^14.10.2",
22+
"@types/node": "^14.17.3",
23+
"@types/tap": "^14.10.3",
2324
"@typescript-eslint/eslint-plugin": "^3.9.0",
2425
"@typescript-eslint/parser": "^3.9.0",
2526
"crypto-ts": "^1.0.2",
26-
"grpc": "^1.24.4",
27-
"grpc-tools": "^1.9.0",
27+
"grpc": "^1.24.10",
28+
"grpc-tools": "^1.11.1",
2829
"grpc_tools_node_protoc_ts": "^5.0.1",
2930
"protobufjs": "6.10.1",
30-
"tap": "14.10.8",
31+
"tap": "15.0.9",
3132
"typescript": "^3.9.7"
3233
},
3334
"dependencies": {
3435
"@grpc/grpc-js": "1.2.0",
3536
"@types/btoa": "^1.2.3",
36-
"@types/google-protobuf": "^3.7.4",
37-
"@types/mocha": "^8.2.0",
37+
"@types/google-protobuf": "^3.15.2",
38+
"@types/mocha": "^8.2.2",
3839
"btoa": "1.2.1",
39-
"dotenv": "^8.2.0",
40+
"dotenv": "^8.6.0",
4041
"google-protobuf": "3.13.0",
4142
"lodash": "^4.17.21",
4243
"ts-node": "^9.1.1"

tests/tap-parallel-not-ok/client.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ tap.test('database management', async t => {
7777
// test: check immudb health status
7878
const seventhResponse = await immudbClient.health();
7979
if (seventhResponse) {
80-
t.true(seventhResponse.status);
80+
t.ok(seventhResponse.status);
8181
} else {
8282
t.fail('Failed to get health');
8383
}
@@ -123,7 +123,7 @@ tap.test('user management', async t => {
123123
}
124124

125125
// test: list all users
126-
const listUsersResponse = await immudbClient.listUsers();
126+
await immudbClient.listUsers();
127127

128128
// test: change user permission
129129
const changeUserPermissionRequest: Parameters.ChangePermission = {
@@ -191,7 +191,8 @@ tap.test('operations', async t => {
191191
if (!dbExists) {
192192
// test: create database
193193
const createDatabaseRequest: Parameters.CreateDatabase = { databasename: testDB };
194-
const createDatabaseResponse = await immudbClient.createDatabase(createDatabaseRequest);
194+
195+
await immudbClient.createDatabase(createDatabaseRequest);
195196
}
196197
}
197198

@@ -349,7 +350,7 @@ tap.test('operations', async t => {
349350
key
350351
}
351352
try {
352-
const verifiedGetResponse = await immudbClient.verifiedGet(verifiedGetRequest);
353+
await immudbClient.verifiedGet(verifiedGetRequest);
353354
} catch(err) {
354355
t.fail(err)
355356
}
@@ -360,7 +361,7 @@ tap.test('operations', async t => {
360361
attx: 0
361362
}
362363
try {
363-
const verifiedGetAtResponse = await immudbClient.verifiedGetAt(verifiedGetAtRequest);
364+
await immudbClient.verifiedGetAt(verifiedGetAtRequest);
364365
} catch(err) {
365366
t.fail(err)
366367
}
@@ -371,7 +372,7 @@ tap.test('operations', async t => {
371372
sincetx: 2
372373
}
373374
try {
374-
const verifiedGetSinceResponse = await immudbClient.verifiedGetSince(verifiedGetSinceRequest);
375+
await immudbClient.verifiedGetSince(verifiedGetSinceRequest);
375376
} catch(err) {
376377
t.fail(err)
377378
}

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"declaration": true,
1111
"outDir": "./dist",
1212
"rootDir": "./",
13-
// "allowJs": true,
13+
"allowJs": true,
1414
"baseUrl": "src",
1515
// "moduleResolution": "classic"
1616
},

0 commit comments

Comments
 (0)