|
11 | 11 | testing. |
12 | 12 | 2. ✨ **Lightweight:** Miniflare 1 included |
13 | 13 | [122 third-party packages](http://npm.anvaka.com/#/view/2d/miniflare) with a |
14 | | - total install size of `88.3MB`. Miniflare 2 reduces this to **24 packages and |
| 14 | + total install size of `88MB`. Miniflare 2 reduces this to **24 packages and |
15 | 15 | `6MB`** by leveraging features included with Node.js 16. |
16 | 16 | 3. ✅ **Accurate:** Miniflare 2 more accurately replicates the quirks and thrown |
17 | 17 | errors of the real Workers runtime, so you'll know before you deploy if |
@@ -175,6 +175,15 @@ if you're upgrading from version 1. |
175 | 175 | more likely to work with Miniflare now. Closes |
176 | 176 | [issue #44](https://github.com/cloudflare/miniflare/issues/44), thanks |
177 | 177 | [@TimTinkers](https://github.com/TimTinkers). |
| 178 | +- Don't crash on unhandled promise rejections when using the CLI. Instead, log |
| 179 | + them. Closes [issue #115](https://github.com/cloudflare/miniflare/issues/115), |
| 180 | + thanks [@togglydev](https://github.com/togglydev). |
| 181 | +- Limit the number of |
| 182 | + [subrequests](https://developers.cloudflare.com/workers/platform/limits#subrequests) |
| 183 | + to 50, |
| 184 | + [as per the Workers runtime](https://developers.cloudflare.com/workers/platform/limits#account-plan-limits). |
| 185 | + Closes [issue #117](https://github.com/cloudflare/miniflare/issues/117), |
| 186 | + thanks [@leader22](https://github.com/leader22) for the suggestion. |
178 | 187 | - Incoming request headers are now immutable. Closes |
179 | 188 | [issue #36](https://github.com/cloudflare/miniflare/issues/36), thanks |
180 | 189 | [@grahamlyons](https://github.com/grahamlyons). |
@@ -242,12 +251,18 @@ if you're upgrading from version 1. |
242 | 251 | - **Added support for |
243 | 252 | [`crypto.randomUUID()`](https://developer.mozilla.org/en-US/docs/Web/API/Crypto/randomUUID)** |
244 | 253 | - **Added support for |
245 | | - [`structuredClone`](https://developer.mozilla.org/en-US/docs/Web/API/structuredClone)** |
| 254 | + [`structuredClone`](https://developer.mozilla.org/en-US/docs/Web/API/structuredClone)**. |
| 255 | + Note the `transfer` option is only supported on Node.js >= 17. |
246 | 256 | - **Added support for |
247 | 257 | [`queueMicrotask`](https://developer.mozilla.org/en-US/docs/Web/API/queueMicrotask)** |
248 | 258 | - **Added support for the `NODE-ED25519` algorithm** to `crypto.subtle.sign()` |
249 | | - and `crypto.subtle.verify()` Note the `transfer` option is only supported on |
250 | | - Node.js >= 17. |
| 259 | + and `crypto.subtle.verify()` |
| 260 | +- Added support for `AbortSignal.timeout()` |
| 261 | +- Added support for `crypto.DigestStream` |
| 262 | +- Added support for `scheduler.wait()` |
| 263 | +- Added support for `FixedLengthStream`. Closes |
| 264 | + [issue #123](https://github.com/cloudflare/miniflare/issues/123), thanks |
| 265 | + [@vlovich](https://github.com/vlovich). |
251 | 266 | - Throw an error when attempting to create a new `TextDecoder` with a non-UTF-8 |
252 | 267 | encoding |
253 | 268 | - Throw errors when attempting to use `FetchEvent`/`ScheduledEvent` methods with |
@@ -315,7 +330,7 @@ if you're upgrading from version 1. |
315 | 330 | - Throw an error if the ID passed to `DurableObjectNamespace#get(id)` is for a |
316 | 331 | different Durable Object |
317 | 332 | - Throw an error when keys are greater than `2KiB` or `undefined` |
318 | | -- Throw an error when values are greater than `32KiB` |
| 333 | +- Throw an error when values are greater than `128KiB` |
319 | 334 | - Throw an error when attempting to `get`, `put` or `delete` more than `128` |
320 | 335 | keys, or when attempting to modify more than `128` keys in a transaction |
321 | 336 | - Throw an error when attempting to `put` an `undefined` value |
@@ -366,6 +381,12 @@ if you're upgrading from version 1. |
366 | 381 | }); |
367 | 382 | ``` |
368 | 383 |
|
| 384 | +- Added `--open`/`-O` option that automatically opens your browser once your |
| 385 | + worker is running. You can optionally specify a different URL to open with |
| 386 | + `--open https://example.com`. Closes |
| 387 | + [issue #121](https://github.com/cloudflare/miniflare/issues/121), thanks |
| 388 | + [@third774](https://github.com/third774) for the suggestion. |
| 389 | + |
369 | 390 | - **Automatically fetch the incoming `Request#cf` object** from a trusted |
370 | 391 | Cloudflare endpoint, so the values are the same as you'd get for real. Closes |
371 | 392 | [issue #61](https://github.com/cloudflare/miniflare/issues/61), thanks |
|
0 commit comments