• 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: SELECT
CHANGE BRANCH
x
  • No branch selected
  • 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
  • master
  • 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
40902369816 Kikobeats/cache-provider-keyv Merge 00be5e2e5 into 86562b761 Pull #153 29 Oct 2026 03:31PM UTC web-flow github
99.43
40901854775 Kikobeats/cache-provider-keyv Merge cca6861c7 into 86562b761 Pull #153 29 Oct 2026 03:28PM UTC web-flow github
99.43
40900066753 Kikobeats/cache-provider-keyv Merge 795d907f1 into 86562b761 Pull #153 29 Oct 2026 03:18PM UTC web-flow github
99.43
40896416869 Kikobeats/cache-provider-keyv Merge a067a5b64 into 86562b761 Pull #153 29 Oct 2026 02:56PM UTC web-flow github
99.43
40854735638 Kikobeats/cache-provider-keyv Merge c30bb311f into 86562b761 Pull #153 29 Oct 2026 10:05AM UTC web-flow github
99.43
40854574182 Kikobeats/cache-provider-keyv Merge 2c67a7499 into 86562b761 Pull #153 29 Oct 2026 10:04AM UTC web-flow github
99.43
40852914193 Kikobeats/cache-provider-keyv Merge 20799bfff into 86562b761 Pull #153 29 Oct 2026 09:51AM UTC web-flow github
99.43
40846839537 Kikobeats/ci-engines-floor Merge 689115512 into 86562b761 Pull #154 29 Oct 2026 09:05AM UTC web-flow github
99.43
40846440023 Kikobeats/ci-engines-floor Merge ce97920a8 into 86562b761 Pull #154 29 Oct 2026 09:02AM UTC web-flow github
99.43
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