effect 4.0.0-beta.72 → 4.0.0-beta.74

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 (361) hide show
  1. package/dist/Array.d.ts +16 -16
  2. package/dist/Array.js +4 -4
  3. package/dist/Boolean.d.ts +2 -2
  4. package/dist/Boolean.js +2 -2
  5. package/dist/Channel.d.ts +63 -63
  6. package/dist/Channel.js +25 -25
  7. package/dist/Chunk.d.ts +17 -17
  8. package/dist/Chunk.js +5 -5
  9. package/dist/Context.d.ts +3 -3
  10. package/dist/Context.js +1 -1
  11. package/dist/Cron.d.ts +4 -4
  12. package/dist/Cron.js +4 -4
  13. package/dist/Deferred.d.ts +37 -37
  14. package/dist/Deferred.js +13 -13
  15. package/dist/Duration.d.ts +6 -6
  16. package/dist/Duration.js +2 -2
  17. package/dist/Effect.d.ts +58 -58
  18. package/dist/Effect.js +39 -39
  19. package/dist/Equal.d.ts +2 -2
  20. package/dist/Equal.js +2 -2
  21. package/dist/Equivalence.d.ts +1 -1
  22. package/dist/Equivalence.js +1 -1
  23. package/dist/ExecutionPlan.d.ts +2 -2
  24. package/dist/ExecutionPlan.js +1 -1
  25. package/dist/FileSystem.d.ts +6 -6
  26. package/dist/FileSystem.js +2 -2
  27. package/dist/Function.d.ts +5 -5
  28. package/dist/Function.js +5 -5
  29. package/dist/Graph.d.ts +11 -11
  30. package/dist/Graph.js +5 -5
  31. package/dist/HKT.d.ts +1 -1
  32. package/dist/HashMap.d.ts +3 -3
  33. package/dist/HashSet.d.ts +1 -1
  34. package/dist/Iterable.d.ts +15 -15
  35. package/dist/Iterable.js +5 -5
  36. package/dist/Layer.d.ts +16 -16
  37. package/dist/Layer.js +5 -5
  38. package/dist/Logger.d.ts +5 -5
  39. package/dist/Logger.js +4 -4
  40. package/dist/ManagedRuntime.d.ts +2 -2
  41. package/dist/Match.d.ts +20 -20
  42. package/dist/Match.js +16 -16
  43. package/dist/Metric.d.ts +16 -16
  44. package/dist/Metric.js +3 -3
  45. package/dist/Option.d.ts +36 -36
  46. package/dist/Option.js +17 -17
  47. package/dist/Order.d.ts +1 -1
  48. package/dist/Order.js +1 -1
  49. package/dist/Path.d.ts +1 -1
  50. package/dist/Path.js +1 -1
  51. package/dist/Pipeable.d.ts +1 -1
  52. package/dist/Pipeable.js +1 -1
  53. package/dist/Predicate.d.ts +5 -5
  54. package/dist/PubSub.d.ts +9 -9
  55. package/dist/PubSub.js +5 -5
  56. package/dist/Queue.d.ts +24 -24
  57. package/dist/Queue.js +20 -20
  58. package/dist/Record.d.ts +15 -15
  59. package/dist/Record.js +5 -5
  60. package/dist/Redacted.d.ts +2 -2
  61. package/dist/Redacted.js +1 -1
  62. package/dist/Ref.d.ts +6 -6
  63. package/dist/Ref.js +6 -6
  64. package/dist/RegExp.d.ts +1 -1
  65. package/dist/RegExp.js +1 -1
  66. package/dist/Request.d.ts +4 -4
  67. package/dist/RequestResolver.d.ts +6 -6
  68. package/dist/RequestResolver.js +2 -2
  69. package/dist/Resource.d.ts +1 -1
  70. package/dist/Resource.js +1 -1
  71. package/dist/Result.d.ts +18 -18
  72. package/dist/Result.js +11 -11
  73. package/dist/Schedule.d.ts +44 -44
  74. package/dist/Schedule.js +18 -18
  75. package/dist/Schema.d.ts +177 -459
  76. package/dist/Schema.d.ts.map +1 -1
  77. package/dist/Schema.js +25 -25
  78. package/dist/Schema.js.map +1 -1
  79. package/dist/SchemaAST.d.ts +1 -1
  80. package/dist/SchemaGetter.d.ts +13 -13
  81. package/dist/SchemaGetter.js +12 -12
  82. package/dist/SchemaParser.d.ts +3 -3
  83. package/dist/SchemaParser.js +3 -3
  84. package/dist/Scope.d.ts +1 -1
  85. package/dist/Scope.js +1 -1
  86. package/dist/Sink.d.ts +5 -5
  87. package/dist/Sink.js +3 -3
  88. package/dist/Stream.d.ts +55 -55
  89. package/dist/Stream.js +21 -21
  90. package/dist/String.d.ts +5 -5
  91. package/dist/String.js +3 -3
  92. package/dist/Struct.d.ts +8 -8
  93. package/dist/Struct.js +3 -3
  94. package/dist/SynchronizedRef.d.ts +57 -57
  95. package/dist/SynchronizedRef.js +19 -19
  96. package/dist/Terminal.d.ts +1 -1
  97. package/dist/Terminal.js +1 -1
  98. package/dist/Tracer.d.ts +5 -5
  99. package/dist/Tracer.js +2 -2
  100. package/dist/Tuple.d.ts +14 -14
  101. package/dist/Tuple.js +6 -6
  102. package/dist/TxHashMap.d.ts +3 -3
  103. package/dist/TxHashSet.d.ts +1 -1
  104. package/dist/Unify.d.ts +7 -7
  105. package/dist/Unify.js +1 -1
  106. package/dist/testing/TestClock.d.ts +5 -5
  107. package/dist/testing/TestClock.js +4 -4
  108. package/dist/testing/TestConsole.d.ts +3 -3
  109. package/dist/testing/TestConsole.js +3 -3
  110. package/dist/unstable/ai/Chat.d.ts +2 -2
  111. package/dist/unstable/ai/Chat.js +2 -2
  112. package/dist/unstable/ai/EmbeddingModel.d.ts +1 -1
  113. package/dist/unstable/ai/IdGenerator.d.ts +2 -2
  114. package/dist/unstable/ai/IdGenerator.js +1 -1
  115. package/dist/unstable/ai/LanguageModel.d.ts +4 -4
  116. package/dist/unstable/ai/LanguageModel.js +1 -1
  117. package/dist/unstable/ai/Prompt.d.ts +15 -15
  118. package/dist/unstable/ai/Prompt.js +1 -1
  119. package/dist/unstable/ai/Telemetry.d.ts +5 -5
  120. package/dist/unstable/ai/Telemetry.js +2 -2
  121. package/dist/unstable/ai/Tokenizer.d.ts +1 -1
  122. package/dist/unstable/ai/Tokenizer.js +1 -1
  123. package/dist/unstable/ai/Tool.d.ts +6 -6
  124. package/dist/unstable/ai/Tool.js +6 -6
  125. package/dist/unstable/cli/Command.d.ts.map +1 -1
  126. package/dist/unstable/cli/Command.js +1 -1
  127. package/dist/unstable/cli/Command.js.map +1 -1
  128. package/dist/unstable/cli/Param.d.ts +1 -1
  129. package/dist/unstable/cli/Primitive.d.ts +3 -3
  130. package/dist/unstable/cli/Primitive.js +1 -1
  131. package/dist/unstable/cli/Prompt.d.ts +11 -11
  132. package/dist/unstable/cli/internal/parser.js +145 -10
  133. package/dist/unstable/cli/internal/parser.js.map +1 -1
  134. package/dist/unstable/cluster/Entity.d.ts +1 -1
  135. package/dist/unstable/cluster/Entity.js +1 -1
  136. package/dist/unstable/cluster/EntityResource.d.ts +1 -0
  137. package/dist/unstable/cluster/EntityResource.d.ts.map +1 -1
  138. package/dist/unstable/cluster/EntityResource.js +5 -3
  139. package/dist/unstable/cluster/EntityResource.js.map +1 -1
  140. package/dist/unstable/cluster/HttpRunner.d.ts +2 -2
  141. package/dist/unstable/cluster/HttpRunner.js +2 -2
  142. package/dist/unstable/cluster/K8sHttpClient.d.ts +1 -1
  143. package/dist/unstable/cluster/K8sHttpClient.js +1 -1
  144. package/dist/unstable/cluster/Runners.d.ts +1 -1
  145. package/dist/unstable/cluster/Runners.js +1 -1
  146. package/dist/unstable/cluster/Sharding.d.ts +1 -1
  147. package/dist/unstable/cluster/Sharding.js +1 -1
  148. package/dist/unstable/cluster/SingletonAddress.d.ts +1 -1
  149. package/dist/unstable/cluster/SingletonAddress.js +1 -1
  150. package/dist/unstable/cluster/Snowflake.d.ts +5 -5
  151. package/dist/unstable/cluster/Snowflake.js +5 -5
  152. package/dist/unstable/devtools/DevToolsClient.d.ts +1 -1
  153. package/dist/unstable/devtools/DevToolsClient.js +1 -1
  154. package/dist/unstable/eventlog/EventLog.d.ts +1 -1
  155. package/dist/unstable/eventlog/EventLog.js +1 -1
  156. package/dist/unstable/eventlog/EventLogEncryption.d.ts +1 -1
  157. package/dist/unstable/eventlog/EventLogEncryption.js +1 -1
  158. package/dist/unstable/eventlog/EventLogRemote.d.ts +1 -1
  159. package/dist/unstable/eventlog/EventLogRemote.js +1 -1
  160. package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts +3 -3
  161. package/dist/unstable/eventlog/EventLogServerUnencrypted.js +3 -3
  162. package/dist/unstable/http/Cookies.d.ts +1 -1
  163. package/dist/unstable/http/Etag.d.ts +1 -1
  164. package/dist/unstable/http/Etag.js +1 -1
  165. package/dist/unstable/http/FetchHttpClient.d.ts +2 -2
  166. package/dist/unstable/http/FetchHttpClient.js +2 -2
  167. package/dist/unstable/http/HttpClient.d.ts +1 -1
  168. package/dist/unstable/http/HttpClient.js +1 -1
  169. package/dist/unstable/http/HttpClientRequest.d.ts +2 -2
  170. package/dist/unstable/http/HttpMiddleware.d.ts +1 -1
  171. package/dist/unstable/http/HttpMiddleware.js +1 -1
  172. package/dist/unstable/http/HttpPlatform.d.ts +1 -1
  173. package/dist/unstable/http/HttpPlatform.js +1 -1
  174. package/dist/unstable/http/HttpRouter.d.ts +4 -4
  175. package/dist/unstable/http/HttpRouter.js +4 -4
  176. package/dist/unstable/http/HttpServerResponse.d.ts +3 -3
  177. package/dist/unstable/http/Url.d.ts +33 -33
  178. package/dist/unstable/http/Url.js +11 -11
  179. package/dist/unstable/httpapi/HttpApi.d.ts +1 -1
  180. package/dist/unstable/httpapi/HttpApi.js +1 -1
  181. package/dist/unstable/httpapi/HttpApiBuilder.js +2 -3
  182. package/dist/unstable/httpapi/HttpApiBuilder.js.map +1 -1
  183. package/dist/unstable/httpapi/HttpApiError.d.ts +13 -13
  184. package/dist/unstable/httpapi/HttpApiError.js +13 -13
  185. package/dist/unstable/httpapi/HttpApiSecurity.d.ts +27 -5
  186. package/dist/unstable/httpapi/HttpApiSecurity.d.ts.map +1 -1
  187. package/dist/unstable/httpapi/HttpApiSecurity.js +26 -3
  188. package/dist/unstable/httpapi/HttpApiSecurity.js.map +1 -1
  189. package/dist/unstable/httpapi/OpenApi.js +2 -2
  190. package/dist/unstable/httpapi/OpenApi.js.map +1 -1
  191. package/dist/unstable/observability/PrometheusMetrics.d.ts +4 -4
  192. package/dist/unstable/observability/PrometheusMetrics.js +2 -2
  193. package/dist/unstable/persistence/KeyValueStore.d.ts +3 -3
  194. package/dist/unstable/persistence/KeyValueStore.js +1 -1
  195. package/dist/unstable/persistence/Persistable.d.ts +2 -2
  196. package/dist/unstable/persistence/Persistable.js +2 -2
  197. package/dist/unstable/persistence/PersistedQueue.d.ts +8 -8
  198. package/dist/unstable/persistence/PersistedQueue.js +8 -8
  199. package/dist/unstable/persistence/RateLimiter.d.ts +1 -1
  200. package/dist/unstable/persistence/RateLimiter.js +1 -1
  201. package/dist/unstable/process/ChildProcess.d.ts +5 -5
  202. package/dist/unstable/process/ChildProcess.js +2 -2
  203. package/dist/unstable/reactivity/AsyncResult.d.ts +4 -4
  204. package/dist/unstable/reactivity/AsyncResult.js +1 -1
  205. package/dist/unstable/reactivity/Atom.d.ts +1 -1
  206. package/dist/unstable/reactivity/Atom.js +1 -1
  207. package/dist/unstable/reactivity/AtomRegistry.d.ts +1 -1
  208. package/dist/unstable/reactivity/AtomRegistry.js +1 -1
  209. package/dist/unstable/reactivity/Reactivity.d.ts +1 -1
  210. package/dist/unstable/reactivity/Reactivity.js +1 -1
  211. package/dist/unstable/rpc/Rpc.d.ts +5 -5
  212. package/dist/unstable/rpc/Rpc.js +1 -1
  213. package/dist/unstable/rpc/RpcMiddleware.d.ts +1 -1
  214. package/dist/unstable/rpc/RpcMiddleware.js +1 -1
  215. package/dist/unstable/rpc/RpcSchema.d.ts +3 -3
  216. package/dist/unstable/rpc/RpcSchema.js +2 -2
  217. package/dist/unstable/schema/Model.d.ts +2 -2
  218. package/dist/unstable/schema/Model.js +1 -1
  219. package/dist/unstable/socket/Socket.d.ts +3 -3
  220. package/dist/unstable/socket/Socket.js +3 -3
  221. package/dist/unstable/socket/SocketServer.d.ts +1 -1
  222. package/dist/unstable/socket/SocketServer.js +1 -1
  223. package/dist/unstable/sql/Migrator.d.ts +1 -1
  224. package/dist/unstable/sql/SqlClient.d.ts +3 -3
  225. package/dist/unstable/sql/SqlClient.js +2 -2
  226. package/dist/unstable/sql/SqlConnection.d.ts +1 -1
  227. package/dist/unstable/sql/SqlConnection.js +1 -1
  228. package/dist/unstable/sql/Statement.d.ts +2 -2
  229. package/dist/unstable/sql/Statement.js +2 -2
  230. package/dist/unstable/workers/Transferable.d.ts +1 -1
  231. package/dist/unstable/workers/Transferable.js +1 -1
  232. package/dist/unstable/workers/Worker.d.ts +1 -1
  233. package/dist/unstable/workers/Worker.js +1 -1
  234. package/dist/unstable/workflow/Activity.d.ts +1 -1
  235. package/dist/unstable/workflow/Activity.js +1 -1
  236. package/dist/unstable/workflow/DurableDeferred.d.ts +1 -1
  237. package/dist/unstable/workflow/DurableDeferred.js +1 -1
  238. package/package.json +1 -1
  239. package/src/Array.ts +16 -16
  240. package/src/Boolean.ts +2 -2
  241. package/src/Channel.ts +67 -67
  242. package/src/Chunk.ts +18 -18
  243. package/src/Context.ts +4 -4
  244. package/src/Cron.ts +4 -4
  245. package/src/Deferred.ts +37 -37
  246. package/src/Duration.ts +6 -6
  247. package/src/Effect.ts +58 -58
  248. package/src/Equal.ts +2 -2
  249. package/src/Equivalence.ts +1 -1
  250. package/src/ExecutionPlan.ts +2 -2
  251. package/src/FileSystem.ts +6 -6
  252. package/src/Function.ts +5 -5
  253. package/src/Graph.ts +11 -11
  254. package/src/HKT.ts +1 -1
  255. package/src/HashMap.ts +3 -3
  256. package/src/HashSet.ts +1 -1
  257. package/src/Iterable.ts +15 -15
  258. package/src/Layer.ts +16 -16
  259. package/src/Logger.ts +7 -7
  260. package/src/ManagedRuntime.ts +2 -2
  261. package/src/Match.ts +20 -20
  262. package/src/Metric.ts +20 -20
  263. package/src/Option.ts +36 -36
  264. package/src/Order.ts +1 -1
  265. package/src/Path.ts +1 -1
  266. package/src/Pipeable.ts +1 -1
  267. package/src/Predicate.ts +5 -5
  268. package/src/PubSub.ts +9 -9
  269. package/src/Queue.ts +24 -24
  270. package/src/Record.ts +15 -15
  271. package/src/Redacted.ts +2 -2
  272. package/src/Ref.ts +18 -18
  273. package/src/RegExp.ts +1 -1
  274. package/src/Request.ts +4 -4
  275. package/src/RequestResolver.ts +8 -8
  276. package/src/Resource.ts +1 -1
  277. package/src/Result.ts +18 -18
  278. package/src/Schedule.ts +45 -45
  279. package/src/Schema.ts +177 -459
  280. package/src/SchemaAST.ts +1 -1
  281. package/src/SchemaGetter.ts +13 -13
  282. package/src/SchemaParser.ts +3 -3
  283. package/src/Scope.ts +1 -1
  284. package/src/Sink.ts +5 -5
  285. package/src/Stream.ts +57 -57
  286. package/src/String.ts +5 -5
  287. package/src/Struct.ts +8 -8
  288. package/src/SynchronizedRef.ts +57 -57
  289. package/src/Terminal.ts +1 -1
  290. package/src/Tracer.ts +5 -5
  291. package/src/Tuple.ts +14 -14
  292. package/src/TxHashMap.ts +3 -3
  293. package/src/TxHashSet.ts +1 -1
  294. package/src/Unify.ts +7 -7
  295. package/src/testing/TestClock.ts +5 -5
  296. package/src/testing/TestConsole.ts +3 -3
  297. package/src/unstable/ai/Chat.ts +2 -2
  298. package/src/unstable/ai/EmbeddingModel.ts +1 -1
  299. package/src/unstable/ai/IdGenerator.ts +2 -2
  300. package/src/unstable/ai/LanguageModel.ts +4 -4
  301. package/src/unstable/ai/Prompt.ts +15 -15
  302. package/src/unstable/ai/Telemetry.ts +5 -5
  303. package/src/unstable/ai/Tokenizer.ts +1 -1
  304. package/src/unstable/ai/Tool.ts +6 -6
  305. package/src/unstable/cli/Command.ts +5 -1
  306. package/src/unstable/cli/Param.ts +1 -1
  307. package/src/unstable/cli/Primitive.ts +3 -3
  308. package/src/unstable/cli/Prompt.ts +11 -11
  309. package/src/unstable/cli/internal/parser.ts +204 -10
  310. package/src/unstable/cluster/Entity.ts +1 -1
  311. package/src/unstable/cluster/EntityResource.ts +8 -4
  312. package/src/unstable/cluster/HttpRunner.ts +2 -2
  313. package/src/unstable/cluster/K8sHttpClient.ts +1 -1
  314. package/src/unstable/cluster/Runners.ts +1 -1
  315. package/src/unstable/cluster/Sharding.ts +1 -1
  316. package/src/unstable/cluster/SingletonAddress.ts +1 -1
  317. package/src/unstable/cluster/Snowflake.ts +5 -5
  318. package/src/unstable/devtools/DevToolsClient.ts +1 -1
  319. package/src/unstable/eventlog/EventLog.ts +1 -1
  320. package/src/unstable/eventlog/EventLogEncryption.ts +1 -1
  321. package/src/unstable/eventlog/EventLogRemote.ts +1 -1
  322. package/src/unstable/eventlog/EventLogServerUnencrypted.ts +3 -3
  323. package/src/unstable/http/Cookies.ts +1 -1
  324. package/src/unstable/http/Etag.ts +1 -1
  325. package/src/unstable/http/FetchHttpClient.ts +2 -2
  326. package/src/unstable/http/HttpClient.ts +1 -1
  327. package/src/unstable/http/HttpClientRequest.ts +2 -2
  328. package/src/unstable/http/HttpMiddleware.ts +1 -1
  329. package/src/unstable/http/HttpPlatform.ts +1 -1
  330. package/src/unstable/http/HttpRouter.ts +4 -4
  331. package/src/unstable/http/HttpServerResponse.ts +3 -3
  332. package/src/unstable/http/Url.ts +33 -33
  333. package/src/unstable/httpapi/HttpApi.ts +1 -1
  334. package/src/unstable/httpapi/HttpApiBuilder.ts +2 -3
  335. package/src/unstable/httpapi/HttpApiError.ts +13 -13
  336. package/src/unstable/httpapi/HttpApiSecurity.ts +36 -8
  337. package/src/unstable/httpapi/OpenApi.ts +2 -2
  338. package/src/unstable/observability/PrometheusMetrics.ts +4 -4
  339. package/src/unstable/persistence/KeyValueStore.ts +3 -3
  340. package/src/unstable/persistence/Persistable.ts +2 -2
  341. package/src/unstable/persistence/PersistedQueue.ts +8 -8
  342. package/src/unstable/persistence/RateLimiter.ts +1 -1
  343. package/src/unstable/process/ChildProcess.ts +5 -5
  344. package/src/unstable/reactivity/AsyncResult.ts +4 -4
  345. package/src/unstable/reactivity/Atom.ts +1 -1
  346. package/src/unstable/reactivity/AtomRegistry.ts +1 -1
  347. package/src/unstable/reactivity/Reactivity.ts +1 -1
  348. package/src/unstable/rpc/Rpc.ts +5 -5
  349. package/src/unstable/rpc/RpcMiddleware.ts +1 -1
  350. package/src/unstable/rpc/RpcSchema.ts +3 -3
  351. package/src/unstable/schema/Model.ts +2 -2
  352. package/src/unstable/socket/Socket.ts +3 -3
  353. package/src/unstable/socket/SocketServer.ts +1 -1
  354. package/src/unstable/sql/Migrator.ts +1 -1
  355. package/src/unstable/sql/SqlClient.ts +3 -3
  356. package/src/unstable/sql/SqlConnection.ts +1 -1
  357. package/src/unstable/sql/Statement.ts +2 -2
  358. package/src/unstable/workers/Transferable.ts +1 -1
  359. package/src/unstable/workers/Worker.ts +1 -1
  360. package/src/unstable/workflow/Activity.ts +1 -1
  361. package/src/unstable/workflow/DurableDeferred.ts +1 -1
