← Back to Changelog

v2.0.0

Release

@jaredwray/mockhttp@2.0.0 — 2026-09-18

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

Features

  • 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 /openapi.json            →  (none)             Live OpenAPI spec
    GET /get                     →  unchanged          unchanged
    
  • migrate production deploy from GCP Cloud Run to Cloudflare Containers (#207)

  • run mockhttp.org on a Cloudflare Worker only (#218)

    const mock = new MockHttp({
      logging: false,
      autoDetectPort: false,
      staticFiles: false,
      pluginTimeout: 0,
      startBins: false,
    });
    await mock.initialize(); // register routes without listen()
    const response = await mock.server.inject({ method: "GET", url: "/get" });
    
  • use the Docula docs index as the homepage (#219)

Internal

  • lower Cloudflare Containers max instances to 3 (#208)
  • upgrade @biomejs/biome 2.5.8 → 2.5.13, vitest 4.1.10 → 5.0.0 (#210)
  • upgrade @swc/core 1.15.47 → 1.16.2, tsdown 0.22.14 → 0.23.0, tsx 4.23.12 → 4.23.13 (#211)
  • upgrade package manager pnpm 11.21.0 → 12.4.1 (#212)
  • upgrade GitHub Actions (codecov, CodeQL, zizmor, Socket Firewall) (#213)
  • pin Dev Container image to javascript-node 5.2.1-24-trixie (#214)
  • upgrade fastify 5.11.3 → 5.12.4, @fastify/helmet 13.1.0 → 13.1.1 (#215)
  • upgrade hookified 3.0.2 → 3.0.3 (#216)
  • pin Docker Node.js runtime image to node:24.20.0-alpine3.24 (#217)

Contributors

  • @jaredwray (13)

Full List of Changes

  • Migrate production deploy from GCP Cloud Run to Cloudflare Containers by @jaredwray in #207
  • Lower Cloudflare Containers max instances to 3 by @jaredwray in #208
  • Replace Scalar with a Docula documentation site by @jaredwray in #209
  • root - chore: upgrade code quality dependencies by @jaredwray in #210
  • root - chore: upgrade TypeScript and build tooling by @jaredwray in #211
  • root - chore: upgrade package manager by @jaredwray in #212
  • root - chore: upgrade GitHub Actions by @jaredwray in #213
  • root - chore: pin Dev Container images by @jaredwray in #214
  • root - chore: upgrade fastify dependencies by @jaredwray in #215
  • root - chore: upgrade hookified by @jaredwray in #216
  • root - chore: upgrade Docker Node.js runtime image by @jaredwray in #217
  • Run mockhttp.org on a Cloudflare Worker only by @jaredwray in #218
  • Use the Docula docs index as the homepage by @jaredwray in #219

Full diff: https://github.com/jaredwray/mockhttp/compare/v1.9.0...v1.10.0