effect 3.6.0 → 3.6.2

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.0";
1
+ let moduleVersion = "3.6.2";
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.0",
3
+ "version": "3.6.2",
4
4
  "description": "The missing standard library for TypeScript, for writing production-grade software.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -184,7 +184,7 @@ export const unsafeSet: {
184
184
  return
185
185
  }
186
186
  self.state.fiber.unsafeInterruptAsFork(options?.interruptAs ?? FiberId.none)
187
- self.state.fiber === undefined
187
+ self.state.fiber = undefined
188
188
  }
189
189
 
190
190
  ;(fiber as FiberRuntime<unknown, unknown>).setFiberRef(FiberRef.unhandledErrorLogLevel, Option.none())
package/src/Stream.ts CHANGED
@@ -406,7 +406,7 @@ export const asyncEffect: <A, E = never, R = never>(
406
406
  * @category constructors
407
407
  */
408
408
  export const asyncPush: <A, E = never, R = never>(
409
- register: (emit: Emit.EmitOpsPush<E, A>) => Effect.Effect<unknown, never, R | Scope.Scope>,
409
+ register: (emit: Emit.EmitOpsPush<E, A>) => Effect.Effect<unknown, E, R | Scope.Scope>,
410
410
  options?: { readonly bufferSize: "unbounded" } | {
411
411
  readonly bufferSize?: number | undefined
412
412
  readonly strategy?: "dropping" | "sliding" | undefined
@@ -1844,7 +1844,7 @@ export const repeat_combined = dual<{
1844
1844
  }) :
1845
1845
  withWhile
1846
1846
  const withTimes = options.times ?
1847
- intersect(withUntil, recurs(options.times)) :
1847
+ intersect(withUntil, recurs(options.times)).pipe(map((intersectionPair) => intersectionPair[0])) :
1848
1848
  withUntil
1849
1849
 
1850
1850
  return scheduleDefectRefail(repeat_Effect(self, withTimes))
@@ -617,7 +617,7 @@ const queueFromBufferOptionsPush = <A, E>(
617
617
 
618
618
  /** @internal */
619
619
  export const asyncPush = <A, E = never, R = never>(
620
- register: (emit: Emit.EmitOpsPush<E, A>) => Effect.Effect<unknown, never, R | Scope.Scope>,
620
+ register: (emit: Emit.EmitOpsPush<E, A>) => Effect.Effect<unknown, E, R | Scope.Scope>,
621
621
  options?: {
622
622
  readonly bufferSize: "unbounded"
623
623
  } | {
@@ -1,4 +1,4 @@
1
- let moduleVersion = "3.6.0"
1
+ let moduleVersion = "3.6.2"
2
2
 
3
3
  export const getCurrentVersion = () => moduleVersion
4
4