@@ -276,7 +276,7 @@ _await as await };
276
276
  *
277
277
  * @see {@link completeWith} for storing an effect directly without memoizing its result
278
278
  *
279
- * @category utils
279
+ * @category completion
280
280
  * @since 2.0.0
281
281
  */
282
282
  export declare const complete: {
@@ -311,7 +311,7 @@ export declare const complete: {
311
311
  *
312
312
  * @see {@link completeWith} for storing an effect directly without memoizing its result
313
313
  *
314
- * @category utils
314
+ * @category completion
315
315
  * @since 2.0.0
316
316
  */
317
317
  <A, E, R>(effect: Effect<A, E, R>): (self: Deferred<A, E>) => Effect<boolean, never, R>;
@@ -346,7 +346,7 @@ export declare const complete: {
346
346
  *
347
347
  * @see {@link completeWith} for storing an effect directly without memoizing its result
348
348
  *
349
- * @category utils
349
+ * @category completion
350
350
  * @since 2.0.0
351
351
  */
352
352
  <A, E, R>(self: Deferred<A, E>, effect: Effect<A, E, R>): Effect<boolean, never, R>;
@@ -387,7 +387,7 @@ export declare const complete: {
387
387
  * @see {@link complete} for running an effect once and sharing its result
388
388
  * @see {@link done} for completing from an already computed `Exit`
389
389
  *
390
- * @category utils
390
+ * @category completion
391
391
  * @since 2.0.0
392
392
  */
393
393
  export declare const completeWith: {
@@ -427,7 +427,7 @@ export declare const completeWith: {
427
427
  * @see {@link complete} for running an effect once and sharing its result
428
428
  * @see {@link done} for completing from an already computed `Exit`
429
429
  *
430
- * @category utils
430
+ * @category completion
431
431
  * @since 2.0.0
432
432
  */
433
433
  <A, E>(effect: Effect<A, E>): (self: Deferred<A, E>) => Effect<boolean>;
@@ -467,7 +467,7 @@ export declare const completeWith: {
467
467
  * @see {@link complete} for running an effect once and sharing its result
468
468
  * @see {@link done} for completing from an already computed `Exit`
469
469
  *
470
- * @category utils
470
+ * @category completion
471
471
  * @since 2.0.0
472
472
  */
473
473
  <A, E>(self: Deferred<A, E>, effect: Effect<A, E>): Effect<boolean>;
@@ -504,7 +504,7 @@ export declare const completeWith: {
504
504
  * @see {@link succeed} for completing with a success value
505
505
  * @see {@link failCause} for completing with a failure cause
506
506
  *
507
- * @category utils
507
+ * @category completion
508
508
  * @since 2.0.0
509
509
  */
510
510
  export declare const done: {
@@ -540,7 +540,7 @@ export declare const done: {
540
540
  * @see {@link succeed} for completing with a success value
541
541
  * @see {@link failCause} for completing with a failure cause
542
542
  *
543
- * @category utils
543
+ * @category completion
544
544
  * @since 2.0.0
545
545
  */
546
546
  <A, E>(exit: Exit.Exit<A, E>): (self: Deferred<A, E>) => Effect<boolean>;
@@ -576,7 +576,7 @@ export declare const done: {
576
576
  * @see {@link succeed} for completing with a success value
577
577
  * @see {@link failCause} for completing with a failure cause
578
578
  *
579
- * @category utils
579
+ * @category completion
580
580
  * @since 2.0.0
581
581
  */
582
582
  <A, E>(self: Deferred<A, E>, exit: Exit.Exit<A, E>): Effect<boolean>;
@@ -606,7 +606,7 @@ export declare const done: {
606
606
  * })
607
607
  * ```
608
608
  *
609
- * @category utils
609
+ * @category completion
610
610
  * @since 2.0.0
611
611
  */
612
612
  export declare const fail: {
@@ -635,7 +635,7 @@ export declare const fail: {
635
635
  * })
636
636
  * ```
637
637
  *
638
- * @category utils
638
+ * @category completion
639
639
  * @since 2.0.0
640
640
  */
641
641
  <E>(error: E): <A>(self: Deferred<A, E>) => Effect<boolean>;
@@ -664,7 +664,7 @@ export declare const fail: {
664
664
  * })
665
665
  * ```
666
666
  *
667
- * @category utils
667
+ * @category completion
668
668
  * @since 2.0.0
669
669
  */
670
670
  <A, E>(self: Deferred<A, E>, error: E): Effect<boolean>;
@@ -695,7 +695,7 @@ export declare const fail: {
695
695
  * })
696
696
  * ```
697
697
  *
698
- * @category utils
698
+ * @category completion
699
699
  * @since 2.0.0
700
700
  */
701
701
  export declare const failSync: {
@@ -725,7 +725,7 @@ export declare const failSync: {
725
725
  * })
726
726
  * ```
727
727
  *
728
- * @category utils
728
+ * @category completion
729
729
  * @since 2.0.0
730
730
  */
731
731
  <E>(evaluate: LazyArg<E>): <A>(self: Deferred<A, E>) => Effect<boolean>;
@@ -755,7 +755,7 @@ export declare const failSync: {
755
755
  * })
756
756
  * ```
757
757
  *
758
- * @category utils
758
+ * @category completion
759
759
  * @since 2.0.0
760
760
  */
761
761
  <A, E>(self: Deferred<A, E>, evaluate: LazyArg<E>): Effect<boolean>;
@@ -788,7 +788,7 @@ export declare const failSync: {
788
788
  * })
789
789
  * ```
790
790
  *
791
- * @category utils
791
+ * @category completion
792
792
  * @since 2.0.0
793
793
  */
794
794
  export declare const failCause: {
@@ -820,7 +820,7 @@ export declare const failCause: {
820
820
  * })
821
821
  * ```
822
822
  *
823
- * @category utils
823
+ * @category completion
824
824
  * @since 2.0.0
825
825
  */
826
826
  <E>(cause: Cause.Cause<E>): <A>(self: Deferred<A, E>) => Effect<boolean>;
@@ -852,7 +852,7 @@ export declare const failCause: {
852
852
  * })
853
853
  * ```
854
854
  *
855
- * @category utils
855
+ * @category completion
856
856
  * @since 2.0.0
857
857
  */
858
858
  <A, E>(self: Deferred<A, E>, cause: Cause.Cause<E>): Effect<boolean>;
@@ -886,7 +886,7 @@ export declare const failCause: {
886
886
  * })
887
887
  * ```
888
888
  *
889
- * @category utils
889
+ * @category completion
890
890
  * @since 2.0.0
891
891
  */
892
892
  export declare const failCauseSync: {
@@ -919,7 +919,7 @@ export declare const failCauseSync: {
919
919
  * })
920
920
  * ```
921
921
  *
922
- * @category utils
922
+ * @category completion
923
923
  * @since 2.0.0
924
924
  */
925
925
  <E>(evaluate: LazyArg<Cause.Cause<E>>): <A>(self: Deferred<A, E>) => Effect<boolean>;
@@ -952,7 +952,7 @@ export declare const failCauseSync: {
952
952
  * })
953
953
  * ```
954
954
  *
955
- * @category utils
955
+ * @category completion
956
956
  * @since 2.0.0
957
957
  */
958
958
  <A, E>(self: Deferred<A, E>, evaluate: LazyArg<Cause.Cause<E>>): Effect<boolean>;
@@ -985,7 +985,7 @@ export declare const failCauseSync: {
985
985
  * })
986
986
  * ```
987
987
  *
988
- * @category utils
988
+ * @category completion
989
989
  * @since 2.0.0
990
990
  */
991
991
  export declare const die: {
@@ -1017,7 +1017,7 @@ export declare const die: {
1017
1017
  * })
1018
1018
  * ```
1019
1019
  *
1020
- * @category utils
1020
+ * @category completion
1021
1021
  * @since 2.0.0
1022
1022
  */
1023
1023
  (defect: unknown): <A, E>(self: Deferred<A, E>) => Effect<boolean>;
@@ -1049,7 +1049,7 @@ export declare const die: {
1049
1049
  * })
1050
1050
  * ```
1051
1051
  *
1052
- * @category utils
1052
+ * @category completion
1053
1053
  * @since 2.0.0
1054
1054
  */
1055
1055
  <A, E>(self: Deferred<A, E>, defect: unknown): Effect<boolean>;
@@ -1083,7 +1083,7 @@ export declare const die: {
1083
1083
  * })
1084
1084
  * ```
1085
1085
  *
1086
- * @category utils
1086
+ * @category completion
1087
1087
  * @since 2.0.0
1088
1088
  */
1089
1089
  export declare const dieSync: {
@@ -1116,7 +1116,7 @@ export declare const dieSync: {
1116
1116
  * })
1117
1117
  * ```
1118
1118
  *
1119
- * @category utils
1119
+ * @category completion
1120
1120
  * @since 2.0.0
1121
1121
  */
1122
1122
  (evaluate: LazyArg<unknown>): <A, E>(self: Deferred<A, E>) => Effect<boolean>;
@@ -1149,7 +1149,7 @@ export declare const dieSync: {
1149
1149
  * })
1150
1150
  * ```
1151
1151
  *
1152
- * @category utils
1152
+ * @category completion
1153
1153
  * @since 2.0.0
1154
1154
  */
1155
1155
  <A, E>(self: Deferred<A, E>, evaluate: LazyArg<unknown>): Effect<boolean>;
@@ -1180,7 +1180,7 @@ export declare const dieSync: {
1180
1180
  * })
1181
1181
  * ```
1182
1182
  *
1183
- * @category utils
1183
+ * @category completion
1184
1184
  * @since 2.0.0
1185
1185
  */
1186
1186
  export declare const interrupt: <A, E>(self: Deferred<A, E>) => Effect<boolean>;
@@ -1210,7 +1210,7 @@ export declare const interrupt: <A, E>(self: Deferred<A, E>) => Effect<boolean>;
1210
1210
  * })
1211
1211
  * ```
1212
1212
  *
1213
- * @category utils
1213
+ * @category completion
1214
1214
  * @since 2.0.0
1215
1215
  */
1216
1216
  export declare const interruptWith: {
@@ -1240,7 +1240,7 @@ export declare const interruptWith: {
1240
1240
  * })
1241
1241
  * ```
1242
1242
  *
1243
- * @category utils
1243
+ * @category completion
1244
1244
  * @since 2.0.0
1245
1245
  */
1246
1246
  (fiberId: number): <A, E>(self: Deferred<A, E>) => Effect<boolean>;
@@ -1270,7 +1270,7 @@ export declare const interruptWith: {
1270
1270
  * })
1271
1271
  * ```
1272
1272
  *
1273
- * @category utils
1273
+ * @category completion
1274
1274
  * @since 2.0.0
1275
1275
  */
1276
1276
  <A, E>(self: Deferred<A, E>, fiberId: number): Effect<boolean>;
@@ -1375,7 +1375,7 @@ export declare function poll<A, E>(self: Deferred<A, E>): Effect<Option.Option<E
1375
1375
  * })
1376
1376
  * ```
1377
1377
  *
1378
- * @category utils
1378
+ * @category completion
1379
1379
  * @since 2.0.0
1380
1380
  */
1381
1381
  export declare const succeed: {
@@ -1406,7 +1406,7 @@ export declare const succeed: {
1406
1406
  * })
1407
1407
  * ```
1408
1408
  *
1409
- * @category utils
1409
+ * @category completion
1410
1410
  * @since 2.0.0
1411
1411
  */
1412
1412
  <A>(value: A): <E>(self: Deferred<A, E>) => Effect<boolean>;
@@ -1437,7 +1437,7 @@ export declare const succeed: {
1437
1437
  * })
1438
1438
  * ```
1439
1439
  *
1440
- * @category utils
1440
+ * @category completion
1441
1441
  * @since 2.0.0
1442
1442
  */
1443
1443
  <A, E>(self: Deferred<A, E>, value: A): Effect<boolean>;
@@ -1470,7 +1470,7 @@ export declare const succeed: {
1470
1470
  * })
1471
1471
  * ```
1472
1472
  *
1473
- * @category utils
1473
+ * @category completion
1474
1474
  * @since 2.0.0
1475
1475
  */
1476
1476
  export declare const sync: {
@@ -1502,7 +1502,7 @@ export declare const sync: {
1502
1502
  * })
1503
1503
  * ```
1504
1504
  *
1505
- * @category utils
1505
+ * @category completion
1506
1506
  * @since 2.0.0
1507
1507
  */
1508
1508
  <A>(evaluate: LazyArg<A>): <E>(self: Deferred<A, E>) => Effect<boolean>;
@@ -1534,7 +1534,7 @@ export declare const sync: {
1534
1534
  * })
1535
1535
  * ```
1536
1536
  *
1537
- * @category utils
1537
+ * @category completion
1538
1538
  * @since 2.0.0
1539
1539
  */
1540
1540
  <A, E>(self: Deferred<A, E>, evaluate: LazyArg<A>): Effect<boolean>;
package/dist/Deferred.js CHANGED
@@ -151,7 +151,7 @@ _await as await };
151
151
  *
