Skip to content

v6.0.0-rc.1

Latest

Choose a tag to compare

@jaredwray jaredwray released this 03 Aug 19:15
fffd44b

keyv v6.0.0-rc.1 — 2026-08-03

Promote 6.0 to release candidate: Cloudflare KV adapter, MySQL fixes, and a full dependency refresh.

All published @keyv/* adapters release in lockstep at this version. @keyv/website is private and not published.

⚠ BREAKING CHANGES

  • mysql: keys are now stored as VARBINARY (6e519b4, #2015; f579073, #2016)
    Migration: @keyv/mysql tables created under 6.0.0-beta.4 use the previous key column type. Recreate the keyv table, or ALTER the key column to VARBINARY, before upgrading.
  • keyv: checkExpired now defaults to true (f067213, #1984)
    Migration: expired keys are now checked and cleared by default. Pass checkExpired: false to restore the previous behavior.
  • keyv: removed the namespace removeKeyPrefix behavior for v6 (73fd79b, #2013)
    Migration: keys are no longer stripped of their namespace prefix on read. If you relied on the stripped form, read the full namespaced key.

Features

  • add Cloudflare Workers KV storage adapter (e004467, #1985)

    import { createKeyv } from "@keyv/cloudflare-kv";
    
    // REST mode — from any Node.js process
    const keyv = createKeyv({
      mode: "rest",
      accountId: process.env.CF_ACCOUNT_ID,
      namespaceId: process.env.CF_KV_NAMESPACE_ID,
      apiToken: process.env.CF_API_TOKEN,
    });
    // Or "bind" mode inside a Worker: createKeyv({ kvNamespace: env.MY_KV })
  • mysql: move to async config changes (b775072, #2018)

  • keyv: add the built-in adapters to the docs (2e03276, #1983)

  • mysql: add docs (e07dc4c, #2019)

Bug Fixes

Documentation

  • add keyv-s3fifo to third-party storage adapters (fb420e7, #2020)

Internal

  • refactor: add KeyvAny/KeyvAnyArray types and replace explicit any (49ed583, #2010)
  • 34 dependency and tooling upgrades across the monorepo — highlights: TypeScript 6→7, pnpm 11.5→11.18, better-sqlite3 12→13 (N-API, drops prebuild-install), mongodb 7.4→7.5, mysql2 3.22→3.23, iovalkey 0.3→0.4, @redis/client 6.0→6.1, hookified 3.0.1→3.0.2, actions/setup-node v6→v7, and the Node engines floor raised to ≥ 22.19.0. Full inventory below.

Contributors

Full List of Changes

Full diff: v6.0.0-beta.4...v6.0.0-rc.1