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.
- package/dist/cjs/Schema.js +1 -1
- package/dist/cjs/internal/stream.js +4 -1
- package/dist/cjs/internal/stream.js.map +1 -1
- package/dist/cjs/internal/version.js +1 -1
- package/dist/dts/Schema.d.ts +1 -1
- package/dist/dts/internal/stream.d.ts.map +1 -1
- package/dist/esm/Schema.js +1 -1
- package/dist/esm/internal/stream.js +4 -1
- package/dist/esm/internal/stream.js.map +1 -1
- package/dist/esm/internal/version.js +1 -1
- package/package.json +1 -1
- package/src/Schema.ts +1 -1
- package/src/internal/stream.ts +2 -1
- package/src/internal/version.ts +1 -1
package/package.json
CHANGED
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(
|
|
5885
|
+
* const is = Schema.is(Schema.JsonNumber)
|
|
5886
5886
|
*
|
|
5887
5887
|
* assert.deepStrictEqual(is(42), true)
|
|
5888
5888
|
* assert.deepStrictEqual(is(Number.NaN), false)
|
package/src/internal/stream.ts
CHANGED
|
@@ -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 */
|
package/src/internal/version.ts
CHANGED