effect 3.6.2 → 3.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1441,7 +1441,7 @@ const format = exports.format = /*#__PURE__*/(0, _Function.dual)(isDateTimeArgs,
1441
1441
  /**
1442
1442
  * Format a `DateTime` as a string using the `DateTimeFormat` API.
1443
1443
  *
1444
- * It will use the system's local time zone.
1444
+ * It will use the system's local time zone & locale.
1445
1445
  *
1446
1446
  * @since 3.6.0
1447
1447
  * @category formatting
@@ -2199,7 +2199,8 @@ const toReadableStreamRuntime = exports.toReadableStreamRuntime = /*#__PURE__*/(
2199
2199
  return new ReadableStream({
2200
2200
  start(controller) {
2201
2201
  scope = runSync(Scope.make());
2202
- pull = (0, _Function.pipe)(toPull(self), Scope.extend(scope), runSync, Effect.tap(chunk => Effect.sync(() => {
2202
+ const pullChunk = (0, _Function.pipe)(toPull(self), Scope.extend(scope), runSync, Effect.flatMap(chunk => Chunk.isEmpty(chunk) ? pullChunk : Effect.succeed(chunk)));
2203
+ pull = (0, _Function.pipe)(pullChunk, Effect.tap(chunk => Effect.sync(() => {
2203
2204
  Chunk.map(chunk, a => {
2204
2205
  controller.enqueue(a);
2205
2206
  });