152
152
  * @see {@link completeWith} for storing an effect directly without memoizing its result
153
153
  *
154
- * @category utils
154
+ * @category completion
155
155
  * @since 2.0.0
156
156
  */
157
157
  export const complete = /*#__PURE__*/dual(2, (self, effect) => internalEffect.suspend(() => self.effect ? internalEffect.succeed(false) : into(effect, self)));
@@ -191,7 +191,7 @@ export const complete = /*#__PURE__*/dual(2, (self, effect) => internalEffect.su
191
191
  * @see {@link complete} for running an effect once and sharing its result
192
192
  * @see {@link done} for completing from an already computed `Exit`
193
193
  *
194
- * @category utils
194
+ * @category completion
195
195
  * @since 2.0.0
196
196
  */
197
197
  export const completeWith = /*#__PURE__*/dual(2, (self, effect) => internalEffect.sync(() => doneUnsafe(self, effect)));
@@ -227,7 +227,7 @@ export const completeWith = /*#__PURE__*/dual(2, (self, effect) => internalEffec
227
227
  * @see {@link succeed} for completing with a success value
228
228
  * @see {@link failCause} for completing with a failure cause
229
229
  *
230
- * @category utils
230
+ * @category completion
231
231
  * @since 2.0.0
232
232
  */
233
233
  export const done = completeWith;
@@ -256,7 +256,7 @@ export const done = completeWith;
256
256
  * })
257
257
  * ```
258
258
  *
259
- * @category utils
259
+ * @category completion
260
260
  * @since 2.0.0
261
261
  */
262
262
  export const fail = /*#__PURE__*/dual(2, (self, error) => done(self, core.exitFail(error)));
@@ -286,7 +286,7 @@ export const fail = /*#__PURE__*/dual(2, (self, error) => done(self, core.exitFa
286
286
  * })
287
287
  * ```
288
288
  *
289
- * @category utils
289
+ * @category completion
290
290
  * @since 2.0.0
291
291
  */
292
292
  export const failSync = /*#__PURE__*/dual(2, (self, evaluate) => internalEffect.suspend(() => fail(self, evaluate())));
@@ -318,7 +318,7 @@ export const failSync = /*#__PURE__*/dual(2, (self, evaluate) => internalEffect.
318
318
  * })
319
319
  * ```
320
320
  *
321
- * @category utils
321
+ * @category completion
322
322
  * @since 2.0.0
323
323
  */
324
324
  export const failCause = /*#__PURE__*/dual(2, (self, cause) => done(self, core.exitFailCause(cause)));
@@ -351,7 +351,7 @@ export const failCause = /*#__PURE__*/dual(2, (self, cause) => done(self, core.e
351
351
  * })
352
352
  * ```
