effect 3.19.16 → 3.19.18

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.
@@ -2900,7 +2900,7 @@ const JsonNumberSchemaId = exports.JsonNumberSchemaId = schemaId_.JsonNumberSche
2900
2900
  * import * as assert from "node:assert"
2901
2901
  * import * as Schema from "effect/Schema"
2902
2902
  *
2903
- * const is = Schema.is(S.JsonNumber)
2903
+ * const is = Schema.is(Schema.JsonNumber)
2904
2904
  *
2905
2905
  * assert.deepStrictEqual(is(42), true)
2906
2906
  * assert.deepStrictEqual(is(Number.NaN), false)
@@ -421,6 +421,7 @@ const changesWith = exports.changesWith = /*#__PURE__*/(0, _Function.dual)(2, (s
421
421
  }
422
422
  return [Option.some(output), (0, _Function.pipe)(outputs, Chunk.append(output))];
423
423
  });
424
+ if (Chunk.isEmpty(newChunk)) return writer(newLast);
424
425
  return core.flatMap(core.write(newChunk), () => writer(newLast));
425
426
  },
426
427
  onFailure: core.failCause,
@@ -2960,7 +2961,9 @@ const channelToStream = self => {
2960
2961
  exports.channelToStream = channelToStream;
2961
2962
  const decodeText = exports.decodeText = /*#__PURE__*/(0, _Function.dual)(args => isStream(args[0]), (self, encoding = "utf-8") => suspend(() => {
2962
2963
  const decoder = new TextDecoder(encoding);
2963
- return map(self, s => decoder.decode(s));
2964
+ return map(self, s => decoder.decode(s, {
2965
+ stream: true
2966
+ }));
2964
2967
  }));
2965
2968
  /** @internal */
2966
2969
  const encodeText = self => suspend(() => {