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.
@@ -1,4 +1,4 @@
1
- let moduleVersion = "3.19.16";
1
+ let moduleVersion = "3.19.18";
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.19.16",
3
+ "version": "3.19.18",
4
4
  "description": "The missing standard library for TypeScript, for writing production-grade software.",
5
5
  "license": "MIT",
6
6
  "repository": {
package/src/Schema.ts CHANGED
@@ -5882,7 +5882,7 @@ export type JsonNumberSchemaId = typeof JsonNumberSchemaId
5882
5882
  * import * as assert from "node:assert"
5883
5883
  * import * as Schema from "effect/Schema"
5884
5884
  *
5885
- * const is = Schema.is(S.JsonNumber)
5885
+ * const is = Schema.is(Schema.JsonNumber)
5886
5886
  *
5887
5887
  * assert.deepStrictEqual(is(42), true)
5888
5888
  * assert.deepStrictEqual(is(Number.NaN), false)
@@ -1397,6 +1397,7 @@ export const changesWith = dual<
1397
1397
  return [Option.some(output), pipe(outputs, Chunk.append(output))] as const
1398
1398
  }
1399
1399
  )
1400
+ if (Chunk.isEmpty(newChunk)) return writer(newLast)
1400
1401
  return core.flatMap(
1401
1402
  core.write(newChunk),
1402
1403
  () => writer(newLast)
@@ -8773,7 +8774,7 @@ export const decodeText = dual<
8773
8774
  >((args) => isStream(args[0]), (self, encoding = "utf-8") =>
8774
8775
  suspend(() => {
8775
8776
  const decoder = new TextDecoder(encoding)
8776
- return map(self, (s) => decoder.decode(s))
8777
+ return map(self, (s) => decoder.decode(s, { stream: true }))
8777
8778
  }))
8778
8779
 
8779
8780
  /** @internal */
@@ -1,4 +1,4 @@
1
- let moduleVersion = "3.19.16"
1
+ let moduleVersion = "3.19.18"
2
2
 
3
3
  export const getCurrentVersion = () => moduleVersion
4
4