353
353
  *
354
- * @category utils
354
+ * @category completion
355
355
  * @since 2.0.0
356
356
  */
357
357
  export const failCauseSync = /*#__PURE__*/dual(2, (self, evaluate) => internalEffect.suspend(() => failCause(self, evaluate())));
@@ -383,7 +383,7 @@ export const failCauseSync = /*#__PURE__*/dual(2, (self, evaluate) => internalEf
383
383
  * })
384
384
  * ```
385
385
  *
386
- * @category utils
386
+ * @category completion
387
387
  * @since 2.0.0
388
388
  */
389
389
  export const die = /*#__PURE__*/dual(2, (self, defect) => done(self, core.exitDie(defect)));
@@ -416,7 +416,7 @@ export const die = /*#__PURE__*/dual(2, (self, defect) => done(self, core.exitDi
416
416
  * })
417
417
  * ```
418
418
  *
419
- * @category utils
419
+ * @category completion
420
420
  * @since 2.0.0
421
421
  */
422
422
  export const dieSync = /*#__PURE__*/dual(2, (self, evaluate) => internalEffect.suspend(() => die(self, evaluate())));
@@ -446,7 +446,7 @@ export const dieSync = /*#__PURE__*/dual(2, (self, evaluate) => internalEffect.s
446
446
  * })
