@typed/fx 1.18.3 → 1.19.0
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/Computed/package.json +6 -0
- package/Emitter/package.json +6 -0
- package/Filtered/package.json +6 -0
- package/Form/package.json +6 -0
- package/FormEntry/package.json +6 -0
- package/Fx/package.json +6 -0
- package/Guard/package.json +6 -0
- package/Idle/package.json +6 -0
- package/Match/package.json +6 -0
- package/Model/package.json +6 -0
- package/Pull/package.json +6 -0
- package/RefArray/package.json +6 -0
- package/RefAsyncData/package.json +6 -0
- package/RefAsyncDataArray/package.json +6 -0
- package/RefBoolean/package.json +6 -0
- package/RefChunk/package.json +6 -0
- package/RefHashMap/package.json +6 -0
- package/RefHashSet/package.json +6 -0
- package/RefNumber/package.json +6 -0
- package/RefSubject/package.json +6 -0
- package/Sink/package.json +6 -0
- package/Stream/package.json +6 -0
- package/Subject/package.json +6 -0
- package/TypeId/package.json +6 -0
- package/Typeclass/package.json +6 -0
- package/Versioned/package.json +6 -0
- package/dist/cjs/Fx.js.map +1 -1
- package/dist/cjs/internal/core-ref-subject.js +5 -5
- package/dist/cjs/internal/core.js +2 -2
- package/dist/cjs/internal/effect-operator.js +1 -1
- package/dist/cjs/internal/effect-operator.js.map +1 -1
- package/dist/cjs/internal/fx.js +2 -2
- package/dist/cjs/internal/keyed.js +2 -2
- package/dist/cjs/internal/matchers.js +1 -1
- package/dist/cjs/internal/matchers.js.map +1 -1
- package/dist/cjs/internal/protos.js +1 -1
- package/dist/cjs/internal/protos.js.map +1 -1
- package/dist/cjs/internal/provide.js +5 -5
- package/dist/cjs/internal/provide.js.map +1 -1
- package/dist/cjs/internal/run.js +1 -1
- package/dist/cjs/internal/schema-ref-subject.js +2 -2
- package/dist/cjs/internal/schema-ref-subject.js.map +1 -1
- package/dist/cjs/internal/sync-operator.js +1 -1
- package/dist/cjs/internal/sync-operator.js.map +1 -1
- package/dist/cjs/internal/withKey.js +2 -2
- package/dist/dts/Computed.d.ts +1 -1
- package/dist/dts/Computed.d.ts.map +1 -1
- package/dist/dts/Fx.d.ts +6 -0
- package/dist/dts/Fx.d.ts.map +1 -1
- package/dist/dts/internal/core-ref-subject.d.ts +6 -6
- package/dist/dts/internal/core-ref-subject.d.ts.map +1 -1
- package/dist/dts/internal/core-subject.d.ts +1 -1
- package/dist/dts/internal/core-subject.d.ts.map +1 -1
- package/dist/dts/internal/core.d.ts +3 -3
- package/dist/dts/internal/core.d.ts.map +1 -1
- package/dist/dts/internal/effect-operator.d.ts +1 -1
- package/dist/dts/internal/effect-operator.d.ts.map +1 -1
- package/dist/dts/internal/fx-effect-proto.d.ts +2 -2
- package/dist/dts/internal/fx-effect-proto.d.ts.map +1 -1
- package/dist/dts/internal/fx-primitive.d.ts +2 -2
- package/dist/dts/internal/fx-primitive.d.ts.map +1 -1
- package/dist/dts/internal/fx.d.ts +1 -1
- package/dist/dts/internal/fx.d.ts.map +1 -1
- package/dist/dts/internal/helpers.d.ts +2 -2
- package/dist/dts/internal/helpers.d.ts.map +1 -1
- package/dist/dts/internal/keyed.d.ts +2 -2
- package/dist/dts/internal/keyed.d.ts.map +1 -1
- package/dist/dts/internal/matchers.d.ts +3 -3
- package/dist/dts/internal/matchers.d.ts.map +1 -1
- package/dist/dts/internal/protos.d.ts +2 -2
- package/dist/dts/internal/protos.d.ts.map +1 -1
- package/dist/dts/internal/run.d.ts +2 -2
- package/dist/dts/internal/run.d.ts.map +1 -1
- package/dist/dts/internal/schema-ref-subject.d.ts +1 -1
- package/dist/dts/internal/schema-ref-subject.d.ts.map +1 -1
- package/dist/dts/internal/share.d.ts +2 -2
- package/dist/dts/internal/share.d.ts.map +1 -1
- package/dist/dts/internal/strategies.d.ts +1 -1
- package/dist/dts/internal/strategies.d.ts.map +1 -1
- package/dist/dts/internal/sync-operator.d.ts +1 -1
- package/dist/dts/internal/sync-operator.d.ts.map +1 -1
- package/dist/dts/internal/versioned-transform.d.ts +2 -2
- package/dist/dts/internal/versioned-transform.d.ts.map +1 -1
- package/dist/dts/internal/withKey.d.ts +2 -2
- package/dist/dts/internal/withKey.d.ts.map +1 -1
- package/dist/esm/Fx.js.map +1 -1
- package/dist/esm/internal/core-ref-subject.js +5 -5
- package/dist/esm/internal/core-ref-subject.js.map +1 -1
- package/dist/esm/internal/core.js +2 -2
- package/dist/esm/internal/core.js.map +1 -1
- package/dist/esm/internal/effect-operator.js +1 -1
- package/dist/esm/internal/effect-operator.js.map +1 -1
- package/dist/esm/internal/fx.js +2 -2
- package/dist/esm/internal/fx.js.map +1 -1
- package/dist/esm/internal/keyed.js +2 -2
- package/dist/esm/internal/keyed.js.map +1 -1
- package/dist/esm/internal/matchers.js +1 -1
- package/dist/esm/internal/matchers.js.map +1 -1
- package/dist/esm/internal/protos.js +1 -1
- package/dist/esm/internal/protos.js.map +1 -1
- package/dist/esm/internal/provide.js +5 -5
- package/dist/esm/internal/provide.js.map +1 -1
- package/dist/esm/internal/run.js +1 -1
- package/dist/esm/internal/run.js.map +1 -1
- package/dist/esm/internal/schema-ref-subject.js +2 -2
- package/dist/esm/internal/schema-ref-subject.js.map +1 -1
- package/dist/esm/internal/sync-operator.js +1 -1
- package/dist/esm/internal/sync-operator.js.map +1 -1
- package/dist/esm/internal/withKey.js +2 -2
- package/dist/esm/internal/withKey.js.map +1 -1
- package/package.json +8 -8
- package/src/Computed.ts +1 -1
- package/src/Fx.ts +6 -0
- package/src/internal/core-ref-subject.ts +8 -8
- package/src/internal/core-subject.ts +3 -3
- package/src/internal/core.ts +3 -3
- package/src/internal/effect-operator.ts +1 -1
- package/src/internal/effect-primitive.ts +3 -3
- package/src/internal/fx-effect-proto.ts +2 -2
- package/src/internal/fx-primitive.ts +2 -2
- package/src/internal/fx.ts +3 -3
- package/src/internal/helpers.ts +2 -2
- package/src/internal/keyed.ts +4 -4
- package/src/internal/matchers.ts +4 -4
- package/src/internal/protos.ts +2 -2
- package/src/internal/provide.ts +5 -5
- package/src/internal/run.ts +2 -2
- package/src/internal/schema-ref-subject.ts +4 -4
- package/src/internal/share.ts +2 -2
- package/src/internal/strategies.ts +1 -1
- package/src/internal/sync-operator.ts +1 -1
- package/src/internal/versioned-transform.ts +2 -2
- package/src/internal/withKey.ts +3 -3
package/src/internal/run.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as Effect from "effect/Effect"
|
|
2
2
|
|
|
3
|
-
import * as Sink from "../Sink"
|
|
3
|
+
import * as Sink from "../Sink.js"
|
|
4
4
|
import { compileCauseEffectOperatorSink, compileEffectOperatorSink } from "./effect-operator.js"
|
|
5
5
|
import * as helpers from "./helpers.js"
|
|
6
6
|
import { compileSyncOperatorFailureSink, compileSyncOperatorSink } from "./sync-operator.js"
|
|
7
7
|
|
|
8
|
-
import type { Fx } from "../Fx"
|
|
8
|
+
import type { Fx } from "../Fx.js"
|
|
9
9
|
import { matchFxPrimitive } from "./matchers.js"
|
|
10
10
|
|
|
11
11
|
const constUnit = () => Effect.unit
|
|
@@ -5,9 +5,9 @@ import { Option } from "effect"
|
|
|
5
5
|
import * as Effect from "effect/Effect"
|
|
6
6
|
import type * as Equivalence from "effect/Equivalence"
|
|
7
7
|
import type * as Scope from "effect/Scope"
|
|
8
|
-
import type { Fx, FxInput } from "../Fx"
|
|
9
|
-
import type { MakeRefSubject, RefSubject, ToRefSubject } from "../RefSubject"
|
|
10
|
-
import { ComputedTypeId, FilteredTypeId, RefSubjectTypeId } from "../TypeId"
|
|
8
|
+
import type { Fx, FxInput } from "../Fx.js"
|
|
9
|
+
import type { MakeRefSubject, RefSubject, ToRefSubject } from "../RefSubject.js"
|
|
10
|
+
import { ComputedTypeId, FilteredTypeId, RefSubjectTypeId } from "../TypeId.js"
|
|
11
11
|
import { make, struct } from "./core-ref-subject.js"
|
|
12
12
|
import { map } from "./core.js"
|
|
13
13
|
import { matchFxInput } from "./matchers.js"
|
|
@@ -57,7 +57,7 @@ const go = <O>(
|
|
|
57
57
|
case "VoidKeyword":
|
|
58
58
|
case "Union": // TODO: Union should probably be better somehow
|
|
59
59
|
return defaultSchema<O>(getDefaultEq(ast))
|
|
60
|
-
case "
|
|
60
|
+
case "Suspend": {
|
|
61
61
|
const get = memoizeThunk(() => go<O>(ast.f(), getDefaultEq))
|
|
62
62
|
|
|
63
63
|
return makeSchema((input, eq) => get()(input, eq))
|
package/src/internal/share.ts
CHANGED
|
@@ -3,8 +3,8 @@ import * as Fiber from "effect/Fiber"
|
|
|
3
3
|
import { dual } from "effect/Function"
|
|
4
4
|
import * as MutableRef from "effect/MutableRef"
|
|
5
5
|
import * as Option from "effect/Option"
|
|
6
|
-
import type { Fx } from "../Fx"
|
|
7
|
-
import type { Subject } from "../Subject"
|
|
6
|
+
import type { Fx } from "../Fx.js"
|
|
7
|
+
import type { Subject } from "../Subject.js"
|
|
8
8
|
import { makeHoldSubject, makeReplaySubject, makeSubject } from "./core-subject.js"
|
|
9
9
|
import { withScopedFork } from "./core.js"
|
|
10
10
|
import { ToFx } from "./fx-primitive.js"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Effect from "effect/Effect"
|
|
2
2
|
import * as Option from "effect/Option"
|
|
3
|
-
import type { Fx } from "../Fx"
|
|
4
|
-
import type { Versioned } from "../Versioned"
|
|
3
|
+
import type { Fx } from "../Fx.js"
|
|
4
|
+
import type { Versioned } from "../Versioned.js"
|
|
5
5
|
import { MulticastEffect } from "./helpers.js"
|
|
6
6
|
import { FxEffectBase } from "./protos.js"
|
|
7
7
|
|
package/src/internal/withKey.ts
CHANGED
|
@@ -3,9 +3,9 @@ import { equals } from "effect/Equal"
|
|
|
3
3
|
import * as Fiber from "effect/Fiber"
|
|
4
4
|
import * as Option from "effect/Option"
|
|
5
5
|
import * as Scope from "effect/Scope"
|
|
6
|
-
import type { Fx, FxInput } from "../Fx"
|
|
7
|
-
import * as RefSubject from "../RefSubject"
|
|
8
|
-
import * as Sink from "../Sink"
|
|
6
|
+
import type { Fx, FxInput } from "../Fx.js"
|
|
7
|
+
import * as RefSubject from "../RefSubject.js"
|
|
8
|
+
import * as Sink from "../Sink.js"
|
|
9
9
|
import * as core from "./core.js"
|
|
10
10
|
import { adjustTime } from "./helpers.js"
|
|
11
11
|
import { run } from "./run.js"
|