@typed/fx 1.18.2 → 1.18.3
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/Computed.js +8 -8
- package/dist/cjs/Computed.js.map +1 -1
- package/dist/cjs/Emitter.js +1 -1
- package/dist/cjs/Emitter.js.map +1 -1
- package/dist/cjs/Filtered.js +7 -7
- package/dist/cjs/Filtered.js.map +1 -1
- package/dist/cjs/Form.js +7 -7
- package/dist/cjs/Form.js.map +1 -1
- package/dist/cjs/FormEntry.js +6 -6
- package/dist/cjs/FormEntry.js.map +1 -1
- package/dist/cjs/Fx.js +11 -11
- package/dist/cjs/Fx.js.map +1 -1
- package/dist/cjs/Idle.js +3 -3
- package/dist/cjs/Idle.js.map +1 -1
- package/dist/cjs/Match.js +3 -3
- package/dist/cjs/Match.js.map +1 -1
- package/dist/cjs/Model.js +5 -5
- package/dist/cjs/Model.js.map +1 -1
- package/dist/cjs/RefArray.js +1 -1
- package/dist/cjs/RefArray.js.map +1 -1
- package/dist/cjs/RefAsyncData.js +4 -4
- package/dist/cjs/RefAsyncData.js.map +1 -1
- package/dist/cjs/RefAsyncDataArray.js +2 -2
- package/dist/cjs/RefAsyncDataArray.js.map +1 -1
- package/dist/cjs/RefBoolean.js +1 -1
- package/dist/cjs/RefBoolean.js.map +1 -1
- package/dist/cjs/RefChunk.js +1 -1
- package/dist/cjs/RefChunk.js.map +1 -1
- package/dist/cjs/RefHashMap.js +1 -1
- package/dist/cjs/RefHashMap.js.map +1 -1
- package/dist/cjs/RefHashSet.js +1 -1
- package/dist/cjs/RefHashSet.js.map +1 -1
- package/dist/cjs/RefNumber.js +1 -1
- package/dist/cjs/RefNumber.js.map +1 -1
- package/dist/cjs/RefSubject.js +9 -9
- package/dist/cjs/RefSubject.js.map +1 -1
- package/dist/cjs/Stream.js +2 -2
- package/dist/cjs/Stream.js.map +1 -1
- package/dist/cjs/Subject.js +4 -4
- package/dist/cjs/Subject.js.map +1 -1
- package/dist/cjs/TypeId.js +4 -4
- package/dist/cjs/TypeId.js.map +1 -1
- package/dist/cjs/Typeclass.js +2 -2
- package/dist/cjs/Typeclass.js.map +1 -1
- package/dist/cjs/Versioned.js +3 -3
- package/dist/cjs/Versioned.js.map +1 -1
- package/dist/cjs/index.js +9 -9
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/internal/core-ref-subject.js +8 -8
- package/dist/cjs/internal/core-ref-subject.js.map +1 -1
- package/dist/cjs/internal/core-subject.js +3 -3
- package/dist/cjs/internal/core-subject.js.map +1 -1
- package/dist/cjs/internal/core.js +11 -11
- package/dist/cjs/internal/core.js.map +1 -1
- package/dist/cjs/internal/fx-effect-proto.js +2 -2
- package/dist/cjs/internal/fx-effect-proto.js.map +1 -1
- package/dist/cjs/internal/fx-primitive.js +3 -3
- package/dist/cjs/internal/fx-primitive.js.map +1 -1
- package/dist/cjs/internal/fx.js +3 -3
- package/dist/cjs/internal/fx.js.map +1 -1
- package/dist/cjs/internal/helpers.js +1 -1
- package/dist/cjs/internal/helpers.js.map +1 -1
- package/dist/cjs/internal/keyed.js +4 -4
- package/dist/cjs/internal/keyed.js.map +1 -1
- package/dist/cjs/internal/run.js +4 -4
- package/dist/cjs/internal/run.js.map +1 -1
- package/dist/cjs/internal/schema-ref-subject.js +3 -3
- package/dist/cjs/internal/schema-ref-subject.js.map +1 -1
- package/dist/cjs/internal/share.js +4 -4
- package/dist/cjs/internal/share.js.map +1 -1
- package/dist/cjs/internal/versioned-transform.js +2 -2
- package/dist/cjs/internal/versioned-transform.js.map +1 -1
- package/dist/cjs/internal/withKey.js +3 -3
- package/dist/cjs/internal/withKey.js.map +1 -1
- package/dist/dts/Computed.d.ts +4 -4
- package/dist/dts/Computed.d.ts.map +1 -1
- package/dist/dts/Emitter.d.ts +1 -1
- package/dist/dts/Emitter.d.ts.map +1 -1
- package/dist/dts/Filtered.d.ts +4 -4
- package/dist/dts/Filtered.d.ts.map +1 -1
- package/dist/dts/Form.d.ts +5 -5
- package/dist/dts/Form.d.ts.map +1 -1
- package/dist/dts/FormEntry.d.ts +3 -3
- package/dist/dts/FormEntry.d.ts.map +1 -1
- package/dist/dts/Fx.d.ts +7 -7
- package/dist/dts/Fx.d.ts.map +1 -1
- package/dist/dts/Match.d.ts +3 -3
- package/dist/dts/Match.d.ts.map +1 -1
- package/dist/dts/Model.d.ts +5 -5
- package/dist/dts/Model.d.ts.map +1 -1
- package/dist/dts/Pull.d.ts +1 -1
- package/dist/dts/Pull.d.ts.map +1 -1
- package/dist/dts/RefArray.d.ts +4 -4
- package/dist/dts/RefArray.d.ts.map +1 -1
- package/dist/dts/RefAsyncData.d.ts +5 -5
- package/dist/dts/RefAsyncData.d.ts.map +1 -1
- package/dist/dts/RefAsyncDataArray.d.ts +3 -3
- package/dist/dts/RefAsyncDataArray.d.ts.map +1 -1
- package/dist/dts/RefBoolean.d.ts +2 -2
- package/dist/dts/RefBoolean.d.ts.map +1 -1
- package/dist/dts/RefChunk.d.ts +4 -4
- package/dist/dts/RefChunk.d.ts.map +1 -1
- package/dist/dts/RefHashMap.d.ts +4 -4
- package/dist/dts/RefHashMap.d.ts.map +1 -1
- package/dist/dts/RefHashSet.d.ts +3 -3
- package/dist/dts/RefHashSet.d.ts.map +1 -1
- package/dist/dts/RefNumber.d.ts +2 -2
- package/dist/dts/RefNumber.d.ts.map +1 -1
- package/dist/dts/RefSubject.d.ts +5 -5
- package/dist/dts/RefSubject.d.ts.map +1 -1
- package/dist/dts/Stream.d.ts +1 -1
- package/dist/dts/Stream.d.ts.map +1 -1
- package/dist/dts/Subject.d.ts +2 -2
- package/dist/dts/Subject.d.ts.map +1 -1
- package/dist/dts/TypeId.d.ts.map +1 -1
- package/dist/dts/Typeclass.d.ts +1 -1
- package/dist/dts/Typeclass.d.ts.map +1 -1
- package/dist/dts/Versioned.d.ts +1 -1
- package/dist/dts/Versioned.d.ts.map +1 -1
- package/dist/dts/index.d.ts +9 -9
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/internal/core-ref-subject.d.ts +1 -1
- package/dist/dts/internal/core-ref-subject.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 +1 -1
- package/dist/dts/internal/fx-effect-proto.d.ts.map +1 -1
- package/dist/dts/internal/fx-primitive.d.ts +3 -3
- package/dist/dts/internal/fx-primitive.d.ts.map +1 -1
- package/dist/dts/internal/matchers.d.ts +1 -1
- package/dist/dts/internal/matchers.d.ts.map +1 -1
- package/dist/dts/internal/share.d.ts +1 -1
- package/dist/dts/internal/share.d.ts.map +1 -1
- package/dist/dts/internal/versioned-transform.d.ts +1 -1
- package/dist/dts/internal/versioned-transform.d.ts.map +1 -1
- package/dist/esm/Computed.js +8 -8
- package/dist/esm/Computed.js.map +1 -1
- package/dist/esm/Emitter.js +1 -1
- package/dist/esm/Emitter.js.map +1 -1
- package/dist/esm/Filtered.js +7 -7
- package/dist/esm/Filtered.js.map +1 -1
- package/dist/esm/Form.js +7 -7
- package/dist/esm/Form.js.map +1 -1
- package/dist/esm/FormEntry.js +6 -6
- package/dist/esm/FormEntry.js.map +1 -1
- package/dist/esm/Fx.js +11 -11
- package/dist/esm/Fx.js.map +1 -1
- package/dist/esm/Idle.js +3 -3
- package/dist/esm/Idle.js.map +1 -1
- package/dist/esm/Match.js +3 -3
- package/dist/esm/Match.js.map +1 -1
- package/dist/esm/Model.js +5 -5
- package/dist/esm/Model.js.map +1 -1
- package/dist/esm/RefArray.js +1 -1
- package/dist/esm/RefArray.js.map +1 -1
- package/dist/esm/RefAsyncData.js +4 -4
- package/dist/esm/RefAsyncData.js.map +1 -1
- package/dist/esm/RefAsyncDataArray.js +2 -2
- package/dist/esm/RefAsyncDataArray.js.map +1 -1
- package/dist/esm/RefBoolean.js +1 -1
- package/dist/esm/RefBoolean.js.map +1 -1
- package/dist/esm/RefChunk.js +1 -1
- package/dist/esm/RefChunk.js.map +1 -1
- package/dist/esm/RefHashMap.js +1 -1
- package/dist/esm/RefHashMap.js.map +1 -1
- package/dist/esm/RefHashSet.js +1 -1
- package/dist/esm/RefHashSet.js.map +1 -1
- package/dist/esm/RefNumber.js +1 -1
- package/dist/esm/RefNumber.js.map +1 -1
- package/dist/esm/RefSubject.js +9 -9
- package/dist/esm/RefSubject.js.map +1 -1
- package/dist/esm/Stream.js +2 -2
- package/dist/esm/Stream.js.map +1 -1
- package/dist/esm/Subject.js +4 -4
- package/dist/esm/Subject.js.map +1 -1
- package/dist/esm/TypeId.js +4 -4
- package/dist/esm/TypeId.js.map +1 -1
- package/dist/esm/Typeclass.js +2 -2
- package/dist/esm/Typeclass.js.map +1 -1
- package/dist/esm/Versioned.js +3 -3
- package/dist/esm/Versioned.js.map +1 -1
- package/dist/esm/index.js +9 -9
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/internal/core-ref-subject.js +8 -8
- package/dist/esm/internal/core-ref-subject.js.map +1 -1
- package/dist/esm/internal/core-subject.js +3 -3
- package/dist/esm/internal/core-subject.js.map +1 -1
- package/dist/esm/internal/core.js +12 -12
- package/dist/esm/internal/core.js.map +1 -1
- package/dist/esm/internal/fx-effect-proto.js +2 -2
- package/dist/esm/internal/fx-effect-proto.js.map +1 -1
- package/dist/esm/internal/fx-primitive.js +3 -3
- package/dist/esm/internal/fx-primitive.js.map +1 -1
- package/dist/esm/internal/fx.js +3 -3
- package/dist/esm/internal/fx.js.map +1 -1
- package/dist/esm/internal/helpers.js +1 -1
- package/dist/esm/internal/helpers.js.map +1 -1
- package/dist/esm/internal/keyed.js +4 -4
- package/dist/esm/internal/keyed.js.map +1 -1
- package/dist/esm/internal/run.js +4 -4
- package/dist/esm/internal/run.js.map +1 -1
- package/dist/esm/internal/schema-ref-subject.js +3 -3
- package/dist/esm/internal/schema-ref-subject.js.map +1 -1
- package/dist/esm/internal/share.js +4 -4
- package/dist/esm/internal/share.js.map +1 -1
- package/dist/esm/internal/versioned-transform.js +2 -2
- package/dist/esm/internal/versioned-transform.js.map +1 -1
- package/dist/esm/internal/withKey.js +3 -3
- package/dist/esm/internal/withKey.js.map +1 -1
- package/package.json +3 -3
- package/src/Computed.ts +9 -9
- package/src/Emitter.ts +3 -3
- package/src/Filtered.ts +8 -8
- package/src/Form.ts +11 -11
- package/src/FormEntry.ts +8 -8
- package/src/Fx.ts +14 -14
- package/src/Idle.ts +3 -3
- package/src/Match.ts +4 -4
- package/src/Model.ts +8 -8
- package/src/Pull.ts +1 -1
- package/src/RefArray.ts +4 -4
- package/src/RefAsyncData.ts +6 -6
- package/src/RefAsyncDataArray.ts +3 -3
- package/src/RefBoolean.ts +2 -2
- package/src/RefChunk.ts +4 -4
- package/src/RefHashMap.ts +4 -4
- package/src/RefHashSet.ts +3 -3
- package/src/RefNumber.ts +2 -2
- package/src/RefSubject.ts +11 -11
- package/src/Stream.ts +2 -2
- package/src/Subject.ts +5 -5
- package/src/TypeId.ts +4 -4
- package/src/Typeclass.ts +3 -3
- package/src/Versioned.ts +4 -4
- package/src/index.ts +9 -9
- package/src/internal/core-ref-subject.ts +8 -8
- package/src/internal/core-subject.ts +3 -3
- package/src/internal/core.ts +12 -12
- package/src/internal/effect-operator.ts +1 -1
- package/src/internal/fx-effect-proto.ts +2 -2
- package/src/internal/fx-primitive.ts +3 -3
- 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 +1 -1
- package/src/internal/run.ts +4 -4
- package/src/internal/schema-ref-subject.ts +3 -3
- package/src/internal/share.ts +4 -4
- package/src/internal/versioned-transform.ts +2 -2
- package/src/internal/withKey.ts +3 -3
package/src/Idle.ts
CHANGED
|
@@ -15,8 +15,8 @@ import * as Layer from "effect/Layer"
|
|
|
15
15
|
import type * as Queue from "effect/Queue"
|
|
16
16
|
import * as Scheduler from "effect/Scheduler"
|
|
17
17
|
import * as Scope from "effect/Scope"
|
|
18
|
-
import { dequeueIsActive } from "./internal/fx"
|
|
19
|
-
import { cancelIdleCallback, requestIdleCallback } from "./internal/requestIdleCallback"
|
|
18
|
+
import { dequeueIsActive } from "./internal/fx.js"
|
|
19
|
+
import { cancelIdleCallback, requestIdleCallback } from "./internal/requestIdleCallback.js"
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* The IdleScheduler is an implementation of Effect's Scheduler interface, which utilizes a priority queue
|
|
@@ -94,7 +94,7 @@ class IdleSchedulerImpl implements IdleScheduler {
|
|
|
94
94
|
* @category instances
|
|
95
95
|
*/
|
|
96
96
|
export const defaultIdleScheduler: IdleScheduler = globalValue(
|
|
97
|
-
Symbol("./Scheduler/Idle"),
|
|
97
|
+
Symbol("./Scheduler/Idle.js"),
|
|
98
98
|
() => new IdleSchedulerImpl()
|
|
99
99
|
)
|
|
100
100
|
|
package/src/Match.ts
CHANGED
|
@@ -8,14 +8,14 @@ import * as Chunk from "effect/Chunk"
|
|
|
8
8
|
import { identity } from "effect/Function"
|
|
9
9
|
import * as Option from "effect/Option"
|
|
10
10
|
import { isNonEmptyReadonlyArray, reduce } from "effect/ReadonlyArray"
|
|
11
|
-
import * as Fx from "./Fx"
|
|
12
|
-
import type { Guard } from "./Guard"
|
|
13
|
-
import * as RefSubject from "./RefSubject"
|
|
11
|
+
import * as Fx from "./Fx.js"
|
|
12
|
+
import type { Guard } from "./Guard.js"
|
|
13
|
+
import * as RefSubject from "./RefSubject.js"
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* @since 1.18.0
|
|
17
17
|
*/
|
|
18
|
-
export const MatcherTypeId: unique symbol = Symbol.for("./Matcher")
|
|
18
|
+
export const MatcherTypeId: unique symbol = Symbol.for("./Matcher.js")
|
|
19
19
|
/**
|
|
20
20
|
* @since 1.18.0
|
|
21
21
|
*/
|
package/src/Model.ts
CHANGED
|
@@ -10,19 +10,19 @@ import type { Equivalence } from "effect/Equivalence"
|
|
|
10
10
|
import * as Layer from "effect/Layer"
|
|
11
11
|
import * as Option from "effect/Option"
|
|
12
12
|
import type { Scope } from "effect/Scope"
|
|
13
|
-
import { Computed } from "./Computed"
|
|
14
|
-
import { Filtered } from "./Filtered"
|
|
15
|
-
import type { Fx, FxInput } from "./Fx"
|
|
16
|
-
import { struct } from "./Fx"
|
|
17
|
-
import { FxEffectBase } from "./internal/protos"
|
|
18
|
-
import type { RefSubject } from "./RefSubject"
|
|
19
|
-
import type { Versioned } from "./Versioned"
|
|
13
|
+
import { Computed } from "./Computed.js"
|
|
14
|
+
import { Filtered } from "./Filtered.js"
|
|
15
|
+
import type { Fx, FxInput } from "./Fx.js"
|
|
16
|
+
import { struct } from "./Fx.js"
|
|
17
|
+
import { FxEffectBase } from "./internal/protos.js"
|
|
18
|
+
import type { RefSubject } from "./RefSubject.js"
|
|
19
|
+
import type { Versioned } from "./Versioned.js"
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* @since 1.18.0
|
|
23
23
|
* @category symbols
|
|
24
24
|
*/
|
|
25
|
-
export const ModelTypeId = Symbol.for("./Model")
|
|
25
|
+
export const ModelTypeId = Symbol.for("./Model.js")
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* @since 1.18.0
|
package/src/Pull.ts
CHANGED
|
@@ -13,7 +13,7 @@ import * as Either from "effect/Either"
|
|
|
13
13
|
import { dual } from "effect/Function"
|
|
14
14
|
import * as Option from "effect/Option"
|
|
15
15
|
import type * as Schedule from "effect/Schedule"
|
|
16
|
-
import type { WithContext } from "./Sink"
|
|
16
|
+
import type { WithContext } from "./Sink.js"
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* An Effect which can be used to pull values of a Stream.
|
package/src/RefArray.ts
CHANGED
|
@@ -12,10 +12,10 @@ import * as Option from "effect/Option"
|
|
|
12
12
|
import type * as Order from "effect/Order"
|
|
13
13
|
import * as ReadonlyArray from "effect/ReadonlyArray"
|
|
14
14
|
import type * as Scope from "effect/Scope"
|
|
15
|
-
import type * as Computed from "./Computed"
|
|
16
|
-
import type * as Filtered from "./Filtered"
|
|
17
|
-
import type * as Fx from "./Fx"
|
|
18
|
-
import * as RefSubject from "./RefSubject"
|
|
15
|
+
import type * as Computed from "./Computed.js"
|
|
16
|
+
import type * as Filtered from "./Filtered.js"
|
|
17
|
+
import type * as Fx from "./Fx.js"
|
|
18
|
+
import * as RefSubject from "./RefSubject.js"
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* A RefArray is a RefSubject that is specialized over an array of values.
|
package/src/RefAsyncData.ts
CHANGED
|
@@ -12,12 +12,12 @@ import * as Cause from "effect/Cause"
|
|
|
12
12
|
import * as Effect from "effect/Effect"
|
|
13
13
|
import { dual } from "effect/Function"
|
|
14
14
|
import type { Schedule } from "effect/Schedule"
|
|
15
|
-
import type * as Computed from "./Computed"
|
|
16
|
-
import type * as Filtered from "./Filtered"
|
|
17
|
-
import * as Fx from "./Fx"
|
|
18
|
-
import * as RefSubject from "./RefSubject"
|
|
19
|
-
import * as Sink from "./Sink"
|
|
20
|
-
import { RefSubjectTypeId } from "./TypeId"
|
|
15
|
+
import type * as Computed from "./Computed.js"
|
|
16
|
+
import type * as Filtered from "./Filtered.js"
|
|
17
|
+
import * as Fx from "./Fx.js"
|
|
18
|
+
import * as RefSubject from "./RefSubject.js"
|
|
19
|
+
import * as Sink from "./Sink.js"
|
|
20
|
+
import { RefSubjectTypeId } from "./TypeId.js"
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* A RefAsyncData is a RefSubject that holds an AsyncData value.
|
package/src/RefAsyncDataArray.ts
CHANGED
|
@@ -8,9 +8,9 @@ import type { IdentifierConstructor, IdentifierOf } from "@typed/context/Identif
|
|
|
8
8
|
import type { Scope } from "effect"
|
|
9
9
|
import type * as Effect from "effect/Effect"
|
|
10
10
|
import { dual } from "effect/Function"
|
|
11
|
-
import type * as Computed from "./Computed"
|
|
12
|
-
import * as Fx from "./Fx"
|
|
13
|
-
import * as RefAsyncData from "./RefAsyncData"
|
|
11
|
+
import type * as Computed from "./Computed.js"
|
|
12
|
+
import * as Fx from "./Fx.js"
|
|
13
|
+
import * as RefAsyncData from "./RefAsyncData.js"
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* A RefAsyncDataArray is a RefSubject that holds a AsyncData value of an array.
|
package/src/RefBoolean.ts
CHANGED
|
@@ -7,8 +7,8 @@ import type { Effect } from "effect"
|
|
|
7
7
|
import { not } from "effect/Boolean"
|
|
8
8
|
import { strict } from "effect/Equivalence"
|
|
9
9
|
import type { Scope } from "effect/Scope"
|
|
10
|
-
import type * as Fx from "./Fx"
|
|
11
|
-
import * as RefSubject from "./RefSubject"
|
|
10
|
+
import type * as Fx from "./Fx.js"
|
|
11
|
+
import * as RefSubject from "./RefSubject.js"
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* A RefSubject holding a boolean values
|
package/src/RefChunk.ts
CHANGED
|
@@ -10,10 +10,10 @@ import { equals } from "effect/Equal"
|
|
|
10
10
|
import type { Equivalence } from "effect/Equivalence"
|
|
11
11
|
import { dual } from "effect/Function"
|
|
12
12
|
import type * as Scope from "effect/Scope"
|
|
13
|
-
import type * as Computed from "./Computed"
|
|
14
|
-
import type * as Filtered from "./Filtered"
|
|
15
|
-
import type * as Fx from "./Fx"
|
|
16
|
-
import * as RefSubject from "./RefSubject"
|
|
13
|
+
import type * as Computed from "./Computed.js"
|
|
14
|
+
import type * as Filtered from "./Filtered.js"
|
|
15
|
+
import type * as Fx from "./Fx.js"
|
|
16
|
+
import * as RefSubject from "./RefSubject.js"
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* A RefChunk is a RefSubject that is specialized over an Chunk of values.
|
package/src/RefHashMap.ts
CHANGED
|
@@ -8,10 +8,10 @@ import * as Effect from "effect/Effect"
|
|
|
8
8
|
import { dual } from "effect/Function"
|
|
9
9
|
import * as HashMap from "effect/HashMap"
|
|
10
10
|
import type { Option } from "effect/Option"
|
|
11
|
-
import type { Computed } from "./Computed"
|
|
12
|
-
import type { Filtered } from "./Filtered"
|
|
13
|
-
import type * as Fx from "./Fx"
|
|
14
|
-
import * as RefSubject from "./RefSubject"
|
|
11
|
+
import type { Computed } from "./Computed.js"
|
|
12
|
+
import type { Filtered } from "./Filtered.js"
|
|
13
|
+
import type * as Fx from "./Fx.js"
|
|
14
|
+
import * as RefSubject from "./RefSubject.js"
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* A RefHashMap is a RefSubject that is specialized over a HashMap of values.
|
package/src/RefHashSet.ts
CHANGED
|
@@ -8,9 +8,9 @@ import type * as Effect from "effect/Effect"
|
|
|
8
8
|
import { dual } from "effect/Function"
|
|
9
9
|
import * as HashSet from "effect/HashSet"
|
|
10
10
|
import type * as Scope from "effect/Scope"
|
|
11
|
-
import type * as Computed from "./Computed"
|
|
12
|
-
import type * as Fx from "./Fx"
|
|
13
|
-
import * as RefSubject from "./RefSubject"
|
|
11
|
+
import type * as Computed from "./Computed.js"
|
|
12
|
+
import type * as Fx from "./Fx.js"
|
|
13
|
+
import * as RefSubject from "./RefSubject.js"
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* A RefHashSet is a RefSubject that is specialized over an HashSet of values.
|
package/src/RefNumber.ts
CHANGED
|
@@ -6,8 +6,8 @@ import type { IdentifierConstructor, IdentifierOf } from "@typed/context/Identif
|
|
|
6
6
|
import type { Effect } from "effect"
|
|
7
7
|
import { strict } from "effect/Equivalence"
|
|
8
8
|
import type { Scope } from "effect/Scope"
|
|
9
|
-
import type * as Fx from "./Fx"
|
|
10
|
-
import * as RefSubject from "./RefSubject"
|
|
9
|
+
import type * as Fx from "./Fx.js"
|
|
10
|
+
import * as RefSubject from "./RefSubject.js"
|
|
11
11
|
|
|
12
12
|
const add = (x: number): number => x + 1
|
|
13
13
|
const sub = (x: number): number => x - 1
|
package/src/RefSubject.ts
CHANGED
|
@@ -16,17 +16,17 @@ import { dual } from "effect/Function"
|
|
|
16
16
|
import type * as Layer from "effect/Layer"
|
|
17
17
|
import * as Option from "effect/Option"
|
|
18
18
|
import type * as Scope from "effect/Scope"
|
|
19
|
-
import { Computed, fromTag } from "./Computed"
|
|
20
|
-
import { Filtered } from "./Filtered"
|
|
21
|
-
import type * as Fx from "./Fx"
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import { exit, fromFxEffect } from "./internal/fx"
|
|
25
|
-
import { FxEffectBase } from "./internal/protos"
|
|
26
|
-
import { fromRefSubject, toRefSubject } from "./internal/schema-ref-subject"
|
|
27
|
-
import type * as Subject from "./Subject"
|
|
28
|
-
import { ComputedTypeId, RefSubjectTypeId } from "./TypeId"
|
|
29
|
-
import * as Versioned from "./Versioned"
|
|
19
|
+
import { Computed, fromTag } from "./Computed.js"
|
|
20
|
+
import { Filtered } from "./Filtered.js"
|
|
21
|
+
import type * as Fx from "./Fx.js"
|
|
22
|
+
import * as coreRefSubject from "./internal/core-ref-subject.js"
|
|
23
|
+
import { fromStream, provide, skipRepeatsWith } from "./internal/core.js"
|
|
24
|
+
import { exit, fromFxEffect } from "./internal/fx.js"
|
|
25
|
+
import { FxEffectBase } from "./internal/protos.js"
|
|
26
|
+
import { fromRefSubject, toRefSubject } from "./internal/schema-ref-subject.js"
|
|
27
|
+
import type * as Subject from "./Subject.js"
|
|
28
|
+
import { ComputedTypeId, RefSubjectTypeId } from "./TypeId.js"
|
|
29
|
+
import * as Versioned from "./Versioned.js"
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* A RefSubject is a Subject that has a current value that can be read and updated.
|
package/src/Stream.ts
CHANGED
|
@@ -11,8 +11,8 @@ import * as Option from "effect/Option"
|
|
|
11
11
|
import * as Queue from "effect/Queue"
|
|
12
12
|
import type * as Scope from "effect/Scope"
|
|
13
13
|
import * as Stream from "effect/Stream"
|
|
14
|
-
import * as Fx from "./Fx"
|
|
15
|
-
import { Sink } from "./Sink"
|
|
14
|
+
import * as Fx from "./Fx.js"
|
|
15
|
+
import { Sink } from "./Sink.js"
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Convert an Fx to a Stream
|
package/src/Subject.ts
CHANGED
|
@@ -8,11 +8,11 @@ import * as C from "@typed/context"
|
|
|
8
8
|
import type { Cause } from "effect/Cause"
|
|
9
9
|
import * as Effect from "effect/Effect"
|
|
10
10
|
import type * as Layer from "effect/Layer"
|
|
11
|
-
import { type Fx, ToFx } from "./Fx"
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { fromFxEffect } from "./internal/fx"
|
|
15
|
-
import type { WithContext } from "./Sink"
|
|
11
|
+
import { type Fx, ToFx } from "./Fx.js"
|
|
12
|
+
import * as internal from "./internal/core-subject.js"
|
|
13
|
+
import { provide } from "./internal/core.js"
|
|
14
|
+
import { fromFxEffect } from "./internal/fx.js"
|
|
15
|
+
import type { WithContext } from "./Sink.js"
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* A Subject is an Fx which is also a Sink, and can be used to
|
package/src/TypeId.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @since 1.18.0
|
|
3
3
|
* @category symbols
|
|
4
4
|
*/
|
|
5
|
-
export const TypeId = Symbol.for("./Fx")
|
|
5
|
+
export const TypeId = Symbol.for("./Fx.js")
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* @since 1.18.0
|
|
@@ -14,7 +14,7 @@ export type TypeId = typeof TypeId
|
|
|
14
14
|
* @since 1.18.0
|
|
15
15
|
* @category symbols
|
|
16
16
|
*/
|
|
17
|
-
export const RefSubjectTypeId = Symbol.for("./RefSubject")
|
|
17
|
+
export const RefSubjectTypeId = Symbol.for("./RefSubject.js")
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* @since 1.18.0
|
|
@@ -26,7 +26,7 @@ export type RefSubjectTypeId = typeof RefSubjectTypeId
|
|
|
26
26
|
* @since 1.18.0
|
|
27
27
|
* @category symbols
|
|
28
28
|
*/
|
|
29
|
-
export const ComputedTypeId = Symbol.for("./Computed")
|
|
29
|
+
export const ComputedTypeId = Symbol.for("./Computed.js")
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* @since 1.18.0
|
|
@@ -38,7 +38,7 @@ export type ComputedTypeId = typeof ComputedTypeId
|
|
|
38
38
|
* @since 1.18.0
|
|
39
39
|
* @category symbols
|
|
40
40
|
*/
|
|
41
|
-
export const FilteredTypeId = Symbol.for("./Filtered")
|
|
41
|
+
export const FilteredTypeId = Symbol.for("./Filtered.js")
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
44
|
* @since 1.18.0
|
package/src/Typeclass.ts
CHANGED
|
@@ -23,10 +23,10 @@ import type { Either } from "effect/Either"
|
|
|
23
23
|
import { dual } from "effect/Function"
|
|
24
24
|
import type * as HKT from "effect/HKT"
|
|
25
25
|
import { getLeft, getRight } from "effect/Option"
|
|
26
|
-
import type { Fx } from "./Fx"
|
|
26
|
+
import type { Fx } from "./Fx.js"
|
|
27
27
|
|
|
28
|
-
import * as core from "./internal/core"
|
|
29
|
-
import { multicast } from "./internal/share"
|
|
28
|
+
import * as core from "./internal/core.js"
|
|
29
|
+
import { multicast } from "./internal/share.js"
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* TypeLambda for an Fx
|
package/src/Versioned.ts
CHANGED
|
@@ -9,10 +9,10 @@ import type { Context, Layer, Runtime } from "effect"
|
|
|
9
9
|
import { Effect, identity } from "effect"
|
|
10
10
|
import { dual } from "effect/Function"
|
|
11
11
|
import { sum } from "effect/Number"
|
|
12
|
-
import type * as Fx from "./Fx"
|
|
13
|
-
import * as core from "./internal/core"
|
|
14
|
-
import * as fxEffectProto from "./internal/fx-effect-proto"
|
|
15
|
-
import { VersionedTransform } from "./internal/versioned-transform"
|
|
12
|
+
import type * as Fx from "./Fx.js"
|
|
13
|
+
import * as core from "./internal/core.js"
|
|
14
|
+
import * as fxEffectProto from "./internal/fx-effect-proto.js"
|
|
15
|
+
import { VersionedTransform } from "./internal/versioned-transform.js"
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* A data type which is both an Fx and an Effect. This is a more advanced type, and is the basis
|
package/src/index.ts
CHANGED
|
@@ -13,52 +13,52 @@
|
|
|
13
13
|
* [Computed documentation](https://tylors.github.io/typed/fx/Computed.ts.html)
|
|
14
14
|
* @since 1.18.0
|
|
15
15
|
*/
|
|
16
|
-
export * as Computed from "./Computed"
|
|
16
|
+
export * as Computed from "./Computed.js"
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* [Filtered documentation](https://tylors.github.io/typed/fx/Filtered.ts.html)
|
|
20
20
|
* @since 1.18.0
|
|
21
21
|
*/
|
|
22
|
-
export * as Filtered from "./Filtered"
|
|
22
|
+
export * as Filtered from "./Filtered.js"
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* [Fx documentation](https://tylors.github.io/typed/fx/Fx.ts.html)
|
|
26
26
|
* @since 1.18.0
|
|
27
27
|
*/
|
|
28
|
-
export * from "./Fx"
|
|
28
|
+
export * from "./Fx.js"
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
* [RefArray documentation](https://tylors.github.io/typed/fx/RefArray.ts.html)
|
|
32
32
|
* @since 1.18.0
|
|
33
33
|
*/
|
|
34
|
-
export * as RefArray from "./RefArray"
|
|
34
|
+
export * as RefArray from "./RefArray.js"
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* [RefSubject documentation](https://tylors.github.io/typed/fx/RefSubject.ts.html)
|
|
38
38
|
* @since 1.18.0
|
|
39
39
|
*/
|
|
40
|
-
export * as RefSubject from "./RefSubject"
|
|
40
|
+
export * as RefSubject from "./RefSubject.js"
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
43
|
* [Sink documentation](https://tylors.github.io/typed/fx/Sink.ts.html)
|
|
44
44
|
* @since 1.18.0
|
|
45
45
|
*/
|
|
46
|
-
export * as Sink from "./Sink"
|
|
46
|
+
export * as Sink from "./Sink.js"
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
49
|
* [Subject documentation](https://tylors.github.io/typed/fx/Subject.ts.html)
|
|
50
50
|
* @since 1.18.0
|
|
51
51
|
*/
|
|
52
|
-
export * as Subject from "./Subject"
|
|
52
|
+
export * as Subject from "./Subject.js"
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
55
|
* [Typeclass documentation](https://tylors.github.io/typed/fx/Typeclass.ts.html)
|
|
56
56
|
* @since 1.18.0
|
|
57
57
|
*/
|
|
58
|
-
export * as Typeclass from "./Typeclass"
|
|
58
|
+
export * as Typeclass from "./Typeclass.js"
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
61
|
* [TypeId documentation](https://tylors.github.io/typed/fx/TypeId.ts.html)
|
|
62
62
|
* @since 1.18.0
|
|
63
63
|
*/
|
|
64
|
-
export * from "./TypeId"
|
|
64
|
+
export * from "./TypeId.js"
|
|
@@ -18,14 +18,14 @@ import { Sink, WithContext } from "../Sink"
|
|
|
18
18
|
import type * as Subject from "../Subject"
|
|
19
19
|
import { ComputedTypeId, RefSubjectTypeId } from "../TypeId"
|
|
20
20
|
import { transformFx } from "../Versioned"
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import { DeferredRef } from "./deferred-ref"
|
|
24
|
-
import { fromFxEffect } from "./fx"
|
|
25
|
-
import { matchFxInput } from "./matchers"
|
|
26
|
-
import { FxEffectBase } from "./protos"
|
|
27
|
-
import { run } from "./run"
|
|
28
|
-
import { share } from "./share"
|
|
21
|
+
import { makeHoldSubject } from "./core-subject.js"
|
|
22
|
+
import * as core from "./core.js"
|
|
23
|
+
import { DeferredRef } from "./deferred-ref.js"
|
|
24
|
+
import { fromFxEffect } from "./fx.js"
|
|
25
|
+
import { matchFxInput } from "./matchers.js"
|
|
26
|
+
import { FxEffectBase } from "./protos.js"
|
|
27
|
+
import { run } from "./run.js"
|
|
28
|
+
import { share } from "./share.js"
|
|
29
29
|
|
|
30
30
|
export class RefSubjectImpl<R, E, A> extends FxEffectBase<R, E, A, R, E, A> implements RefSubject<R, E, A> {
|
|
31
31
|
readonly [RefSubjectTypeId]: RefSubjectTypeId = RefSubjectTypeId
|
|
@@ -7,9 +7,9 @@ import * as Scope from "effect/Scope"
|
|
|
7
7
|
import type { Fx } from "../Fx"
|
|
8
8
|
import type { Sink } from "../Sink"
|
|
9
9
|
import type { Subject } from "../Subject"
|
|
10
|
-
import { fromSink } from "./core"
|
|
11
|
-
import { ToFx } from "./fx-primitive"
|
|
12
|
-
import { RingBuffer } from "./helpers"
|
|
10
|
+
import { fromSink } from "./core.js"
|
|
11
|
+
import { ToFx } from "./fx-primitive.js"
|
|
12
|
+
import { RingBuffer } from "./helpers.js"
|
|
13
13
|
|
|
14
14
|
export function makeSubject<E, A>(): Subject<never, E, A> {
|
|
15
15
|
return new SubjectImpl<E, A>()
|
package/src/internal/core.ts
CHANGED
|
@@ -27,11 +27,11 @@ import {
|
|
|
27
27
|
liftSyncOperator,
|
|
28
28
|
MapEffect,
|
|
29
29
|
TapEffect
|
|
30
|
-
} from "./effect-operator"
|
|
31
|
-
import * as helpers from "./helpers"
|
|
32
|
-
import * as Provide from "./provide"
|
|
33
|
-
import * as strategies from "./strategies"
|
|
34
|
-
import { compileSyncReducer, Filter, FilterMap, Map } from "./sync-operator"
|
|
30
|
+
} from "./effect-operator.js"
|
|
31
|
+
import * as helpers from "./helpers.js"
|
|
32
|
+
import * as Provide from "./provide.js"
|
|
33
|
+
import * as strategies from "./strategies.js"
|
|
34
|
+
import { compileSyncReducer, Filter, FilterMap, Map } from "./sync-operator.js"
|
|
35
35
|
|
|
36
36
|
import type { DurationInput } from "effect/Duration"
|
|
37
37
|
import type { Equivalence } from "effect/Equivalence"
|
|
@@ -47,8 +47,8 @@ import type {
|
|
|
47
47
|
WithScopedForkParams
|
|
48
48
|
} from "../Fx"
|
|
49
49
|
import * as Sink from "../Sink"
|
|
50
|
-
import { type Bounds, boundsFrom, mergeBounds } from "./bounds"
|
|
51
|
-
import { type InternalEffect, matchEffectPrimitive } from "./effect-primitive"
|
|
50
|
+
import { type Bounds, boundsFrom, mergeBounds } from "./bounds.js"
|
|
51
|
+
import { type InternalEffect, matchEffectPrimitive } from "./effect-primitive.js"
|
|
52
52
|
import {
|
|
53
53
|
Empty,
|
|
54
54
|
Fail,
|
|
@@ -65,11 +65,11 @@ import {
|
|
|
65
65
|
WithEarlyExit,
|
|
66
66
|
WithFlattenStrategy,
|
|
67
67
|
WithScopedFork
|
|
68
|
-
} from "./fx-primitive"
|
|
69
|
-
import { adjustTime } from "./helpers"
|
|
70
|
-
import { matchFxInput } from "./matchers"
|
|
71
|
-
import { OnceEffect } from "./protos"
|
|
72
|
-
import { run } from "./run"
|
|
68
|
+
} from "./fx-primitive.js"
|
|
69
|
+
import { adjustTime } from "./helpers.js"
|
|
70
|
+
import { matchFxInput } from "./matchers.js"
|
|
71
|
+
import { OnceEffect } from "./protos.js"
|
|
72
|
+
import { run } from "./run.js"
|
|
73
73
|
|
|
74
74
|
const constUnit = () => Effect.unit
|
|
75
75
|
|
|
@@ -2,7 +2,7 @@ import * as Cause from "effect/Cause"
|
|
|
2
2
|
import * as Effect from "effect/Effect"
|
|
3
3
|
import * as Option from "effect/Option"
|
|
4
4
|
import { WithContext } from "../Sink"
|
|
5
|
-
import type { SyncOperator } from "./sync-operator"
|
|
5
|
+
import type { SyncOperator } from "./sync-operator.js"
|
|
6
6
|
|
|
7
7
|
// Effect operators are a subset of operators which can be safely fused together assynchronously
|
|
8
8
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as Effect from "effect/Effect"
|
|
2
2
|
import type { Fx } from "../Fx"
|
|
3
3
|
import type { Versioned } from "../Versioned"
|
|
4
|
-
import { succeed } from "./core"
|
|
5
|
-
import { FxEffectBase } from "./protos"
|
|
4
|
+
import { succeed } from "./core.js"
|
|
5
|
+
import { FxEffectBase } from "./protos.js"
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Construct a Versioned type.
|
|
@@ -3,11 +3,11 @@ import type * as Effect from "effect/Effect"
|
|
|
3
3
|
import type * as Scope from "effect/Scope"
|
|
4
4
|
|
|
5
5
|
import type * as Sink from "../Sink"
|
|
6
|
-
import { type EffectOperator, fuseEffectOperators, liftSyncOperator } from "./effect-operator"
|
|
7
|
-
import * as syncOperator from "./sync-operator"
|
|
6
|
+
import { type EffectOperator, fuseEffectOperators, liftSyncOperator } from "./effect-operator.js"
|
|
7
|
+
import * as syncOperator from "./sync-operator.js"
|
|
8
8
|
|
|
9
9
|
import type { FlattenStrategy, Fx, FxFork, WithEarlyExitParams, WithScopedForkParams } from "../Fx"
|
|
10
|
-
import { FxProto } from "./protos"
|
|
10
|
+
import { FxProto } from "./protos.js"
|
|
11
11
|
|
|
12
12
|
export type Primitive =
|
|
13
13
|
| Empty
|
package/src/internal/fx.ts
CHANGED
|
@@ -25,9 +25,9 @@ import * as Tracer from "effect/Tracer"
|
|
|
25
25
|
import type { Fx, FxInput } from "../Fx"
|
|
26
26
|
import * as Sink from "../Sink"
|
|
27
27
|
import * as Typeclass from "../Typeclass"
|
|
28
|
-
import * as core from "./core"
|
|
29
|
-
import { run } from "./run"
|
|
30
|
-
import { multicast } from "./share"
|
|
28
|
+
import * as core from "./core.js"
|
|
29
|
+
import { run } from "./run.js"
|
|
30
|
+
import { multicast } from "./share.js"
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
* Create an Fx which will emit a value after waiting for a specified duration.
|
package/src/internal/helpers.ts
CHANGED
|
@@ -11,8 +11,8 @@ import * as Scope from "effect/Scope"
|
|
|
11
11
|
import * as SynchronizedRef from "effect/SynchronizedRef"
|
|
12
12
|
import type { FlattenStrategy, FxFork, ScopedFork } from "../Fx"
|
|
13
13
|
import type * as Sink from "../Sink"
|
|
14
|
-
import type { InternalEffect } from "./effect-primitive"
|
|
15
|
-
import { matchEffectPrimitive } from "./effect-primitive"
|
|
14
|
+
import type { InternalEffect } from "./effect-primitive.js"
|
|
15
|
+
import { matchEffectPrimitive } from "./effect-primitive.js"
|
|
16
16
|
|
|
17
17
|
export function withScopedFork<R, E, A>(
|
|
18
18
|
f: (fork: ScopedFork, scope: Scope.Scope) => Effect.Effect<R, E, A>
|
package/src/internal/keyed.ts
CHANGED
|
@@ -10,10 +10,10 @@ import type * as Fx from "../Fx"
|
|
|
10
10
|
import { fromEffect, type RefSubject } from "../RefSubject"
|
|
11
11
|
import { WithContext } from "../Sink"
|
|
12
12
|
import type { Subject } from "../Subject"
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { adjustTime } from "./helpers"
|
|
16
|
-
import { run } from "./run"
|
|
13
|
+
import { makeHoldSubject } from "./core-subject.js"
|
|
14
|
+
import { from, skipRepeatsWith, withScopedFork } from "./core.js"
|
|
15
|
+
import { adjustTime } from "./helpers.js"
|
|
16
|
+
import { run } from "./run.js"
|
|
17
17
|
|
|
18
18
|
export function keyed<R, E, A, B, R2, E2, C>(
|
|
19
19
|
fx: Fx.Fx<R, E, ReadonlyArray<A>>,
|
package/src/internal/matchers.ts
CHANGED
|
@@ -6,7 +6,7 @@ import type * as Sink from "../Sink"
|
|
|
6
6
|
|
|
7
7
|
import type { Fx, FxInput } from "../Fx"
|
|
8
8
|
import type { RefSubject } from "../RefSubject"
|
|
9
|
-
import type * as Primitive from "./fx-primitive"
|
|
9
|
+
import type * as Primitive from "./fx-primitive.js"
|
|
10
10
|
|
|
11
11
|
export function matchFxPrimitive<B>(
|
|
12
12
|
matchers: {
|
package/src/internal/run.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as Effect from "effect/Effect"
|
|
2
2
|
|
|
3
3
|
import * as Sink from "../Sink"
|
|
4
|
-
import { compileCauseEffectOperatorSink, compileEffectOperatorSink } from "./effect-operator"
|
|
5
|
-
import * as helpers from "./helpers"
|
|
6
|
-
import { compileSyncOperatorFailureSink, compileSyncOperatorSink } from "./sync-operator"
|
|
4
|
+
import { compileCauseEffectOperatorSink, compileEffectOperatorSink } from "./effect-operator.js"
|
|
5
|
+
import * as helpers from "./helpers.js"
|
|
6
|
+
import { compileSyncOperatorFailureSink, compileSyncOperatorSink } from "./sync-operator.js"
|
|
7
7
|
|
|
8
8
|
import type { Fx } from "../Fx"
|
|
9
|
-
import { matchFxPrimitive } from "./matchers"
|
|
9
|
+
import { matchFxPrimitive } from "./matchers.js"
|
|
10
10
|
|
|
11
11
|
const constUnit = () => Effect.unit
|
|
12
12
|
|
|
@@ -8,9 +8,9 @@ import type * as Scope from "effect/Scope"
|
|
|
8
8
|
import type { Fx, FxInput } from "../Fx"
|
|
9
9
|
import type { MakeRefSubject, RefSubject, ToRefSubject } from "../RefSubject"
|
|
10
10
|
import { ComputedTypeId, FilteredTypeId, RefSubjectTypeId } from "../TypeId"
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { matchFxInput } from "./matchers"
|
|
11
|
+
import { make, struct } from "./core-ref-subject.js"
|
|
12
|
+
import { map } from "./core.js"
|
|
13
|
+
import { matchFxInput } from "./matchers.js"
|
|
14
14
|
|
|
15
15
|
const makeSchema = <O>(
|
|
16
16
|
f: <R, E>(
|
package/src/internal/share.ts
CHANGED
|
@@ -5,10 +5,10 @@ import * as MutableRef from "effect/MutableRef"
|
|
|
5
5
|
import * as Option from "effect/Option"
|
|
6
6
|
import type { Fx } from "../Fx"
|
|
7
7
|
import type { Subject } from "../Subject"
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { ToFx } from "./fx-primitive"
|
|
11
|
-
import { run } from "./run"
|
|
8
|
+
import { makeHoldSubject, makeReplaySubject, makeSubject } from "./core-subject.js"
|
|
9
|
+
import { withScopedFork } from "./core.js"
|
|
10
|
+
import { ToFx } from "./fx-primitive.js"
|
|
11
|
+
import { run } from "./run.js"
|
|
12
12
|
|
|
13
13
|
export function share<R, E, A, R2>(
|
|
14
14
|
fx: Fx<R, E, A>,
|
|
@@ -2,8 +2,8 @@ import * as Effect from "effect/Effect"
|
|
|
2
2
|
import * as Option from "effect/Option"
|
|
3
3
|
import type { Fx } from "../Fx"
|
|
4
4
|
import type { Versioned } from "../Versioned"
|
|
5
|
-
import { MulticastEffect } from "./helpers"
|
|
6
|
-
import { FxEffectBase } from "./protos"
|
|
5
|
+
import { MulticastEffect } from "./helpers.js"
|
|
6
|
+
import { FxEffectBase } from "./protos.js"
|
|
7
7
|
|
|
8
8
|
export class VersionedTransform<R0, E0, R, E, A, R2, E2, B, R3, E3, C, R4, E4, D>
|
|
9
9
|
extends FxEffectBase<R3, E3, C, R0 | R4, E0 | E4, D>
|