Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/workerd/io/compatibility-date.capnp
Original file line number Diff line number Diff line change
Expand Up @@ -1229,7 +1229,8 @@ struct CompatibilityFlags @0x8f8c1b68151b6cef {

fetchIterableTypeSupport @146 :Bool
$compatEnableFlag("fetch_iterable_type_support")
$compatDisableFlag("no_fetch_iterable_type_support");
$compatDisableFlag("no_fetch_iterable_type_support")
$compatEnableDate("2026-02-19");
# Enables passing sync and async iterables as the body of fetch Request or Response.
# Previously, sync iterables like Arrays would be accepted but stringified, and async
# iterables would be treated as regular objects and not iterated over at all. With this
Expand All @@ -1239,6 +1240,7 @@ struct CompatibilityFlags @0x8f8c1b68151b6cef {
# that allows this behavior and allows sync Generator and AsyncGenerator objects to be
# included in kj::OneOf declarations safely with strings and other types. When enabled,
# strings are ignored but Arrays will be treated as iterables and not stringified as before.
# Also see fetchIterableTypeSupportOverrideAdjustment.

envModuleNullableSupport @147 :Bool
$compatEnableFlag("env_module_nullable_support")
Expand Down
4 changes: 3 additions & 1 deletion types/generated-snapshot/latest/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1913,7 +1913,9 @@ type BodyInit =
| ArrayBufferView
| Blob
| URLSearchParams
| FormData;
| FormData
| Iterable<ArrayBuffer | ArrayBufferView>
| AsyncIterable<ArrayBuffer | ArrayBufferView>;
declare abstract class Body {
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body) */
get body(): ReadableStream | null;
Expand Down
4 changes: 3 additions & 1 deletion types/generated-snapshot/latest/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1918,7 +1918,9 @@ export type BodyInit =
| ArrayBufferView
| Blob
| URLSearchParams
| FormData;
| FormData
| Iterable<ArrayBuffer | ArrayBufferView>
| AsyncIterable<ArrayBuffer | ArrayBufferView>;
export declare abstract class Body {
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body) */
get body(): ReadableStream | null;
Expand Down