Skip to content

v3.0.0

Latest

Choose a tag to compare

@jaredwray jaredwray released this 20 Oct 00:17
· 14 commits to main since this release
Immutable release. Only release title and notes can be modified.
266157b

@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

Full List of Changes

Full diff: v2.1.0...v3.0.0