• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Kikobeats / cacheable-response
99%

Build:
DEFAULT BRANCH: master
Repo Added 22 Feb 2019 10:11AM UTC
Files 2
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH master
branch: master
CHANGE BRANCH
x
Reset
  • master
  • Kikobeats/benchmark-baseline-2
  • Kikobeats/cache-provider-keyv
  • Kikobeats/ci-engines-floor
  • Kikobeats/fix-engines
  • Kikobeats/fix-types-export
  • background
  • boolean
  • compress
  • cursor/critical-bug-investigation-7802
  • cursor/critical-bug-investigation-87a9
  • cursor/critical-bug-investigation-8fdc
  • cursor/critical-bug-investigation-a0e5
  • cursor/critical-bug-investigation-cfda
  • cursor/critical-bug-investigation-ec08
  • cursor/critical-bug-investigation-fbca
  • cursor/critical-bug-management-5e52
  • cursor/critical-bug-management-7f91
  • cursor/critical-bug-management-c688
  • cursor/critical-bug-management-d14b
  • cursor/critical-bug-management-f604
  • dependabot/github_actions/actions/checkout-5
  • dependabot/github_actions/actions/checkout-7
  • dependabot/github_actions/pnpm/action-setup-5
  • dependabot/github_actions/pnpm/action-setup-6
  • dependabot/npm_and_yarn/keyvhq/core-2.2.7
  • dependabot/npm_and_yarn/keyvhq/memoize-2.2.1
  • dependabot/npm_and_yarn/normalize-url-5.0.0
  • dependabot/npm_and_yarn/normalize-url-5.1.0
  • dependabot/npm_and_yarn/normalize-url-5.3.0
  • dependabot/npm_and_yarn/pretty-ms-6.0.0
  • dependabot/npm_and_yarn/pretty-ms-7.0.0
  • etag
  • examples
  • fix/memoize-stale-bypass
  • footprint
  • greenkeeper/compress-brotli-1.0.2
  • greenkeeper/compress-brotli-1.0.3
  • greenkeeper/compress-brotli-1.0.4
  • greenkeeper/compress-brotli-1.0.6
  • greenkeeper/compress-brotli-1.0.7
  • greenkeeper/initial
  • greenkeeper/normalize-url-4.3.0
  • greenkeeper/pretty-ms-5.0.0
  • invalidation
  • next
  • serialize
  • stale
  • v1.1.0
  • v1.1.1
  • v1.1.2
  • v1.1.3
  • v1.1.4
  • v1.1.5
  • v1.1.6
  • v1.10.0
  • v1.10.1
  • v1.10.2
  • v1.2.0
  • v1.2.1
  • v1.3.0
  • v1.3.1
  • v1.3.2
  • v1.4.0
  • v1.4.1
  • v1.4.2
  • v1.5.0
  • v1.5.1
  • v1.5.2
  • v1.6.0
  • v1.6.1
  • v1.6.10
  • v1.6.11
  • v1.6.12
  • v1.6.2
  • v1.6.3
  • v1.6.4
  • v1.6.5
  • v1.6.6
  • v1.6.7
  • v1.6.8
  • v1.6.9
  • v1.7.1
  • v1.7.2
  • v1.7.3
  • v1.7.4
  • v1.7.5
  • v1.8.0
  • v1.9.0
  • v1.9.1
  • v1.9.2
  • v2.0.0
  • v2.0.1
  • v2.0.10
  • v2.0.2
  • v2.0.3
  • v2.0.4
  • v2.0.5
  • v2.0.6
  • v2.0.7
  • v2.0.8
  • v2.0.9
  • v2.1.0
  • v2.1.1
  • v2.1.2
  • v2.1.3
  • v2.1.4
  • v2.1.5
  • v2.1.6
  • v2.1.7
  • v2.1.9

29 Oct 2026 04:24PM UTC coverage: 99.433%. Remained the same
40911308883

push

github

