Repository navigation
Releases
v10.6.0
Added
-
Added opt-in async-context stream transaction APIs (DE-10):
Transaction#stepAsynckeeps the transaction active until the callback's
returned Promise settles, andDatabase#withTransactionAsyncprovides the
matching automatic commit/abort helper. On Node.js, different transactions
can run concurrently on oneDatabasewithout sharing transaction IDs.
ExistingstepandwithTransactionbehavior remains unchanged. See the
stream transactions guide. -
Tests: Browser integration coverage (DE-1216) using the existing compatible
test suite against live single-server and cluster deployments in the latest
stable Chrome and Firefox releases. Node.js-only files andBuffer-specific
cases skip in browsers. -
Tests: Integration coverage for async job APIs (
createJob,job,
listPendingJobs,listCompletedJobs,deleteExpiredJobResults,
deleteAllJobResults) and theJobclass (load,cancel,deleteResult,
getCompleted). Suites skip underROUND_ROBINload balancing because job
state is coordinator-local.
Fixed
-
Packaging: Include the stream transaction and ArangoDB 4.0 migration guides
in the npm package so relative documentation links resolve. -
CI: Resolve and install Chrome for Testing Stable from Google's automation
distribution for browser integration and smoke jobs, avoiding the direct
Chrome.debdownload endpoint that stalls or resets on CI runners. Use a
shared Chrome installer and update Puppeteer's executable path. Retain bounded
retries and timeouts for Chrome and Firefox downloads (DE-1216). -
Tests: Align async stream transaction coverage with the browser integration
suite (DE-1216), skipping Node.js-only async context cases individually and
verifying browser rejection and independent-connection concurrency behavior.
Abort outstanding test transactions before dropping collections to avoid
cleanup timeouts after failures.
v10.5.0
Added
-
Tests: Integration coverage for AQL query results cache APIs
(listQueryCacheEntries,clearQueryCache,getQueryCacheProperties,
setQueryCacheProperties), including global property updates via_system.
Entry list/clear cases skip on cluster (results cache is single-server only). -
Added ArangoDB 3.12.10 vector index support (DE-1213), including optional
and automatically scalednLists, configurablenumberOfDocsPerCentroid,
per-shard training details, and documentation for factory placeholders and
covering projections.
v10.4.0
Fixed
-
Fixed TypeScript builds by explicitly including Node.js and Mocha type definitions
-
Fixed connection failures with undici 8.x (
InvalidArgumentError: invalid content-length header)
on the defaultglobalThis.fetchpath (not only when usingconfig.agentOptions) by removing
manualContent-Lengthheader handling by default and lettingfetchset it from the request body.
(#855) -
Fixed connection failures never being retried.
isSystemErrorrejected the error objects thrown by
undici because their immediate prototype is notError.prototype, so a refused connection produced
isSafeToRetry: nulland the retry gate — which also governs host failover — was never entered
(#867). -
Fixed
config.maxRetrieshaving no effect. It was destructured out of the config without being
re-added to the connection's common request options, so the retry budget always fell back to
hosts.length - 1, and setting it tofalsedid not disable retries
(#867). -
Fixed a possible stack overflow while constructing a
FetchFailedErrorwhen the error'scause
chain is cyclic (#867).
Added
- Added
config.forceContentLength(defaultfalse). Set totrueif you seeECONNRESETin
Next.js 15 production builds when usingnext/headerscookies()(#831).
Do not enable this when using undici 8.x unless required — it restores explicitContent-Length
handling that can conflict with strict undici header validation.
Deprecated
- Marked
Databasemethods removed in ArangoDB 4.0 as deprecated (DE-1170); see docs/arangodb-v4-removed-methods.md.
v10.3.1
Fixed
-
Fixed connection failures with undici 8.x (
InvalidArgumentError: invalid content-length header)
when usingconfig.agentOptionsby not setting a manualContent-Lengthheader on undici fetch requests.
(#855) -
Tests: Version-gated skips for ArangoDB 4.0+ API and behavior changes (DE-1151); prerelease tags
(e.g.4.0-nightly) parse to a numeric minor version again so skip gates are not driven byNaN. -
Tests: More reliable cluster and
ROUND_ROBINintegration runs (shared timeouts, propagation helpers,
stable access-token and analyzer listing). -
Dev:
undiciadded as a devDependency so integration tests usingagentOptionsresolve the dynamic
import("undici")inconnection.ts(optional peer alone is not installed by default).
Added
- Added CircleCI pipelines for integration tests and browser smoke (
.circleci/): single and cluster-server matrices (Node 22/24, SSL, CJS/ESM), HTTP/1.1 vs HTTP/2 smoke, optional full-matrix viadocker-img, and Puppeteer browser smoke on Enterprise 3.12 and 4.0-nightly (GCR images).
Changed
- CI: Integration tests and browser smoke run on CircleCI instead of GitHub Actions. GitHub Actions CI
(.github/workflows/ci.yml) onmainonly promotesstable; Update docs and CodeQL chain off CI.
README status badge points to CircleCI. - CI (DE-1167): Run CircleCI jobs on org self-hosted runners —
node-testexecutors use
arangodb/medium-arm64-privileged;browser-smokeusesarangodb/medium-amd64-privileged; new
setup-dockercommand installs Docker and startsdockerdin the job (DinD; no
setup_remote_docker). - CI: Default ArangoDB images are
gcr.io/gcr-for-testing/arangodb/enterprise:3.12and
gcr.io/gcr-for-testing/arangodb/enterprise-preview:4.0-nightly. - CI:
login-docker-hubbeforestart-dbvia contextdocker-hub
(DOCKER_HUB_USER/DOCKER_HUB_PASSWORD). - CI: Browser smoke — Google Chrome (AMD64) in the job;
smoke-test.mjsserves on port 8559 and
proxies toARANGO_PROXY_TARGET(default127.0.0.1:8529locally,172.28.0.1:8529in CI);
Databaseuses the smoke origin (PUPPETEER_SKIP_DOWNLOADin CI).
v10.3.0
Added
-
Added missing AQL query tracking attributes to match HTTP API documentation (DE-1139)
The query tracking types now include all attributes supported by the ArangoDB query tracking endpoints:
slowStreamingQueryThreshold: Added toQueryTrackingOptions(optional) andQueryTrackingInfo(required)- Threshold in seconds for treating a streaming query as slow (when
streamoption istrue)
- Threshold in seconds for treating a streaming query as slow (when
modificationQuery: Added toQueryDescription(required)- Boolean indicating whether the query writes data (
true) or only reads (false)
- Boolean indicating whether the query writes data (
exitCode: Added toQueryDescription(optional)- Error code (
errorNum) indicating why the query failed, or0on success - Only present in slow queries (finished queries), not in running queries
- Error code (
-
Added missing options to
ExplainOptionstype forDatabase.explain()method (DE-1009)The
ExplainOptionstype now includes all options supported by the ArangoDB explain endpoint:fullCount: Calculate total documents as if LIMIT wasn't appliedprofile: Include query profiling information (0, 1, or 2)maxNodesPerCallstack: Control stack splitting thresholdmaxWarningCount: Limit the number of warnings returnedfailOnWarning: Throw exception on warnings instead of returning them
-
Added
trainingState,errorMessage, andsparsefor vector indexes (DE-1147)VectorIndexDescriptionnow reflects ArangoDB 3.12.9+ index responses: optional
trainingState(unusable,training,ingesting, orready) and optional
errorMessagewhen training or usability fails (for example, insufficient training data).
TheVectorIndexTrainingStatetype alias documents the allowed
trainingStatevalues.EnsureVectorIndexOptionsnow includes optionalsparse, aligned with the
vector index HTTP API so documents without the indexed vector field can be
omitted whensparseistrue.
Fixed
- Fixed incorrect handling of
maxPlansinQueryOptions. The driver now
supportsmaxNumberOfPlansand maps legacymaxPlanstomaxNumberOfPlans
when the latter is not provided. The driver always sendsoptions.maxNumberOfPlans
to the server. If both are provided,maxNumberOfPlanstakes precedence.
maxPlansis deprecated and will be removed in a future major release.
(#845)
v10.2.2
Fixed
- Fixed "Fetch failed: Invalid URL" error when using agentOptions by ensuring request creation
consistently uses undici.Request together with undici.fetch when the undici-based
dispatcher is active. This avoids invalid URL errors caused by mixing globalThis.Request
with undici request implementations.
v10.2.1
Fixed
-
Fixed a JSON Parse error: Unexpected EOF occurring in the Bun runtime when using
documentExists,vertexExists, oredgeExists. The driver now correctly skips
response body parsing for HEAD requests, which must not include a body per RFC 7231.
This fix also applies to all HEAD requests made via Route.head(), ensuring consistent
behavior and compatibility across all fetch implementations.
(#821) -
Fixed
ECONNRESETerrors in NextJS 15 production builds when usingnext/cookies
by explicitly setting theContent-Lengthheader for all fixed-size request bodies.
The driver now calculates and setsContent-Lengthfor strings (JSON and plain text),
Blobs, Buffers, FormData, and empty bodies, ensuring compatibility with NextJS 15
dynamic routes and other environments that don't automatically set this header.
(#831)
v10.2.0
Fixed
- Fixed
agentOptionsnot being passed tocreateHostfunction, preventing
configuration of undici agent for self-signed certificates and other TLS options.
TheagentOptionsparameter is now properly extracted from configuration and
passed to all host creation calls. (#824)
Added
-
Added
maxSkewThresholdandminDeletionRatiooptions toTierConsolidationPolicytype (DE-1094)These options are available from ArangoDB 3.12.7 onward and can be used for both arangosearch Views and inverted indexes.
-
Added
storedValuesoption for vector indexes (DE-1098)Vector indexes now support storing additional attributes for efficient filtering.
This option is available in ArangoDB 3.12.7+. -
Added
innerProductmetric support for vector indexesVector indexes now support the
innerProductmetric, which was introduced in
ArangoDB 3.12.6. This metric compares both angle and magnitude without normalization,
making it faster than cosine similarity. -
Added access token support (DE-1106)
Access tokens can be used as password replacements for authentication. This
feature enables better automation, CI/CD integration, and fine-grained access
control.- Added
db.createAccessToken(username, options)method to create access
tokens for users - Added
db.getAccessTokens(username)method to list all access tokens for
a user (metadata only) - Added
db.deleteAccessToken(username, tokenId)method to revoke access
tokens - Added
db.useAccessToken(token)convenience method for Basic Auth
authentication with tokens - Added TypeScript types:
CreateAccessTokenOptions,AccessToken,
AccessTokenMetadata, andAccessTokenListResponse
Access tokens can be used with:
- Basic Authentication:
db.useAccessToken(token)or
db.useBasicAuth("", token) - JWT exchange:
db.login("", token)ordb.login(username, token)
Note: The
valid_untiloption accepts only Unix timestamps (numbers in
seconds), not Date objects. Users must convert Date objects themselves:
Math.floor(date.getTime() / 1000). - Added
Deprecated
-
Deprecated consolidation policy options in
TierConsolidationPolicythat are ignored by ArangoDB 3.12.7+ (DE-1094)The following options are ignored by the server from v3.12.7 onwards:
segmentsMin,segmentsMax,segmentsBytesFloorandminScore. These fields remain in the type definition for backward compatibility but are marked as deprecated.
v10.1.2
What's Changed
- Update MIGRATING.md by @cmyk47 in #823
- Update code examples and a few test names due to renamed methods by @Simran-B in #826
- Vector Index Support by @apetenchea in #828
New Contributors
- @cmyk47 made their first contribution in #823
- @apetenchea made their first contribution in #828
Full Changelog: v10.1.1...v10.1.2