Releases: marklogic/node-client-api
3.5.0 Node Client API Release
This release is tied to the early access release of MarkLogic Server version 12 which includes "tech preview" features that only work with MarkLogic 12.0 EA1. The primary addition to this release that depends on MarkLogic 12.0 EA1 is a set of new APIs in the Optic PlanBuilder
class. Please note that any change listed below that depends on MarkLogic 12.0 EA1 is subject to change in a future release to accommodate server changes before the general access release of MarkLogic 12.
New Functionality
- Can now use BM25 scoring method for searches. (MarkLogic Server version 12.0.0-EA or higher needed).
- Can now use vector functionality including Cosine Similarity and others. (MarkLogic Server version 12.0.0-EA or higher needed).
Bug Fix
- Fix for security vulnerabilities - https://nvd.nist.gov/vuln/detail/CVE-2024-4068 and GHSA-7fh5-64p2-3v2j
- #669 - DatabaseClient.eval() always return true when the result is a boolean
3.4.0 Node Client API Release
- Can now connect to MarkLogic using OAuth token (MarkLogic Server version 11.2.0 or higher needed).
- Optic Update plans, including DSL queries that perform updates, now require
update: true
to be included in the options sent to therows.execute()
function (MarkLogic Server version 11.2.0 or higher needed). - Can now perform partial updates on documents via Optic using the new
patchBuilder
operator (MarkLogic Server version 11.2.0 or higher needed). - Can now capture errors from executing an Optic plan by including the new
onError
operator (MarkLogic Server version 11.2.0 or higher needed).
3.3.1 Node client API release
Bug Fix
Fixed a bug where a database property caused a problem when creating a URL path for querying ML.
3.3.0 Node client API release
- Can now request MarkLogic to compress the response for better performance using enableGzippedResponses (MarkLogic Server version 11.0.0 or higher needed).
- Can now send string input to cts.point and cts.polygon server functions (MarkLogic Server version 11.1.0 or higher needed).
3.2.0 Node client API release
- Can now set expiration duration for MarkLogic Cloud access-token.
- Fix for security vulnerabilities -
GHSA-4q6p-r6v2-jvc5,
GHSA-c2qf-rxjj-qqgw and GHSA-7fh5-64p2-3v2j
3.1.0 Node client API release
- Can now perform update operations in Optic.
- Can now submit GraphQL queries.
- Auto-refresh expired token when using MarkLogic Cloud authentication.
- Fix for security vulnerability "Bootstrap v3.3.1"
3.0.0 Node client API release
- Fix for security vulnerability - "Dicer" and other vulnerabilities.
- Added support for Node 18.
- Ability to connect to MarkLogic cloud and authentication. (example - https://github.com/marklogic/node-client-api/blob/master/examples/marklogic-cloud-connection.js)
- New DMSDK features - ApplyTransformListener(transformAll and queryToTransformAll), DeleteListener (removeAllUris and queryToRemoveAll) and RowBatcher/Exporting Rows(queryAll)
- Change in signature for existing DMSDK apis - writeAll and readAll, the latest signatures are - writeAll(stream, options) and readAll(stream, options). More info here - https://docs.marklogic.com/guide/node-dev/datamovement#id_61539
- Added support for "unnest" functions. (example - https://github.com/marklogic/node-client-api/blob/develop/examples/unnest-function.js)
2.9.1 Node client API release
This is a patch release to
- remove shrinkwrap.json file from npm package
- fixes critical security vulnerabilities
2.9.0 Node client API release
New Functionality
#620 - Exporting Documents - readAll api.
#622 - Collecting Document URIs - queryAll api.
#629 - Add a category option for reading only the contents of document(s).
Improvements and Bug Fixes
#599 - Optic fromSPARQL method support options parameter - Server release 10.0-8 or above required.
#638 - (Documentation Fix) - Parameters "start" and "length" for graphs.sparql are renamed to "begin" and "end".
#647 - QueryToReadAll on a Query with no results produces no response.