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

Commit 1a2cc36

Browse files
committed
Bump versions to 2.13.0, update CHANGELOG.md and docs
1 parent 3107e63 commit 1a2cc36

File tree

28 files changed

+419
-382
lines changed

28 files changed

+419
-382
lines changed

docs/CHANGELOG.md

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

3+
## 2.13.0
4+
5+
### Features
6+
7+
- Add support for `DurableObjectNamespace#jurisdiction()` method. Note the
8+
passed `jurisdiction` is validated but otherwise ignored. IDs generated by
9+
sub-namespaces in different jurisdictions will be the same. Thanks
10+
[@DaniFoldi](https://github.com/DaniFoldi) for
11+
[the PR](https://github.com/cloudflare/miniflare/pull/540).
12+
- Add support for the non-standard `crypto.subtle.timingSafeEqual()` function.
13+
Thanks [@DaniFoldi](https://github.com/DaniFoldi) for
14+
[the PR](https://github.com/cloudflare/miniflare/pull/542).
15+
- Remove requirement for `experimental` compatibility flag alongside
16+
`nodejs_compat` to use `node:assert`, `node:buffer` and `node:util` modules.
17+
Closes [issue #547](https://github.com/cloudflare/miniflare/issues/547),
18+
thanks [@Skye-31](https://github.com/Skye-31) and
19+
[@DaniFoldi](https://github.com/DaniFoldi) for
20+
[the PR](https://github.com/cloudflare/miniflare/pull/548).
21+
22+
### Fixes
23+
24+
- Fix binding of `?N` parameters in D1 prepared statements. Closes issues
25+
[#504](https://github.com/cloudflare/miniflare/issues/504),
26+
[#526](https://github.com/cloudflare/miniflare/issues/526),
27+
[cloudflare/workers-sdk#2811](https://github.com/cloudflare/workers-sdk/issues/2811)
28+
and
29+
[cloudflare/workers-sdk#2887](https://github.com/cloudflare/workers-sdk/issues/2887).
30+
Thanks [@ruslantalpa](https://github.com/ruslantalpa) and
31+
[@maurerbot](https://github.com/maurerbot).
32+
- Fix cloning of `Response`s constructed with byte streams. Notably, byte
33+
streams are returned from lots of Workers runtime APIs (e.g. KV, R2) to
34+
support BYOB reads. Closes
35+
[issue #527](https://github.com/cloudflare/miniflare/issues/527), thanks
36+
[@cwkang1998](https://github.com/cwkang1998).
37+
- Copy `Content-Length` from `Request`/`Response` `body` streams when
38+
constructing a new `Request`/`Response` or calling `fetch`. Closes
39+
[issue #522](https://github.com/cloudflare/miniflare/issues/522), thanks
40+
[@notorca](https://github.com/notorca).
41+
342
## 2.12.2
443

544
### Fixes

docs/src/content/core/compatibility.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ const mf = new Miniflare({
6969

7070
Specifically Miniflare supports the following flags:
7171

72-
- `nodejs_compat` (specifically the _`node:assert`_\*, `node:async_hooks`,
73-
_`node:buffer`_\*, `node:events`, _`node:util`_\* modules)
72+
- `nodejs_compat` (specifically the `node:assert`, `node:async_hooks`,
73+
`node:buffer`, `node:events`, `node:util` modules)
7474
- [`transformstream_enable_standard_constructor`/`transformstream_disable_standard_constructor`](https://developers.cloudflare.com/workers/platform/compatibility-dates#compliant-transformstream-constructor)
7575
- [`streams_enable_constructors`/`streams_disable_constructors`](https://developers.cloudflare.com/workers/platform/compatibility-dates#streams-constructors)
7676
- [`export_commonjs_default`/`export_commonjs_namespace`](https://developers.cloudflare.com/workers/platform/compatibility-dates#commonjs-modules-do-not-export-a-module-namespace)
@@ -80,5 +80,3 @@ Specifically Miniflare supports the following flags:
8080
- [`fetch_refuses_unknown_protocols`/`fetch_treats_unknown_protocols_as_http`](https://developers.cloudflare.com/workers/platform/compatibility-dates#fetch-improperly-interprets-unknown-protocols-as-http)
8181
- [`formdata_parser_supports_files`/`formdata_parser_converts_files_to_strings`](https://developers.cloudflare.com/workers/platform/compatibility-dates#formdata-parsing-supports-file)
8282
- [`html_rewriter_treats_esi_include_as_void_tag`](https://developers.cloudflare.com/workers/platform/compatibility-dates#htmlrewriter-handling-of-esiinclude)
83-
84-
\* _Additionally requires the `experimental` compatibility flag to be set_

0 commit comments

Comments
 (0)