From 959a1ce4d2cddb1a2ac8b9ac97cacda0cb229fbc Mon Sep 17 00:00:00 2001 From: Francesca-Bit Date: Wed, 28 Jun 2023 15:13:38 +0100 Subject: [PATCH 1/5] fix diff typescript --- lib/woqlClient.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/woqlClient.js b/lib/woqlClient.js index b82206e..69b7efa 100644 --- a/lib/woqlClient.js +++ b/lib/woqlClient.js @@ -1592,7 +1592,7 @@ WOQLClient.prototype.userOrganizations = function (orgList) { * //{ "@id" : "Person/Jane", "@type" : "Person", "name" : "Jannet"} */ WOQLClient.prototype.patch = function (before, patch) { - if (typeof before !== 'object' || typeof after !== 'object') { + if (typeof before !== 'object' || typeof patch !== 'object') { const errmsg = '"before" or "after" parameter error - you must specify a valid before and after json document'; return Promise.reject( From 137707468ff1ad64e450d5f227080ada68785106 Mon Sep 17 00:00:00 2001 From: Francesca-Bit Date: Thu, 29 Jun 2023 15:17:52 +0100 Subject: [PATCH 2/5] fix typescript --- lib/typedef.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/typedef.js b/lib/typedef.js index 716594a..87364aa 100644 --- a/lib/typedef.js +++ b/lib/typedef.js @@ -179,9 +179,9 @@ const { ACTIONS } = Utils.ACTIONS; /** * @typedef {Object} DiffObject - * @property {keep} [Object] - Index to start from, 0 is the default - * @property {start} [number] - Amount of commits to show, 10 is the default - * @property {count} [number] - Last updated time (excludes history) false is the default + * @property {Object} [keep] - Index to start from, 0 is the default + * @property {number} [count] - Last updated time (excludes history) false is the default + * @property {number} [start] - Amount of commits to show, 10 is the default */ module.exports = {}; From 18c9be35dbd946d1e45d436fb6af1aa0aecce11e Mon Sep 17 00:00:00 2001 From: Francesca-Bit Date: Thu, 29 Jun 2023 14:21:22 +0000 Subject: [PATCH 3/5] Apply docs changes --- docs/api/typedef.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/api/typedef.md b/docs/api/typedef.md index 798b520..fa5e79c 100644 --- a/docs/api/typedef.md +++ b/docs/api/typedef.md @@ -219,7 +219,7 @@ the manage capability command type | Name | Type | Description | | --- | --- | --- | -| [Object] | keep | Index to start from, 0 is the default | -| [number] | start | Amount of commits to show, 10 is the default | -| [number] | count | Last updated time (excludes history) false is the default | +| [keep] | Object | Index to start from, 0 is the default | +| [count] | number | Last updated time (excludes history) false is the default | +| [start] | number | Amount of commits to show, 10 is the default | From d748345f49a467007706e651b86ab46d262f3b11 Mon Sep 17 00:00:00 2001 From: Francesca-Bit Date: Thu, 29 Jun 2023 15:35:52 +0100 Subject: [PATCH 4/5] merge main --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7b8da9d..dbc487f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@terminusdb/terminusdb-client", - "version": "10.0.29", + "version": "10.0.30", "description": "TerminusDB client library", "main": "index.js", "types": "./dist/typescript/index.d.ts", From 5b02e13f061dd7f2b88a98281715885e6f421544 Mon Sep 17 00:00:00 2001 From: Francesca-Bit Date: Thu, 29 Jun 2023 15:37:00 +0100 Subject: [PATCH 5/5] merge main --- RELEASE_NOTES.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index d7c6ffb..bc20607 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,3 +1,7 @@ +# TerminusDB Client v10.0.30 +## Fixes 🛠 +* Fix DiffObject type definition + # TerminusDB Client v10.0.29 ## Fixes 🛠 * Fix getCommitsLog in WOQLClient