web-flow
fix(types): type `cache` as a Keyv instance or Keyv options (#153)

* fix(types): type `cache` as a Keyv instance or Keyv options

The runtime passes `cache` to @keyvhq/memoize, which uses a Keyv
instance as is and otherwise calls `new Keyv(cache)`. A plain
`{ get, set }` object was therefore read as Keyv options and never read
from, while a real Keyv instance did not type-check.

`CacheProvider` is now `Keyv<any>` or Keyv options without
get/set/has/delete/clear keys, which would replace the Keyv methods.
`cache` no longer takes part in generic inference, and `send` props no
longer drive inference, so `{ ...params, cache }` keeps the props
inferred from `get`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(types): lock each cache method the type rejects

Dropping one of get, set, has, delete, or clear still typechecked, and send
only had to accept data. Reject each method on its own, require get's extra
props to reach send, and describe cache as Keyv options.

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(types): reject cache options that replace Keyv prefix methods

new Keyv(options) copies _getKeyPrefix onto the instance, and memoize uses
that method to find a stored entry. The type still allowed the key.

Co-authored-by: Cursor <cursoragent@cursor.com>

* test(types): drop a const assertion the cache check does not use

The plain cache is rejected because it has set, not because set returns the literal true.

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(types): reject a cache option that replaces Keyv#iterator

Object.assign copies iterator onto the instance, and the constructor leaves
it in place when the store does not install one.

Co-authored-by: Cursor <cursoragent@cursor.com>

* test(types): lock the Keyv options a cache is allowed to set

serialize, deserialize, and ttl are copied onto the instance on purpose.
Banning them left the type tests green.

Co-authored-by: Cursor <cursoragent@cursor.com>

* tes... (continued)

92 of 94 branches covered (97.87%)

Branch coverage included in aggregate %.

259 of 259 relevant lines covered (100.0%)

52.92 hits per line

Relevant lines Covered
Build:
Build:
259 RELEVANT LINES 259 COVERED LINES
52.92 HITS PER LINE
Source Files on master
  • Tree
  • List 2
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
40911308883 master fix(types): type `cache` as a Keyv instance or Keyv options (#153) * fix(types): type `cache` as a Keyv instance or Keyv options The runtime passes `cache` to @keyvhq/memoize, which uses a Keyv instance as is and otherwise calls `new Keyv(cache)... push 29 Oct 2026 04:25PM UTC web-flow github
99.43
40840670972 master fix(types): describe the CommonJS export with export = (#152) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> push 29 Oct 2026 08:14AM UTC web-flow github
99.43
40758395317 master fix: declare the real minimum Node.js version (#151) cacheable-response: >= 12 -> >= 20, set by @keyvhq/memoize > null-prototype-object@1.2.7 (engines >= 20) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> push 28 Oct 2026 07:54PM UTC web-flow github
99.43
40758190179 master ci: add benchmark workflow (#150) * ci: add benchmark workflow Cases: - cache hit - cache miss - cache hit 304 via If-None-Match - cache hit with brotli compression Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ci(benchmark): asser... push 28 Oct 2026 07:52PM UTC web-flow github
99.43
39267087272 master fix: honor per-entry ttl on compressed cache entries (#149) * fix: honor per-entry ttl on compressed cache entries memoize reads ttl and staleTtl from the stored value. Brotli stores a Buffer, so those fields were dropped and every compressed en... push 19 Oct 2026 02:14PM UTC web-flow github
99.43
34480776922 master fix: persist default createdAt so HIT max-age can shrink (#148) * fix: persist default createdAt so HIT max-age can shrink Cache-Control max-age is createdAt + ttl - now. The documented Date.now() default was applied at read time, so every HIT l... push 10 Sep 2026 01:08PM UTC web-flow github
98.66
34446141626 master chore: tweaks push 10 Sep 2026 06:39AM UTC Kikobeats github
98.64
33366659063 master fix: detect force bypass when req.query is a raw query string (#146) * fix: detect force bypass when req.query is a raw string router-http stores the raw query string on req.query. hasQueryParameter treated any truthy value as a parsed object, s... push 31 Aug 2026 07:03AM UTC web-flow github
98.64
31937971796 master fix: do not cache GET //host under the homepage key (#144) * fix: keep scheme-relative request targets out of the origin-form cache WHATWG URL treats `//host/path` as protocol-relative, so GET //evil.com/ and GET / shared a cache key. A first mi... push 16 Aug 2026 09:02AM UTC web-flow github
98.62
31182200489 master build(deps): bump @keyvhq/core from 2.1.15 to 2.2.7 (#143) Bumps [@keyvhq/core](https://github.com/microlinkhq/keyvhq/tree/HEAD/packages/keyv) from 2.1.15 to 2.2.7. - [Release notes](https://github.com/microlinkhq/keyvhq/releases) - [Commits](htt... push 07 Aug 2026 01:21PM UTC web-flow github
98.55
See All Builds (431)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc