← Back to Changelog

v3.0.0

Release

@jaredwray/mockhttp@3.0.0 — 2026-10-19

Request bins now use Keyv via MockHttpBins, and the Worker can store them in MongoDB Atlas.

⚠ BREAKING CHANGES

  • Replace BinManager, BinStore, and InMemoryBinStore with async MockHttpBins. mock.bins.start() and mock.bins.stop() are removed. The default maxBodySize is 128 KiB (was 1 MiB). Node engines are now >=22.19.0 (was >=22.18.0). (b1ddcc0, #246) Migration: assign mock.bins = new MockHttpBins({ keyv }) before start() (default store is new Keyv()) and await the bin methods.

    import Keyv from "keyv";
    import { MockHttp, MockHttpBins } from "@jaredwray/mockhttp";
    
    const mock = new MockHttp();
    mock.bins = new MockHttpBins({ keyv: new Keyv(), maxBodySize: 128 * 1024 });
    await mock.start();
    const bin = await mock.bins.createBin();
    

Features

  • Store Worker request bins in MongoDB Atlas when MONGODB_URI is set (266157b, #247)

    # Cloudflare Worker secret. Bins go in the Atlas `bins` collection.
    # Leave MONGODB_URI unset to keep the in-memory Keyv.
    wrangler secret put MONGODB_URI
    

Bug Fixes

  • security - upgrade fastify proxy-addr, fast-uri, find-my-way, undici (9c52869, #233)
  • security - upgrade handlebars, source-map-js (28aa662, #236)

Internal

  • sync defense-in-depth files from agentic (7fb3ce4, #234)
  • upgrade code quality dependencies (a57b990, #235)
  • upgrade TypeScript and build tooling (b11fa0f, #237)
  • upgrade monorepo tooling (58e8596, #238)
  • upgrade GitHub Actions (58bc448, #239)
  • upgrade Dev Container images (2047c3c, #240)
  • upgrade Fastify dependencies (3e93bea, #241)
  • upgrade hookified (d938e6e, #242)
  • upgrade pino and pino-pretty (c2a94ad, #243)
  • upgrade Docker Node.js runtime image (cd5decf, #244)
  • pin the Compose image (74ad4ea, #245)

Contributors

  • @jaredwray (11)
  • @cursoragent (5)

Full List of Changes

  • fix: security - upgrade fastify proxy-addr, fast-uri, find-my-way, undici by @jaredwray in #233
  • mono - chore: sync defense-in-depth files from agentic by @jaredwray in #234
  • mono - chore: upgrade code quality dependencies by @jaredwray in #235
  • fix: security - upgrade handlebars, source-map-js by @jaredwray in #236
  • mono - chore: upgrade TypeScript and build tooling by @jaredwray in #237
  • mono - chore: upgrade monorepo tooling by @jaredwray in #238
  • mono - chore: upgrade GitHub Actions by @jaredwray in #239
  • mono - chore: upgrade Dev Container images by @jaredwray in #240
  • mono - chore: upgrade Fastify dependencies by @jaredwray in #241
  • mono - chore: upgrade hookified by @jaredwray in #242
  • mono - chore: upgrade pino and pino-pretty by @jaredwray in #243
  • mono - chore: upgrade Docker Node.js runtime image by @jaredwray in #244
  • mono - chore: pin the Compose image by @jaredwray in #245
  • Store request bins in Keyv by @jaredwray in #246
  • Store Worker request bins in MongoDB Atlas by @jaredwray in #247

Full diff: https://github.com/jaredwray/mockhttp/compare/v2.1.0...v3.0.0