@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.
Files changed (250) hide show
  1. package/dist/cjs/Computed.js +8 -8
  2. package/dist/cjs/Computed.js.map +1 -1
  3. package/dist/cjs/Emitter.js +1 -1
  4. package/dist/cjs/Emitter.js.map +1 -1
  5. package/dist/cjs/Filtered.js +7 -7
  6. package/dist/cjs/Filtered.js.map +1 -1
  7. package/dist/cjs/Form.js +7 -7
  8. package/dist/cjs/Form.js.map +1 -1
  9. package/dist/cjs/FormEntry.js +6 -6
  10. package/dist/cjs/FormEntry.js.map +1 -1
  11. package/dist/cjs/Fx.js +11 -11
  12. package/dist/cjs/Fx.js.map +1 -1
  13. package/dist/cjs/Idle.js +3 -3
  14. package/dist/cjs/Idle.js.map +1 -1
  15. package/dist/cjs/Match.js +3 -3
  16. package/dist/cjs/Match.js.map +1 -1
  17. package/dist/cjs/Model.js +5 -5
  18. package/dist/cjs/Model.js.map +1 -1
  19. package/dist/cjs/RefArray.js +1 -1
  20. package/dist/cjs/RefArray.js.map +1 -1
  21. package/dist/cjs/RefAsyncData.js +4 -4
  22. package/dist/cjs/RefAsyncData.js.map +1 -1
  23. package/dist/cjs/RefAsyncDataArray.js +2 -2
  24. package/dist/cjs/RefAsyncDataArray.js.map +1 -1
  25. package/dist/cjs/RefBoolean.js +1 -1
  26. package/dist/cjs/RefBoolean.js.map +1 -1
  27. package/dist/cjs/RefChunk.js +1 -1
  28. package/dist/cjs/RefChunk.js.map +1 -1
  29. package/dist/cjs/RefHashMap.js +1 -1
  30. package/dist/cjs/RefHashMap.js.map +1 -1
  31. package/dist/cjs/RefHashSet.js +1 -1
  32. package/dist/cjs/RefHashSet.js.map +1 -1
  33. package/dist/cjs/RefNumber.js +1 -1
  34. package/dist/cjs/RefNumber.js.map +1 -1
  35. package/dist/cjs/RefSubject.js +9 -9
  36. package/dist/cjs/RefSubject.js.map +1 -1
  37. package/dist/cjs/Stream.js +2 -2
  38. package/dist/cjs/Stream.js.map +1 -1
  39. package/dist/cjs/Subject.js +4 -4
  40. package/dist/cjs/Subject.js.map +1 -1
  41. package/dist/cjs/TypeId.js +4 -4
  42. package/dist/cjs/TypeId.js.map +1 -1
  43. package/dist/cjs/Typeclass.js +2 -2
  44. package/dist/cjs/Typeclass.js.map +1 -1
  45. package/dist/cjs/Versioned.js +3 -3
  46. package/dist/cjs/Versioned.js.map +1 -1
  47. package/dist/cjs/index.js +9 -9
  48. package/dist/cjs/index.js.map +1 -1
  49. package/dist/cjs/internal/core-ref-subject.js +8 -8
  50. package/dist/cjs/internal/core-ref-subject.js.map +1 -1
  51. package/dist/cjs/internal/core-subject.js +3 -3
  52. package/dist/cjs/internal/core-subject.js.map +1 -1
  53. package/dist/cjs/internal/core.js +11 -11
  54. package/dist/cjs/internal/core.js.map +1 -1
  55. package/dist/cjs/internal/fx-effect-proto.js +2 -2
  56. package/dist/cjs/internal/fx-effect-proto.js.map +1 -1
  57. package/dist/cjs/internal/fx-primitive.js +3 -3
  58. package/dist/cjs/internal/fx-primitive.js.map +1 -1
  59. package/dist/cjs/internal/fx.js +3 -3
  60. package/dist/cjs/internal/fx.js.map +1 -1
  61. package/dist/cjs/internal/helpers.js +1 -1
  62. package/dist/cjs/internal/helpers.js.map +1 -1
  63. package/dist/cjs/internal/keyed.js +4 -4
  64. package/dist/cjs/internal/keyed.js.map +1 -1
  65. package/dist/cjs/internal/run.js +4 -4
  66. package/dist/cjs/internal/run.js.map +1 -1
  67. package/dist/cjs/internal/schema-ref-subject.js +3 -3
  68. package/dist/cjs/internal/schema-ref-subject.js.map +1 -1
  69. package/dist/cjs/internal/share.js +4 -4
  70. package/dist/cjs/internal/share.js.map +1 -1
  71. package/dist/cjs/internal/versioned-transform.js +2 -2
  72. package/dist/cjs/internal/versioned-transform.js.map +1 -1
  73. package/dist/cjs/internal/withKey.js +3 -3
  74. package/dist/cjs/internal/withKey.js.map +1 -1
  75. package/dist/dts/Computed.d.ts +4 -4
  76. package/dist/dts/Computed.d.ts.map +1 -1
  77. package/dist/dts/Emitter.d.ts +1 -1
  78. package/dist/dts/Emitter.d.ts.map +1 -1
  79. package/dist/dts/Filtered.d.ts +4 -4
  80. package/dist/dts/Filtered.d.ts.map +1 -1
  81. package/dist/dts/Form.d.ts +5 -5
  82. package/dist/dts/Form.d.ts.map +1 -1
  83. package/dist/dts/FormEntry.d.ts +3 -3
  84. package/dist/dts/FormEntry.d.ts.map +1 -1
  85. package/dist/dts/Fx.d.ts +7 -7
  86. package/dist/dts/Fx.d.ts.map +1 -1
  87. package/dist/dts/Match.d.ts +3 -3
  88. package/dist/dts/Match.d.ts.map +1 -1
  89. package/dist/dts/Model.d.ts +5 -5
  90. package/dist/dts/Model.d.ts.map +1 -1
  91. package/dist/dts/Pull.d.ts +1 -1
  92. package/dist/dts/Pull.d.ts.map +1 -1
  93. package/dist/dts/RefArray.d.ts +4 -4
  94. package/dist/dts/RefArray.d.ts.map +1 -1
  95. package/dist/dts/RefAsyncData.d.ts +5 -5
  96. package/dist/dts/RefAsyncData.d.ts.map +1 -1
  97. package/dist/dts/RefAsyncDataArray.d.ts +3 -3
  98. package/dist/dts/RefAsyncDataArray.d.ts.map +1 -1
  99. package/dist/dts/RefBoolean.d.ts +2 -2
  100. package/dist/dts/RefBoolean.d.ts.map +1 -1
  101. package/dist/dts/RefChunk.d.ts +4 -4
  102. package/dist/dts/RefChunk.d.ts.map +1 -1
  103. package/dist/dts/RefHashMap.d.ts +4 -4
  104. package/dist/dts/RefHashMap.d.ts.map +1 -1
  105. package/dist/dts/RefHashSet.d.ts +3 -3
  106. package/dist/dts/RefHashSet.d.ts.map +1 -1
  107. package/dist/dts/RefNumber.d.ts +2 -2
  108. package/dist/dts/RefNumber.d.ts.map +1 -1
  109. package/dist/dts/RefSubject.d.ts +5 -5
  110. package/dist/dts/RefSubject.d.ts.map +1 -1
  111. package/dist/dts/Stream.d.ts +1 -1
  112. package/dist/dts/Stream.d.ts.map +1 -1
  113. package/dist/dts/Subject.d.ts +2 -2
  114. package/dist/dts/Subject.d.ts.map +1 -1
  115. package/dist/dts/TypeId.d.ts.map +1 -1
  116. package/dist/dts/Typeclass.d.ts +1 -1
  117. package/dist/dts/Typeclass.d.ts.map +1 -1
  118. package/dist/dts/Versioned.d.ts +1 -1
  119. package/dist/dts/Versioned.d.ts.map +1 -1
  120. package/dist/dts/index.d.ts +9 -9
  121. package/dist/dts/index.d.ts.map +1 -1
  122. package/dist/dts/internal/core-ref-subject.d.ts +1 -1
  123. package/dist/dts/internal/core-ref-subject.d.ts.map +1 -1
  124. package/dist/dts/internal/effect-operator.d.ts +1 -1
  125. package/dist/dts/internal/effect-operator.d.ts.map +1 -1
  126. package/dist/dts/internal/fx-effect-proto.d.ts +1 -1
  127. package/dist/dts/internal/fx-effect-proto.d.ts.map +1 -1
  128. package/dist/dts/internal/fx-primitive.d.ts +3 -3
  129. package/dist/dts/internal/fx-primitive.d.ts.map +1 -1
  130. package/dist/dts/internal/matchers.d.ts +1 -1
  131. package/dist/dts/internal/matchers.d.ts.map +1 -1
  132. package/dist/dts/internal/share.d.ts +1 -1
  133. package/dist/dts/internal/share.d.ts.map +1 -1
  134. package/dist/dts/internal/versioned-transform.d.ts +1 -1
  135. package/dist/dts/internal/versioned-transform.d.ts.map +1 -1
  136. package/dist/esm/Computed.js +8 -8
  137. package/dist/esm/Computed.js.map +1 -1
  138. package/dist/esm/Emitter.js +1 -1
  139. package/dist/esm/Emitter.js.map +1 -1
  140. package/dist/esm/Filtered.js +7 -7
  141. package/dist/esm/Filtered.js.map +1 -1
  142. package/dist/esm/Form.js +7 -7
  143. package/dist/esm/Form.js.map +1 -1
  144. package/dist/esm/FormEntry.js +6 -6
  145. package/dist/esm/FormEntry.js.map +1 -1
  146. package/dist/esm/Fx.js +11 -11
  147. package/dist/esm/Fx.js.map +1 -1
  148. package/dist/esm/Idle.js +3 -3
  149. package/dist/esm/Idle.js.map +1 -1
  150. package/dist/esm/Match.js +3 -3
  151. package/dist/esm/Match.js.map +1 -1
  152. package/dist/esm/Model.js +5 -5
  153. package/dist/esm/Model.js.map +1 -1
  154. package/dist/esm/RefArray.js +1 -1
  155. package/dist/esm/RefArray.js.map +1 -1
  156. package/dist/esm/RefAsyncData.js +4 -4
  157. package/dist/esm/RefAsyncData.js.map +1 -1
  158. package/dist/esm/RefAsyncDataArray.js +2 -2
  159. package/dist/esm/RefAsyncDataArray.js.map +1 -1
  160. package/dist/esm/RefBoolean.js +1 -1
  161. package/dist/esm/RefBoolean.js.map +1 -1
  162. package/dist/esm/RefChunk.js +1 -1
  163. package/dist/esm/RefChunk.js.map +1 -1
  164. package/dist/esm/RefHashMap.js +1 -1
  165. package/dist/esm/RefHashMap.js.map +1 -1
  166. package/dist/esm/RefHashSet.js +1 -1
  167. package/dist/esm/RefHashSet.js.map +1 -1
  168. package/dist/esm/RefNumber.js +1 -1
  169. package/dist/esm/RefNumber.js.map +1 -1
  170. package/dist/esm/RefSubject.js +9 -9
  171. package/dist/esm/RefSubject.js.map +1 -1
  172. package/dist/esm/Stream.js +2 -2
  173. package/dist/esm/Stream.js.map +1 -1
  174. package/dist/esm/Subject.js +4 -4
  175. package/dist/esm/Subject.js.map +1 -1
  176. package/dist/esm/TypeId.js +4 -4
  177. package/dist/esm/TypeId.js.map +1 -1
  178. package/dist/esm/Typeclass.js +2 -2
  179. package/dist/esm/Typeclass.js.map +1 -1
  180. package/dist/esm/Versioned.js +3 -3
  181. package/dist/esm/Versioned.js.map +1 -1
  182. package/dist/esm/index.js +9 -9
  183. package/dist/esm/index.js.map +1 -1
  184. package/dist/esm/internal/core-ref-subject.js +8 -8
  185. package/dist/esm/internal/core-ref-subject.js.map +1 -1
  186. package/dist/esm/internal/core-subject.js +3 -3
  187. package/dist/esm/internal/core-subject.js.map +1 -1
  188. package/dist/esm/internal/core.js +12 -12
  189. package/dist/esm/internal/core.js.map +1 -1
  190. package/dist/esm/internal/fx-effect-proto.js +2 -2
  191. package/dist/esm/internal/fx-effect-proto.js.map +1 -1
  192. package/dist/esm/internal/fx-primitive.js +3 -3
  193. package/dist/esm/internal/fx-primitive.js.map +1 -1
  194. package/dist/esm/internal/fx.js +3 -3
  195. package/dist/esm/internal/fx.js.map +1 -1
  196. package/dist/esm/internal/helpers.js +1 -1
  197. package/dist/esm/internal/helpers.js.map +1 -1
  198. package/dist/esm/internal/keyed.js +4 -4
  199. package/dist/esm/internal/keyed.js.map +1 -1
  200. package/dist/esm/internal/run.js +4 -4
  201. package/dist/esm/internal/run.js.map +1 -1
  202. package/dist/esm/internal/schema-ref-subject.js +3 -3
  203. package/dist/esm/internal/schema-ref-subject.js.map +1 -1
  204. package/dist/esm/internal/share.js +4 -4
  205. package/dist/esm/internal/share.js.map +1 -1
  206. package/dist/esm/internal/versioned-transform.js +2 -2
  207. package/dist/esm/internal/versioned-transform.js.map +1 -1
  208. package/dist/esm/internal/withKey.js +3 -3
  209. package/dist/esm/internal/withKey.js.map +1 -1
  210. package/package.json +3 -3
  211. package/src/Computed.ts +9 -9
  212. package/src/Emitter.ts +3 -3
  213. package/src/Filtered.ts +8 -8
  214. package/src/Form.ts +11 -11
  215. package/src/FormEntry.ts +8 -8
  216. package/src/Fx.ts +14 -14
  217. package/src/Idle.ts +3 -3
  218. package/src/Match.ts +4 -4
  219. package/src/Model.ts +8 -8
  220. package/src/Pull.ts +1 -1
  221. package/src/RefArray.ts +4 -4
  222. package/src/RefAsyncData.ts +6 -6
  223. package/src/RefAsyncDataArray.ts +3 -3
  224. package/src/RefBoolean.ts +2 -2
  225. package/src/RefChunk.ts +4 -4
  226. package/src/RefHashMap.ts +4 -4
  227. package/src/RefHashSet.ts +3 -3
  228. package/src/RefNumber.ts +2 -2
  229. package/src/RefSubject.ts +11 -11
  230. package/src/Stream.ts +2 -2
  231. package/src/Subject.ts +5 -5
  232. package/src/TypeId.ts +4 -4
  233. package/src/Typeclass.ts +3 -3
  234. package/src/Versioned.ts +4 -4
  235. package/src/index.ts +9 -9
  236. package/src/internal/core-ref-subject.ts +8 -8
  237. package/src/internal/core-subject.ts +3 -3
  238. package/src/internal/core.ts +12 -12
  239. package/src/internal/effect-operator.ts +1 -1
  240. package/src/internal/fx-effect-proto.ts +2 -2
  241. package/src/internal/fx-primitive.ts +3 -3
  242. package/src/internal/fx.ts +3 -3
  243. package/src/internal/helpers.ts +2 -2
  244. package/src/internal/keyed.ts +4 -4
  245. package/src/internal/matchers.ts +1 -1
  246. package/src/internal/run.ts +4 -4
  247. package/src/internal/schema-ref-subject.ts +3 -3
  248. package/src/internal/share.ts +4 -4
  249. package/src/internal/versioned-transform.ts +2 -2
  250. 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.
@@ -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.
@@ -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 { fromStream, provide, skipRepeatsWith } from "./internal/core"
23
- import * as coreRefSubject from "./internal/core-ref-subject"
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 { provide } from "./internal/core"
13
- import * as internal from "./internal/core-subject"
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 * as core from "./core"
22
- import { makeHoldSubject } from "./core-subject"
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>()
@@ -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
@@ -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.
@@ -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>
@@ -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 { from, skipRepeatsWith, withScopedFork } from "./core"
14
- import { makeHoldSubject } from "./core-subject"
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>>,
@@ -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: {
@@ -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 { map } from "./core"
12
- import { make, struct } from "./core-ref-subject"
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>(
@@ -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 { withScopedFork } from "./core"
9
- import { makeHoldSubject, makeReplaySubject, makeSubject } from "./core-subject"
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>