Changelog

v4.0.0 Release

Bin management requires an owner token. A reserved header name returns HTTP 400.

  • Bin management routes require an owner token. MockHttpBins throws when idLength is not a positive integer (#275) Migration: Read token from POST /bins. Send Authorization: Bearer <token> on each later /bins call. The capture path /b/:id stays open. In-process methods such as getBin do not require the token.

    # Before 4.0.0
    POST /bins            → 200 { "id", "url",...
    
Read more →
v3.0.2 Release

Patch security issues in mongodb, Node.js, set-cookie-parser, and minimatch, and fix the Wasmer install.

  • mount pnpm-workspace.yaml during the Wasmer install (#263)

  • security - mongodb 7.8.0 (CVE-2026-119179) (#264)

  • pin Node.js 24.22.3 for the November security release (#266)

  • security - set-cookie-parser 2.7.3 (AIKIDO-2026-269475) (#267)

  • security - minimatch 11.0.5 (CVE-2026-118764) (#268)

  • remove stale minimumReleaseAgeExclude entries (#265)

  • @jaredwray (5)

Read more →
v3.0.1 Release

Security patches and Worker fixes. /healthz omits scheme, host, username, and password length.

  • start the Worker during isolate startup (#248)
  • report bin store health and keep a failed connect in process (#249)
  • drop every second socket error that has no listener (#250)
  • Add redacted URI diagnostics to /healthz (#254)
  • open one MongoDB client per Worker request to stop 1101s on bins (#255)
  • pin Node 24.22.1 and patched undici (#256)
Read more →
v3.0.0 Release

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

  • 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...
Read more →
v2.1.0 Release

Add AUTO_DETECT_PORT=false so the process keeps PORT, and include the docs site in the npm package.

  • Deploy the Node server to Wasmer Edge (#225)

    PORT=3000 AUTO_DETECT_PORT=false node dist/index.mjs
    
  • include Docula site in the npm tarball (#222)

  • deploy Wasmer with a remote build (#226)

  • deploy Wasmer through the Anybuild file (#228)

  • add Drydock review badge to README (#224)

  • rename Hosted Service page to MockHttp.org Live (#230)

Read more →
v2.0.0 Release

Replace Scalar with a Docula site, run mockhttp.org on a Worker, and add initialize().

  • replace Scalar with a Docula documentation site (#209)

    # Before 1.10.0                 After 1.10.0
    GET /                        →  Scalar UI          Docula Getting Started
    GET /docs                    →  Swagger UI         Docula docs
    GET /docs/json               →  OpenAPI JSON       404
    GET /api/                    →  (none)             Interactive OpenAPI
    GET...
    
Read more →
v1.9.0 Release

Stable indexed response-format templates, plus security hardening and dependency refreshes.

  • add stable response format output via optional template index (#181)

    # Same index → byte-identical JSON. Omit the index for the previous random pick.
    curl http://localhost:3000/json/1
    curl http://localhost:3000/html/1
    curl http://localhost:3000/json/99
    # → 404 {"error":"Template index must be between 1 and 5"}
    
Read more →
v1.8.1 Release

Dependency maintenance: refresh runtime and build dependencies (incl. @fastify/static v10).

  • update fastify, @fastify/cookie, @fastify/helmet, @fastify/rate-limit, @fastify/swagger, @fastify/swagger-ui to latest (62d073a, #174)
  • update @fastify/static to 10 (major) (71501e3, #178)
  • update @scalar/api-reference to latest (7efd744, #176)
  • update hookified to latest (f46b91a, #177)
  • update @biomejs/biome, @swc/core, tsx to latest (68584a6, #175)
Read more →
v1.8.0 Release

Add request bins for capturing and inspecting HTTP requests; refresh runtime and build dependencies.

  • add request bins for inspecting captured HTTP requests (41e3d20, #150)

    Mint an ephemeral URL, send arbitrary requests to it, and read back what was captured — useful for webhook debugging.

    # Create a bin, send a request to it, then inspect what was captured
    ID=$(curl -s -X POST http://localhost:3000/bins | jq -r .id)
    curl -X POST...
    
Read more →
v1.7.0 Release

Routine maintenance: dependency refresh (fastify, @scalar/api-reference, hookified), pnpm 11 supply-chain baseline, and GitHub Actions major upgrades.

  • upgrade hookified 2.1.1 → 2.2.0 (e431858, #147)
  • upgrade @scalar/api-reference 1.52.1 → 1.55.3 (e07afea, #146)
  • upgrade @fastify/static 9.1.0→9.1.3, @fastify/swagger-ui 5.2.5→5.2.6, fastify 5.8.4→5.8.5 (bcfddf6, #145)
Read more →
v1.6.0 Release

Flexible URL matching: trailing path segments fall back to the parsable route prefix (fixes #137).

  • ignore trailing path segments after the parsable portion (6f82897, #139)

    A Fastify rewriteUrl hook progressively strips trailing segments when only the static catch-all wildcard or nothing matches. Query strings are preserved and the first path segment is never stripped, so genuinely unknown URLs still 404.

    # Before — only an exact match worked:
    GET /status/429    ...
    
Read more →
v1.5.1 Release
Read more →
v1.5.0 Release

Full Changelog:...

Read more →
v1.4.0 Release
Read more →
v1.3.0 Release
Read more →
v1.2.0 Release
Read more →
v1.1.0 Release
Read more →
v1.0.1 Release

Full Changelog: https://github.com/jaredwray/mockhttp/compare/v1.0.0...v1.0.1

Read more →
v1.0.0 Release
Read more →
v0.9.0 Release

Full Changelog: https://github.com/jaredwray/mockhttp/compare/v0.8.0...v0.9.0

Read more →