@typed/fx 2.0.0-beta.6 → 2.0.0-beta.8

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 (270) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1 -1
  3. package/dist/Fx/Fx.d.ts +9 -9
  4. package/dist/Fx/Fx.js +1 -1
  5. package/dist/Fx/TypeId.d.ts +3 -3
  6. package/dist/Fx/TypeId.js +2 -2
  7. package/dist/Fx/combinators/additive.d.ts +6 -6
  8. package/dist/Fx/combinators/additive.js +6 -6
  9. package/dist/Fx/combinators/catch.d.ts +7 -7
  10. package/dist/Fx/combinators/catch.js +7 -7
  11. package/dist/Fx/combinators/causes.d.ts +1 -1
  12. package/dist/Fx/combinators/causes.js +1 -1
  13. package/dist/Fx/combinators/changesWithEffect.d.ts +1 -1
  14. package/dist/Fx/combinators/changesWithEffect.js +1 -1
  15. package/dist/Fx/combinators/compact.d.ts +1 -1
  16. package/dist/Fx/combinators/compact.js +1 -1
  17. package/dist/Fx/combinators/concatMap.d.ts +2 -2
  18. package/dist/Fx/combinators/concatMap.js +2 -2
  19. package/dist/Fx/combinators/continueWith.d.ts +4 -4
  20. package/dist/Fx/combinators/continueWith.js +4 -4
  21. package/dist/Fx/combinators/debounce.d.ts +2 -2
  22. package/dist/Fx/combinators/debounce.d.ts.map +1 -1
  23. package/dist/Fx/combinators/debounce.js +1 -1
  24. package/dist/Fx/combinators/delay.d.ts +9 -7
  25. package/dist/Fx/combinators/delay.d.ts.map +1 -1
  26. package/dist/Fx/combinators/delay.js +8 -6
  27. package/dist/Fx/combinators/dropUntil.d.ts +2 -2
  28. package/dist/Fx/combinators/dropUntil.js +2 -2
  29. package/dist/Fx/combinators/during.d.ts +1 -1
  30. package/dist/Fx/combinators/during.js +1 -1
  31. package/dist/Fx/combinators/ensuring.d.ts +1 -1
  32. package/dist/Fx/combinators/ensuring.js +1 -1
  33. package/dist/Fx/combinators/exhaustLatestMap.d.ts +1 -1
  34. package/dist/Fx/combinators/exhaustLatestMap.js +1 -1
  35. package/dist/Fx/combinators/exhaustLatestMapEffect.d.ts +1 -1
  36. package/dist/Fx/combinators/exhaustLatestMapEffect.js +1 -1
  37. package/dist/Fx/combinators/exhaustMap.d.ts +1 -1
  38. package/dist/Fx/combinators/exhaustMap.js +1 -1
  39. package/dist/Fx/combinators/exhaustMapEffect.d.ts +1 -1
  40. package/dist/Fx/combinators/exhaustMapEffect.js +1 -1
  41. package/dist/Fx/combinators/exit.d.ts +1 -1
  42. package/dist/Fx/combinators/exit.js +1 -1
  43. package/dist/Fx/combinators/filter.d.ts +1 -1
  44. package/dist/Fx/combinators/filter.js +1 -1
  45. package/dist/Fx/combinators/filterEffect.d.ts +1 -1
  46. package/dist/Fx/combinators/filterEffect.js +1 -1
  47. package/dist/Fx/combinators/filterMap.d.ts +1 -1
  48. package/dist/Fx/combinators/filterMap.js +1 -1
  49. package/dist/Fx/combinators/filterMapEffect.d.ts +1 -1
  50. package/dist/Fx/combinators/filterMapEffect.js +1 -1
  51. package/dist/Fx/combinators/filterMapLoop.d.ts +1 -1
  52. package/dist/Fx/combinators/filterMapLoop.js +1 -1
  53. package/dist/Fx/combinators/filterMapLoopCause.d.ts +1 -1
  54. package/dist/Fx/combinators/filterMapLoopCause.js +1 -1
  55. package/dist/Fx/combinators/filterMapLoopCauseEffect.d.ts +1 -1
  56. package/dist/Fx/combinators/filterMapLoopCauseEffect.js +1 -1
  57. package/dist/Fx/combinators/filterMapLoopEffect.d.ts +1 -1
  58. package/dist/Fx/combinators/filterMapLoopEffect.js +1 -1
  59. package/dist/Fx/combinators/flatMap.d.ts +2 -2
  60. package/dist/Fx/combinators/flatMap.js +1 -1
  61. package/dist/Fx/combinators/flatMapConcurrently.d.ts +1 -1
  62. package/dist/Fx/combinators/flatMapConcurrently.js +1 -1
  63. package/dist/Fx/combinators/flatMapConcurrentlyEffect.d.ts +1 -1
  64. package/dist/Fx/combinators/flatMapConcurrentlyEffect.js +1 -1
  65. package/dist/Fx/combinators/flatMapEffect.d.ts +2 -2
  66. package/dist/Fx/combinators/flatMapEffect.js +1 -1
  67. package/dist/Fx/combinators/flip.d.ts +1 -1
  68. package/dist/Fx/combinators/flip.js +1 -1
  69. package/dist/Fx/combinators/gen.d.ts +1 -1
  70. package/dist/Fx/combinators/gen.js +1 -1
  71. package/dist/Fx/combinators/genScoped.d.ts +1 -1
  72. package/dist/Fx/combinators/genScoped.js +1 -1
  73. package/dist/Fx/combinators/grouped.d.ts +2 -2
  74. package/dist/Fx/combinators/grouped.js +2 -2
  75. package/dist/Fx/combinators/keyed.d.ts +2 -2
  76. package/dist/Fx/combinators/keyed.js +1 -1
  77. package/dist/Fx/combinators/loop.d.ts +1 -1
  78. package/dist/Fx/combinators/loop.js +1 -1
  79. package/dist/Fx/combinators/loopCause.d.ts +1 -1
  80. package/dist/Fx/combinators/loopCause.js +1 -1
  81. package/dist/Fx/combinators/loopCauseEffect.d.ts +1 -1
  82. package/dist/Fx/combinators/loopCauseEffect.js +1 -1
  83. package/dist/Fx/combinators/loopEffect.d.ts +1 -1
  84. package/dist/Fx/combinators/loopEffect.js +1 -1
  85. package/dist/Fx/combinators/map.d.ts +2 -2
  86. package/dist/Fx/combinators/map.js +2 -2
  87. package/dist/Fx/combinators/mapBoth.d.ts +1 -1
  88. package/dist/Fx/combinators/mapBoth.js +1 -1
  89. package/dist/Fx/combinators/mapEffect.d.ts +1 -1
  90. package/dist/Fx/combinators/mapEffect.js +1 -1
  91. package/dist/Fx/combinators/mapError.d.ts +1 -1
  92. package/dist/Fx/combinators/mapError.js +1 -1
  93. package/dist/Fx/combinators/mergeAll.d.ts +1 -1
  94. package/dist/Fx/combinators/mergeAll.js +1 -1
  95. package/dist/Fx/combinators/mergeOrdered.d.ts +1 -1
  96. package/dist/Fx/combinators/mergeOrdered.d.ts.map +1 -1
  97. package/dist/Fx/combinators/mergeOrdered.js +33 -11
  98. package/dist/Fx/combinators/onError.d.ts +1 -1
  99. package/dist/Fx/combinators/onError.js +1 -1
  100. package/dist/Fx/combinators/onExit.d.ts +1 -1
  101. package/dist/Fx/combinators/onExit.js +1 -1
  102. package/dist/Fx/combinators/onInterrupt.d.ts +1 -1
  103. package/dist/Fx/combinators/onInterrupt.js +1 -1
  104. package/dist/Fx/combinators/pairwise.d.ts +1 -1
  105. package/dist/Fx/combinators/pairwise.js +1 -1
  106. package/dist/Fx/combinators/provide.d.ts +4 -4
  107. package/dist/Fx/combinators/provide.js +4 -4
  108. package/dist/Fx/combinators/race.d.ts +2 -2
  109. package/dist/Fx/combinators/race.js +2 -2
  110. package/dist/Fx/combinators/repeat.d.ts +1 -1
  111. package/dist/Fx/combinators/repeat.js +1 -1
  112. package/dist/Fx/combinators/result.d.ts +1 -1
  113. package/dist/Fx/combinators/result.js +1 -1
  114. package/dist/Fx/combinators/retry.d.ts +1 -1
  115. package/dist/Fx/combinators/retry.js +1 -1
  116. package/dist/Fx/combinators/sample.d.ts +1 -1
  117. package/dist/Fx/combinators/sample.js +1 -1
  118. package/dist/Fx/combinators/scan.d.ts +2 -2
  119. package/dist/Fx/combinators/scan.js +2 -2
  120. package/dist/Fx/combinators/since.d.ts +1 -1
  121. package/dist/Fx/combinators/since.js +1 -1
  122. package/dist/Fx/combinators/skip.d.ts +2 -2
  123. package/dist/Fx/combinators/skip.js +2 -2
  124. package/dist/Fx/combinators/skipRepeats.d.ts +1 -1
  125. package/dist/Fx/combinators/skipRepeats.js +1 -1
  126. package/dist/Fx/combinators/skipRepeatsWith.d.ts +1 -1
  127. package/dist/Fx/combinators/skipRepeatsWith.js +1 -1
  128. package/dist/Fx/combinators/skipWhile.d.ts +4 -4
  129. package/dist/Fx/combinators/skipWhile.js +4 -4
  130. package/dist/Fx/combinators/slice.d.ts +3 -3
  131. package/dist/Fx/combinators/slice.js +2 -2
  132. package/dist/Fx/combinators/switchMap.d.ts +1 -1
  133. package/dist/Fx/combinators/switchMap.js +1 -1
  134. package/dist/Fx/combinators/switchMapEffect.d.ts +1 -1
  135. package/dist/Fx/combinators/switchMapEffect.js +1 -1
  136. package/dist/Fx/combinators/take.d.ts +2 -2
  137. package/dist/Fx/combinators/take.js +2 -2
  138. package/dist/Fx/combinators/takeUntil.d.ts +3 -3
  139. package/dist/Fx/combinators/takeUntil.js +3 -3
  140. package/dist/Fx/combinators/takeWhile.d.ts +2 -2
  141. package/dist/Fx/combinators/takeWhile.js +2 -2
  142. package/dist/Fx/combinators/tapEffect.d.ts +1 -1
  143. package/dist/Fx/combinators/tapEffect.js +1 -1
  144. package/dist/Fx/combinators/throttle.d.ts +3 -3
  145. package/dist/Fx/combinators/throttle.d.ts.map +1 -1
  146. package/dist/Fx/combinators/throttle.js +1 -1
  147. package/dist/Fx/combinators/timeout.d.ts +2 -2
  148. package/dist/Fx/combinators/timeout.js +2 -2
  149. package/dist/Fx/combinators/tuple.d.ts +2 -2
  150. package/dist/Fx/combinators/tuple.js +2 -2
  151. package/dist/Fx/combinators/until.d.ts +1 -1
  152. package/dist/Fx/combinators/until.js +1 -1
  153. package/dist/Fx/combinators/unwrap.d.ts +1 -1
  154. package/dist/Fx/combinators/unwrap.js +1 -1
  155. package/dist/Fx/combinators/unwrapScoped.d.ts +1 -1
  156. package/dist/Fx/combinators/unwrapScoped.js +1 -1
  157. package/dist/Fx/combinators/when.d.ts +2 -2
  158. package/dist/Fx/combinators/when.js +2 -2
  159. package/dist/Fx/combinators/withLatestFrom.d.ts +2 -2
  160. package/dist/Fx/combinators/withLatestFrom.js +2 -2
  161. package/dist/Fx/combinators/withSpan.d.ts +1 -1
  162. package/dist/Fx/combinators/withSpan.js +1 -1
  163. package/dist/Fx/combinators/zip.d.ts +4 -4
  164. package/dist/Fx/combinators/zip.js +4 -4
  165. package/dist/Fx/constructors/at.d.ts +1 -1
  166. package/dist/Fx/constructors/at.js +1 -1
  167. package/dist/Fx/constructors/die.d.ts +1 -1
  168. package/dist/Fx/constructors/die.js +1 -1
  169. package/dist/Fx/constructors/empty.d.ts +1 -1
  170. package/dist/Fx/constructors/empty.js +1 -1
  171. package/dist/Fx/constructors/fail.d.ts +1 -1
  172. package/dist/Fx/constructors/fail.js +1 -1
  173. package/dist/Fx/constructors/failCause.d.ts +1 -1
  174. package/dist/Fx/constructors/failCause.js +1 -1
  175. package/dist/Fx/constructors/fn.d.ts +4 -4
  176. package/dist/Fx/constructors/fn.js +1 -1
  177. package/dist/Fx/constructors/fromEffect.d.ts +2 -2
  178. package/dist/Fx/constructors/fromEffect.js +2 -2
  179. package/dist/Fx/constructors/fromFailures.d.ts +1 -1
  180. package/dist/Fx/constructors/fromFailures.js +1 -1
  181. package/dist/Fx/constructors/fromIterable.d.ts +1 -1
  182. package/dist/Fx/constructors/fromIterable.js +1 -1
  183. package/dist/Fx/constructors/fromSchedule.d.ts +6 -4
  184. package/dist/Fx/constructors/fromSchedule.d.ts.map +1 -1
  185. package/dist/Fx/constructors/fromSchedule.js +6 -4
  186. package/dist/Fx/constructors/interrupt.d.ts +1 -1
  187. package/dist/Fx/constructors/interrupt.js +1 -1
  188. package/dist/Fx/constructors/make.d.ts +9 -7
  189. package/dist/Fx/constructors/make.d.ts.map +1 -1
  190. package/dist/Fx/constructors/make.js +8 -6
  191. package/dist/Fx/constructors/periodic.d.ts +1 -1
  192. package/dist/Fx/constructors/periodic.js +1 -1
  193. package/dist/Fx/constructors/succeed.d.ts +4 -4
  194. package/dist/Fx/constructors/succeed.js +4 -4
  195. package/dist/Fx/constructors/suspend.d.ts +1 -1
  196. package/dist/Fx/constructors/suspend.js +1 -1
  197. package/dist/Fx/constructors/sync.d.ts +1 -1
  198. package/dist/Fx/constructors/sync.js +1 -1
  199. package/dist/Fx/run/collect.d.ts +4 -4
  200. package/dist/Fx/run/collect.js +4 -4
  201. package/dist/Fx/run/first.d.ts +1 -1
  202. package/dist/Fx/run/first.js +1 -1
  203. package/dist/Fx/run/fork.d.ts +2 -2
  204. package/dist/Fx/run/fork.js +2 -2
  205. package/dist/Fx/run/observe.d.ts +7 -5
  206. package/dist/Fx/run/observe.d.ts.map +1 -1
  207. package/dist/Fx/run/observe.js +30 -15
  208. package/dist/Fx/run/runPromise.d.ts +2 -2
  209. package/dist/Fx/run/runPromise.js +2 -2
  210. package/dist/Fx/stream.d.ts +4 -4
  211. package/dist/Fx/stream.js +2 -2
  212. package/dist/Push/Push.d.ts +30 -30
  213. package/dist/Push/Push.js +26 -26
  214. package/dist/RefSubject/Hydration.d.ts +24 -24
  215. package/dist/RefSubject/Hydration.js +5 -5
  216. package/dist/RefSubject/RefArray.d.ts +31 -31
  217. package/dist/RefSubject/RefArray.js +30 -30
  218. package/dist/RefSubject/RefBigDecimal.d.ts +20 -20
  219. package/dist/RefSubject/RefBigDecimal.js +19 -19
  220. package/dist/RefSubject/RefBigInt.d.ts +15 -15
  221. package/dist/RefSubject/RefBigInt.js +14 -14
  222. package/dist/RefSubject/RefBoolean.d.ts +15 -15
  223. package/dist/RefSubject/RefBoolean.js +14 -14
  224. package/dist/RefSubject/RefCause.d.ts +11 -11
  225. package/dist/RefSubject/RefCause.js +10 -10
  226. package/dist/RefSubject/RefChunk.d.ts +37 -37
  227. package/dist/RefSubject/RefChunk.js +36 -36
  228. package/dist/RefSubject/RefDateTime.d.ts +11 -11
  229. package/dist/RefSubject/RefDateTime.js +10 -10
  230. package/dist/RefSubject/RefDuration.d.ts +14 -14
  231. package/dist/RefSubject/RefDuration.js +13 -13
  232. package/dist/RefSubject/RefGraph.d.ts +29 -29
  233. package/dist/RefSubject/RefGraph.js +28 -28
  234. package/dist/RefSubject/RefHashMap.d.ts +27 -27
  235. package/dist/RefSubject/RefHashMap.js +26 -26
  236. package/dist/RefSubject/RefHashRing.d.ts +13 -13
  237. package/dist/RefSubject/RefHashRing.js +12 -12
  238. package/dist/RefSubject/RefHashSet.d.ts +21 -21
  239. package/dist/RefSubject/RefHashSet.js +20 -20
  240. package/dist/RefSubject/RefIterable.d.ts +30 -30
  241. package/dist/RefSubject/RefIterable.js +29 -29
  242. package/dist/RefSubject/RefOption.d.ts +13 -13
  243. package/dist/RefSubject/RefOption.js +12 -12
  244. package/dist/RefSubject/RefRecord.d.ts +31 -31
  245. package/dist/RefSubject/RefRecord.js +30 -30
  246. package/dist/RefSubject/RefResult.d.ts +12 -12
  247. package/dist/RefSubject/RefResult.js +11 -11
  248. package/dist/RefSubject/RefString.d.ts +17 -17
  249. package/dist/RefSubject/RefString.js +16 -16
  250. package/dist/RefSubject/RefStruct.d.ts +13 -13
  251. package/dist/RefSubject/RefStruct.js +12 -12
  252. package/dist/RefSubject/RefSubject.d.ts +93 -94
  253. package/dist/RefSubject/RefSubject.d.ts.map +1 -1
  254. package/dist/RefSubject/RefSubject.js +132 -77
  255. package/dist/RefSubject/RefTrie.d.ts +26 -26
  256. package/dist/RefSubject/RefTrie.js +25 -25
  257. package/dist/RefSubject/RefTuple.d.ts +11 -11
  258. package/dist/RefSubject/RefTuple.js +9 -9
  259. package/dist/Sink/Sink.d.ts +21 -19
  260. package/dist/Sink/Sink.d.ts.map +1 -1
  261. package/dist/Sink/Sink.js +5 -4
  262. package/dist/Sink/combinators.d.ts +33 -33
  263. package/dist/Sink/combinators.js +32 -32
  264. package/dist/Subject/Subject.d.ts +14 -13
  265. package/dist/Subject/Subject.d.ts.map +1 -1
  266. package/dist/Subject/Subject.js +11 -10
  267. package/dist/Versioned/Versioned.d.ts +31 -28
  268. package/dist/Versioned/Versioned.d.ts.map +1 -1
  269. package/dist/Versioned/Versioned.js +45 -37
  270. package/package.json +5 -4
