Skip to content

Releases

Release 0.13.0

Choose a tag to compare

@github-actions github-actions released this 11 Oct 11:30
928fcae

TL;DR

  • The axios dependency is now ^1.20.0 (was ^1.13.6), fixing 34 advisories that affect 1.13.6; with axios 1.20, HTTPS requests via HTTPS_PROXY tunnel through CONNECT, so proxies no longer see X-Vault-Token.
  • Proxies must therefore allow CONNECT to Vault's port (Squid's defaults block 8200), and one that never answers hangs requests despite timeout (workarounds: NO_PROXY, requestOptions.agentOptions.timeout).
  • kubernetesLogin, addKubernetesRole, getKubernetesRole and deleteKubernetesRole without mount_point now use the client's kubernetesPath (default kubernetes) instead of requesting auth//…, broken since 0.10.3.
  • addKubernetesRole (now taking Vault's token_* fields) and certLogin no longer reject with a TypeError when given arguments, and generateRootStatus is back with its typing; all three had been broken since 0.10.0.
  • Maintenance: dev-only nyc 18.0.0 (was 15.1.0), dropping the transitive uuid; dev lockfile security updates; CI test image moved to Debian bookworm. Docs: README and example/unseal.js cover unsealing an initialized vault.

Pull requests

  • Add unseal example and docs for already-initialized vaults (#295)
  • fix: pass kubernetesPath into the mustache path context (#302)
  • build(deps): bump form-data from 4.0.5 to 4.0.6 (#304)
  • Fix Node 20 CI job by moving Docker base image to Debian bookworm (#305)
  • fix(deps): bump axios to 1.20.0 and patch vulnerable transitive deps (#308)
  • build(deps): bump uuid and nyc (#309)
  • fix: restore generateRootStatus and repair addKubernetesRole/certLogin schemas (#312)
  • chore(release): bump version (#313)

Release 0.12.0

Choose a tag to compare

@github-actions github-actions released this 21 Mar 23:16
c62849a

TL;DR

  • New startTokenRenewal/startLeaseRenewal renew automatically at 80% of the TTL by default; stop with stopTokenRenewal, stopLeaseRenewal or stopAllRenewals. The client is now an EventEmitter emitting token:renewed, token:expired, token:error:renew and matching lease: events.
  • New KV v2 destroySecretVersions command (POST /:mount/destroy/:path) permanently destroys the given versions of a secret; mount_point defaults to secret.
  • A trailing slash on endpoint or VAULT_ADDR is now stripped, fixing malformed double-slash request URIs such as http://127.0.0.1:8200//v1/secret/hello.
  • Maintenance: added a Grype vulnerability-scan CI workflow (fails on high/critical findings), documented trailing-slash handling in the README, and bumped the transitive dev dependency flatted to 3.4.2.

Pull requests

  • build(deps-dev): bump flatted from 3.2.7 to 3.4.2 (#287)
  • Strip trailing slash from endpoint to prevent malformed URIs (#288)
  • Document trailing slash handling, close #175 (#291)
  • Add Grype vulnerability scanner workflow (#290)
  • Add automatic token and lease renewal with event-based lifecycle management (#292)
  • Add KV v2 destroySecretVersions command (#293)
  • Bump version from 0.11.1 to 0.12.0 (#294)

Release 0.11.1

Choose a tag to compare

@github-actions github-actions released this 12 Mar 22:53
660cc85

TL;DR

  • TLS options in requestOptions (ca, cert, key, passphrase, pfx, agentOptions, strictSSL) work again, at init or per call; they had been silently ignored since the switch to axios in 0.10.10.
  • timeout, httpsAgent and httpAgent in requestOptions are now passed to axios; they were dropped before, so the README's SOCKS-proxy agent setup had no effect.
  • TypeScript: VaultOptions.requestOptions is now AxiosRequestConfig & TlsOptions, so these TLS fields type-check; TlsOptions uses Node's Buffer, so builds without @types/node fail unless skipLibCheck is on.
  • Docs and tests: README and examples drop stale postman-request references and the ignored followAllRedirects option; new unit tests cover TLS and option forwarding.

Pull requests

  • Restore backward-compatible requestOptions for axios migration (#286)

Release 0.11.0

Choose a tag to compare

@github-actions github-actions released this 12 Mar 14:47
850e5b9

TL;DR

  • Adds transit commands rewrapData, transitCreateKey, transitReadKey, transitListKeys and transitDeleteKey, and exposes the client's command definitions as vault.commands.
  • TypeScript definitions now match the built-in commands: adds unwrap, addKubernetesRole, getKubernetesRole, deleteKubernetesRole; removes the non-existent generateRootStatus and a duplicate ldapLogin; types the commands option as an object map (was an array).
  • The README's new SSL/TLS (agentOptions) and updated SOCKS-proxy (httpsAgent, httpAgent) requestOptions examples have no effect in this release: the built-in axios client ignores those options.
  • Docs and tests: README refreshed (configuration options, environment variables, error handling, AppRole and Kubernetes examples, badges and links); feature list and request-options example updated; new unit tests.

Pull requests

  • Document requestOptions for SSL/TLS configuration; fix broken rpOptions example (#279)
  • Resolve merge conflicts with master for README update PR (#280)
  • Sync index.d.ts type definitions with commands.js (#283)
  • Add missing transit commands, export commands object, fix commands TypeScript type (#282)
  • Bump version from 0.10.10 to 0.11.0 (#284)

Release 0.10.10

Choose a tag to compare

@github-actions github-actions released this 10 Mar 23:22
b27d395

TL;DR

  • New update(path, data, requestOptions) sends a PATCH (application/merge-patch+json) to add or change keys at a path without removing the others, unlike write, which replaces them all.
  • Regression: requestOptions TLS settings (ca, cert, key, agentOptions, strictSSL) and timeout are ignored, because the new axios wrapper forwards only method, URL, headers and JSON body. Restored in 0.11.1.
  • Network and TLS failures now reject with AxiosError, whose config holds the X-Vault-Token header, so logging the error object can expose the token; empty 204 responses resolve '', not undefined.
  • axios (^1.13.6) replaces the postman-request runtime dependency, so qs, flagged by CVE-2025-15284, is no longer installed; index.d.ts drops its undeclared request import and types the constructor's requestOptions as AxiosRequestConfig.

Pull requests

  • chore(deps): bump postman-request to .48 (#273)
  • build(deps-dev): bump js-yaml from 3.14.1 to 3.14.2 (#270)
  • Adding Update function, to PATCH a path (#267)
  • build(deps): bump qs from 6.14.1 to 6.14.2 (#275)
  • build(deps-dev): bump minimatch from 3.1.2 to 3.1.5 (#276)
  • Fix postman-request version (#269)
  • Update definition file, fixes #274 (#277)
  • Replace postman-request with axios (#278)
  • Bump version from 0.10.9 to 0.10.10 (#281)

Release 0.10.9

Choose a tag to compare

@github-actions github-actions released this 09 Oct 14:31

TL;DR

  • No library code changes in 0.10.8 (published to npm without a GitHub release) or 0.10.9: both packages are identical to 0.10.5 except for the version. 0.10.6 and 0.10.7 were never published.
  • Releases now run when a version-bump PR merges: CI publishes to npm through OIDC trusted publishing, with provenance, and creates the GitHub release; dev-only form-data bumped to 2.5.5.

Pull requests

  • chore(ci): fix version typo (#265)
  • build(deps-dev): bump form-data from 2.5.1 to 2.5.5 (#259)
  • chore(release): bump version (#266)

Also included, from 0.10.8 (published to npm without a GitHub release):

  • Update publish.yaml for release job permissions (#261)
  • chore(release): bump version (#262)
  • chore(release): bump version (#263)
  • chore(release): bump version (#264)

Release 0.10.5

Choose a tag to compare

@github-actions github-actions released this 07 Jun 22:45

TL;DR

  • No library changes — the npm package is identical to 0.10.4 apart from the version field in package.json.
  • Re-release: npm's 0.10.4 was published from a commit that is not on master; 0.10.5 publishes the same code from master.

Pull requests

None. This release only bumps the version (see TL;DR).

Release 0.10.4

Choose a tag to compare

@github-actions github-actions released this 07 Jun 22:32
d4af2f8

TL;DR

  • Breaking: declared minimum Node.js raised from 16 to 18 (engines.node is now >= 18.0.0). No library code changed; src/ is identical to 0.10.3.
  • Minimum postman-request (the default HTTP client) raised from 2.88.1-postman.33 to 2.88.1-postman.42; that version no longer depends on har-validator, brotli or performance-now.
  • Maintenance: CI now also tests Node 20, 22, 23 and 24 (Codecov upload disabled); release workflow reworked; lockfile security refresh; package.json links now point to nodevault/node-vault.

Pull requests

  • github actions improvements (#256)
  • sec: update deps (#257)
  • update: Node 16 is dead, moving to 18 (#258)

Release 0.10.3

Choose a tag to compare

@github-actions github-actions released this 07 Jun 18:30
5278c54

TL;DR

  • New jwtLogin for Vault's JWT auth method: sends the required role and jwt to auth/jwt/login (mount overridable via mount_point) and stores the returned client token; typed in index.d.ts.
  • kubernetesLogin, getKubernetesRole and deleteKubernetesRole accept a per-call kubernetesPath naming the auth mount; mount_point, which already did this, still takes precedence.
  • The same change regressed the default: without mount_point or kubernetesPath these calls request auth//… instead of auth/kubernetes/…, and the new client-level kubernetesPath option has no effect.
  • Maintenance: CI, TruffleHog and publish-workflow updates (publish actions pinned to SHAs), dev-only @babel/traverse 7.23.2, README Kubernetes example; a 0.10.4-0 prerelease of this code also reached npm.

Pull requests

  • fix for #143 (#245)
  • feat: Added support for jwt login. (#250)
  • Fix | Use compose action (#252)
  • build(deps-dev): bump @babel/traverse from 7.22.8 to 7.23.2 (#244)

Release 0.10.2

Choose a tag to compare

@github-actions github-actions released this 21 Jul 05:10

TL;DR

  • Runtime dependencies updated: debug 3.1.0 (exact pin) → ^4.3.4 and mustache ^2.2.1 → ^4.2.0 (major-version bumps), tv4 ^1.2.7 → ^1.3.0. Library code (src/) and typings (index.d.ts) are unchanged.
  • Maintenance: dev dependencies updated (chai ^4.3.7, sinon ^15.2.0, sinon-chai ^3.7.0, dirty-chai ^2.0.1, docco ^0.9.1, eslint ^8.45.0); package-lock.json regenerated in lockfile v3 format.

Pull requests

  • Update dependencies (#238)