Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
98a22d9
Adding back zero and random scoring methods.
anu3990 Sep 9, 2024
6de18da
MLE-15256 : Use shortest-path function in Node plan builder
anu3990 Oct 1, 2024
e620994
MLE-17863 : Jenkins nightly builds intermittently throw errors due to…
anu3990 Nov 13, 2024
01e48e4
Merge branch 'master' into develop
rjrudin Nov 26, 2024
8c83b17
MLE-17147 Added annTopK support
rjrudin Nov 25, 2024
48ba19c
Merge pull request #907 from marklogic/feature/17147-annTopK
rjrudin Nov 27, 2024
50eae7f
MLE-19359 : Node Client Security vulnerabilities
anu3990 Jan 17, 2025
105fd4b
MLE-19469 : Drop "weight" as a parameter in shortest-path in Node Cli…
anu3990 Jan 24, 2025
a92fb32
Adding changes for release 3.6.0
anu3990 Jan 27, 2025
a253064
Delete NOTICE.txt
anu3990 Jan 28, 2025
c849bba
Adding Notice file 3.6.0
anu3990 Jan 28, 2025
1ec6bb6
Fix for Polaris issues and test failures.
anu3990 Jan 31, 2025
5fe6126
MLE-20919 : Review and fix vulnerabilities in BlackDuck for Node Clie…
anu3990 Apr 2, 2025
1d425aa
Update Jenkins file to run tests on 11.3.1 instead of 11.3.0.
anu3990 Apr 17, 2025
7601482
Added an app server that requires SSL
rjrudin Apr 21, 2025
3352fb1
MLE-17209 : Review and fix vulnerabilities in Polaris report for Node…
anu3990 Apr 21, 2025
97d2878
MLE-16819 : Support TLSv1.3 via Node Client
anu3990 Apr 24, 2025
c17c34c
MLE-21177 : marklogic-cloud-connection.js -->progress-data-cloud-conn…
anu3990 May 1, 2025
f5ed433
Changing the port to 8017 since 8016 is used in test-config-qa-ssl.js…
anu3990 May 2, 2025
219472f
MLE-21403 : Fix Polaris medium issues for Node Client
anu3990 May 6, 2025
369ee68
MLE-21460 : ResultProvider.result() sometimes returns a text node as …
anu3990 May 14, 2025
88c509d
MLE-21557 : Node Client Api mjs tests are failing for 12-nightly due …
anu3990 May 23, 2025
dc2b1e0
MLE-21809 : Endpoint-caller and service-caller tests are failing with…
anu3990 May 28, 2025
2e0a73d
MLE-21839 : test-teardown.js throws error on Jenkins
anu3990 May 29, 2025
fa18e25
PDP-473:Create pr-workflow.yaml
SameeraPriyathamTadikonda Jun 6, 2025
ba8ac14
MLE-22656 : Provide fix for BlackDuck vulnerabilities in Node Client.
anu3990 Jun 24, 2025
f57dc15
MLE-20906 : Update Node Client based on changes to functions in Optic
anu3990 Jul 3, 2025
e67bcb4
MLE-20906 : Update Node Client based on changes to functions in Optic
anu3990 Jul 10, 2025
c75be94
MLE-20906 : Update Node Client based on changes to functions in Optic
anu3990 Jul 16, 2025
8c3185b
MLE-22540 : Update copyright and Notice file for Node Client Api
anu3990 Jul 17, 2025
bf70da5
Fix for Jenkins test failures.
anu3990 Jul 18, 2025
d509bec
MLE-12345 Bumped form-data to 4.0.4
rjrudin Jul 22, 2025
185caf1
Merge pull request #943 from marklogic/feature/form-data-bump
rjrudin Jul 28, 2025
4feec49
Added CODEOWNERS
rjrudin Jul 28, 2025
d226973
Merge pull request #944 from marklogic/feature/codeowners
rjrudin Jul 28, 2025
e1b3a43
MLE-23202 : Update package.json and changelog for 3.7.0 release.
anu3990 Jul 28, 2025
92ff1e2
MLE-23209 : Update the links in README to be more meaningful
anu3990 Jul 28, 2025
8e88755
Merge branch 'master' into feature/dev-update
rjrudin Aug 1, 2025
d8d1594
Merge pull request #953 from marklogic/feature/dev-update
rjrudin Aug 15, 2025
4601e92
MLE-23402 : MarkLogic Node.js Client API's graph was changed to graph…
anu3990 Aug 15, 2025
87c41d7
MLE-23505 : jsDoc for vector-util.js is missing
anu3990 Aug 15, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/graphs.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ function listOutputTransform(headers, data) {
return data;
}

/**
* Adding alias to help jsDoc distinguish between file and function name.
* @alias Graphs
*/
function Graphs(client) {
if (!(this instanceof Graphs)) {
return new Graphs(client);
Expand Down
22 changes: 22 additions & 0 deletions lib/vector-util.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,21 @@
'use strict';
const { Buffer } = require('buffer');

/**
* Provides functions to encode and decode vectors.
* MarkLogic 12 or higher needed.
* @namespace vectorUtil
*/

/**
* Converts an array of vector float values into an encoded string.
* Encoding vectors before writing them to documents in MarkLogic 12
* helps reduce the amount of disk space and memory consumed by vectors.
* @method vectorUtil#base64Encode
* @since 3.7.0
* @param {float[]} vector - an array of float values
* @returns {string} an encoded string value.
*/
const base64Encode = (vector) => {
const dimensions = vector.length;
const buffer = Buffer.alloc(8 + 4 * dimensions);
Expand All @@ -19,6 +34,13 @@ const base64Encode = (vector) => {
return buffer.toString('base64');
};

/**
* Converts an encoded string value to an array of vectors.
* @method vectorUtil#base64Decode
* @since 3.7.0
* @param {string} encodedVector - an encoded string value.
* @returns {float[]} an array of float values.
*/
const base64Decode = (encodedVector) => {

const buffer = Buffer.from(encodedVector, 'base64');
Expand Down
Loading