@@ -20,7 +20,7 @@ import * as RefSubject from "./RefSubject.js";
20
20
  * and cleanup; source failures and services stay on reads and pushes.
21
21
  *
22
22
  * @since 1.18.0
23
- * @category constructors
23
+ * @category Constructors
24
24
  */
25
25
  export function make(initial) {
26
26
  return RefSubject.make(initial, { eq: equals });
@@ -39,7 +39,7 @@ export function make(initial) {
39
39
  * It acquires no resource; failures and services remain those of the source ref.
40
40
  *
41
41
  * @since 1.18.0
42
- * @category constructors
42
+ * @category Constructors
43
43
  */
44
44
  export function directed() {
45
45
  return RefSubject.make(Graph.directed(), { eq: equals });
@@ -58,7 +58,7 @@ export function directed() {
58
58
  * value. It acquires no resource; failures and services remain those of the source ref.
59
59
  *
60
60
  * @since 1.18.0
61
- * @category constructors
61
+ * @category Constructors
62
62
  */
63
63
  export function undirected() {
64
64
  return RefSubject.make(Graph.undirected(), { eq: equals });
@@ -80,7 +80,7 @@ export function undirected() {
80
80
  * It acquires no resource; failures and services remain those of the source ref.
81
81
  *
82
82
  * @since 1.18.0
83
- * @category combinators
83
+ * @category State updates
84
84
  */
85
85
  export const addNode = dual(2, function addNode(ref, data) {
86
86
  return RefSubject.update(ref, (g) => {
@@ -103,7 +103,7 @@ export const addNode = dual(2, function addNode(ref, data) {
103
103
  * value. It acquires no resource; failures and services remain those of the source ref.
104
104
  *
105
105
  * @since 1.18.0
106
- * @category combinators
106
+ * @category State updates
107
107
  */
108
108
  export const removeNode = dual(2, function removeNode(ref, nodeIndex) {
109
109
  return RefSubject.update(ref, (g) => {
@@ -126,7 +126,7 @@ export const removeNode = dual(2, function removeNode(ref, nodeIndex) {
126
126
  * value. It acquires no resource; failures and services remain those of the source ref.
127
127
  *
128
128
  * @since 1.18.0
129
- * @category combinators
129
+ * @category State updates
130
130
  */
131
131
  export const updateNode = dual(3, function updateNode(ref, nodeIndex, f) {
132
132
  return RefSubject.update(ref, (g) => {
@@ -149,7 +149,7 @@ export const updateNode = dual(3, function updateNode(ref, nodeIndex, f) {
149
149
  * It acquires no resource; failures and services remain those of the source ref.
150
150
  *
151
151
  * @since 1.18.0
152
- * @category combinators
152
+ * @category State updates
153
153
  */
154
154
  export const addEdge = dual(4, function addEdge(ref, source, target, data) {
155
155
  return RefSubject.update(ref, (g) => {
@@ -172,7 +172,7 @@ export const addEdge = dual(4, function addEdge(ref, source, target, data) {
172
172
  * value. It acquires no resource; failures and services remain those of the source ref.
173
173
  *
174
174
  * @since 1.18.0
175
- * @category combinators
175
+ * @category State updates
176
176
  */
177
177
  export const removeEdge = dual(2, function removeEdge(ref, edgeIndex) {
178
178
  return RefSubject.update(ref, (g) => {
@@ -195,7 +195,7 @@ export const removeEdge = dual(2, function removeEdge(ref, edgeIndex) {
195
195
  * value. It acquires no resource; failures and services remain those of the source ref.
196
196
  *
197
197
  * @since 1.18.0
198
- * @category combinators
198
+ * @category State updates
199
199
  */
200
200
  export const updateEdge = dual(3, function updateEdge(ref, edgeIndex, f) {
201
201
  return RefSubject.update(ref, (g) => {
@@ -217,7 +217,7 @@ export const updateEdge = dual(3, function updateEdge(ref, edgeIndex, f) {
217
217
  * The Effect starts when run, participates in the source ref's serialized update boundary, and
218
218
  * acquires no resource. It returns the committed graph and retains the ref's E and R channels.
219
219
  * @since 1.18.0
220
- * @category combinators
220
+ * @category State updates
221
221
  */
222
222
  export const mapNodes = dual(2, function mapNodes(ref, f) {
223
223
  return RefSubject.update(ref, (g) => {
@@ -239,7 +239,7 @@ export const mapNodes = dual(2, function mapNodes(ref, f) {
239
239
  * The Effect starts when run, participates in the source ref's serialized update boundary, and
240
240
  * acquires no resource. It returns the committed graph and retains the ref's E and R channels.
241
241
  * @since 1.18.0
242
- * @category combinators
242
+ * @category State updates
243
243
  */
244
244
  export const mapEdges = dual(2, function mapEdges(ref, f) {
245
245
  return RefSubject.update(ref, (g) => {
@@ -261,7 +261,7 @@ export const mapEdges = dual(2, function mapEdges(ref, f) {
261
261
  * The Effect starts when run, participates in the source ref's serialized update boundary, and
262
262
  * acquires no resource. It returns the committed graph and retains the ref's E and R channels.
263
263
  * @since 1.18.0
264
- * @category combinators
264
+ * @category State updates
265
265
  */
266
266
  export const filterNodes = dual(2, function filterNodes(ref, predicate) {
267
267
  return RefSubject.update(ref, (g) => {
@@ -283,7 +283,7 @@ export const filterNodes = dual(2, function filterNodes(ref, predicate) {
283
283
  * The Effect starts when run, participates in the source ref's serialized update boundary, and
284
284
  * acquires no resource. It returns the committed graph and retains the ref's E and R channels.
285
285
  * @since 1.18.0
286
- * @category combinators
286
+ * @category State updates
287
287
  */
288
288
  export const filterEdges = dual(2, function filterEdges(ref, predicate) {
289
289
  return RefSubject.update(ref, (g) => {
@@ -306,7 +306,7 @@ export const filterEdges = dual(2, function filterEdges(ref, predicate) {
306
306
  * It acquires no resource; failures and services remain those of the source ref.
307
307
  *
308
308
  * @since 1.18.0
309
- * @category combinators
309
+ * @category State updates
310
310
  */
311
311
  export const reverse = (ref) => RefSubject.update(ref, (g) => {
312
312
  const mutable = Graph.beginMutation(g);
@@ -329,7 +329,7 @@ export const reverse = (ref) => RefSubject.update(ref, (g) => {
329
329
  * observation follows later pushes and its observing Scope owns subscription cleanup.
330
330
  *
331
331
  * @since 1.18.0
332
- * @category computed
332
+ * @category Derived queries
333
333
  */
334
334
  export const nodeCount = (ref) => RefSubject.map(ref, Graph.nodeCount);
335
335
  /**
@@ -345,7 +345,7 @@ export const nodeCount = (ref) => RefSubject.map(ref, Graph.nodeCount);
345
345
  * observation follows later pushes and its observing Scope owns subscription cleanup.
346
346
  *
347
347
  * @since 1.18.0
348
- * @category computed
348
+ * @category Derived queries
349
349
  */
350
350
  export const edgeCount = (ref) => RefSubject.map(ref, Graph.edgeCount);
351
351
  /**
@@ -362,7 +362,7 @@ export const edgeCount = (ref) => RefSubject.map(ref, Graph.edgeCount);
362
362
  * observation follows later pushes and its observing Scope owns subscription cleanup.
363
363
  *
364
364
  * @since 1.18.0
365
- * @category computed
365
+ * @category State predicates
366
366
  */
367
367
  export const hasNode = dual(2, function hasNode(ref, nodeIndex) {
368
368
  return RefSubject.map(ref, Graph.hasNode(nodeIndex));
@@ -381,7 +381,7 @@ export const hasNode = dual(2, function hasNode(ref, nodeIndex) {
381
381
  * observation follows later pushes and its observing Scope owns subscription cleanup.
382
382
  *
383
383
  * @since 1.18.0
384
- * @category computed
384
+ * @category State predicates
385
385
  */
386
386
  export const hasEdge = dual(3, function hasEdge(ref, source, target) {
387
387
  return RefSubject.map(ref, Graph.hasEdge(source, target));
@@ -400,7 +400,7 @@ export const hasEdge = dual(3, function hasEdge(ref, source, target) {
400
400
  * observation follows later pushes and its observing Scope owns subscription cleanup.
401
401
  *
402
402
  * @since 1.18.0
403
- * @category computed
403
+ * @category Derived queries
404
404
  */
405
405
  export const neighbors = dual(2, function neighbors(ref, nodeIndex) {
406
406
  return RefSubject.map(ref, Graph.neighbors(nodeIndex));
@@ -419,7 +419,7 @@ export const neighbors = dual(2, function neighbors(ref, nodeIndex) {
419
419
  * once; Fx observation follows later pushes and its observing Scope owns subscription cleanup.
420
420
  *
421
421
  * @since 1.18.0
422
- * @category computed
422
+ * @category Derived queries
423
423
  */
424
424
  export const neighborsDirected = dual(3, function neighborsDirected(ref, nodeIndex, direction) {
425
425
  return RefSubject.map(ref, Graph.neighborsDirected(nodeIndex, direction));
@@ -438,7 +438,7 @@ export const neighborsDirected = dual(3, function neighborsDirected(ref, nodeInd
438
438
  * observation follows later pushes and its observing Scope owns subscription cleanup.
439
439
  *
440
440
  * @since 1.18.0
441
- * @category computed
441
+ * @category State predicates
442
442
  */
443
443
  export const isAcyclic = (ref) => RefSubject.map(ref, Graph.isAcyclic);
444
444
  /**
@@ -455,7 +455,7 @@ export const isAcyclic = (ref) => RefSubject.map(ref, Graph.isAcyclic);
455
455
  * observation follows later pushes and its observing Scope owns subscription cleanup.
456
456
  *
457
457
  * @since 1.18.0
458
- * @category computed
458
+ * @category State predicates
459
459
  */
460
460
  export const isBipartite = (ref) => RefSubject.map(ref, Graph.isBipartite);
461
461
  /**
@@ -472,7 +472,7 @@ export const isBipartite = (ref) => RefSubject.map(ref, Graph.isBipartite);
472
472
  * once; Fx observation follows later pushes and its observing Scope owns subscription cleanup.
473
473
  *
474
474
  * @since 1.18.0
475
- * @category computed
475
+ * @category Derived queries
476
476
  */
477
477
  export const connectedComponents = (ref) => RefSubject.map(ref, Graph.connectedComponents);
478
478
  /**
@@ -490,7 +490,7 @@ export const connectedComponents = (ref) => RefSubject.map(ref, Graph.connectedC
490
490
  * cleanup.
491
491
  *
492
492
  * @since 1.18.0
493
- * @category computed
493
+ * @category Derived queries
494
494
  */
495
495
  export const stronglyConnectedComponents = (ref) => RefSubject.map(ref, Graph.stronglyConnectedComponents);
496
496
  // ========================================
@@ -510,7 +510,7 @@ export const stronglyConnectedComponents = (ref) => RefSubject.map(ref, Graph.st
510
510
  * while absent; the observing Scope owns and finalizes its Fx subscription.
511
511
  *
512
512
  * @since 1.18.0
513
- * @category filtered
513
+ * @category Optional queries
514
514
  */
515
515
  export const getNode = dual(2, function getNode(ref, nodeIndex) {
516
516
  return RefSubject.filterMap(ref, Graph.getNode(nodeIndex));
@@ -529,7 +529,7 @@ export const getNode = dual(2, function getNode(ref, nodeIndex) {
529
529
  * while absent; the observing Scope owns and finalizes its Fx subscription.
530
530
  *
531
531
  * @since 1.18.0
532
- * @category filtered
532
+ * @category Optional queries
533
533
  */
534
534
  export const getEdge = dual(2, function getEdge(ref, edgeIndex) {
535
535
  return RefSubject.filterMap(ref, (g) => Graph.getEdge(g, edgeIndex));
@@ -548,7 +548,7 @@ export const getEdge = dual(2, function getEdge(ref, edgeIndex) {
548
548
  * while absent; the observing Scope owns and finalizes its Fx subscription.
549
549
  *
550
550
  * @since 1.18.0
551
- * @category filtered
551
+ * @category Optional queries
552
552
  */
553
553
  export const findNode = dual(2, function findNode(ref, predicate) {
554
554
  return RefSubject.filterMap(ref, (g) => Graph.findNode(g, predicate));
@@ -567,7 +567,7 @@ export const findNode = dual(2, function findNode(ref, predicate) {
567
567
  * while absent; the observing Scope owns and finalizes its Fx subscription.
568
568
  *
569
569
  * @since 1.18.0
570
- * @category filtered
570
+ * @category Optional queries
571
571
  */
572
572
  export const findEdge = dual(2, function findEdge(ref, predicate) {
573
573
  return RefSubject.filterMap(ref, (g) => Graph.findEdge(g, predicate));
@@ -22,7 +22,7 @@ import * as RefSubject from "./RefSubject.js";
22
22
  * services, interruption, and Scope requirements expressed by its members.
23
23
  *
24
24
  * @since 1.18.0
25
- * @category models
25
+ * @category State models
26
26
  */
27
27
  export interface RefHashMap<in out K, in out V, in out E = never, out R = never> extends RefSubject.RefSubject<HashMap.HashMap<K, V>, E, R> {
28
28
  }
@@ -40,7 +40,7 @@ export interface RefHashMap<in out K, in out V, in out E = never, out R = never>
40
40
  * and cleanup; source failures and services stay on reads and pushes.
41
41
  *
42
42
  * @since 1.18.0
43
- * @category constructors
43
+ * @category Constructors
44
44
  */
45
45
  export declare function make<K, V, E = never, R = never>(initial: HashMap.HashMap<K, V> | Effect.Effect<HashMap.HashMap<K, V>, E, R> | Fx.Fx<HashMap.HashMap<K, V>, E, R>): Effect.Effect<RefHashMap<K, V, E>, never, R | Scope.Scope>;
46
46
  /**
@@ -57,7 +57,7 @@ export declare function make<K, V, E = never, R = never>(initial: HashMap.HashMa
57
57
  * It acquires no resource; failures and services remain those of the source ref.
58
58
  *
59
59
  * @since 1.18.0
60
- * @category combinators
60
+ * @category State updates
61
61
  */
62
62
  export declare const set: {
63
63
  <K, V>(key: K, value: V): <E, R>(ref: RefHashMap<K, V, E, R>) => Effect.Effect<HashMap.HashMap<K, V>, E, R>;
@@ -77,7 +77,7 @@ export declare const set: {
77
77
  * value. It acquires no resource; failures and services remain those of the source ref.
78
78
  *
79
79
  * @since 1.18.0
80
- * @category combinators
80
+ * @category State updates
81
81
  */
82
82
  export declare const remove: {
83
83
  <K>(key: K): <V, E, R>(ref: RefHashMap<K, V, E, R>) => Effect.Effect<HashMap.HashMap<K, V>, E, R>;
@@ -97,7 +97,7 @@ export declare const remove: {
97
97
  * value. It acquires no resource; failures and services remain those of the source ref.
98
98
  *
99
99
  * @since 1.18.0
100
- * @category combinators
100
+ * @category State updates
101
101
  */
102
102
  export declare const modify: {
103
103
  <K, V>(key: K, f: (v: V) => V): <E, R>(ref: RefHashMap<K, V, E, R>) => Effect.Effect<HashMap.HashMap<K, V>, E, R>;
@@ -117,7 +117,7 @@ export declare const modify: {
117
117
  * value. It acquires no resource; failures and services remain those of the source ref.
118
118
  *
119
119
  * @since 1.18.0
120
- * @category combinators
120
+ * @category State updates
121
121
  */
122
122
  export declare const modifyAt: {
123
123
  <K, V>(key: K, f: HashMap.HashMap.UpdateFn<V>): <E, R>(ref: RefHashMap<K, V, E, R>) => Effect.Effect<HashMap.HashMap<K, V>, E, R>;
@@ -137,7 +137,7 @@ export declare const modifyAt: {
137
137
  * value. It acquires no resource; failures and services remain those of the source ref.
138
138
  *
139
139
  * @since 1.18.0
140
- * @category combinators
140
+ * @category State updates
141
141
  */
142
142
  export declare const setMany: {
143
143
  <K, V>(entries: Iterable<readonly [K, V]>): <E, R>(ref: RefHashMap<K, V, E, R>) => Effect.Effect<HashMap.HashMap<K, V>, E, R>;
@@ -157,7 +157,7 @@ export declare const setMany: {
157
157
  * value. It acquires no resource; failures and services remain those of the source ref.
158
158
  *
159
159
  * @since 1.18.0
160
- * @category combinators
160
+ * @category State updates
161
161
  */
162
162
  export declare const removeMany: {
163
163
  <K>(keys: Iterable<K>): <V, E, R>(ref: RefHashMap<K, V, E, R>) => Effect.Effect<HashMap.HashMap<K, V>, E, R>;
@@ -177,7 +177,7 @@ export declare const removeMany: {
177
177
  * It acquires no resource; failures and services remain those of the source ref.
178
178
  *
179
179
  * @since 1.18.0
180
- * @category combinators
180
+ * @category State updates
181
181
  */
182
182
  export declare const clear: <K, V, E, R>(ref: RefHashMap<K, V, E, R>) => Effect.Effect<HashMap.HashMap<K, V>, E, R>;
183
183
  /**
@@ -194,7 +194,7 @@ export declare const clear: <K, V, E, R>(ref: RefHashMap<K, V, E, R>) => Effect.
194
194
  * It acquires no resource; failures and services remain those of the source ref.
195
195
  *
196
196
  * @since 1.18.0
197
- * @category combinators
197
+ * @category State updates
198
198
  */
199
199
  export declare const union: {
200
200
  <K, V>(that: HashMap.HashMap<K, V>): <E, R>(ref: RefHashMap<K, V, E, R>) => Effect.Effect<HashMap.HashMap<K, V>, E, R>;
@@ -213,7 +213,7 @@ export declare const union: {
213
213
  * The Effect starts when run, participates in the source ref's serialized update boundary, and
214
214
  * acquires no resource. It returns the committed HashMap and retains the ref's E and R channels.
215
215
  * @since 1.18.0
216
- * @category combinators
216
+ * @category State updates
217
217
  */
218
218
  export declare const filter: {
219
219
  <K, V>(predicate: (value: V, key: K) => boolean): <E, R>(ref: RefHashMap<K, V, E, R>) => Effect.Effect<HashMap.HashMap<K, V>, E, R>;
@@ -232,7 +232,7 @@ export declare const filter: {
232
232
  * The Effect starts when run, participates in the source ref's serialized update boundary, and
233
233
  * acquires no resource. It returns the committed HashMap and retains the ref's E and R channels.
234
234
  * @since 1.18.0
235
- * @category combinators
235
+ * @category State updates
236
236
  */
237
237
  export declare const map: {
238
238
  <K, V>(f: (value: V, key: K) => V): <E, R>(ref: RefHashMap<K, V, E, R>) => Effect.Effect<HashMap.HashMap<K, V>, E, R>;
@@ -252,7 +252,7 @@ export declare const map: {
252
252
  * observation follows later pushes and its observing Scope owns subscription cleanup.
253
253
  *
254
254
  * @since 1.18.0
255
- * @category computed
255
+ * @category Derived queries
256
256
  */
257
257
  export declare const size: <K, V, E, R>(ref: RefHashMap<K, V, E, R>) => RefSubject.Computed<number, E, R>;
258
258
  /**
@@ -269,7 +269,7 @@ export declare const size: <K, V, E, R>(ref: RefHashMap<K, V, E, R>) => RefSubje
269
269
  * observation follows later pushes and its observing Scope owns subscription cleanup.
270
270
  *
271
271
  * @since 1.18.0
272
- * @category computed
272
+ * @category State predicates
273
273
  */
274
274
  export declare const isEmpty: <K, V, E, R>(ref: RefHashMap<K, V, E, R>) => RefSubject.Computed<boolean, E, R>;
275
275
  /**
@@ -286,7 +286,7 @@ export declare const isEmpty: <K, V, E, R>(ref: RefHashMap<K, V, E, R>) => RefSu
286
286
  * observation follows later pushes and its observing Scope owns subscription cleanup.
287
287
  *
288
288
  * @since 1.18.0
289
- * @category computed
289
+ * @category State predicates
290
290
  */
291
291
  export declare const isNonEmpty: <K, V, E, R>(ref: RefHashMap<K, V, E, R>) => RefSubject.Computed<boolean, E, R>;
292
292
  /**
@@ -303,7 +303,7 @@ export declare const isNonEmpty: <K, V, E, R>(ref: RefHashMap<K, V, E, R>) => Re
303
303
  * observation follows later pushes and its observing Scope owns subscription cleanup.
304
304
  *
305
305
  * @since 1.18.0
306
- * @category computed
306
+ * @category Derived queries
307
307
  */
308
308
  export declare const keys: <K, V, E, R>(ref: RefHashMap<K, V, E, R>) => RefSubject.Computed<Array<K>, E, R>;
309
309
  /**
@@ -320,7 +320,7 @@ export declare const keys: <K, V, E, R>(ref: RefHashMap<K, V, E, R>) => RefSubje
320
320
  * observation follows later pushes and its observing Scope owns subscription cleanup.
321
321
  *
322
322
  * @since 1.18.0
323
- * @category computed
323
+ * @category Derived queries
324
324
  */
325
325
  export declare const values: <K, V, E, R>(ref: RefHashMap<K, V, E, R>) => RefSubject.Computed<Array<V>, E, R>;
326
326
  /**
@@ -337,7 +337,7 @@ export declare const values: <K, V, E, R>(ref: RefHashMap<K, V, E, R>) => RefSub
337
337
  * observation follows later pushes and its observing Scope owns subscription cleanup.
338
338
  *
339
339
  * @since 1.18.0
340
- * @category computed
340
+ * @category Derived queries
341
341
  */
342
342
  export declare const entries: <K, V, E, R>(ref: RefHashMap<K, V, E, R>) => RefSubject.Computed<Array<[K, V]>, E, R>;
343
343
  /**
@@ -354,7 +354,7 @@ export declare const entries: <K, V, E, R>(ref: RefHashMap<K, V, E, R>) => RefSu
354
354
  * observation follows later pushes and its observing Scope owns subscription cleanup.
355
355
  *
356
356
  * @since 1.18.0
357
- * @category computed
357
+ * @category State predicates
358
358
  */
359
359
  export declare const has: {
360
360
  <K>(key: K): <V, E, R>(ref: RefHashMap<K, V, E, R>) => RefSubject.Computed<boolean, E, R>;
@@ -374,7 +374,7 @@ export declare const has: {
374
374
  * observation follows later pushes and its observing Scope owns subscription cleanup.
375
375
  *
376
376
  * @since 1.18.0
377
- * @category computed
377
+ * @category Derived queries
378
378
  */
379
379
  export declare const mapValues: {
380
380
  <K, V, B>(f: (value: V, key: K) => B): <E, R>(ref: RefHashMap<K, V, E, R>) => RefSubject.Computed<HashMap.HashMap<K, B>, E, R>;
@@ -394,7 +394,7 @@ export declare const mapValues: {
394
394
  * observation follows later pushes and its observing Scope owns subscription cleanup.
395
395
  *
396
396
  * @since 1.18.0
397
- * @category computed
397
+ * @category Derived queries
398
398
  */
399
399
  export declare const filterValues: {
400
400
  <K, V>(predicate: (value: V, key: K) => boolean): <E, R>(ref: RefHashMap<K, V, E, R>) => RefSubject.Computed<HashMap.HashMap<K, V>, E, R>;
@@ -414,7 +414,7 @@ export declare const filterValues: {
414
414
  * Fx observation follows later pushes and its observing Scope owns subscription cleanup.
415
415
  *
416
416
  * @since 1.18.0
417
- * @category computed
417
+ * @category Derived queries
418
418
  */
419
419
  export declare const filterMapValues: {
420
420
  <K, V, B>(f: (value: V, key: K) => Option.Option<B>): <E, R>(ref: RefHashMap<K, V, E, R>) => RefSubject.Computed<HashMap.HashMap<K, B>, E, R>;
@@ -434,7 +434,7 @@ export declare const filterMapValues: {
434
434
  * observation follows later pushes and its observing Scope owns subscription cleanup.
435
435
  *
436
436
  * @since 1.18.0
437
- * @category computed
437
+ * @category Derived queries
438
438
  */
439
439
  export declare const reduce: {
440
440
  <K, V, B>(b: B, f: (b: B, value: V, key: K) => B): <E, R>(ref: RefHashMap<K, V, E, R>) => RefSubject.Computed<B, E, R>;
@@ -454,7 +454,7 @@ export declare const reduce: {
454
454
  * observation follows later pushes and its observing Scope owns subscription cleanup.
455
455
  *
456
456
  * @since 1.18.0
457
- * @category computed
457
+ * @category State predicates
458
458
  */
459
459
  export declare const some: {
460
460
  <K, V>(predicate: (value: V, key: K) => boolean): <E, R>(ref: RefHashMap<K, V, E, R>) => RefSubject.Computed<boolean, E, R>;
@@ -474,7 +474,7 @@ export declare const some: {
474
474
  * observation follows later pushes and its observing Scope owns subscription cleanup.
475
475
  *
476
476
  * @since 1.18.0
477
- * @category computed
477
+ * @category State predicates
478
478
  */
479
479
  export declare const every: {
480
480
  <K, V>(predicate: (value: V, key: K) => boolean): <E, R>(ref: RefHashMap<K, V, E, R>) => RefSubject.Computed<boolean, E, R>;
@@ -494,7 +494,7 @@ export declare const every: {
494
494
  * while absent; the observing Scope owns and finalizes its Fx subscription.
495
495
  *
496
496
  * @since 1.18.0
497
- * @category filtered
497
+ * @category Optional queries
498
498
  */
499
499
  export declare const get: {
500
500
  <K>(key: K): <V, E, R>(ref: RefHashMap<K, V, E, R>) => RefSubject.Filtered<V, E, R>;
@@ -514,7 +514,7 @@ export declare const get: {
514
514
  * while absent; the observing Scope owns and finalizes its Fx subscription.
515
515
  *
516
516
  * @since 1.18.0
517
- * @category filtered
517
+ * @category Optional queries
518
518
  */
519
519
  export declare const findFirst: {
520
520
  <K, V>(predicate: (value: V, key: K) => boolean): <E, R>(ref: RefHashMap<K, V, E, R>) => RefSubject.Filtered<[K, V], E, R>;