Skip to content

Commit

Permalink
Bump versions to 2.3.0, update CHANGELOG.md and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbbot committed Feb 7, 2022
1 parent 20d4dce commit 5d90324
Show file tree
Hide file tree
Showing 23 changed files with 346 additions and 306 deletions.
32 changes: 32 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
# 🚧 Changelog

## 2.3.0

### Features

- Route `/cdn-cgi/mf/scheduled` requests based on mount routes. Closes
[issue #163](https://github.com/cloudflare/miniflare/issues/163), thanks
[@jed](https://github.com/jed).
- Add clear error if a Durable Object class is missing a `fetch` handler. Closes
[issue #164](https://github.com/cloudflare/miniflare/issues/164), thanks
[@aboodman](https://github.com/aboodman).
- Upgrade [`undici`](https://github.com/nodejs/undici) to
[`4.13.0`](https://github.com/nodejs/undici/releases/tag/v4.13.0)

### Fixes

- Fix `instanceof` when subclassing `Error`. Subclasses of `Error` were
previously treated as `Error`s themselves in `instanceof` checks. Closes
[issue #159](https://github.com/cloudflare/miniflare/issues/159), thanks
[@valeriangalliat](https://github.com/valeriangalliat).
- Return `null` bodies when `fetch`ing `Response`s with a null status. Closes
[issue #165](https://github.com/cloudflare/miniflare/issues/165), thanks
[@lukaszczerpak](https://github.com/lukaszczerpak) for reporting this and
[@GregBrimble](https://github.com/GregBrimble) for
[the PR](https://github.com/cloudflare/miniflare/pull/172).
- Clone `ArrayBuffer` bodies when constructing `Request`/`Response`s. Closes
[issue #171](https://github.com/cloudflare/miniflare/issues/171), thanks
[@segator](https://github.com/segator) and
[@leader22](https://github.com/leader22).
- Watch `index.js` by default in `type = "webpack"` projects
- Throw `TypeError`s instead of `string`s on `HTMLRewriter` parser errors
- Disable nested mounts via `Miniflare#getMount().setOptions()`

## 2.2.0

### Features
Expand Down
8 changes: 8 additions & 0 deletions docs/src/content/core/mount.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,14 @@ const res = await mf.dispatchFetch("http://api.mf/todos/update/1", {
console.log(await res.text()); // URL: https://example.com/api/todos/update/1 Host: example.com
```

## Scheduled Events HTTP Triggers

[⏰ Scheduled Events](/core/scheduled) can be triggered by making
[HTTP requests to `/cdn-cgi/mf/scheduled`](/core/scheduled#http-triggers). These
requests respect the same routes as `fetch` events. For example, requesting
`http://api.mf/cdn-cgi/mf/scheduled` will trigger a scheduled event in the `api`
worker if its routes include `api.mf/*`.

## Durable Objects

Miniflare supports the `script_name` option for accessing Durable Objects
Expand Down
Loading

0 comments on commit 5d90324

Please sign in to comment.