447
447
  * ```
448
448
  *
449
- * @category utils
449
+ * @category completion
450
450
  * @since 2.0.0
451
451
  */
452
452
  export const interrupt = self => core.withFiber(fiber => interruptWith(self, fiber.id));
@@ -476,7 +476,7 @@ export const interrupt = self => core.withFiber(fiber => interruptWith(self, fib
476
476
  * })
477
477
  * ```
478
478
  *
479
- * @category utils
479
+ * @category completion
480
480
  * @since 2.0.0
481
481
  */
482
482
  export const interruptWith = /*#__PURE__*/dual(2, (self, fiberId) => failCause(self, internalEffect.causeInterrupt(fiberId)));
@@ -582,7 +582,7 @@ export function poll(self) {
582
582
  * })
583
583
  * ```
584
584
  *
585
- * @category utils
585
+ * @category completion
586
586
  * @since 2.0.0
587
587
  */
588
588
  export const succeed = /*#__PURE__*/dual(2, (self, value) => done(self, core.exitSucceed(value)));
@@ -614,7 +614,7 @@ export const succeed = /*#__PURE__*/dual(2, (self, value) => done(self, core.exi
614
614
  * })
615
615
  * ```
616
616
  *
617
- * @category utils
617
+ * @category completion
618
618
  * @since 2.0.0
