Skip to content

Releases

v10.6.0

Choose a tag to compare

@bluepal-yaswanth-peravali bluepal-yaswanth-peravali released this 14 Oct 06:23
6087166

Added

  • Added opt-in async-context stream transaction APIs (DE-10):
    Transaction#stepAsync keeps the transaction active until the callback's
    returned Promise settles, and Database#withTransactionAsync provides the
    matching automatic commit/abort helper. On Node.js, different transactions
    can run concurrently on one Database without sharing transaction IDs.
    Existing step and withTransaction behavior 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 and Buffer-specific
    cases skip in browsers.

  • Tests: Integration coverage for async job APIs (createJob, job,
    listPendingJobs, listCompletedJobs, deleteExpiredJobResults,
    deleteAllJobResults) and the Job class (load, cancel, deleteResult,
    getCompleted). Suites skip under ROUND_ROBIN load 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 .deb download 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

Choose a tag to compare

@bluepal-yaswanth-peravali bluepal-yaswanth-peravali released this 11 Sep 07:19

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 scaled nLists, configurable numberOfDocsPerCentroid,
    per-shard training details, and documentation for factory placeholders and
    covering projections.

v10.4.0

Choose a tag to compare

@bluepal-yaswanth-peravali bluepal-yaswanth-peravali released this 18 Aug 12:43

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 default globalThis.fetch path (not only when using config.agentOptions) by removing
    manual Content-Length header handling by default and letting fetch set it from the request body.
    (#855)

  • Fixed connection failures never being retried. isSystemError rejected the error objects thrown by
    undici because their immediate prototype is not Error.prototype, so a refused connection produced
    isSafeToRetry: null and the retry gate — which also governs host failover — was never entered
    (#867).

  • Fixed config.maxRetries having 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 to false did not disable retries
    (#867).

  • Fixed a possible stack overflow while constructing a FetchFailedError when the error's cause
    chain is cyclic (#867).

Added

  • Added config.forceContentLength (default false). Set to true if you see ECONNRESET in
    Next.js 15 production builds when using next/headers cookies() (#831).
    Do not enable this when using undici 8.x unless required — it restores explicit Content-Length
    handling that can conflict with strict undici header validation.

Deprecated

v10.3.1

Choose a tag to compare

@bluepal-yaswanth-peravali bluepal-yaswanth-peravali released this 02 Jun 07:21

Fixed

  • Fixed connection failures with undici 8.x (InvalidArgumentError: invalid content-length header)
    when using config.agentOptions by not setting a manual Content-Length header 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 by NaN.

  • Tests: More reliable cluster and ROUND_ROBIN integration runs (shared timeouts, propagation helpers,
    stable access-token and analyzer listing).

  • Dev: undici added as a devDependency so integration tests using agentOptions resolve the dynamic
    import("undici") in connection.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 via docker-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) on main only promotes stable; 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-test executors use
    arangodb/medium-arm64-privileged; browser-smoke uses arangodb/medium-amd64-privileged; new
    setup-docker command installs Docker and starts dockerd in the job (DinD; no
    setup_remote_docker).
  • CI: Default ArangoDB images are gcr.io/gcr-for-testing/arangodb/enterprise:3.12 and
    gcr.io/gcr-for-testing/arangodb/enterprise-preview:4.0-nightly.
  • CI: login-docker-hub before start-db via context docker-hub
    (DOCKER_HUB_USER / DOCKER_HUB_PASSWORD).
  • CI: Browser smoke — Google Chrome (AMD64) in the job; smoke-test.mjs serves on port 8559 and
    proxies to ARANGO_PROXY_TARGET (default 127.0.0.1:8529 locally, 172.28.0.1:8529 in CI);
    Database uses the smoke origin (PUPPETEER_SKIP_DOWNLOAD in CI).

v10.3.0

Choose a tag to compare

@bluepal-yaswanth-peravali bluepal-yaswanth-peravali released this 14 Apr 06:30

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 to QueryTrackingOptions (optional) and QueryTrackingInfo (required)
      • Threshold in seconds for treating a streaming query as slow (when stream option is true)
    • modificationQuery: Added to QueryDescription (required)
      • Boolean indicating whether the query writes data (true) or only reads (false)
    • exitCode: Added to QueryDescription (optional)
      • Error code (errorNum) indicating why the query failed, or 0 on success
      • Only present in slow queries (finished queries), not in running queries
  • Added missing options to ExplainOptions type for Database.explain() method (DE-1009)

    The ExplainOptions type now includes all options supported by the ArangoDB explain endpoint:

    • fullCount: Calculate total documents as if LIMIT wasn't applied
    • profile: Include query profiling information (0, 1, or 2)
    • maxNodesPerCallstack: Control stack splitting threshold
    • maxWarningCount: Limit the number of warnings returned
    • failOnWarning: Throw exception on warnings instead of returning them
  • Added trainingState, errorMessage, and sparse for vector indexes (DE-1147)

    VectorIndexDescription now reflects ArangoDB 3.12.9+ index responses: optional
    trainingState (unusable, training, ingesting, or ready) and optional
    errorMessage when training or usability fails (for example, insufficient training data).
    The VectorIndexTrainingState type alias documents the allowed
    trainingState values.

    EnsureVectorIndexOptions now includes optional sparse, aligned with the
    vector index HTTP API so documents without the indexed vector field can be
    omitted when sparse is true.

Fixed

  • Fixed incorrect handling of maxPlans in QueryOptions. The driver now
    supports maxNumberOfPlans and maps legacy maxPlans to maxNumberOfPlans
    when the latter is not provided. The driver always sends options.maxNumberOfPlans
    to the server. If both are provided, maxNumberOfPlans takes precedence.
    maxPlans is deprecated and will be removed in a future major release.
    (#845)

v10.2.2

Choose a tag to compare

@bluepal-yaswanth-peravali bluepal-yaswanth-peravali released this 30 Jan 12:21

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

Choose a tag to compare

@bluepal-yaswanth-peravali bluepal-yaswanth-peravali released this 23 Jan 06:27

Fixed

  • Fixed a JSON Parse error: Unexpected EOF occurring in the Bun runtime when using
    documentExists, vertexExists, or edgeExists. 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 ECONNRESET errors in NextJS 15 production builds when using next/cookies
    by explicitly setting the Content-Length header for all fixed-size request bodies.
    The driver now calculates and sets Content-Length for 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

Choose a tag to compare

@bluepal-yaswanth-peravali bluepal-yaswanth-peravali released this 16 Jan 10:41

Fixed

  • Fixed agentOptions not being passed to createHost function, preventing
    configuration of undici agent for self-signed certificates and other TLS options.
    The agentOptions parameter is now properly extracted from configuration and
    passed to all host creation calls. (#824)

Added

  • Added maxSkewThreshold and minDeletionRatio options to TierConsolidationPolicy type (DE-1094)

    These options are available from ArangoDB 3.12.7 onward and can be used for both arangosearch Views and inverted indexes.

  • Added storedValues option 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 innerProduct metric support for vector indexes

    Vector indexes now support the innerProduct metric, 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, and AccessTokenListResponse

    Access tokens can be used with:

    • Basic Authentication: db.useAccessToken(token) or
      db.useBasicAuth("", token)
    • JWT exchange: db.login("", token) or db.login(username, token)

    Note: The valid_until option accepts only Unix timestamps (numbers in
    seconds), not Date objects. Users must convert Date objects themselves:
    Math.floor(date.getTime() / 1000).

Deprecated

  • Deprecated consolidation policy options in TierConsolidationPolicy that are ignored by ArangoDB 3.12.7+ (DE-1094)

    The following options are ignored by the server from v3.12.7 onwards: segmentsMin, segmentsMax, segmentsBytesFloor and minScore. These fields remain in the type definition for backward compatibility but are marked as deprecated.

v10.1.2

Choose a tag to compare

@apetenchea apetenchea released this 02 Jul 15:15
fe2ff4b

What's Changed

New Contributors

Full Changelog: v10.1.1...v10.1.2

v10.1.1

Choose a tag to compare

released this 13 Jan 10:06
c13259a

Changed

  • Removed File from source option types in Foxx CRUD methods (#818)

    The source option type already includes Blob, which File extends.