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

Commit 8010e33

Browse files
committed
Bump to 1.4.0
1 parent d67cb47 commit 8010e33

File tree

5 files changed

+41
-4
lines changed

5 files changed

+41
-4
lines changed

CHANGELOG.md

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

3+
## 1.4.0
4+
5+
### Features
6+
7+
- Added `Event` and `EventTarget` to the sandbox. The global scope and
8+
`WebSocket` now inherit from `EventTarget` so `removeEventListener` is now
9+
supported. Closes [issue #18](https://github.com/mrbbot/miniflare/issues/18),
10+
thanks [@jayphelps](https://github.com/jayphelps).
11+
- Added workers' uncompressed size to logs, closes
12+
[issue #23](https://github.com/mrbbot/miniflare/issues/23), thanks
13+
[@ItsWendell](https://github.com/ItsWendell)
14+
- Switch to lighter dependencies, thanks [@lukeed](https://github.com/lukeed).
15+
There's still lots of work to do here for the next major release.
16+
17+
### Fixes
18+
19+
- Require the `GET` method for WebSocket upgrades, closes
20+
[issue #25](https://github.com/mrbbot/miniflare/issues/25), thanks
21+
[@ItsWendell](https://github.com/ItsWendell)
22+
- Added `WebSocket` to the sandbox, closes
23+
[issue #30](https://github.com/mrbbot/miniflare/issues/30), thanks
24+
[@ItsWendell](https://github.com/ItsWendell). Note you still need to use
25+
`WebSocketPair` and `fetch` to set up WebSocket connections. See
26+
[✉️ WebSockets](https://miniflare.dev/web-sockets.html) for more details.
27+
- Fixed caching with `URL` request keys, closes
28+
[issue #33](https://github.com/mrbbot/miniflare/issues/33), thanks
29+
[@TimTinkers](https://github.com/TimTinkers)
30+
- Disable the watcher whilst rebuilding, closes
31+
[issue #34](https://github.com/mrbbot/miniflare/issues/34), thanks
32+
[@TimTinkers](https://github.com/TimTinkers)
33+
334
## 1.3.3
435

536
### Features

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ $ miniflare worker.js --watch --debug
5252
[mf:dbg] Options:
5353
[mf:dbg] - Scripts: worker.js
5454
[mf:dbg] Reloading worker.js...
55-
[mf:inf] Worker reloaded!
55+
[mf:inf] Worker reloaded! (97B)
5656
[mf:dbg] Watching .env, package.json, worker.js, wrangler.toml...
5757
[mf:inf] Listening on :8787
5858
[mf:inf] - http://127.0.0.1:8787

docs/cli.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,15 @@ port `8787` that responds with `Hello Miniflare!` to all requests:
3333

3434
```shell{1}
3535
$ miniflare worker.js
36-
[mf:inf] Worker reloaded!
36+
[mf:inf] Worker reloaded! (97B)
3737
[mf:inf] Listening on :8787
3838
[mf:inf] - http://127.0.0.1:8787
3939
```
4040

41+
Note that the uncompressed size of the worker, `97B`, is logged. Cloudflare
42+
requires all workers are under `1MiB` once compressed. Miniflare will warn you
43+
when your uncompressed size exceeds `1MiB`.
44+
4145
<!--prettier-ignore-start-->
4246
::: tip
4347
If you're building your worker beforehand (with esbuild, Webpack, etc), make
@@ -61,7 +65,7 @@ $ miniflare worker.js --watch --debug
6165
[mf:dbg] Options:
6266
[mf:dbg] - Scripts: worker.js
6367
[mf:dbg] Reloading worker.js...
64-
[mf:inf] Worker reloaded!
68+
[mf:inf] Worker reloaded! (97B)
6569
[mf:dbg] Watching .env, package.json, worker.js, wrangler.toml...
6670
[mf:inf] Listening on :8787
6771
[mf:inf] - http://127.0.0.1:8787

docs/recipes/ava.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ✅ Testing with AVA
22

3-
We'll now add unit tests with [AVA](https://github.com/avajs/ava) to our
3+
We'll now add tests with [AVA](https://github.com/avajs/ava) to our
44
[previous esbuild example](./esbuild.html).
55

66
## Dependencies

docs/standards.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@ Miniflare supports the following Web Standards in its sandbox:
3030
`TransformStreamDefaultController`, `WritableStream`,
3131
`WritableStreamDefaultController`, `WritableStreamDefaultWriter` (powered by
3232
[web-streams-polyfill](https://github.com/MattiasBuelens/web-streams-polyfill))
33+
- **Events:** `Event`, `EventTarget` (powered by
34+
[event-target-shim](https://github.com/mysticatea/event-target-shim))

0 commit comments

Comments
 (0)