619
619
  */
620
620
  export const sync = /*#__PURE__*/dual(2, (self, evaluate) => internalEffect.suspend(() => succeed(self, evaluate())));
@@ -1044,7 +1044,7 @@ export declare const min: {
1044
1044
  * console.log(Duration.toSeconds(longer)) // 5
1045
1045
  * ```
1046
1046
  *
1047
- * @category order
1047
+ * @category ordering
1048
1048
  * @since 2.0.0
1049
1049
  */
1050
1050
  export declare const max: {
@@ -1060,7 +1060,7 @@ export declare const max: {
1060
1060
  * console.log(Duration.toSeconds(longer)) // 5
1061
1061
  * ```
1062
1062
  *
1063
- * @category order
1063
+ * @category ordering
1064
1064
  * @since 2.0.0
1065
1065
  */
1066
1066
  (that: Duration): (self: Duration) => Duration;
@@ -1076,7 +1076,7 @@ export declare const max: {
1076
1076
  * console.log(Duration.toSeconds(longer)) // 5
1077
1077
  * ```
1078
1078
  *
1079
- * @category order
1079
+ * @category ordering
1080
1080
  * @since 2.0.0
1081
1081
  */
1082
1082
  (self: Duration, that: Duration): Duration;
@@ -1096,7 +1096,7 @@ export declare const max: {
1096
1096
  * console.log(Duration.toSeconds(clamped)) // 5
1097
1097
  * ```
1098
1098
  *
1099
- * @category order
1099
+ * @category ordering
1100
1100
  * @since 2.0.0
1101
1101
  */
1102
1102
  export declare const clamp: {
@@ -1115,7 +1115,7 @@ export declare const clamp: {
1115
1115
  * console.log(Duration.toSeconds(clamped)) // 5
1116
1116
  * ```
1117
1117
  *
1118
- * @category order
1118
+ * @category ordering
1119
1119
  * @since 2.0.0
1120
1120
  */
1121
1121
  (options: {
@@ -1137,7 +1137,7 @@ export declare const clamp: {
1137
1137
  * console.log(Duration.toSeconds(clamped)) // 5
1138
1138
  * ```
1139
1139
  *
1140
- * @category order
1140
+ * @category ordering
1141
1141
  * @since 2.0.0
1142
1142
  */
1143
1143
  (self: Duration, options: {
package/dist/Duration.js CHANGED
@@ -1031,7 +1031,7 @@ export const min = /*#__PURE__*/order.min(Order);
1031
1031
  * console.log(Duration.toSeconds(longer)) // 5
1032
1032
  * ```
1033
1033
  *
1034
- * @category order
1034
+ * @category ordering
1035
1035
  * @since 2.0.0
1036
1036
  */
1037
1037
  export const max = /*#__PURE__*/order.max(Order);
@@ -1050,7 +1050,7 @@ export const max = /*#__PURE__*/order.max(Order);
1050
1050
  * console.log(Duration.toSeconds(clamped)) // 5
1051
1051
  * ```
1052
1052
  *
1053
- * @category order
1053
+ * @category ordering
1054
1054
  * @since 2.0.0
1055
1055
  */
1056
1056
  export const clamp = /*#__PURE__*/order.clamp(Order);