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.
@@ -1,4 +1,4 @@
1
- let moduleVersion = "3.6.2";
1
+ let moduleVersion = "3.6.3";
2
2
  export const getCurrentVersion = () => moduleVersion;
3
3
  export const setCurrentVersion = version => {
4
4
  moduleVersion = version;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "effect",
3
- "version": "3.6.2",
3
+ "version": "3.6.3",
4
4
  "description": "The missing standard library for TypeScript, for writing production-grade software.",
5
5
  "license": "MIT",
6
6
  "repository": {
package/src/DateTime.ts CHANGED
@@ -1979,7 +1979,7 @@ export const format: {
1979
1979
  /**
1980
1980
  * Format a `DateTime` as a string using the `DateTimeFormat` API.
1981
1981
  *
1982
- * It will use the system's local time zone.
1982
+ * It will use the system's local time zone & locale.
1983
1983
  *
1984
1984
  * @since 3.6.0
1985
1985
  * @category formatting
@@ -6895,10 +6895,14 @@ export const toReadableStreamRuntime = dual<
6895
6895
  return new ReadableStream<A>({
6896
6896
  start(controller) {
6897
6897
  scope = runSync(Scope.make())
6898
- pull = pipe(
6898
+ const pullChunk: Effect.Effect<Chunk.Chunk<A>, Option.Option<E>, R> = pipe(
6899
6899
  toPull(self),
6900
6900
  Scope.extend(scope),
6901
6901
  runSync,
6902
+ Effect.flatMap((chunk) => Chunk.isEmpty(chunk) ? pullChunk : Effect.succeed(chunk))
6903
+ )
6904
+ pull = pipe(
6905
+ pullChunk,
6902
6906
  Effect.tap((chunk) =>
6903
6907
  Effect.sync(() => {
6904
6908
  Chunk.map(chunk, (a) => {
@@ -1,4 +1,4 @@
1
- let moduleVersion = "3.6.2"
1
+ let moduleVersion = "3.6.3"
2
2
 
3
3
  export const getCurrentVersion = () => moduleVersion
4
4