Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 5d90324

Browse files
committed
Bump versions to 2.3.0, update CHANGELOG.md and docs
1 parent 20d4dce commit 5d90324

File tree

23 files changed

+346
-306
lines changed

23 files changed

+346
-306
lines changed

docs/CHANGELOG.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,37 @@
11
# 🚧 Changelog
22

3+
## 2.3.0
4+
5+
### Features
6+
7+
- Route `/cdn-cgi/mf/scheduled` requests based on mount routes. Closes
8+
[issue #163](https://github.com/cloudflare/miniflare/issues/163), thanks
9+
[@jed](https://github.com/jed).
10+
- Add clear error if a Durable Object class is missing a `fetch` handler. Closes
11+
[issue #164](https://github.com/cloudflare/miniflare/issues/164), thanks
12+
[@aboodman](https://github.com/aboodman).
13+
- Upgrade [`undici`](https://github.com/nodejs/undici) to
14+
[`4.13.0`](https://github.com/nodejs/undici/releases/tag/v4.13.0)
15+
16+
### Fixes
17+
18+
- Fix `instanceof` when subclassing `Error`. Subclasses of `Error` were
19+
previously treated as `Error`s themselves in `instanceof` checks. Closes
20+
[issue #159](https://github.com/cloudflare/miniflare/issues/159), thanks
21+
[@valeriangalliat](https://github.com/valeriangalliat).
22+
- Return `null` bodies when `fetch`ing `Response`s with a null status. Closes
23+
[issue #165](https://github.com/cloudflare/miniflare/issues/165), thanks
24+
[@lukaszczerpak](https://github.com/lukaszczerpak) for reporting this and
25+
[@GregBrimble](https://github.com/GregBrimble) for
26+
[the PR](https://github.com/cloudflare/miniflare/pull/172).
27+
- Clone `ArrayBuffer` bodies when constructing `Request`/`Response`s. Closes
28+
[issue #171](https://github.com/cloudflare/miniflare/issues/171), thanks
29+
[@segator](https://github.com/segator) and
30+
[@leader22](https://github.com/leader22).
31+
- Watch `index.js` by default in `type = "webpack"` projects
32+
- Throw `TypeError`s instead of `string`s on `HTMLRewriter` parser errors
33+
- Disable nested mounts via `Miniflare#getMount().setOptions()`
34+
335
## 2.2.0
436

537
### Features

docs/src/content/core/mount.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,14 @@ const res = await mf.dispatchFetch("http://api.mf/todos/update/1", {
211211
console.log(await res.text()); // URL: https://example.com/api/todos/update/1 Host: example.com
212212
```
213213

214+
## Scheduled Events HTTP Triggers
215+
216+
[⏰ Scheduled Events](/core/scheduled) can be triggered by making
217+
[HTTP requests to `/cdn-cgi/mf/scheduled`](/core/scheduled#http-triggers). These
218+
requests respect the same routes as `fetch` events. For example, requesting
219+
`http://api.mf/cdn-cgi/mf/scheduled` will trigger a scheduled event in the `api`
220+
worker if its routes include `api.mf/*`.
221+
214222
## Durable Objects
215223

216224
Miniflare supports the `script_name` option for accessing Durable Objects

0 commit comments

Comments
 (0)