@jaredwray/mockhttp 2.0.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +68 -68
- package/dist/index.d.mts +130 -159
- package/dist/index.mjs +200 -231
- package/package.json +21 -18
- package/site/dist/api/index.html +5 -5
- package/site/dist/api/swagger.json +10 -10
- package/site/dist/changelog/index.html +49 -33
- package/site/dist/changelog/page/2/index.html +33 -32
- package/site/dist/changelog/{v0-2-0 → v2-1-0}/index.html +47 -8
- package/site/dist/changelog/{v0-1-0 → v3-0-0}/index.html +71 -22
- package/site/dist/changelog-latest.json +26 -26
- package/site/dist/changelog.json +26 -26
- package/site/dist/docs/bins/index.html +78 -53
- package/site/dist/docs/configuration/index.html +42 -4
- package/site/dist/docs/hosted/index.html +47 -8
- package/site/dist/docs/how-to-deploy/cloudflare/index.html +650 -0
- package/site/dist/docs/how-to-deploy/docker/index.html +664 -0
- package/site/dist/docs/how-to-deploy/wasmer/index.html +625 -0
- package/site/dist/docs/https/index.html +42 -4
- package/site/dist/docs/index.html +44 -5
- package/site/dist/docs/library/index.html +58 -24
- package/site/dist/docs/taps/index.html +42 -4
- package/site/dist/feed.xml +1 -1
- package/site/dist/index.html +44 -5
- package/site/dist/llms-full.txt +390 -115
- package/site/dist/llms.txt +6 -3
- package/site/dist/search-index.json +1 -1
- package/site/dist/sitemap.xml +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Mock HTTP API",
|
|
5
5
|
"description": "\nA simple HTTP server that can be used to mock HTTP responses for testing purposes. Inspired by [httpbin](https://httpbin.org/) and built using `nodejs` and `fastify` with the idea of running it via https://mockhttp.org, via docker `jaredwray/mockhttp`, or nodejs `npm install @jaredwray/mockhttp`.\n\n* [GitHub Repository](https://github.com/jaredwray/mockhttp)\n* [Docker Image](https://hub.docker.com/r/jaredwray/mockhttp)\n* [NPM Package](https://www.npmjs.com/package/@jaredwray/mockhttp)\n\n# About mockhttp.org\n\n[mockhttp.org](https://mockhttp.org) is a free hosted instance of this codebase for testing. It runs on a Cloudflare Worker (no containers): documentation is served from Workers Assets, and mock APIs such as `/get` and `/post` run in the Worker. The service is globally available and rate-limited (1000 requests per minute per IP) to prevent abuse.\n",
|
|
6
|
-
"version": "
|
|
6
|
+
"version": "3.0.0"
|
|
7
7
|
},
|
|
8
8
|
"components": {
|
|
9
9
|
"schemas": {}
|
|
@@ -137,7 +137,11 @@
|
|
|
137
137
|
"type": "string"
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
|
-
"type": "
|
|
140
|
+
"type": "object",
|
|
141
|
+
"nullable": true,
|
|
142
|
+
"enum": [
|
|
143
|
+
null
|
|
144
|
+
]
|
|
141
145
|
}
|
|
142
146
|
]
|
|
143
147
|
}
|
|
@@ -4379,10 +4383,8 @@
|
|
|
4379
4383
|
"type": "integer"
|
|
4380
4384
|
},
|
|
4381
4385
|
"body": {
|
|
4382
|
-
"type":
|
|
4383
|
-
|
|
4384
|
-
"string"
|
|
4385
|
-
]
|
|
4386
|
+
"type": "string",
|
|
4387
|
+
"nullable": true
|
|
4386
4388
|
},
|
|
4387
4389
|
"bodyEncoding": {
|
|
4388
4390
|
"type": "string",
|
|
@@ -4549,10 +4551,8 @@
|
|
|
4549
4551
|
"type": "integer"
|
|
4550
4552
|
},
|
|
4551
4553
|
"body": {
|
|
4552
|
-
"type":
|
|
4553
|
-
|
|
4554
|
-
"string"
|
|
4555
|
-
]
|
|
4554
|
+
"type": "string",
|
|
4555
|
+
"nullable": true
|
|
4556
4556
|
},
|
|
4557
4557
|
"bodyEncoding": {
|
|
4558
4558
|
"type": "string",
|
|
@@ -144,6 +144,54 @@
|
|
|
144
144
|
<main class="versions-container">
|
|
145
145
|
<div class="versions-content">
|
|
146
146
|
<h2 class="home-title">Changelog</h2>
|
|
147
|
+
<div class="changelog-entry">
|
|
148
|
+
<div class="changelog-entry-header">
|
|
149
|
+
<a class="changelog-entry-title" href="/changelog/v3-0-0/">v3.0.0</a>
|
|
150
|
+
<span class="changelog-tag changelog-tag-release">Release</span>
|
|
151
|
+
</div>
|
|
152
|
+
<span class="changelog-entry-date">October 20, 2026</span>
|
|
153
|
+
<div class="changelog-entry-preview">
|
|
154
|
+
<p>Request bins now use Keyv via MockHttpBins, and the Worker can store them in MongoDB Atlas.</p>
|
|
155
|
+
<ul>
|
|
156
|
+
<li>Replace <code>BinManager</code>, <code>BinStore</code>, and <code>InMemoryBinStore</code> with async <code>MockHttpBins</code>. <code>mock.bins.start()</code> and <code>mock.bins.stop()</code> are removed. The default <code>maxBodySize</code> is 128 KiB (was 1 MiB). Node engines are now <code>>=22.19.0</code> (was <code>>=22.18.0</code>). (<code>b1ddcc0</code>, #246)
|
|
157
|
+
Migration: assign <code>mock.bins = new MockHttpBins({ keyv })</code> before <code>start()</code> (default store is <code>new Keyv()</code>) and <code>await</code> the bin...</li>
|
|
158
|
+
</ul>
|
|
159
|
+
</div>
|
|
160
|
+
<span class="changelog-read-more">Read more →</span>
|
|
161
|
+
</div>
|
|
162
|
+
<div class="changelog-entry">
|
|
163
|
+
<div class="changelog-entry-header">
|
|
164
|
+
<a class="changelog-entry-title" href="/changelog/v2-1-0/">v2.1.0</a>
|
|
165
|
+
<span class="changelog-tag changelog-tag-release">Release</span>
|
|
166
|
+
</div>
|
|
167
|
+
<span class="changelog-entry-date">October 3, 2026</span>
|
|
168
|
+
<div class="changelog-entry-preview">
|
|
169
|
+
<p>Add AUTO_DETECT_PORT=false so the process keeps PORT, and include the docs site in the npm package.</p>
|
|
170
|
+
<ul>
|
|
171
|
+
<li>
|
|
172
|
+
<p>Deploy the Node server to Wasmer Edge (#225)</p>
|
|
173
|
+
<pre><code class="hljs language-bash">PORT=3000 AUTO_DETECT_PORT=<span class="hljs-literal">false</span> node dist/index.mjs
|
|
174
|
+
</code></pre>
|
|
175
|
+
</li>
|
|
176
|
+
<li>
|
|
177
|
+
<p>include Docula site in the npm tarball (#222)</p>
|
|
178
|
+
</li>
|
|
179
|
+
<li>
|
|
180
|
+
<p>deploy Wasmer with a remote build (#226)</p>
|
|
181
|
+
</li>
|
|
182
|
+
<li>
|
|
183
|
+
<p>deploy Wasmer through the Anybuild file (#228)</p>
|
|
184
|
+
</li>
|
|
185
|
+
<li>
|
|
186
|
+
<p>add Drydock review badge to README (#224)</p>
|
|
187
|
+
</li>
|
|
188
|
+
<li>
|
|
189
|
+
<p>rename Hosted Service page to MockHttp.org Live (#230)</p>
|
|
190
|
+
</li>
|
|
191
|
+
</ul>
|
|
192
|
+
</div>
|
|
193
|
+
<span class="changelog-read-more">Read more →</span>
|
|
194
|
+
</div>
|
|
147
195
|
<div class="changelog-entry">
|
|
148
196
|
<div class="changelog-entry-header">
|
|
149
197
|
<a class="changelog-entry-title" href="/changelog/v2-0-0/">v2.0.0</a>
|
|
@@ -449,38 +497,6 @@ GET /status/429 ...
|
|
|
449
497
|
<li>chore: upgrading xo to 1.2.1 by @jaredwray in <a href="https://github.com/jaredwray/mockhttp/pull/61">https://github.com/jaredwray/mockhttp/pull/61</a></li>
|
|
450
498
|
<li>chore: upgrading vitest to 3.2.4 by @jaredwray in <a href="https://github.com/jaredwray/mockhttp/pull/62">https://github.com/jaredwray/mockhttp/pull/62</a></li>
|
|
451
499
|
<li>chore: upgrading @scalar/api-reference to 1.32.9 by @jaredwray in <a href="https://github.com/jaredwray/mockhttp/pull/63">https://github.com/jaredwray/mockhttp/pull/63</a></li>
|
|
452
|
-
</ul>
|
|
453
|
-
</div>
|
|
454
|
-
<span class="changelog-read-more">Read more →</span>
|
|
455
|
-
</div>
|
|
456
|
-
<div class="changelog-entry">
|
|
457
|
-
<div class="changelog-entry-header">
|
|
458
|
-
<a class="changelog-entry-title" href="/changelog/v0-6-0/">v0.6.0</a>
|
|
459
|
-
<span class="changelog-tag changelog-tag-release">Release</span>
|
|
460
|
-
</div>
|
|
461
|
-
<span class="changelog-entry-date">June 14, 2025</span>
|
|
462
|
-
<div class="changelog-entry-preview">
|
|
463
|
-
<ul>
|
|
464
|
-
<li>fix: adding in application/json for return time on cookies by @jaredwray in <a href="https://github.com/jaredwray/mockhttp/pull/52">https://github.com/jaredwray/mockhttp/pull/52</a></li>
|
|
465
|
-
<li>chore: upgrading vitest to 3.2.3 by @jaredwray in <a href="https://github.com/jaredwray/mockhttp/pull/53">https://github.com/jaredwray/mockhttp/pull/53</a></li>
|
|
466
|
-
<li>chore: upgrading tsup to 8.5.0 by @jaredwray in <a href="https://github.com/jaredwray/mockhttp/pull/54">https://github.com/jaredwray/mockhttp/pull/54</a></li>
|
|
467
|
-
<li>chore: upgrading pino to 9.7.0 by @jaredwray in <a href="https://github.com/jaredwray/mockhttp/pull/55">https://github.com/jaredwray/mockhttp/pull/55</a></li>
|
|
468
|
-
</ul>
|
|
469
|
-
</div>
|
|
470
|
-
<span class="changelog-read-more">Read more →</span>
|
|
471
|
-
</div>
|
|
472
|
-
<div class="changelog-entry">
|
|
473
|
-
<div class="changelog-entry-header">
|
|
474
|
-
<a class="changelog-entry-title" href="/changelog/v0-5-0/">v0.5.0</a>
|
|
475
|
-
<span class="changelog-tag changelog-tag-release">Release</span>
|
|
476
|
-
</div>
|
|
477
|
-
<span class="changelog-entry-date">May 10, 2025</span>
|
|
478
|
-
<div class="changelog-entry-preview">
|
|
479
|
-
<ul>
|
|
480
|
-
<li>chore: updating github actions and scripts by @jaredwray in <a href="https://github.com/jaredwray/mockhttp/pull/45">https://github.com/jaredwray/mockhttp/pull/45</a></li>
|
|
481
|
-
<li>chore: upgrading @swc/core and tsx to latest by @jaredwray in <a href="https://github.com/jaredwray/mockhttp/pull/46">https://github.com/jaredwray/mockhttp/pull/46</a></li>
|
|
482
|
-
<li>chore: upgrading vitest to 3.1.3 by @jaredwray in <a href="https://github.com/jaredwray/mockhttp/pull/47">https://github.com/jaredwray/mockhttp/pull/47</a></li>
|
|
483
|
-
<li>chore: upgrading hookified to 1.9.0 by @jaredwray in <a href="https://github.com/jaredwray/mockhttp/pull/48">https://github.com/jaredwray/mockhttp/pull/48</a></li>
|
|
484
500
|
</ul>
|
|
485
501
|
</div>
|
|
486
502
|
<span class="changelog-read-more">Read more →</span>
|
|
@@ -502,7 +518,7 @@ GET /status/429 ...
|
|
|
502
518
|
<a href="https://docula.org/" target="_blank" rel="noopener noreferrer" class="footer__link" aria-label="Docula">
|
|
503
519
|
<svg class="footer__bat" xmlns="http://www.w3.org/2000/svg" viewBox="70 110 360 205" fill="currentColor"><path d="M420,173c-16.76-18-72.78-36.65-131.59-30.58A160.15,160.15,0,0,0,269,120.55c-3.78,4.52-11.15,9.45-19,9.45s-15.23-4.93-19-9.45a160.15,160.15,0,0,0-19.4,21.83C152.78,136.31,96.76,154.94,80,173c48.86,5.86,79.5,34.09,79.5,72.06,52.37,0,77,28,90.5,59.94C263.54,273,288.13,245,340.5,245,340.5,207,371.14,178.8,420,173Z"/><circle cx="239.19" cy="145.36" r="3.32" fill="#fff"/><circle cx="260.81" cy="145.36" r="3.32" fill="#fff"/></svg>
|
|
504
520
|
</a>
|
|
505
|
-
<span class="footer__updated">updated: 2026-
|
|
521
|
+
<span class="footer__updated">updated: 2026-10-20</span>
|
|
506
522
|
</footer>
|
|
507
523
|
<script src="/css/highlight/highlight.min.js"></script>
|
|
508
524
|
<script>
|
|
@@ -144,6 +144,38 @@
|
|
|
144
144
|
<main class="versions-container">
|
|
145
145
|
<div class="versions-content">
|
|
146
146
|
<h2 class="home-title">Changelog</h2>
|
|
147
|
+
<div class="changelog-entry">
|
|
148
|
+
<div class="changelog-entry-header">
|
|
149
|
+
<a class="changelog-entry-title" href="/changelog/v0-6-0/">v0.6.0</a>
|
|
150
|
+
<span class="changelog-tag changelog-tag-release">Release</span>
|
|
151
|
+
</div>
|
|
152
|
+
<span class="changelog-entry-date">June 14, 2025</span>
|
|
153
|
+
<div class="changelog-entry-preview">
|
|
154
|
+
<ul>
|
|
155
|
+
<li>fix: adding in application/json for return time on cookies by @jaredwray in <a href="https://github.com/jaredwray/mockhttp/pull/52">https://github.com/jaredwray/mockhttp/pull/52</a></li>
|
|
156
|
+
<li>chore: upgrading vitest to 3.2.3 by @jaredwray in <a href="https://github.com/jaredwray/mockhttp/pull/53">https://github.com/jaredwray/mockhttp/pull/53</a></li>
|
|
157
|
+
<li>chore: upgrading tsup to 8.5.0 by @jaredwray in <a href="https://github.com/jaredwray/mockhttp/pull/54">https://github.com/jaredwray/mockhttp/pull/54</a></li>
|
|
158
|
+
<li>chore: upgrading pino to 9.7.0 by @jaredwray in <a href="https://github.com/jaredwray/mockhttp/pull/55">https://github.com/jaredwray/mockhttp/pull/55</a></li>
|
|
159
|
+
</ul>
|
|
160
|
+
</div>
|
|
161
|
+
<span class="changelog-read-more">Read more →</span>
|
|
162
|
+
</div>
|
|
163
|
+
<div class="changelog-entry">
|
|
164
|
+
<div class="changelog-entry-header">
|
|
165
|
+
<a class="changelog-entry-title" href="/changelog/v0-5-0/">v0.5.0</a>
|
|
166
|
+
<span class="changelog-tag changelog-tag-release">Release</span>
|
|
167
|
+
</div>
|
|
168
|
+
<span class="changelog-entry-date">May 10, 2025</span>
|
|
169
|
+
<div class="changelog-entry-preview">
|
|
170
|
+
<ul>
|
|
171
|
+
<li>chore: updating github actions and scripts by @jaredwray in <a href="https://github.com/jaredwray/mockhttp/pull/45">https://github.com/jaredwray/mockhttp/pull/45</a></li>
|
|
172
|
+
<li>chore: upgrading @swc/core and tsx to latest by @jaredwray in <a href="https://github.com/jaredwray/mockhttp/pull/46">https://github.com/jaredwray/mockhttp/pull/46</a></li>
|
|
173
|
+
<li>chore: upgrading vitest to 3.1.3 by @jaredwray in <a href="https://github.com/jaredwray/mockhttp/pull/47">https://github.com/jaredwray/mockhttp/pull/47</a></li>
|
|
174
|
+
<li>chore: upgrading hookified to 1.9.0 by @jaredwray in <a href="https://github.com/jaredwray/mockhttp/pull/48">https://github.com/jaredwray/mockhttp/pull/48</a></li>
|
|
175
|
+
</ul>
|
|
176
|
+
</div>
|
|
177
|
+
<span class="changelog-read-more">Read more →</span>
|
|
178
|
+
</div>
|
|
147
179
|
<div class="changelog-entry">
|
|
148
180
|
<div class="changelog-entry-header">
|
|
149
181
|
<a class="changelog-entry-title" href="/changelog/v0-4-3/">v0.4.3</a>
|
|
@@ -265,37 +297,6 @@
|
|
|
265
297
|
</div>
|
|
266
298
|
<span class="changelog-read-more">Read more →</span>
|
|
267
299
|
</div>
|
|
268
|
-
<div class="changelog-entry">
|
|
269
|
-
<div class="changelog-entry-header">
|
|
270
|
-
<a class="changelog-entry-title" href="/changelog/v0-2-0/">v0.2.0</a>
|
|
271
|
-
<span class="changelog-tag changelog-tag-release">Release</span>
|
|
272
|
-
</div>
|
|
273
|
-
<span class="changelog-entry-date">December 13, 2024</span>
|
|
274
|
-
<div class="changelog-entry-preview">
|
|
275
|
-
<ul>
|
|
276
|
-
<li>response inspection by @jaredwray in <a href="https://github.com/jaredwray/mockhttp/pull/14">https://github.com/jaredwray/mockhttp/pull/14</a></li>
|
|
277
|
-
</ul>
|
|
278
|
-
<p><strong>Full Changelog</strong>: <a href="https://github.com/jaredwray/mockhttp/compare/v0.1.0...v0.2.0">https://github.com/jaredwray/mockhttp/compare/v0.1.0...v0.2.0</a></p>
|
|
279
|
-
</div>
|
|
280
|
-
<span class="changelog-read-more">Read more →</span>
|
|
281
|
-
</div>
|
|
282
|
-
<div class="changelog-entry">
|
|
283
|
-
<div class="changelog-entry-header">
|
|
284
|
-
<a class="changelog-entry-title" href="/changelog/v0-1-0/">v0.1.0</a>
|
|
285
|
-
<span class="changelog-tag changelog-tag-release">Release</span>
|
|
286
|
-
</div>
|
|
287
|
-
<span class="changelog-entry-date">December 12, 2024</span>
|
|
288
|
-
<div class="changelog-entry-preview">
|
|
289
|
-
<ul>
|
|
290
|
-
<li>adding in contributing and code of conduct by @jaredwray in <a href="https://github.com/jaredwray/mockhttp/pull/1">https://github.com/jaredwray/mockhttp/pull/1</a></li>
|
|
291
|
-
<li>migrating to correct folder format by @jaredwray in <a href="https://github.com/jaredwray/mockhttp/pull/2">https://github.com/jaredwray/mockhttp/pull/2</a></li>
|
|
292
|
-
<li>adding in logo and favicon by @jaredwray in <a href="https://github.com/jaredwray/mockhttp/pull/3">https://github.com/jaredwray/mockhttp/pull/3</a></li>
|
|
293
|
-
<li>adding in headers and user-agent endpoints by @jaredwray in <a href="https://github.com/jaredwray/mockhttp/pull/4">https://github.com/jaredwray/mockhttp/pull/4</a></li>
|
|
294
|
-
<li>moving to scalar by @jaredwray in <a href="https://github.com/jaredwray/mockhttp/pull/5">https://github.com/jaredwray/mockhttp/pull/5</a></li>
|
|
295
|
-
</ul>
|
|
296
|
-
</div>
|
|
297
|
-
<span class="changelog-read-more">Read more →</span>
|
|
298
|
-
</div>
|
|
299
300
|
<nav class="changelog-pagination">
|
|
300
301
|
<a class="changelog-pagination-link" href="/changelog/">← Newer</a>
|
|
301
302
|
<span class="changelog-pagination-info">Page 2 of 2</span>
|
|
@@ -313,7 +314,7 @@
|
|
|
313
314
|
<a href="https://docula.org/" target="_blank" rel="noopener noreferrer" class="footer__link" aria-label="Docula">
|
|
314
315
|
<svg class="footer__bat" xmlns="http://www.w3.org/2000/svg" viewBox="70 110 360 205" fill="currentColor"><path d="M420,173c-16.76-18-72.78-36.65-131.59-30.58A160.15,160.15,0,0,0,269,120.55c-3.78,4.52-11.15,9.45-19,9.45s-15.23-4.93-19-9.45a160.15,160.15,0,0,0-19.4,21.83C152.78,136.31,96.76,154.94,80,173c48.86,5.86,79.5,34.09,79.5,72.06,52.37,0,77,28,90.5,59.94C263.54,273,288.13,245,340.5,245,340.5,207,371.14,178.8,420,173Z"/><circle cx="239.19" cy="145.36" r="3.32" fill="#fff"/><circle cx="260.81" cy="145.36" r="3.32" fill="#fff"/></svg>
|
|
315
316
|
</a>
|
|
316
|
-
<span class="footer__updated">updated: 2026-
|
|
317
|
+
<span class="footer__updated">updated: 2026-10-20</span>
|
|
317
318
|
</footer>
|
|
318
319
|
<script src="/css/highlight/highlight.min.js"></script>
|
|
319
320
|
<script>
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
}
|
|
34
34
|
})();
|
|
35
35
|
</script>
|
|
36
|
-
<title>MockHTTP -
|
|
36
|
+
<title>MockHTTP - v2.1.0</title>
|
|
37
37
|
<script type="application/ld+json">
|
|
38
|
-
{"@context":"https://schema.org","@type":"BlogPosting","headline":"
|
|
38
|
+
{"@context":"https://schema.org","@type":"BlogPosting","headline":"v2.1.0","description":"<p>Add AUTO_DETECT_PORT=false so the process keeps PORT, and include the docs site in the npm package.</p>\n<ul>\n<li>\n<p>Deploy the Node server to Wasmer Edge (#225)</p>\n<pre><code class=\"hljs language-bash\">PORT=3000 AUTO_DETECT_PORT=<span class=\"hljs-literal\">false</span> node dist/index.mjs\n</code></pre>\n</li>\n<li>\n<p>include Docula site in the npm tarball (#222)</p>\n</li>\n<li>\n<p>deploy Wasmer with a remote build (#226)</p>\n</li>\n<li>\n<p>deploy Wasmer through the Anybuild file (#228)</p>\n</li>\n<li>\n<p>add Drydock review badge to README (#224)</p>\n</li>\n<li>\n<p>rename Hosted Service page to MockHttp.org Live (#230)</p>\n</li>\n</ul>","url":"https://mockhttp.org/changelog/v2-1-0/","publisher":{"@type":"Organization","name":"MockHTTP"},"datePublished":"2026-10-03"}
|
|
39
39
|
</script>
|
|
40
40
|
</head>
|
|
41
41
|
|
|
@@ -148,16 +148,55 @@
|
|
|
148
148
|
</div>
|
|
149
149
|
<div class="changelog-entry changelog-entry-single">
|
|
150
150
|
<div class="changelog-entry-header">
|
|
151
|
-
<h1 class="changelog-entry-title">
|
|
151
|
+
<h1 class="changelog-entry-title">v2.1.0</h1>
|
|
152
152
|
<span class="changelog-tag changelog-tag-release">Release</span>
|
|
153
153
|
</div>
|
|
154
|
-
<span class="changelog-entry-date">
|
|
154
|
+
<span class="changelog-entry-date">October 3, 2026</span>
|
|
155
155
|
<div class="changelog-entry-body">
|
|
156
|
-
<h2 id="
|
|
156
|
+
<h2 id="jaredwraymockhttp210--2026-10-03">@jaredwray/mockhttp@2.1.0 — 2026-10-03</h2>
|
|
157
|
+
<p>Add AUTO_DETECT_PORT=false so the process keeps PORT, and include the docs site in the npm package.</p>
|
|
158
|
+
<h3 id="features">Features</h3>
|
|
157
159
|
<ul>
|
|
158
|
-
<li>
|
|
160
|
+
<li>
|
|
161
|
+
<p>Deploy the Node server to Wasmer Edge (#225)</p>
|
|
162
|
+
<pre><code class="hljs language-bash">PORT=3000 AUTO_DETECT_PORT=<span class="hljs-literal">false</span> node dist/index.mjs
|
|
163
|
+
</code></pre>
|
|
164
|
+
</li>
|
|
159
165
|
</ul>
|
|
160
|
-
<
|
|
166
|
+
<h3 id="bug-fixes">Bug Fixes</h3>
|
|
167
|
+
<ul>
|
|
168
|
+
<li>include Docula site in the npm tarball (#222)</li>
|
|
169
|
+
<li>deploy Wasmer with a remote build (#226)</li>
|
|
170
|
+
<li>deploy Wasmer through the Anybuild file (#228)</li>
|
|
171
|
+
</ul>
|
|
172
|
+
<h3 id="documentation">Documentation</h3>
|
|
173
|
+
<ul>
|
|
174
|
+
<li>add Drydock review badge to README (#224)</li>
|
|
175
|
+
<li>rename Hosted Service page to MockHttp.org Live (#230)</li>
|
|
176
|
+
<li>add How to Deploy guides for Cloudflare, Docker, and Wasmer (#229)</li>
|
|
177
|
+
</ul>
|
|
178
|
+
<h3 id="internal">Internal</h3>
|
|
179
|
+
<ul>
|
|
180
|
+
<li>root - defense - close catalog gaps from current skill (#221)</li>
|
|
181
|
+
<li>Publish the GitHub Actions build to Wasmer (#227)</li>
|
|
182
|
+
</ul>
|
|
183
|
+
<h3 id="contributors">Contributors</h3>
|
|
184
|
+
<ul>
|
|
185
|
+
<li>@jaredwray (owner)</li>
|
|
186
|
+
</ul>
|
|
187
|
+
<h3 id="full-list-of-changes">Full List of Changes</h3>
|
|
188
|
+
<ul>
|
|
189
|
+
<li>root - chore: defense - close catalog gaps from current skill by @jaredwray in #221</li>
|
|
190
|
+
<li>fix: include Docula site in the npm tarball by @jaredwray in #222</li>
|
|
191
|
+
<li>docs: add Drydock review badge to README by @jaredwray in #224</li>
|
|
192
|
+
<li>Deploy the Node server to Wasmer Edge by @jaredwray in #225</li>
|
|
193
|
+
<li>Fix the Wasmer deploy by using a remote build by @jaredwray in #226</li>
|
|
194
|
+
<li>Publish the GitHub Actions build to Wasmer by @jaredwray in #227</li>
|
|
195
|
+
<li>Deploy Wasmer with the Anybuild file by @jaredwray in #228</li>
|
|
196
|
+
<li>docs: rename Hosted Service to MockHttp.org Live by @jaredwray in #230</li>
|
|
197
|
+
<li>docs: add How to Deploy guides for Cloudflare, Docker, and Wasmer by @jaredwray in #229</li>
|
|
198
|
+
</ul>
|
|
199
|
+
<p><strong>Full diff:</strong> <a href="https://github.com/jaredwray/mockhttp/compare/v2.0.0...v2.1.0">https://github.com/jaredwray/mockhttp/compare/v2.0.0...v2.1.0</a></p>
|
|
161
200
|
</div>
|
|
162
201
|
</div>
|
|
163
202
|
</div>
|
|
@@ -172,7 +211,7 @@
|
|
|
172
211
|
<a href="https://docula.org/" target="_blank" rel="noopener noreferrer" class="footer__link" aria-label="Docula">
|
|
173
212
|
<svg class="footer__bat" xmlns="http://www.w3.org/2000/svg" viewBox="70 110 360 205" fill="currentColor"><path d="M420,173c-16.76-18-72.78-36.65-131.59-30.58A160.15,160.15,0,0,0,269,120.55c-3.78,4.52-11.15,9.45-19,9.45s-15.23-4.93-19-9.45a160.15,160.15,0,0,0-19.4,21.83C152.78,136.31,96.76,154.94,80,173c48.86,5.86,79.5,34.09,79.5,72.06,52.37,0,77,28,90.5,59.94C263.54,273,288.13,245,340.5,245,340.5,207,371.14,178.8,420,173Z"/><circle cx="239.19" cy="145.36" r="3.32" fill="#fff"/><circle cx="260.81" cy="145.36" r="3.32" fill="#fff"/></svg>
|
|
174
213
|
</a>
|
|
175
|
-
<span class="footer__updated">updated:
|
|
214
|
+
<span class="footer__updated">updated: 2026-10-03</span>
|
|
176
215
|
</footer>
|
|
177
216
|
<script src="/css/highlight/highlight.min.js"></script>
|
|
178
217
|
<script>
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
}
|
|
34
34
|
})();
|
|
35
35
|
</script>
|
|
36
|
-
<title>MockHTTP -
|
|
36
|
+
<title>MockHTTP - v3.0.0</title>
|
|
37
37
|
<script type="application/ld+json">
|
|
38
|
-
{"@context":"https://schema.org","@type":"BlogPosting","headline":"
|
|
38
|
+
{"@context":"https://schema.org","@type":"BlogPosting","headline":"v3.0.0","description":"<p>Request bins now use Keyv via MockHttpBins, and the Worker can store them in MongoDB Atlas.</p>\n<ul>\n<li>Replace <code>BinManager</code>, <code>BinStore</code>, and <code>InMemoryBinStore</code> with async <code>MockHttpBins</code>. <code>mock.bins.start()</code> and <code>mock.bins.stop()</code> are removed. The default <code>maxBodySize</code> is 128 KiB (was 1 MiB). Node engines are now <code>>=22.19.0</code> (was <code>>=22.18.0</code>). (<code>b1ddcc0</code>, #246)\r\nMigration: assign <code>mock.bins = new MockHttpBins({ keyv })</code> before <code>start()</code> (default store is <code>new Keyv()</code>) and <code>await</code> the bin...</li>\n</ul>","url":"https://mockhttp.org/changelog/v3-0-0/","publisher":{"@type":"Organization","name":"MockHTTP"},"datePublished":"2026-10-20"}
|
|
39
39
|
</script>
|
|
40
40
|
</head>
|
|
41
41
|
|
|
@@ -148,32 +148,81 @@
|
|
|
148
148
|
</div>
|
|
149
149
|
<div class="changelog-entry changelog-entry-single">
|
|
150
150
|
<div class="changelog-entry-header">
|
|
151
|
-
<h1 class="changelog-entry-title">
|
|
151
|
+
<h1 class="changelog-entry-title">v3.0.0</h1>
|
|
152
152
|
<span class="changelog-tag changelog-tag-release">Release</span>
|
|
153
153
|
</div>
|
|
154
|
-
<span class="changelog-entry-date">
|
|
154
|
+
<span class="changelog-entry-date">October 20, 2026</span>
|
|
155
155
|
<div class="changelog-entry-body">
|
|
156
|
-
<h2 id="
|
|
156
|
+
<h2 id="jaredwraymockhttp300--2026-10-19">@jaredwray/mockhttp@3.0.0 — 2026-10-19</h2>
|
|
157
|
+
<p>Request bins now use Keyv via MockHttpBins, and the Worker can store them in MongoDB Atlas.</p>
|
|
158
|
+
<h3 id="-breaking-changes">⚠ BREAKING CHANGES</h3>
|
|
157
159
|
<ul>
|
|
158
|
-
<li>
|
|
159
|
-
<
|
|
160
|
-
<
|
|
161
|
-
<
|
|
162
|
-
<
|
|
163
|
-
|
|
164
|
-
<
|
|
165
|
-
<
|
|
166
|
-
<
|
|
167
|
-
<
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
<li>updating build to tsup and upgrading vitest by @jaredwray in <a href="https://github.com/jaredwray/mockhttp/pull/13">https://github.com/jaredwray/mockhttp/pull/13</a></li>
|
|
160
|
+
<li>
|
|
161
|
+
<p>Replace <code>BinManager</code>, <code>BinStore</code>, and <code>InMemoryBinStore</code> with async <code>MockHttpBins</code>. <code>mock.bins.start()</code> and <code>mock.bins.stop()</code> are removed. The default <code>maxBodySize</code> is 128 KiB (was 1 MiB). Node engines are now <code>>=22.19.0</code> (was <code>>=22.18.0</code>). (<code>b1ddcc0</code>, #246)
|
|
162
|
+
Migration: assign <code>mock.bins = new MockHttpBins({ keyv })</code> before <code>start()</code> (default store is <code>new Keyv()</code>) and <code>await</code> the bin methods.</p>
|
|
163
|
+
<pre><code class="hljs language-ts"><span class="hljs-keyword">import</span> <span class="hljs-title class_">Keyv</span> <span class="hljs-keyword">from</span> <span class="hljs-string">"keyv"</span>;
|
|
164
|
+
<span class="hljs-keyword">import</span> { <span class="hljs-title class_">MockHttp</span>, <span class="hljs-title class_">MockHttpBins</span> } <span class="hljs-keyword">from</span> <span class="hljs-string">"@jaredwray/mockhttp"</span>;
|
|
165
|
+
|
|
166
|
+
<span class="hljs-keyword">const</span> mock = <span class="hljs-keyword">new</span> <span class="hljs-title class_">MockHttp</span>();
|
|
167
|
+
mock.<span class="hljs-property">bins</span> = <span class="hljs-keyword">new</span> <span class="hljs-title class_">MockHttpBins</span>({ <span class="hljs-attr">keyv</span>: <span class="hljs-keyword">new</span> <span class="hljs-title class_">Keyv</span>(), <span class="hljs-attr">maxBodySize</span>: <span class="hljs-number">128</span> * <span class="hljs-number">1024</span> });
|
|
168
|
+
<span class="hljs-keyword">await</span> mock.<span class="hljs-title function_">start</span>();
|
|
169
|
+
<span class="hljs-keyword">const</span> bin = <span class="hljs-keyword">await</span> mock.<span class="hljs-property">bins</span>.<span class="hljs-title function_">createBin</span>();
|
|
170
|
+
</code></pre>
|
|
171
|
+
</li>
|
|
171
172
|
</ul>
|
|
172
|
-
<
|
|
173
|
+
<h3 id="features">Features</h3>
|
|
173
174
|
<ul>
|
|
174
|
-
<li
|
|
175
|
+
<li>
|
|
176
|
+
<p>Store Worker request bins in MongoDB Atlas when <code>MONGODB_URI</code> is set (<code>266157b</code>, #247)</p>
|
|
177
|
+
<pre><code class="hljs language-bash"><span class="hljs-comment"># Cloudflare Worker secret. Bins go in the Atlas `bins` collection.</span>
|
|
178
|
+
<span class="hljs-comment"># Leave MONGODB_URI unset to keep the in-memory Keyv.</span>
|
|
179
|
+
wrangler secret put MONGODB_URI
|
|
180
|
+
</code></pre>
|
|
181
|
+
</li>
|
|
175
182
|
</ul>
|
|
176
|
-
<
|
|
183
|
+
<h3 id="bug-fixes">Bug Fixes</h3>
|
|
184
|
+
<ul>
|
|
185
|
+
<li>security - upgrade fastify proxy-addr, fast-uri, find-my-way, undici (<code>9c52869</code>, #233)</li>
|
|
186
|
+
<li>security - upgrade handlebars, source-map-js (<code>28aa662</code>, #236)</li>
|
|
187
|
+
</ul>
|
|
188
|
+
<h3 id="internal">Internal</h3>
|
|
189
|
+
<ul>
|
|
190
|
+
<li>sync defense-in-depth files from agentic (<code>7fb3ce4</code>, #234)</li>
|
|
191
|
+
<li>upgrade code quality dependencies (<code>a57b990</code>, #235)</li>
|
|
192
|
+
<li>upgrade TypeScript and build tooling (<code>b11fa0f</code>, #237)</li>
|
|
193
|
+
<li>upgrade monorepo tooling (<code>58e8596</code>, #238)</li>
|
|
194
|
+
<li>upgrade GitHub Actions (<code>58bc448</code>, #239)</li>
|
|
195
|
+
<li>upgrade Dev Container images (<code>2047c3c</code>, #240)</li>
|
|
196
|
+
<li>upgrade Fastify dependencies (<code>3e93bea</code>, #241)</li>
|
|
197
|
+
<li>upgrade hookified (<code>d938e6e</code>, #242)</li>
|
|
198
|
+
<li>upgrade pino and pino-pretty (<code>c2a94ad</code>, #243)</li>
|
|
199
|
+
<li>upgrade Docker Node.js runtime image (<code>cd5decf</code>, #244)</li>
|
|
200
|
+
<li>pin the Compose image (<code>74ad4ea</code>, #245)</li>
|
|
201
|
+
</ul>
|
|
202
|
+
<h3 id="contributors">Contributors</h3>
|
|
203
|
+
<ul>
|
|
204
|
+
<li>@jaredwray (11)</li>
|
|
205
|
+
<li>@cursoragent (5)</li>
|
|
206
|
+
</ul>
|
|
207
|
+
<h3 id="full-list-of-changes">Full List of Changes</h3>
|
|
208
|
+
<ul>
|
|
209
|
+
<li>fix: security - upgrade fastify proxy-addr, fast-uri, find-my-way, undici by @jaredwray in #233</li>
|
|
210
|
+
<li>mono - chore: sync defense-in-depth files from agentic by @jaredwray in #234</li>
|
|
211
|
+
<li>mono - chore: upgrade code quality dependencies by @jaredwray in #235</li>
|
|
212
|
+
<li>fix: security - upgrade handlebars, source-map-js by @jaredwray in #236</li>
|
|
213
|
+
<li>mono - chore: upgrade TypeScript and build tooling by @jaredwray in #237</li>
|
|
214
|
+
<li>mono - chore: upgrade monorepo tooling by @jaredwray in #238</li>
|
|
215
|
+
<li>mono - chore: upgrade GitHub Actions by @jaredwray in #239</li>
|
|
216
|
+
<li>mono - chore: upgrade Dev Container images by @jaredwray in #240</li>
|
|
217
|
+
<li>mono - chore: upgrade Fastify dependencies by @jaredwray in #241</li>
|
|
218
|
+
<li>mono - chore: upgrade hookified by @jaredwray in #242</li>
|
|
219
|
+
<li>mono - chore: upgrade pino and pino-pretty by @jaredwray in #243</li>
|
|
220
|
+
<li>mono - chore: upgrade Docker Node.js runtime image by @jaredwray in #244</li>
|
|
221
|
+
<li>mono - chore: pin the Compose image by @jaredwray in #245</li>
|
|
222
|
+
<li>Store request bins in Keyv by @jaredwray in #246</li>
|
|
223
|
+
<li>Store Worker request bins in MongoDB Atlas by @jaredwray in #247</li>
|
|
224
|
+
</ul>
|
|
225
|
+
<p><strong>Full diff:</strong> <a href="https://github.com/jaredwray/mockhttp/compare/v2.1.0...v3.0.0">https://github.com/jaredwray/mockhttp/compare/v2.1.0...v3.0.0</a></p>
|
|
177
226
|
</div>
|
|
178
227
|
</div>
|
|
179
228
|
</div>
|
|
@@ -188,7 +237,7 @@
|
|
|
188
237
|
<a href="https://docula.org/" target="_blank" rel="noopener noreferrer" class="footer__link" aria-label="Docula">
|
|
189
238
|
<svg class="footer__bat" xmlns="http://www.w3.org/2000/svg" viewBox="70 110 360 205" fill="currentColor"><path d="M420,173c-16.76-18-72.78-36.65-131.59-30.58A160.15,160.15,0,0,0,269,120.55c-3.78,4.52-11.15,9.45-19,9.45s-15.23-4.93-19-9.45a160.15,160.15,0,0,0-19.4,21.83C152.78,136.31,96.76,154.94,80,173c48.86,5.86,79.5,34.09,79.5,72.06,52.37,0,77,28,90.5,59.94C263.54,273,288.13,245,340.5,245,340.5,207,371.14,178.8,420,173Z"/><circle cx="239.19" cy="145.36" r="3.32" fill="#fff"/><circle cx="260.81" cy="145.36" r="3.32" fill="#fff"/></svg>
|
|
190
239
|
</a>
|
|
191
|
-
<span class="footer__updated">updated:
|
|
240
|
+
<span class="footer__updated">updated: 2026-10-20</span>
|
|
192
241
|
</footer>
|
|
193
242
|
<script src="/css/highlight/highlight.min.js"></script>
|
|
194
243
|
<script>
|
|
@@ -5,6 +5,32 @@
|
|
|
5
5
|
"home_page_url": "https://mockhttp.org/",
|
|
6
6
|
"feed_url": "https://mockhttp.org/changelog-latest.json",
|
|
7
7
|
"items": [
|
|
8
|
+
{
|
|
9
|
+
"id": "v3-0-0",
|
|
10
|
+
"title": "v3.0.0",
|
|
11
|
+
"url": "https://mockhttp.org/changelog/v3-0-0/",
|
|
12
|
+
"date_published": "2026-10-20",
|
|
13
|
+
"date_modified": "2026-10-20",
|
|
14
|
+
"summary": "<p>Request bins now use Keyv via MockHttpBins, and the Worker can store them in MongoDB Atlas.</p>\n<ul>\n<li>Replace <code>BinManager</code>, <code>BinStore</code>, and <code>InMemoryBinStore</code> with async <code>MockHttpBins</code>. <code>mock.bins.start()</code> and <code>mock.bins.stop()</code> are removed. The default <code>maxBodySize</code> is 128 KiB (was 1 MiB). Node engines are now <code>>=22.19.0</code> (was <code>>=22.18.0</code>). (<code>b1ddcc0</code>, #246)\r\nMigration: assign <code>mock.bins = new MockHttpBins({ keyv })</code> before <code>start()</code> (default store is <code>new Keyv()</code>) and <code>await</code> the bin...</li>\n</ul>",
|
|
15
|
+
"content_html": "<h2 id=\"jaredwraymockhttp300--2026-10-19\">@jaredwray/mockhttp@3.0.0 — 2026-10-19</h2>\n<p>Request bins now use Keyv via MockHttpBins, and the Worker can store them in MongoDB Atlas.</p>\n<h3 id=\"-breaking-changes\">⚠ BREAKING CHANGES</h3>\n<ul>\n<li>\n<p>Replace <code>BinManager</code>, <code>BinStore</code>, and <code>InMemoryBinStore</code> with async <code>MockHttpBins</code>. <code>mock.bins.start()</code> and <code>mock.bins.stop()</code> are removed. The default <code>maxBodySize</code> is 128 KiB (was 1 MiB). Node engines are now <code>>=22.19.0</code> (was <code>>=22.18.0</code>). (<code>b1ddcc0</code>, #246)\r\nMigration: assign <code>mock.bins = new MockHttpBins({ keyv })</code> before <code>start()</code> (default store is <code>new Keyv()</code>) and <code>await</code> the bin methods.</p>\n<pre><code class=\"hljs language-ts\"><span class=\"hljs-keyword\">import</span> <span class=\"hljs-title class_\">Keyv</span> <span class=\"hljs-keyword\">from</span> <span class=\"hljs-string\">\"keyv\"</span>;\r\n<span class=\"hljs-keyword\">import</span> { <span class=\"hljs-title class_\">MockHttp</span>, <span class=\"hljs-title class_\">MockHttpBins</span> } <span class=\"hljs-keyword\">from</span> <span class=\"hljs-string\">\"@jaredwray/mockhttp\"</span>;\r\n\r\n<span class=\"hljs-keyword\">const</span> mock = <span class=\"hljs-keyword\">new</span> <span class=\"hljs-title class_\">MockHttp</span>();\r\nmock.<span class=\"hljs-property\">bins</span> = <span class=\"hljs-keyword\">new</span> <span class=\"hljs-title class_\">MockHttpBins</span>({ <span class=\"hljs-attr\">keyv</span>: <span class=\"hljs-keyword\">new</span> <span class=\"hljs-title class_\">Keyv</span>(), <span class=\"hljs-attr\">maxBodySize</span>: <span class=\"hljs-number\">128</span> * <span class=\"hljs-number\">1024</span> });\r\n<span class=\"hljs-keyword\">await</span> mock.<span class=\"hljs-title function_\">start</span>();\r\n<span class=\"hljs-keyword\">const</span> bin = <span class=\"hljs-keyword\">await</span> mock.<span class=\"hljs-property\">bins</span>.<span class=\"hljs-title function_\">createBin</span>();\n</code></pre>\n</li>\n</ul>\n<h3 id=\"features\">Features</h3>\n<ul>\n<li>\n<p>Store Worker request bins in MongoDB Atlas when <code>MONGODB_URI</code> is set (<code>266157b</code>, #247)</p>\n<pre><code class=\"hljs language-bash\"><span class=\"hljs-comment\"># Cloudflare Worker secret. Bins go in the Atlas `bins` collection.</span>\r\n<span class=\"hljs-comment\"># Leave MONGODB_URI unset to keep the in-memory Keyv.</span>\r\nwrangler secret put MONGODB_URI\n</code></pre>\n</li>\n</ul>\n<h3 id=\"bug-fixes\">Bug Fixes</h3>\n<ul>\n<li>security - upgrade fastify proxy-addr, fast-uri, find-my-way, undici (<code>9c52869</code>, #233)</li>\n<li>security - upgrade handlebars, source-map-js (<code>28aa662</code>, #236)</li>\n</ul>\n<h3 id=\"internal\">Internal</h3>\n<ul>\n<li>sync defense-in-depth files from agentic (<code>7fb3ce4</code>, #234)</li>\n<li>upgrade code quality dependencies (<code>a57b990</code>, #235)</li>\n<li>upgrade TypeScript and build tooling (<code>b11fa0f</code>, #237)</li>\n<li>upgrade monorepo tooling (<code>58e8596</code>, #238)</li>\n<li>upgrade GitHub Actions (<code>58bc448</code>, #239)</li>\n<li>upgrade Dev Container images (<code>2047c3c</code>, #240)</li>\n<li>upgrade Fastify dependencies (<code>3e93bea</code>, #241)</li>\n<li>upgrade hookified (<code>d938e6e</code>, #242)</li>\n<li>upgrade pino and pino-pretty (<code>c2a94ad</code>, #243)</li>\n<li>upgrade Docker Node.js runtime image (<code>cd5decf</code>, #244)</li>\n<li>pin the Compose image (<code>74ad4ea</code>, #245)</li>\n</ul>\n<h3 id=\"contributors\">Contributors</h3>\n<ul>\n<li>@jaredwray (11)</li>\n<li>@cursoragent (5)</li>\n</ul>\n<h3 id=\"full-list-of-changes\">Full List of Changes</h3>\n<ul>\n<li>fix: security - upgrade fastify proxy-addr, fast-uri, find-my-way, undici by @jaredwray in #233</li>\n<li>mono - chore: sync defense-in-depth files from agentic by @jaredwray in #234</li>\n<li>mono - chore: upgrade code quality dependencies by @jaredwray in #235</li>\n<li>fix: security - upgrade handlebars, source-map-js by @jaredwray in #236</li>\n<li>mono - chore: upgrade TypeScript and build tooling by @jaredwray in #237</li>\n<li>mono - chore: upgrade monorepo tooling by @jaredwray in #238</li>\n<li>mono - chore: upgrade GitHub Actions by @jaredwray in #239</li>\n<li>mono - chore: upgrade Dev Container images by @jaredwray in #240</li>\n<li>mono - chore: upgrade Fastify dependencies by @jaredwray in #241</li>\n<li>mono - chore: upgrade hookified by @jaredwray in #242</li>\n<li>mono - chore: upgrade pino and pino-pretty by @jaredwray in #243</li>\n<li>mono - chore: upgrade Docker Node.js runtime image by @jaredwray in #244</li>\n<li>mono - chore: pin the Compose image by @jaredwray in #245</li>\n<li>Store request bins in Keyv by @jaredwray in #246</li>\n<li>Store Worker request bins in MongoDB Atlas by @jaredwray in #247</li>\n</ul>\n<p><strong>Full diff:</strong> <a href=\"https://github.com/jaredwray/mockhttp/compare/v2.1.0...v3.0.0\">https://github.com/jaredwray/mockhttp/compare/v2.1.0...v3.0.0</a></p>",
|
|
16
|
+
"content_text": "## @jaredwray/mockhttp@3.0.0 — 2026-10-19\r\n\r\nRequest bins now use Keyv via MockHttpBins, and the Worker can store them in MongoDB Atlas.\r\n\r\n### ⚠ BREAKING CHANGES\r\n- 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)\r\n Migration: assign `mock.bins = new MockHttpBins({ keyv })` before `start()` (default store is `new Keyv()`) and `await` the bin methods.\r\n\r\n ```ts\r\n import Keyv from \"keyv\";\r\n import { MockHttp, MockHttpBins } from \"@jaredwray/mockhttp\";\r\n\r\n const mock = new MockHttp();\r\n mock.bins = new MockHttpBins({ keyv: new Keyv(), maxBodySize: 128 * 1024 });\r\n await mock.start();\r\n const bin = await mock.bins.createBin();\r\n ```\r\n\r\n### Features\r\n- Store Worker request bins in MongoDB Atlas when `MONGODB_URI` is set (`266157b`, #247)\r\n\r\n ```bash\r\n # Cloudflare Worker secret. Bins go in the Atlas `bins` collection.\r\n # Leave MONGODB_URI unset to keep the in-memory Keyv.\r\n wrangler secret put MONGODB_URI\r\n ```\r\n\r\n### Bug Fixes\r\n- security - upgrade fastify proxy-addr, fast-uri, find-my-way, undici (`9c52869`, #233)\r\n- security - upgrade handlebars, source-map-js (`28aa662`, #236)\r\n\r\n### Internal\r\n- sync defense-in-depth files from agentic (`7fb3ce4`, #234)\r\n- upgrade code quality dependencies (`a57b990`, #235)\r\n- upgrade TypeScript and build tooling (`b11fa0f`, #237)\r\n- upgrade monorepo tooling (`58e8596`, #238)\r\n- upgrade GitHub Actions (`58bc448`, #239)\r\n- upgrade Dev Container images (`2047c3c`, #240)\r\n- upgrade Fastify dependencies (`3e93bea`, #241)\r\n- upgrade hookified (`d938e6e`, #242)\r\n- upgrade pino and pino-pretty (`c2a94ad`, #243)\r\n- upgrade Docker Node.js runtime image (`cd5decf`, #244)\r\n- pin the Compose image (`74ad4ea`, #245)\r\n\r\n### Contributors\r\n- @jaredwray (11)\r\n- @cursoragent (5)\r\n\r\n### Full List of Changes\r\n- fix: security - upgrade fastify proxy-addr, fast-uri, find-my-way, undici by @jaredwray in #233\r\n- mono - chore: sync defense-in-depth files from agentic by @jaredwray in #234\r\n- mono - chore: upgrade code quality dependencies by @jaredwray in #235\r\n- fix: security - upgrade handlebars, source-map-js by @jaredwray in #236\r\n- mono - chore: upgrade TypeScript and build tooling by @jaredwray in #237\r\n- mono - chore: upgrade monorepo tooling by @jaredwray in #238\r\n- mono - chore: upgrade GitHub Actions by @jaredwray in #239\r\n- mono - chore: upgrade Dev Container images by @jaredwray in #240\r\n- mono - chore: upgrade Fastify dependencies by @jaredwray in #241\r\n- mono - chore: upgrade hookified by @jaredwray in #242\r\n- mono - chore: upgrade pino and pino-pretty by @jaredwray in #243\r\n- mono - chore: upgrade Docker Node.js runtime image by @jaredwray in #244\r\n- mono - chore: pin the Compose image by @jaredwray in #245\r\n- Store request bins in Keyv by @jaredwray in #246\r\n- Store Worker request bins in MongoDB Atlas by @jaredwray in #247\r\n\r\n**Full diff:** [https://github.com/jaredwray/mockhttp/compare/v2.1.0...v3.0.0](https://github.com/jaredwray/mockhttp/compare/v2.1.0...v3.0.0)",
|
|
17
|
+
"tags": [
|
|
18
|
+
"Release"
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"id": "v2-1-0",
|
|
23
|
+
"title": "v2.1.0",
|
|
24
|
+
"url": "https://mockhttp.org/changelog/v2-1-0/",
|
|
25
|
+
"date_published": "2026-10-03",
|
|
26
|
+
"date_modified": "2026-10-03",
|
|
27
|
+
"summary": "<p>Add AUTO_DETECT_PORT=false so the process keeps PORT, and include the docs site in the npm package.</p>\n<ul>\n<li>\n<p>Deploy the Node server to Wasmer Edge (#225)</p>\n<pre><code class=\"hljs language-bash\">PORT=3000 AUTO_DETECT_PORT=<span class=\"hljs-literal\">false</span> node dist/index.mjs\n</code></pre>\n</li>\n<li>\n<p>include Docula site in the npm tarball (#222)</p>\n</li>\n<li>\n<p>deploy Wasmer with a remote build (#226)</p>\n</li>\n<li>\n<p>deploy Wasmer through the Anybuild file (#228)</p>\n</li>\n<li>\n<p>add Drydock review badge to README (#224)</p>\n</li>\n<li>\n<p>rename Hosted Service page to MockHttp.org Live (#230)</p>\n</li>\n</ul>",
|
|
28
|
+
"content_html": "<h2 id=\"jaredwraymockhttp210--2026-10-03\">@jaredwray/mockhttp@2.1.0 — 2026-10-03</h2>\n<p>Add AUTO_DETECT_PORT=false so the process keeps PORT, and include the docs site in the npm package.</p>\n<h3 id=\"features\">Features</h3>\n<ul>\n<li>\n<p>Deploy the Node server to Wasmer Edge (#225)</p>\n<pre><code class=\"hljs language-bash\">PORT=3000 AUTO_DETECT_PORT=<span class=\"hljs-literal\">false</span> node dist/index.mjs\n</code></pre>\n</li>\n</ul>\n<h3 id=\"bug-fixes\">Bug Fixes</h3>\n<ul>\n<li>include Docula site in the npm tarball (#222)</li>\n<li>deploy Wasmer with a remote build (#226)</li>\n<li>deploy Wasmer through the Anybuild file (#228)</li>\n</ul>\n<h3 id=\"documentation\">Documentation</h3>\n<ul>\n<li>add Drydock review badge to README (#224)</li>\n<li>rename Hosted Service page to MockHttp.org Live (#230)</li>\n<li>add How to Deploy guides for Cloudflare, Docker, and Wasmer (#229)</li>\n</ul>\n<h3 id=\"internal\">Internal</h3>\n<ul>\n<li>root - defense - close catalog gaps from current skill (#221)</li>\n<li>Publish the GitHub Actions build to Wasmer (#227)</li>\n</ul>\n<h3 id=\"contributors\">Contributors</h3>\n<ul>\n<li>@jaredwray (owner)</li>\n</ul>\n<h3 id=\"full-list-of-changes\">Full List of Changes</h3>\n<ul>\n<li>root - chore: defense - close catalog gaps from current skill by @jaredwray in #221</li>\n<li>fix: include Docula site in the npm tarball by @jaredwray in #222</li>\n<li>docs: add Drydock review badge to README by @jaredwray in #224</li>\n<li>Deploy the Node server to Wasmer Edge by @jaredwray in #225</li>\n<li>Fix the Wasmer deploy by using a remote build by @jaredwray in #226</li>\n<li>Publish the GitHub Actions build to Wasmer by @jaredwray in #227</li>\n<li>Deploy Wasmer with the Anybuild file by @jaredwray in #228</li>\n<li>docs: rename Hosted Service to MockHttp.org Live by @jaredwray in #230</li>\n<li>docs: add How to Deploy guides for Cloudflare, Docker, and Wasmer by @jaredwray in #229</li>\n</ul>\n<p><strong>Full diff:</strong> <a href=\"https://github.com/jaredwray/mockhttp/compare/v2.0.0...v2.1.0\">https://github.com/jaredwray/mockhttp/compare/v2.0.0...v2.1.0</a></p>",
|
|
29
|
+
"content_text": "## @jaredwray/mockhttp@2.1.0 — 2026-10-03\r\n\r\nAdd AUTO_DETECT_PORT=false so the process keeps PORT, and include the docs site in the npm package.\r\n\r\n### Features\r\n- Deploy the Node server to Wasmer Edge (#225)\r\n\r\n ```bash\r\n PORT=3000 AUTO_DETECT_PORT=false node dist/index.mjs\r\n ```\r\n\r\n### Bug Fixes\r\n- include Docula site in the npm tarball (#222)\r\n- deploy Wasmer with a remote build (#226)\r\n- deploy Wasmer through the Anybuild file (#228)\r\n\r\n### Documentation\r\n- add Drydock review badge to README (#224)\r\n- rename Hosted Service page to MockHttp.org Live (#230)\r\n- add How to Deploy guides for Cloudflare, Docker, and Wasmer (#229)\r\n\r\n### Internal\r\n- root - defense - close catalog gaps from current skill (#221)\r\n- Publish the GitHub Actions build to Wasmer (#227)\r\n\r\n### Contributors\r\n- @jaredwray (owner)\r\n\r\n### Full List of Changes\r\n- root - chore: defense - close catalog gaps from current skill by @jaredwray in #221\r\n- fix: include Docula site in the npm tarball by @jaredwray in #222\r\n- docs: add Drydock review badge to README by @jaredwray in #224\r\n- Deploy the Node server to Wasmer Edge by @jaredwray in #225\r\n- Fix the Wasmer deploy by using a remote build by @jaredwray in #226\r\n- Publish the GitHub Actions build to Wasmer by @jaredwray in #227\r\n- Deploy Wasmer with the Anybuild file by @jaredwray in #228\r\n- docs: rename Hosted Service to MockHttp.org Live by @jaredwray in #230\r\n- docs: add How to Deploy guides for Cloudflare, Docker, and Wasmer by @jaredwray in #229\r\n\r\n**Full diff:** [https://github.com/jaredwray/mockhttp/compare/v2.0.0...v2.1.0](https://github.com/jaredwray/mockhttp/compare/v2.0.0...v2.1.0)",
|
|
30
|
+
"tags": [
|
|
31
|
+
"Release"
|
|
32
|
+
]
|
|
33
|
+
},
|
|
8
34
|
{
|
|
9
35
|
"id": "v2-0-0",
|
|
10
36
|
"title": "v2.0.0",
|
|
@@ -238,32 +264,6 @@
|
|
|
238
264
|
"tags": [
|
|
239
265
|
"Release"
|
|
240
266
|
]
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
"id": "v0-6-0",
|
|
244
|
-
"title": "v0.6.0",
|
|
245
|
-
"url": "https://mockhttp.org/changelog/v0-6-0/",
|
|
246
|
-
"date_published": "2025-06-14",
|
|
247
|
-
"date_modified": "2025-06-14",
|
|
248
|
-
"summary": "<ul>\n<li>fix: adding in application/json for return time on cookies by @jaredwray in <a href=\"https://github.com/jaredwray/mockhttp/pull/52\">https://github.com/jaredwray/mockhttp/pull/52</a></li>\n<li>chore: upgrading vitest to 3.2.3 by @jaredwray in <a href=\"https://github.com/jaredwray/mockhttp/pull/53\">https://github.com/jaredwray/mockhttp/pull/53</a></li>\n<li>chore: upgrading tsup to 8.5.0 by @jaredwray in <a href=\"https://github.com/jaredwray/mockhttp/pull/54\">https://github.com/jaredwray/mockhttp/pull/54</a></li>\n<li>chore: upgrading pino to 9.7.0 by @jaredwray in <a href=\"https://github.com/jaredwray/mockhttp/pull/55\">https://github.com/jaredwray/mockhttp/pull/55</a></li>\n</ul>",
|
|
249
|
-
"content_html": "<h2 id=\"whats-changed\">What's Changed</h2>\n<ul>\n<li>fix: adding in application/json for return time on cookies by @jaredwray in <a href=\"https://github.com/jaredwray/mockhttp/pull/52\">https://github.com/jaredwray/mockhttp/pull/52</a></li>\n<li>chore: upgrading vitest to 3.2.3 by @jaredwray in <a href=\"https://github.com/jaredwray/mockhttp/pull/53\">https://github.com/jaredwray/mockhttp/pull/53</a></li>\n<li>chore: upgrading tsup to 8.5.0 by @jaredwray in <a href=\"https://github.com/jaredwray/mockhttp/pull/54\">https://github.com/jaredwray/mockhttp/pull/54</a></li>\n<li>chore: upgrading pino to 9.7.0 by @jaredwray in <a href=\"https://github.com/jaredwray/mockhttp/pull/55\">https://github.com/jaredwray/mockhttp/pull/55</a></li>\n<li>chore: upgrading hookified to 1.9.1 by @jaredwray in <a href=\"https://github.com/jaredwray/mockhttp/pull/56\">https://github.com/jaredwray/mockhttp/pull/56</a></li>\n<li>chore: upgrading xo to 1.1.0 by @jaredwray in <a href=\"https://github.com/jaredwray/mockhttp/pull/57\">https://github.com/jaredwray/mockhttp/pull/57</a></li>\n<li>chore: upgrading fastify to 5.4.0 by @jaredwray in <a href=\"https://github.com/jaredwray/mockhttp/pull/58\">https://github.com/jaredwray/mockhttp/pull/58</a></li>\n<li>feat: adding in the anything route from httpbin by @jaredwray in <a href=\"https://github.com/jaredwray/mockhttp/pull/59\">https://github.com/jaredwray/mockhttp/pull/59</a></li>\n</ul>\n<p><strong>Full Changelog</strong>: <a href=\"https://github.com/jaredwray/mockhttp/compare/v0.5.0...v0.6.0\">https://github.com/jaredwray/mockhttp/compare/v0.5.0...v0.6.0</a></p>",
|
|
250
|
-
"content_text": "## What's Changed\r\n* fix: adding in application/json for return time on cookies by @jaredwray in [https://github.com/jaredwray/mockhttp/pull/52](https://github.com/jaredwray/mockhttp/pull/52)\r\n* chore: upgrading vitest to 3.2.3 by @jaredwray in [https://github.com/jaredwray/mockhttp/pull/53](https://github.com/jaredwray/mockhttp/pull/53)\r\n* chore: upgrading tsup to 8.5.0 by @jaredwray in [https://github.com/jaredwray/mockhttp/pull/54](https://github.com/jaredwray/mockhttp/pull/54)\r\n* chore: upgrading pino to 9.7.0 by @jaredwray in [https://github.com/jaredwray/mockhttp/pull/55](https://github.com/jaredwray/mockhttp/pull/55)\r\n* chore: upgrading hookified to 1.9.1 by @jaredwray in [https://github.com/jaredwray/mockhttp/pull/56](https://github.com/jaredwray/mockhttp/pull/56)\r\n* chore: upgrading xo to 1.1.0 by @jaredwray in [https://github.com/jaredwray/mockhttp/pull/57](https://github.com/jaredwray/mockhttp/pull/57)\r\n* chore: upgrading fastify to 5.4.0 by @jaredwray in [https://github.com/jaredwray/mockhttp/pull/58](https://github.com/jaredwray/mockhttp/pull/58)\r\n* feat: adding in the anything route from httpbin by @jaredwray in [https://github.com/jaredwray/mockhttp/pull/59](https://github.com/jaredwray/mockhttp/pull/59)\r\n\r\n\r\n**Full Changelog**: [https://github.com/jaredwray/mockhttp/compare/v0.5.0...v0.6.0](https://github.com/jaredwray/mockhttp/compare/v0.5.0...v0.6.0)",
|
|
251
|
-
"tags": [
|
|
252
|
-
"Release"
|
|
253
|
-
]
|
|
254
|
-
},
|
|
255
|
-
{
|
|
256
|
-
"id": "v0-5-0",
|
|
257
|
-
"title": "v0.5.0",
|
|
258
|
-
"url": "https://mockhttp.org/changelog/v0-5-0/",
|
|
259
|
-
"date_published": "2025-05-10",
|
|
260
|
-
"date_modified": "2025-05-10",
|
|
261
|
-
"summary": "<ul>\n<li>chore: updating github actions and scripts by @jaredwray in <a href=\"https://github.com/jaredwray/mockhttp/pull/45\">https://github.com/jaredwray/mockhttp/pull/45</a></li>\n<li>chore: upgrading @swc/core and tsx to latest by @jaredwray in <a href=\"https://github.com/jaredwray/mockhttp/pull/46\">https://github.com/jaredwray/mockhttp/pull/46</a></li>\n<li>chore: upgrading vitest to 3.1.3 by @jaredwray in <a href=\"https://github.com/jaredwray/mockhttp/pull/47\">https://github.com/jaredwray/mockhttp/pull/47</a></li>\n<li>chore: upgrading hookified to 1.9.0 by @jaredwray in <a href=\"https://github.com/jaredwray/mockhttp/pull/48\">https://github.com/jaredwray/mockhttp/pull/48</a></li>\n</ul>",
|
|
262
|
-
"content_html": "<h2 id=\"whats-changed\">What's Changed</h2>\n<ul>\n<li>chore: updating github actions and scripts by @jaredwray in <a href=\"https://github.com/jaredwray/mockhttp/pull/45\">https://github.com/jaredwray/mockhttp/pull/45</a></li>\n<li>chore: upgrading @swc/core and tsx to latest by @jaredwray in <a href=\"https://github.com/jaredwray/mockhttp/pull/46\">https://github.com/jaredwray/mockhttp/pull/46</a></li>\n<li>chore: upgrading vitest to 3.1.3 by @jaredwray in <a href=\"https://github.com/jaredwray/mockhttp/pull/47\">https://github.com/jaredwray/mockhttp/pull/47</a></li>\n<li>chore: upgrading hookified to 1.9.0 by @jaredwray in <a href=\"https://github.com/jaredwray/mockhttp/pull/48\">https://github.com/jaredwray/mockhttp/pull/48</a></li>\n<li>chore: upgrading fastify to 5.3.2 by @jaredwray in <a href=\"https://github.com/jaredwray/mockhttp/pull/49\">https://github.com/jaredwray/mockhttp/pull/49</a></li>\n<li>feat: moving docker to get external packaging by @jaredwray in <a href=\"https://github.com/jaredwray/mockhttp/pull/50\">https://github.com/jaredwray/mockhttp/pull/50</a></li>\n<li>feat: adding in cookies from httpbin by @jaredwray in <a href=\"https://github.com/jaredwray/mockhttp/pull/51\">https://github.com/jaredwray/mockhttp/pull/51</a></li>\n</ul>\n<p><strong>Full Changelog</strong>: <a href=\"https://github.com/jaredwray/mockhttp/compare/v0.4.3...v0.5.0\">https://github.com/jaredwray/mockhttp/compare/v0.4.3...v0.5.0</a></p>",
|
|
263
|
-
"content_text": "## What's Changed\r\n* chore: updating github actions and scripts by @jaredwray in [https://github.com/jaredwray/mockhttp/pull/45](https://github.com/jaredwray/mockhttp/pull/45)\r\n* chore: upgrading @swc/core and tsx to latest by @jaredwray in [https://github.com/jaredwray/mockhttp/pull/46](https://github.com/jaredwray/mockhttp/pull/46)\r\n* chore: upgrading vitest to 3.1.3 by @jaredwray in [https://github.com/jaredwray/mockhttp/pull/47](https://github.com/jaredwray/mockhttp/pull/47)\r\n* chore: upgrading hookified to 1.9.0 by @jaredwray in [https://github.com/jaredwray/mockhttp/pull/48](https://github.com/jaredwray/mockhttp/pull/48)\r\n* chore: upgrading fastify to 5.3.2 by @jaredwray in [https://github.com/jaredwray/mockhttp/pull/49](https://github.com/jaredwray/mockhttp/pull/49)\r\n* feat: moving docker to get external packaging by @jaredwray in [https://github.com/jaredwray/mockhttp/pull/50](https://github.com/jaredwray/mockhttp/pull/50)\r\n* feat: adding in cookies from httpbin by @jaredwray in [https://github.com/jaredwray/mockhttp/pull/51](https://github.com/jaredwray/mockhttp/pull/51)\r\n\r\n\r\n**Full Changelog**: [https://github.com/jaredwray/mockhttp/compare/v0.4.3...v0.5.0](https://github.com/jaredwray/mockhttp/compare/v0.4.3...v0.5.0)",
|
|
264
|
-
"tags": [
|
|
265
|
-
"Release"
|
|
266
|
-
]
|
|
267
267
|
}
|
|
268
268
|
]
|
|
269
269
|
}
|