Packages

cacache

21.0.2 · 11 Nov 2026ISC44M / weekRepositoryHomepagenpmAtom feed

Your version

6.0.0

major5 Mar 2017Where it was published

6.3.0 is the newest release of 6.x.

In short

10 breaking23 new18 fixed2 internal

  • Breaking

    cache: index/content directories are now versioned. Previous caches are no longer compatible and cannot be migrated.

  • Breaking

    util: fix-owner now uses Promises instead of callbacks

  • Breaking

    index: Previously-generated index entries are no longer compatible and the index must be regenerated.

  • Breaking

    index: The index format has changed and previous caches are no longer compatible. Existing caches will need to be regenerated.

  • Breaking

    hashes: Default hashAlgorithm changed from sha1 to sha512. If you rely on the prior setting, pass opts.hashAlgorithm in explicitly.

  • Breaking

    content: Previously-generated content directories are no longer compatible and must be regenerated.

  • Breaking

    verify: API is now promise-based

  • Breaking

    read: Switches to a Promise-based API and removes callback stuff

Release note

Bug Fixes

  • api: keep memo cache mostly-internal

  • content: use the rest of the string, not the whole string

  • deps: removed format-number@2.0.2

  • deps: removed inflight@1.0.6

  • deps: rimraf@2.6.1

  • deps: standard@9.0.0

  • deps: tap@10.3.0

  • deps: weallcontribute@1.0.8

  • hashes: change default hashAlgorithm to sha512

  • hashes: missed a spot for hashAlgorithm defaults

  • index: add length header before JSON for verification

  • index: change index filenames to sha1s of keys

  • index: who cares about race conditions anyway

  • perf: bulk-read get+read for massive speed

  • perf: use bulk file reads for index reads

  • put-stream: remove tmp file on stream insert error

  • put-stream: robustified and predictibilized

  • put-stream: use new promise API for moves

  • readme: updated to reflect new default hashAlgo

Features

  • api: converted external api

  • cacache: exported clearMemoized() utility

  • cache: add versioning to content and index

  • content: collate content files into subdirs

  • deps: @npmcorp/move@1.0.0

  • deps: bluebird@3.4.7

  • deps: promise-inflight@1.0.1

  • get: added memoization support for get

  • get: export hasContent

  • index: add hashAlgorithm and format insert ret val

  • index: collate index files into subdirs

  • index: promisify entry index

  • memo: added memoization lib

  • memo: export memoization api

  • move-file: add move fallback for weird errors

  • perf: bulk content write api

  • put: added memoization support to put

  • read: switched to promises

  • rm: added memoization support to rm

  • rm: switched to promises

  • util: promise-inflight ownership fix requests

  • util: use promises for api

  • verify: converted to Promises

Breaking changes

  • Breaking

    cache: index/content directories are now versioned. Previous caches are no longer compatible and cannot be migrated.

  • Breaking

    util: fix-owner now uses Promises instead of callbacks

  • Breaking

    index: Previously-generated index entries are no longer compatible and the index must be regenerated.

  • Breaking

    index: The index format has changed and previous caches are no longer compatible. Existing caches will need to be regenerated.

  • Breaking

    hashes: Default hashAlgorithm changed from sha1 to sha512. If you
    rely on the prior setting, pass opts.hashAlgorithm in explicitly.

  • Breaking

    content: Previously-generated content directories are no longer compatible
    and must be regenerated.

  • Breaking

    verify: API is now promise-based

  • Breaking

    read: Switches to a Promise-based API and removes callback stuff

  • Breaking

    rm: Switches to a Promise-based API and removes callback stuff

  • Breaking

    index: This changes the API to work off promises instead of callbacks

  • Breaking

    api: This means we are going all in on promises now

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.