effect 4.0.0-beta.67 → 4.0.0-beta.68

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 (1172) hide show
  1. package/dist/Array.d.ts +41 -42
  2. package/dist/Array.d.ts.map +1 -1
  3. package/dist/Array.js +23 -23
  4. package/dist/Array.js.map +1 -1
  5. package/dist/BigDecimal.d.ts +265 -265
  6. package/dist/BigDecimal.js +128 -128
  7. package/dist/BigInt.d.ts +175 -177
  8. package/dist/BigInt.d.ts.map +1 -1
  9. package/dist/BigInt.js +81 -79
  10. package/dist/BigInt.js.map +1 -1
  11. package/dist/Boolean.d.ts +127 -125
  12. package/dist/Boolean.d.ts.map +1 -1
  13. package/dist/Boolean.js +55 -53
  14. package/dist/Boolean.js.map +1 -1
  15. package/dist/Brand.d.ts +10 -4
  16. package/dist/Brand.d.ts.map +1 -1
  17. package/dist/Brand.js +3 -2
  18. package/dist/Brand.js.map +1 -1
  19. package/dist/Cache.d.ts +36 -36
  20. package/dist/Cache.js +17 -17
  21. package/dist/Cause.d.ts +17 -18
  22. package/dist/Cause.d.ts.map +1 -1
  23. package/dist/Cause.js +12 -12
  24. package/dist/Cause.js.map +1 -1
  25. package/dist/Channel.d.ts +234 -241
  26. package/dist/Channel.d.ts.map +1 -1
  27. package/dist/Channel.js +97 -101
  28. package/dist/Channel.js.map +1 -1
  29. package/dist/Chunk.d.ts +33 -56
  30. package/dist/Chunk.d.ts.map +1 -1
  31. package/dist/Chunk.js +17 -26
  32. package/dist/Chunk.js.map +1 -1
  33. package/dist/Clock.d.ts +1 -1
  34. package/dist/Clock.js +1 -1
  35. package/dist/Combiner.d.ts +9 -1
  36. package/dist/Combiner.d.ts.map +1 -1
  37. package/dist/Combiner.js +8 -0
  38. package/dist/Combiner.js.map +1 -1
  39. package/dist/Config.d.ts +78 -68
  40. package/dist/Config.d.ts.map +1 -1
  41. package/dist/Config.js +53 -49
  42. package/dist/Config.js.map +1 -1
  43. package/dist/ConfigProvider.d.ts +33 -32
  44. package/dist/ConfigProvider.d.ts.map +1 -1
  45. package/dist/ConfigProvider.js +19 -18
  46. package/dist/ConfigProvider.js.map +1 -1
  47. package/dist/Console.d.ts +19 -19
  48. package/dist/Console.js +19 -19
  49. package/dist/Context.d.ts +70 -108
  50. package/dist/Context.d.ts.map +1 -1
  51. package/dist/Context.js +30 -44
  52. package/dist/Context.js.map +1 -1
  53. package/dist/Cron.d.ts +3 -5
  54. package/dist/Cron.d.ts.map +1 -1
  55. package/dist/Cron.js +3 -5
  56. package/dist/Cron.js.map +1 -1
  57. package/dist/Crypto.d.ts +208 -0
  58. package/dist/Crypto.d.ts.map +1 -0
  59. package/dist/Crypto.js +157 -0
  60. package/dist/Crypto.js.map +1 -0
  61. package/dist/Data.d.ts +6 -1
  62. package/dist/Data.d.ts.map +1 -1
  63. package/dist/Data.js.map +1 -1
  64. package/dist/DateTime.d.ts +29 -31
  65. package/dist/DateTime.d.ts.map +1 -1
  66. package/dist/DateTime.js +19 -19
  67. package/dist/DateTime.js.map +1 -1
  68. package/dist/Deferred.d.ts +8 -9
  69. package/dist/Deferred.d.ts.map +1 -1
  70. package/dist/Deferred.js +6 -6
  71. package/dist/Deferred.js.map +1 -1
  72. package/dist/Differ.d.ts +2 -2
  73. package/dist/Duration.d.ts +30 -27
  74. package/dist/Duration.d.ts.map +1 -1
  75. package/dist/Duration.js +15 -12
  76. package/dist/Duration.js.map +1 -1
  77. package/dist/Effect.d.ts +394 -652
  78. package/dist/Effect.d.ts.map +1 -1
  79. package/dist/Effect.js +157 -247
  80. package/dist/Effect.js.map +1 -1
  81. package/dist/Effectable.d.ts +2 -2
  82. package/dist/Effectable.js +2 -2
  83. package/dist/Encoding.d.ts +9 -9
  84. package/dist/Encoding.js +9 -9
  85. package/dist/Equal.d.ts +4 -3
  86. package/dist/Equal.d.ts.map +1 -1
  87. package/dist/Equal.js +4 -3
  88. package/dist/Equal.js.map +1 -1
  89. package/dist/Equivalence.d.ts +4 -5
  90. package/dist/Equivalence.d.ts.map +1 -1
  91. package/dist/Equivalence.js +2 -2
  92. package/dist/Equivalence.js.map +1 -1
  93. package/dist/ErrorReporter.d.ts +14 -14
  94. package/dist/ErrorReporter.js +9 -9
  95. package/dist/ExecutionPlan.d.ts +18 -9
  96. package/dist/ExecutionPlan.d.ts.map +1 -1
  97. package/dist/ExecutionPlan.js +6 -4
  98. package/dist/ExecutionPlan.js.map +1 -1
  99. package/dist/Exit.d.ts +0 -1
  100. package/dist/Exit.d.ts.map +1 -1
  101. package/dist/Exit.js.map +1 -1
  102. package/dist/Fiber.d.ts +1 -2
  103. package/dist/Fiber.d.ts.map +1 -1
  104. package/dist/Fiber.js +1 -1
  105. package/dist/Fiber.js.map +1 -1
  106. package/dist/FiberHandle.d.ts +5 -5
  107. package/dist/FiberHandle.js +3 -3
  108. package/dist/FiberMap.d.ts +10 -10
  109. package/dist/FiberMap.js +4 -4
  110. package/dist/FiberSet.d.ts +4 -4
  111. package/dist/FiberSet.js +2 -2
  112. package/dist/FileSystem.d.ts +10 -12
  113. package/dist/FileSystem.d.ts.map +1 -1
  114. package/dist/FileSystem.js +3 -3
  115. package/dist/FileSystem.js.map +1 -1
  116. package/dist/Filter.d.ts +54 -54
  117. package/dist/Filter.js +28 -28
  118. package/dist/Formatter.d.ts +4 -2
  119. package/dist/Formatter.d.ts.map +1 -1
  120. package/dist/Formatter.js +3 -69
  121. package/dist/Formatter.js.map +1 -1
  122. package/dist/Function.d.ts +64 -65
  123. package/dist/Function.d.ts.map +1 -1
  124. package/dist/Function.js +41 -41
  125. package/dist/Function.js.map +1 -1
  126. package/dist/Graph.d.ts +157 -175
  127. package/dist/Graph.d.ts.map +1 -1
  128. package/dist/Graph.js +72 -80
  129. package/dist/Graph.js.map +1 -1
  130. package/dist/Hash.d.ts +4 -6
  131. package/dist/Hash.d.ts.map +1 -1
  132. package/dist/Hash.js +2 -2
  133. package/dist/Hash.js.map +1 -1
  134. package/dist/HashMap.d.ts +121 -157
  135. package/dist/HashMap.d.ts.map +1 -1
  136. package/dist/HashMap.js +47 -59
  137. package/dist/HashMap.js.map +1 -1
  138. package/dist/HashRing.d.ts +34 -34
  139. package/dist/HashRing.js +16 -16
  140. package/dist/HashSet.d.ts +51 -55
  141. package/dist/HashSet.d.ts.map +1 -1
  142. package/dist/HashSet.js +19 -20
  143. package/dist/HashSet.js.map +1 -1
  144. package/dist/Inspectable.d.ts +6 -4
  145. package/dist/Inspectable.d.ts.map +1 -1
  146. package/dist/Inspectable.js +6 -4
  147. package/dist/Inspectable.js.map +1 -1
  148. package/dist/Iterable.d.ts +37 -83
  149. package/dist/Iterable.d.ts.map +1 -1
  150. package/dist/Iterable.js +21 -39
  151. package/dist/Iterable.js.map +1 -1
  152. package/dist/JsonPatch.d.ts +8 -6
  153. package/dist/JsonPatch.d.ts.map +1 -1
  154. package/dist/JsonPatch.js +5 -3
  155. package/dist/JsonPatch.js.map +1 -1
  156. package/dist/JsonPointer.d.ts +13 -11
  157. package/dist/JsonPointer.d.ts.map +1 -1
  158. package/dist/JsonPointer.js +13 -11
  159. package/dist/JsonPointer.js.map +1 -1
  160. package/dist/JsonSchema.d.ts +16 -0
  161. package/dist/JsonSchema.d.ts.map +1 -1
  162. package/dist/JsonSchema.js +10 -0
  163. package/dist/JsonSchema.js.map +1 -1
  164. package/dist/Latch.d.ts +4 -16
  165. package/dist/Latch.d.ts.map +1 -1
  166. package/dist/Latch.js +2 -14
  167. package/dist/Latch.js.map +1 -1
  168. package/dist/Layer.d.ts +94 -135
  169. package/dist/Layer.d.ts.map +1 -1
  170. package/dist/Layer.js +44 -61
  171. package/dist/Layer.js.map +1 -1
  172. package/dist/LayerMap.d.ts +15 -16
  173. package/dist/LayerMap.d.ts.map +1 -1
  174. package/dist/LayerMap.js +6 -6
  175. package/dist/LogLevel.d.ts +13 -13
  176. package/dist/LogLevel.js +4 -4
  177. package/dist/Logger.d.ts +10 -11
  178. package/dist/Logger.d.ts.map +1 -1
  179. package/dist/Logger.js +10 -11
  180. package/dist/Logger.js.map +1 -1
  181. package/dist/ManagedRuntime.d.ts +5 -4
  182. package/dist/ManagedRuntime.d.ts.map +1 -1
  183. package/dist/ManagedRuntime.js +4 -3
  184. package/dist/ManagedRuntime.js.map +1 -1
  185. package/dist/Match.d.ts +2 -4
  186. package/dist/Match.d.ts.map +1 -1
  187. package/dist/Match.js +1 -2
  188. package/dist/Match.js.map +1 -1
  189. package/dist/Metric.d.ts +48 -50
  190. package/dist/Metric.d.ts.map +1 -1
  191. package/dist/Metric.js +22 -22
  192. package/dist/Metric.js.map +1 -1
  193. package/dist/MutableHashMap.d.ts +30 -30
  194. package/dist/MutableHashMap.d.ts.map +1 -1
  195. package/dist/MutableHashMap.js +15 -14
  196. package/dist/MutableHashMap.js.map +1 -1
  197. package/dist/MutableHashSet.d.ts.map +1 -1
  198. package/dist/MutableHashSet.js +0 -2
  199. package/dist/MutableHashSet.js.map +1 -1
  200. package/dist/MutableList.d.ts +23 -24
  201. package/dist/MutableList.d.ts.map +1 -1
  202. package/dist/MutableList.js +17 -19
  203. package/dist/MutableList.js.map +1 -1
  204. package/dist/MutableRef.d.ts.map +1 -1
  205. package/dist/MutableRef.js +0 -1
  206. package/dist/MutableRef.js.map +1 -1
  207. package/dist/Newtype.d.ts +12 -2
  208. package/dist/Newtype.d.ts.map +1 -1
  209. package/dist/Newtype.js +8 -2
  210. package/dist/Newtype.js.map +1 -1
  211. package/dist/NonEmptyIterable.d.ts +5 -12
  212. package/dist/NonEmptyIterable.d.ts.map +1 -1
  213. package/dist/NonEmptyIterable.js +3 -8
  214. package/dist/NonEmptyIterable.js.map +1 -1
  215. package/dist/Number.d.ts +145 -141
  216. package/dist/Number.d.ts.map +1 -1
  217. package/dist/Number.js +65 -61
  218. package/dist/Number.js.map +1 -1
  219. package/dist/Optic.d.ts +5 -5
  220. package/dist/Optic.js +5 -5
  221. package/dist/Option.d.ts +105 -109
  222. package/dist/Option.d.ts.map +1 -1
  223. package/dist/Option.js +50 -52
  224. package/dist/Option.js.map +1 -1
  225. package/dist/Order.d.ts +6 -6
  226. package/dist/Order.js +6 -6
  227. package/dist/Ordering.d.ts +15 -19
  228. package/dist/Ordering.d.ts.map +1 -1
  229. package/dist/Ordering.js +6 -6
  230. package/dist/Ordering.js.map +1 -1
  231. package/dist/PartitionedSemaphore.d.ts +3 -3
  232. package/dist/PartitionedSemaphore.js +2 -2
  233. package/dist/Path.d.ts +4 -4
  234. package/dist/Path.d.ts.map +1 -1
  235. package/dist/Path.js +2 -1
  236. package/dist/Path.js.map +1 -1
  237. package/dist/Pipeable.d.ts +10 -7
  238. package/dist/Pipeable.d.ts.map +1 -1
  239. package/dist/Pipeable.js +6 -4
  240. package/dist/Pipeable.js.map +1 -1
  241. package/dist/PlatformError.d.ts +3 -3
  242. package/dist/PlatformError.js +2 -2
  243. package/dist/Predicate.d.ts +2 -4
  244. package/dist/Predicate.d.ts.map +1 -1
  245. package/dist/Predicate.js +3 -3
  246. package/dist/Predicate.js.map +1 -1
  247. package/dist/PrimaryKey.d.ts +2 -1
  248. package/dist/PrimaryKey.d.ts.map +1 -1
  249. package/dist/PrimaryKey.js +2 -1
  250. package/dist/PrimaryKey.js.map +1 -1
  251. package/dist/PubSub.d.ts +25 -51
  252. package/dist/PubSub.d.ts.map +1 -1
  253. package/dist/PubSub.js +17 -35
  254. package/dist/PubSub.js.map +1 -1
  255. package/dist/Queue.d.ts +45 -60
  256. package/dist/Queue.d.ts.map +1 -1
  257. package/dist/Queue.js +27 -33
  258. package/dist/Queue.js.map +1 -1
  259. package/dist/Random.d.ts +27 -38
  260. package/dist/Random.d.ts.map +1 -1
  261. package/dist/Random.js +17 -54
  262. package/dist/Random.js.map +1 -1
  263. package/dist/RcMap.d.ts +11 -11
  264. package/dist/RcMap.js +3 -3
  265. package/dist/RcRef.d.ts +0 -1
  266. package/dist/RcRef.d.ts.map +1 -1
  267. package/dist/RcRef.js.map +1 -1
  268. package/dist/Record.d.ts +9 -8
  269. package/dist/Record.d.ts.map +1 -1
  270. package/dist/Record.js +7 -5
  271. package/dist/Record.js.map +1 -1
  272. package/dist/Redactable.d.ts +7 -5
  273. package/dist/Redactable.d.ts.map +1 -1
  274. package/dist/Redactable.js +5 -3
  275. package/dist/Redactable.js.map +1 -1
  276. package/dist/Redacted.d.ts +2 -3
  277. package/dist/Redacted.d.ts.map +1 -1
  278. package/dist/Redacted.js +2 -2
  279. package/dist/Redacted.js.map +1 -1
  280. package/dist/Reducer.d.ts +3 -1
  281. package/dist/Reducer.d.ts.map +1 -1
  282. package/dist/Reducer.js +2 -0
  283. package/dist/Reducer.js.map +1 -1
  284. package/dist/Ref.d.ts +7 -17
  285. package/dist/Ref.d.ts.map +1 -1
  286. package/dist/Ref.js +5 -12
  287. package/dist/Ref.js.map +1 -1
  288. package/dist/RegExp.d.ts +1 -1
  289. package/dist/RegExp.js +1 -1
  290. package/dist/Request.d.ts +2 -1
  291. package/dist/Request.d.ts.map +1 -1
  292. package/dist/Request.js +1 -0
  293. package/dist/Request.js.map +1 -1
  294. package/dist/RequestResolver.d.ts +2 -3
  295. package/dist/RequestResolver.d.ts.map +1 -1
  296. package/dist/RequestResolver.js +1 -1
  297. package/dist/RequestResolver.js.map +1 -1
  298. package/dist/Resource.d.ts +1 -1
  299. package/dist/Resource.js +1 -1
  300. package/dist/Result.d.ts +124 -142
  301. package/dist/Result.d.ts.map +1 -1
  302. package/dist/Result.js +51 -63
  303. package/dist/Result.js.map +1 -1
  304. package/dist/Runtime.d.ts +2 -7
  305. package/dist/Runtime.d.ts.map +1 -1
  306. package/dist/Runtime.js +1 -3
  307. package/dist/Runtime.js.map +1 -1
  308. package/dist/Schedule.d.ts +69 -72
  309. package/dist/Schedule.d.ts.map +1 -1
  310. package/dist/Schedule.js +31 -33
  311. package/dist/Schedule.js.map +1 -1
  312. package/dist/Scheduler.d.ts +2 -2
  313. package/dist/Scheduler.js +2 -2
  314. package/dist/Schema.d.ts +491 -321
  315. package/dist/Schema.d.ts.map +1 -1
  316. package/dist/Schema.js +220 -172
  317. package/dist/Schema.js.map +1 -1
  318. package/dist/SchemaAST.d.ts +98 -77
  319. package/dist/SchemaAST.d.ts.map +1 -1
  320. package/dist/SchemaAST.js +89 -68
  321. package/dist/SchemaAST.js.map +1 -1
  322. package/dist/SchemaGetter.d.ts +23 -23
  323. package/dist/SchemaGetter.js +20 -20
  324. package/dist/SchemaIssue.d.ts +18 -16
  325. package/dist/SchemaIssue.d.ts.map +1 -1
  326. package/dist/SchemaIssue.js +16 -14
  327. package/dist/SchemaIssue.js.map +1 -1
  328. package/dist/SchemaParser.d.ts +39 -40
  329. package/dist/SchemaParser.d.ts.map +1 -1
  330. package/dist/SchemaParser.js +48 -51
  331. package/dist/SchemaParser.js.map +1 -1
  332. package/dist/SchemaRepresentation.d.ts +89 -77
  333. package/dist/SchemaRepresentation.d.ts.map +1 -1
  334. package/dist/SchemaRepresentation.js +47 -37
  335. package/dist/SchemaRepresentation.js.map +1 -1
  336. package/dist/SchemaTransformation.d.ts +36 -5
  337. package/dist/SchemaTransformation.d.ts.map +1 -1
  338. package/dist/SchemaTransformation.js +33 -5
  339. package/dist/SchemaTransformation.js.map +1 -1
  340. package/dist/SchemaUtils.d.ts +1 -1
  341. package/dist/SchemaUtils.js +1 -1
  342. package/dist/Scope.d.ts +12 -29
  343. package/dist/Scope.d.ts.map +1 -1
  344. package/dist/Scope.js +6 -11
  345. package/dist/Scope.js.map +1 -1
  346. package/dist/ScopedCache.d.ts +37 -37
  347. package/dist/ScopedCache.js +17 -17
  348. package/dist/Semaphore.d.ts +4 -16
  349. package/dist/Semaphore.d.ts.map +1 -1
  350. package/dist/Semaphore.js +2 -14
  351. package/dist/Semaphore.js.map +1 -1
  352. package/dist/Sink.d.ts +36 -39
  353. package/dist/Sink.d.ts.map +1 -1
  354. package/dist/Sink.js +18 -18
  355. package/dist/Sink.js.map +1 -1
  356. package/dist/Stdio.d.ts +6 -6
  357. package/dist/Stdio.js +4 -4
  358. package/dist/Stream.d.ts +671 -808
  359. package/dist/Stream.d.ts.map +1 -1
  360. package/dist/Stream.js +289 -363
  361. package/dist/Stream.js.map +1 -1
  362. package/dist/String.d.ts +3 -2
  363. package/dist/String.d.ts.map +1 -1
  364. package/dist/String.js +3 -2
  365. package/dist/String.js.map +1 -1
  366. package/dist/Struct.d.ts +20 -18
  367. package/dist/Struct.d.ts.map +1 -1
  368. package/dist/Struct.js +10 -8
  369. package/dist/Struct.js.map +1 -1
  370. package/dist/SubscriptionRef.d.ts +2 -2
  371. package/dist/SubscriptionRef.js +2 -2
  372. package/dist/Symbol.d.ts +3 -3
  373. package/dist/Symbol.js +3 -3
  374. package/dist/SynchronizedRef.d.ts +1 -1
  375. package/dist/SynchronizedRef.js +1 -1
  376. package/dist/Take.d.ts +2 -2
  377. package/dist/Take.js +1 -1
  378. package/dist/Terminal.d.ts +5 -5
  379. package/dist/Terminal.js +2 -2
  380. package/dist/Tracer.d.ts +9 -9
  381. package/dist/Tracer.js +2 -2
  382. package/dist/Trie.d.ts +70 -106
  383. package/dist/Trie.d.ts.map +1 -1
  384. package/dist/Trie.js +29 -43
  385. package/dist/Trie.js.map +1 -1
  386. package/dist/Tuple.d.ts +34 -32
  387. package/dist/Tuple.d.ts.map +1 -1
  388. package/dist/Tuple.js +16 -14
  389. package/dist/Tuple.js.map +1 -1
  390. package/dist/TxChunk.d.ts +27 -18
  391. package/dist/TxChunk.d.ts.map +1 -1
  392. package/dist/TxChunk.js +15 -10
  393. package/dist/TxChunk.js.map +1 -1
  394. package/dist/TxDeferred.d.ts +11 -11
  395. package/dist/TxDeferred.js +5 -5
  396. package/dist/TxHashMap.d.ts +60 -61
  397. package/dist/TxHashMap.d.ts.map +1 -1
  398. package/dist/TxHashMap.js +23 -23
  399. package/dist/TxHashMap.js.map +1 -1
  400. package/dist/TxHashSet.d.ts +28 -32
  401. package/dist/TxHashSet.d.ts.map +1 -1
  402. package/dist/TxHashSet.js +13 -16
  403. package/dist/TxHashSet.js.map +1 -1
  404. package/dist/TxPriorityQueue.d.ts +30 -30
  405. package/dist/TxPriorityQueue.js +18 -18
  406. package/dist/TxPubSub.d.ts +18 -18
  407. package/dist/TxPubSub.js +14 -14
  408. package/dist/TxQueue.d.ts +26 -29
  409. package/dist/TxQueue.d.ts.map +1 -1
  410. package/dist/TxQueue.js +17 -17
  411. package/dist/TxQueue.js.map +1 -1
  412. package/dist/TxReentrantLock.d.ts +21 -21
  413. package/dist/TxReentrantLock.js +15 -15
  414. package/dist/TxRef.d.ts +24 -24
  415. package/dist/TxRef.js +11 -11
  416. package/dist/TxSemaphore.d.ts +13 -74
  417. package/dist/TxSemaphore.d.ts.map +1 -1
  418. package/dist/TxSemaphore.js +9 -52
  419. package/dist/TxSemaphore.js.map +1 -1
  420. package/dist/TxSubscriptionRef.d.ts +24 -24
  421. package/dist/TxSubscriptionRef.js +11 -11
  422. package/dist/Types.d.ts +1 -4
  423. package/dist/Types.d.ts.map +1 -1
  424. package/dist/UndefinedOr.d.ts +14 -0
  425. package/dist/UndefinedOr.d.ts.map +1 -1
  426. package/dist/UndefinedOr.js +8 -0
  427. package/dist/UndefinedOr.js.map +1 -1
  428. package/dist/Unify.d.ts +8 -8
  429. package/dist/Unify.js +1 -1
  430. package/dist/Utils.d.ts +1 -2
  431. package/dist/Utils.d.ts.map +1 -1
  432. package/dist/Utils.js.map +1 -1
  433. package/dist/index.d.ts +1917 -411
  434. package/dist/index.d.ts.map +1 -1
  435. package/dist/index.js +1917 -411
  436. package/dist/index.js.map +1 -1
  437. package/dist/testing/FastCheck.d.ts +3 -3
  438. package/dist/testing/FastCheck.js +3 -3
  439. package/dist/testing/TestClock.d.ts +2 -3
  440. package/dist/testing/TestClock.d.ts.map +1 -1
  441. package/dist/testing/TestClock.js +1 -1
  442. package/dist/testing/TestClock.js.map +1 -1
  443. package/dist/testing/TestConsole.d.ts +8 -9
  444. package/dist/testing/TestConsole.d.ts.map +1 -1
  445. package/dist/testing/TestConsole.js +5 -5
  446. package/dist/testing/TestConsole.js.map +1 -1
  447. package/dist/testing/TestSchema.d.ts +2 -0
  448. package/dist/testing/TestSchema.d.ts.map +1 -1
  449. package/dist/testing/TestSchema.js +2 -0
  450. package/dist/testing/TestSchema.js.map +1 -1
  451. package/dist/testing/index.d.ts +34 -0
  452. package/dist/testing/index.d.ts.map +1 -1
  453. package/dist/testing/index.js +34 -0
  454. package/dist/testing/index.js.map +1 -1
  455. package/dist/unstable/ai/AiError.d.ts +10 -19
  456. package/dist/unstable/ai/AiError.d.ts.map +1 -1
  457. package/dist/unstable/ai/AiError.js +0 -9
  458. package/dist/unstable/ai/AiError.js.map +1 -1
  459. package/dist/unstable/ai/Chat.d.ts +0 -1
  460. package/dist/unstable/ai/Chat.d.ts.map +1 -1
  461. package/dist/unstable/ai/Chat.js.map +1 -1
  462. package/dist/unstable/ai/McpSchema.d.ts +3 -0
  463. package/dist/unstable/ai/McpSchema.d.ts.map +1 -1
  464. package/dist/unstable/ai/McpSchema.js +2 -0
  465. package/dist/unstable/ai/McpSchema.js.map +1 -1
  466. package/dist/unstable/ai/McpServer.d.ts +3 -1
  467. package/dist/unstable/ai/McpServer.d.ts.map +1 -1
  468. package/dist/unstable/ai/McpServer.js +1 -1
  469. package/dist/unstable/ai/McpServer.js.map +1 -1
  470. package/dist/unstable/ai/Model.d.ts +2 -6
  471. package/dist/unstable/ai/Model.d.ts.map +1 -1
  472. package/dist/unstable/ai/Model.js +2 -2
  473. package/dist/unstable/ai/Model.js.map +1 -1
  474. package/dist/unstable/ai/Prompt.d.ts +8 -10
  475. package/dist/unstable/ai/Prompt.d.ts.map +1 -1
  476. package/dist/unstable/ai/Prompt.js +4 -4
  477. package/dist/unstable/ai/Prompt.js.map +1 -1
  478. package/dist/unstable/ai/Response.d.ts +20 -20
  479. package/dist/unstable/ai/ResponseIdTracker.d.ts +1 -1
  480. package/dist/unstable/ai/ResponseIdTracker.js +1 -1
  481. package/dist/unstable/ai/Telemetry.d.ts +5 -5
  482. package/dist/unstable/ai/Telemetry.js +3 -3
  483. package/dist/unstable/ai/Tokenizer.d.ts +1 -1
  484. package/dist/unstable/ai/Tool.d.ts +14 -12
  485. package/dist/unstable/ai/Tool.d.ts.map +1 -1
  486. package/dist/unstable/ai/Tool.js +10 -9
  487. package/dist/unstable/ai/Tool.js.map +1 -1
  488. package/dist/unstable/ai/index.d.ts +79 -5
  489. package/dist/unstable/ai/index.d.ts.map +1 -1
  490. package/dist/unstable/ai/index.js +79 -5
  491. package/dist/unstable/ai/index.js.map +1 -1
  492. package/dist/unstable/cli/CliOutput.d.ts +5 -6
  493. package/dist/unstable/cli/CliOutput.d.ts.map +1 -1
  494. package/dist/unstable/cli/CliOutput.js +2 -3
  495. package/dist/unstable/cli/CliOutput.js.map +1 -1
  496. package/dist/unstable/cli/Command.d.ts +3 -3
  497. package/dist/unstable/cli/Command.js +1 -1
  498. package/dist/unstable/cli/HelpDoc.d.ts +4 -4
  499. package/dist/unstable/cli/Param.d.ts +31 -1
  500. package/dist/unstable/cli/Param.d.ts.map +1 -1
  501. package/dist/unstable/cli/Param.js +37 -38
  502. package/dist/unstable/cli/Param.js.map +1 -1
  503. package/dist/unstable/cli/Primitive.d.ts +1 -1
  504. package/dist/unstable/cli/Primitive.js +1 -1
  505. package/dist/unstable/cli/Prompt.d.ts +6 -14
  506. package/dist/unstable/cli/Prompt.d.ts.map +1 -1
  507. package/dist/unstable/cli/Prompt.js +2 -2
  508. package/dist/unstable/cli/Prompt.js.map +1 -1
  509. package/dist/unstable/cli/index.d.ts +182 -0
  510. package/dist/unstable/cli/index.d.ts.map +1 -1
  511. package/dist/unstable/cli/index.js +205 -6
  512. package/dist/unstable/cli/index.js.map +1 -1
  513. package/dist/unstable/cli/internal/parser.js +0 -1
  514. package/dist/unstable/cli/internal/parser.js.map +1 -1
  515. package/dist/unstable/cluster/ClusterCron.d.ts +1 -1
  516. package/dist/unstable/cluster/ClusterCron.js +1 -1
  517. package/dist/unstable/cluster/ClusterSchema.d.ts +8 -8
  518. package/dist/unstable/cluster/ClusterSchema.js +8 -8
  519. package/dist/unstable/cluster/ClusterWorkflowEngine.d.ts +2 -2
  520. package/dist/unstable/cluster/ClusterWorkflowEngine.js +2 -2
  521. package/dist/unstable/cluster/Entity.d.ts +0 -1
  522. package/dist/unstable/cluster/Entity.d.ts.map +1 -1
  523. package/dist/unstable/cluster/Entity.js.map +1 -1
  524. package/dist/unstable/cluster/EntityProxy.d.ts +10 -14
  525. package/dist/unstable/cluster/EntityProxy.d.ts.map +1 -1
  526. package/dist/unstable/cluster/EntityProxy.js +8 -14
  527. package/dist/unstable/cluster/EntityProxy.js.map +1 -1
  528. package/dist/unstable/cluster/EntityProxyServer.d.ts +3 -2
  529. package/dist/unstable/cluster/EntityProxyServer.d.ts.map +1 -1
  530. package/dist/unstable/cluster/EntityProxyServer.js +2 -2
  531. package/dist/unstable/cluster/EntityResource.d.ts +2 -2
  532. package/dist/unstable/cluster/EntityResource.js +1 -1
  533. package/dist/unstable/cluster/Envelope.d.ts +1 -1
  534. package/dist/unstable/cluster/Envelope.js +1 -1
  535. package/dist/unstable/cluster/HttpRunner.d.ts +11 -11
  536. package/dist/unstable/cluster/HttpRunner.js +11 -11
  537. package/dist/unstable/cluster/K8sHttpClient.d.ts +5 -5
  538. package/dist/unstable/cluster/K8sHttpClient.js +5 -5
  539. package/dist/unstable/cluster/MachineId.d.ts +1 -1
  540. package/dist/unstable/cluster/MachineId.js +1 -1
  541. package/dist/unstable/cluster/MessageStorage.d.ts +1 -2
  542. package/dist/unstable/cluster/MessageStorage.d.ts.map +1 -1
  543. package/dist/unstable/cluster/MessageStorage.js +1 -1
  544. package/dist/unstable/cluster/MessageStorage.js.map +1 -1
  545. package/dist/unstable/cluster/Runner.d.ts +1 -1
  546. package/dist/unstable/cluster/Runner.js +1 -1
  547. package/dist/unstable/cluster/RunnerHealth.d.ts +2 -2
  548. package/dist/unstable/cluster/RunnerHealth.js +2 -2
  549. package/dist/unstable/cluster/RunnerServer.d.ts +4 -4
  550. package/dist/unstable/cluster/RunnerServer.js +4 -4
  551. package/dist/unstable/cluster/Runners.d.ts +3 -3
  552. package/dist/unstable/cluster/Runners.js +3 -3
  553. package/dist/unstable/cluster/ShardId.d.ts +7 -5
  554. package/dist/unstable/cluster/ShardId.d.ts.map +1 -1
  555. package/dist/unstable/cluster/ShardId.js +6 -4
  556. package/dist/unstable/cluster/ShardId.js.map +1 -1
  557. package/dist/unstable/cluster/Sharding.js +1 -1
  558. package/dist/unstable/cluster/ShardingConfig.d.ts +2 -2
  559. package/dist/unstable/cluster/ShardingConfig.js +2 -2
  560. package/dist/unstable/cluster/SingleRunner.d.ts +1 -1
  561. package/dist/unstable/cluster/SingleRunner.js +1 -1
  562. package/dist/unstable/cluster/Snowflake.d.ts +10 -9
  563. package/dist/unstable/cluster/Snowflake.d.ts.map +1 -1
  564. package/dist/unstable/cluster/Snowflake.js +4 -3
  565. package/dist/unstable/cluster/Snowflake.js.map +1 -1
  566. package/dist/unstable/cluster/SocketRunner.d.ts +2 -2
  567. package/dist/unstable/cluster/SocketRunner.js +2 -2
  568. package/dist/unstable/cluster/SqlMessageStorage.d.ts +3 -3
  569. package/dist/unstable/cluster/SqlMessageStorage.js +3 -3
  570. package/dist/unstable/cluster/SqlRunnerStorage.d.ts +3 -3
  571. package/dist/unstable/cluster/SqlRunnerStorage.js +3 -3
  572. package/dist/unstable/cluster/TestRunner.d.ts +1 -1
  573. package/dist/unstable/cluster/TestRunner.js +1 -1
  574. package/dist/unstable/cluster/index.d.ts +790 -0
  575. package/dist/unstable/cluster/index.d.ts.map +1 -1
  576. package/dist/unstable/cluster/index.js +790 -0
  577. package/dist/unstable/cluster/index.js.map +1 -1
  578. package/dist/unstable/devtools/index.d.ts +58 -0
  579. package/dist/unstable/devtools/index.d.ts.map +1 -1
  580. package/dist/unstable/devtools/index.js +58 -0
  581. package/dist/unstable/devtools/index.js.map +1 -1
  582. package/dist/unstable/encoding/Sse.d.ts +16 -16
  583. package/dist/unstable/encoding/Sse.js +11 -11
  584. package/dist/unstable/encoding/index.d.ts +49 -0
  585. package/dist/unstable/encoding/index.d.ts.map +1 -1
  586. package/dist/unstable/encoding/index.js +49 -0
  587. package/dist/unstable/encoding/index.js.map +1 -1
  588. package/dist/unstable/eventlog/Event.d.ts +2 -2
  589. package/dist/unstable/eventlog/Event.js +1 -1
  590. package/dist/unstable/eventlog/EventGroup.d.ts +2 -2
  591. package/dist/unstable/eventlog/EventGroup.js +1 -1
  592. package/dist/unstable/eventlog/EventLog.d.ts +6 -7
  593. package/dist/unstable/eventlog/EventLog.d.ts.map +1 -1
  594. package/dist/unstable/eventlog/EventLog.js +4 -4
  595. package/dist/unstable/eventlog/EventLog.js.map +1 -1
  596. package/dist/unstable/eventlog/EventLogRemote.d.ts +2 -2
  597. package/dist/unstable/eventlog/EventLogRemote.js +2 -2
  598. package/dist/unstable/eventlog/EventLogServer.d.ts +2 -2
  599. package/dist/unstable/eventlog/EventLogServer.js +2 -2
  600. package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts +2 -2
  601. package/dist/unstable/eventlog/EventLogServerEncrypted.js +2 -2
  602. package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts +1 -1
  603. package/dist/unstable/eventlog/EventLogServerUnencrypted.js +1 -1
  604. package/dist/unstable/eventlog/EventLogSessionAuth.d.ts +1 -1
  605. package/dist/unstable/eventlog/index.d.ts +240 -0
  606. package/dist/unstable/eventlog/index.d.ts.map +1 -1
  607. package/dist/unstable/eventlog/index.js +240 -0
  608. package/dist/unstable/eventlog/index.js.map +1 -1
  609. package/dist/unstable/http/Cookies.d.ts +6 -6
  610. package/dist/unstable/http/Cookies.js +4 -4
  611. package/dist/unstable/http/Etag.d.ts +2 -2
  612. package/dist/unstable/http/Etag.js +2 -2
  613. package/dist/unstable/http/Headers.d.ts +2 -2
  614. package/dist/unstable/http/Headers.js +1 -1
  615. package/dist/unstable/http/HttpClient.d.ts +5 -6
  616. package/dist/unstable/http/HttpClient.d.ts.map +1 -1
  617. package/dist/unstable/http/HttpClient.js +5 -4
  618. package/dist/unstable/http/HttpClient.js.map +1 -1
  619. package/dist/unstable/http/HttpClientError.d.ts +1 -1
  620. package/dist/unstable/http/HttpClientError.js +1 -1
  621. package/dist/unstable/http/HttpClientRequest.d.ts +4 -4
  622. package/dist/unstable/http/HttpClientRequest.js +4 -4
  623. package/dist/unstable/http/HttpClientResponse.d.ts +6 -6
  624. package/dist/unstable/http/HttpClientResponse.js +6 -6
  625. package/dist/unstable/http/HttpEffect.d.ts +5 -5
  626. package/dist/unstable/http/HttpEffect.js +5 -5
  627. package/dist/unstable/http/HttpIncomingMessage.d.ts +7 -6
  628. package/dist/unstable/http/HttpIncomingMessage.d.ts.map +1 -1
  629. package/dist/unstable/http/HttpIncomingMessage.js +7 -6
  630. package/dist/unstable/http/HttpIncomingMessage.js.map +1 -1
  631. package/dist/unstable/http/HttpMethod.d.ts +4 -2
  632. package/dist/unstable/http/HttpMethod.d.ts.map +1 -1
  633. package/dist/unstable/http/HttpMethod.js +4 -1
  634. package/dist/unstable/http/HttpMethod.js.map +1 -1
  635. package/dist/unstable/http/HttpMiddleware.d.ts +1 -0
  636. package/dist/unstable/http/HttpMiddleware.d.ts.map +1 -1
  637. package/dist/unstable/http/HttpMiddleware.js.map +1 -1
  638. package/dist/unstable/http/HttpRouter.d.ts +23 -25
  639. package/dist/unstable/http/HttpRouter.d.ts.map +1 -1
  640. package/dist/unstable/http/HttpRouter.js +23 -22
  641. package/dist/unstable/http/HttpRouter.js.map +1 -1
  642. package/dist/unstable/http/HttpServerError.d.ts +4 -1
  643. package/dist/unstable/http/HttpServerError.d.ts.map +1 -1
  644. package/dist/unstable/http/HttpServerError.js +4 -1
  645. package/dist/unstable/http/HttpServerError.js.map +1 -1
  646. package/dist/unstable/http/HttpServerRequest.d.ts +15 -15
  647. package/dist/unstable/http/HttpServerRequest.js +15 -15
  648. package/dist/unstable/http/HttpServerRespondable.d.ts +1 -1
  649. package/dist/unstable/http/HttpServerRespondable.js +1 -1
  650. package/dist/unstable/http/HttpServerResponse.d.ts +5 -4
  651. package/dist/unstable/http/HttpServerResponse.d.ts.map +1 -1
  652. package/dist/unstable/http/HttpServerResponse.js +5 -4
  653. package/dist/unstable/http/HttpServerResponse.js.map +1 -1
  654. package/dist/unstable/http/HttpStaticServer.d.ts +2 -4
  655. package/dist/unstable/http/HttpStaticServer.d.ts.map +1 -1
  656. package/dist/unstable/http/HttpStaticServer.js +2 -4
  657. package/dist/unstable/http/HttpStaticServer.js.map +1 -1
  658. package/dist/unstable/http/Multipart.d.ts +20 -19
  659. package/dist/unstable/http/Multipart.d.ts.map +1 -1
  660. package/dist/unstable/http/Multipart.js +19 -17
  661. package/dist/unstable/http/Multipart.js.map +1 -1
  662. package/dist/unstable/http/Template.d.ts +0 -1
  663. package/dist/unstable/http/Template.d.ts.map +1 -1
  664. package/dist/unstable/http/Template.js.map +1 -1
  665. package/dist/unstable/http/Url.d.ts +17 -17
  666. package/dist/unstable/http/Url.js +8 -8
  667. package/dist/unstable/http/UrlParams.d.ts +14 -12
  668. package/dist/unstable/http/UrlParams.d.ts.map +1 -1
  669. package/dist/unstable/http/UrlParams.js +12 -10
  670. package/dist/unstable/http/UrlParams.js.map +1 -1
  671. package/dist/unstable/http/index.d.ts +452 -0
  672. package/dist/unstable/http/index.d.ts.map +1 -1
  673. package/dist/unstable/http/index.js +452 -0
  674. package/dist/unstable/http/index.js.map +1 -1
  675. package/dist/unstable/httpapi/HttpApiBuilder.d.ts +0 -1
  676. package/dist/unstable/httpapi/HttpApiBuilder.d.ts.map +1 -1
  677. package/dist/unstable/httpapi/HttpApiBuilder.js.map +1 -1
  678. package/dist/unstable/httpapi/HttpApiClient.d.ts +0 -1
  679. package/dist/unstable/httpapi/HttpApiClient.d.ts.map +1 -1
  680. package/dist/unstable/httpapi/HttpApiClient.js.map +1 -1
  681. package/dist/unstable/httpapi/HttpApiMiddleware.d.ts +4 -2
  682. package/dist/unstable/httpapi/HttpApiMiddleware.d.ts.map +1 -1
  683. package/dist/unstable/httpapi/HttpApiMiddleware.js +3 -1
  684. package/dist/unstable/httpapi/HttpApiMiddleware.js.map +1 -1
  685. package/dist/unstable/httpapi/HttpApiScalar.d.ts +2 -2
  686. package/dist/unstable/httpapi/HttpApiSchema.d.ts +19 -8
  687. package/dist/unstable/httpapi/HttpApiSchema.d.ts.map +1 -1
  688. package/dist/unstable/httpapi/HttpApiSchema.js +11 -8
  689. package/dist/unstable/httpapi/HttpApiSchema.js.map +1 -1
  690. package/dist/unstable/httpapi/HttpApiSecurity.d.ts +0 -1
  691. package/dist/unstable/httpapi/HttpApiSecurity.d.ts.map +1 -1
  692. package/dist/unstable/httpapi/HttpApiSecurity.js.map +1 -1
  693. package/dist/unstable/httpapi/HttpApiSwagger.d.ts +0 -2
  694. package/dist/unstable/httpapi/HttpApiSwagger.d.ts.map +1 -1
  695. package/dist/unstable/httpapi/HttpApiSwagger.js +0 -2
  696. package/dist/unstable/httpapi/HttpApiSwagger.js.map +1 -1
  697. package/dist/unstable/httpapi/index.d.ts +310 -25
  698. package/dist/unstable/httpapi/index.d.ts.map +1 -1
  699. package/dist/unstable/httpapi/index.js +310 -25
  700. package/dist/unstable/httpapi/index.js.map +1 -1
  701. package/dist/unstable/observability/Otlp.d.ts +3 -3
  702. package/dist/unstable/observability/Otlp.js +3 -3
  703. package/dist/unstable/observability/OtlpExporter.d.ts +1 -1
  704. package/dist/unstable/observability/OtlpExporter.js +1 -1
  705. package/dist/unstable/observability/OtlpLogger.d.ts +3 -2
  706. package/dist/unstable/observability/OtlpLogger.d.ts.map +1 -1
  707. package/dist/unstable/observability/OtlpLogger.js +2 -2
  708. package/dist/unstable/observability/OtlpLogger.js.map +1 -1
  709. package/dist/unstable/observability/OtlpMetrics.d.ts +5 -4
  710. package/dist/unstable/observability/OtlpMetrics.d.ts.map +1 -1
  711. package/dist/unstable/observability/OtlpMetrics.js +2 -2
  712. package/dist/unstable/observability/OtlpMetrics.js.map +1 -1
  713. package/dist/unstable/observability/OtlpResource.d.ts +9 -9
  714. package/dist/unstable/observability/OtlpResource.js +2 -2
  715. package/dist/unstable/observability/OtlpSerialization.d.ts +3 -3
  716. package/dist/unstable/observability/OtlpSerialization.js +3 -3
  717. package/dist/unstable/observability/OtlpTracer.d.ts +5 -2
  718. package/dist/unstable/observability/OtlpTracer.d.ts.map +1 -1
  719. package/dist/unstable/observability/OtlpTracer.js +2 -2
  720. package/dist/unstable/observability/OtlpTracer.js.map +1 -1
  721. package/dist/unstable/observability/PrometheusMetrics.d.ts +7 -7
  722. package/dist/unstable/observability/PrometheusMetrics.js +2 -2
  723. package/dist/unstable/observability/index.d.ts +158 -2
  724. package/dist/unstable/observability/index.d.ts.map +1 -1
  725. package/dist/unstable/observability/index.js +158 -2
  726. package/dist/unstable/observability/index.js.map +1 -1
  727. package/dist/unstable/persistence/KeyValueStore.d.ts +4 -4
  728. package/dist/unstable/persistence/KeyValueStore.js +1 -1
  729. package/dist/unstable/persistence/Persistable.d.ts +11 -11
  730. package/dist/unstable/persistence/Persistable.js +1 -1
  731. package/dist/unstable/persistence/PersistedCache.d.ts +2 -2
  732. package/dist/unstable/persistence/PersistedCache.js +1 -1
  733. package/dist/unstable/persistence/PersistedQueue.d.ts +6 -6
  734. package/dist/unstable/persistence/PersistedQueue.js +3 -3
  735. package/dist/unstable/persistence/Persistence.d.ts +2 -1
  736. package/dist/unstable/persistence/Persistence.d.ts.map +1 -1
  737. package/dist/unstable/persistence/Persistence.js +2 -1
  738. package/dist/unstable/persistence/Persistence.js.map +1 -1
  739. package/dist/unstable/persistence/RateLimiter.d.ts +19 -15
  740. package/dist/unstable/persistence/RateLimiter.d.ts.map +1 -1
  741. package/dist/unstable/persistence/RateLimiter.js +14 -10
  742. package/dist/unstable/persistence/RateLimiter.js.map +1 -1
  743. package/dist/unstable/persistence/Redis.d.ts +3 -3
  744. package/dist/unstable/persistence/Redis.js +3 -3
  745. package/dist/unstable/persistence/index.d.ts +147 -0
  746. package/dist/unstable/persistence/index.d.ts.map +1 -1
  747. package/dist/unstable/persistence/index.js +147 -0
  748. package/dist/unstable/persistence/index.js.map +1 -1
  749. package/dist/unstable/process/ChildProcess.d.ts +41 -41
  750. package/dist/unstable/process/ChildProcess.js +11 -11
  751. package/dist/unstable/process/ChildProcessSpawner.d.ts +10 -10
  752. package/dist/unstable/process/ChildProcessSpawner.js +5 -5
  753. package/dist/unstable/reactivity/AsyncResult.d.ts +8 -6
  754. package/dist/unstable/reactivity/AsyncResult.d.ts.map +1 -1
  755. package/dist/unstable/reactivity/AsyncResult.js +3 -3
  756. package/dist/unstable/reactivity/AsyncResult.js.map +1 -1
  757. package/dist/unstable/reactivity/Atom.d.ts +25 -20
  758. package/dist/unstable/reactivity/Atom.d.ts.map +1 -1
  759. package/dist/unstable/reactivity/Atom.js +12 -12
  760. package/dist/unstable/reactivity/Atom.js.map +1 -1
  761. package/dist/unstable/reactivity/AtomHttpApi.d.ts +2 -2
  762. package/dist/unstable/reactivity/AtomHttpApi.js +1 -1
  763. package/dist/unstable/reactivity/AtomRef.d.ts +2 -2
  764. package/dist/unstable/reactivity/AtomRef.js +1 -1
  765. package/dist/unstable/reactivity/AtomRegistry.d.ts +16 -16
  766. package/dist/unstable/reactivity/AtomRegistry.js +7 -7
  767. package/dist/unstable/reactivity/AtomRpc.d.ts +2 -2
  768. package/dist/unstable/reactivity/AtomRpc.js +1 -1
  769. package/dist/unstable/reactivity/Reactivity.d.ts +2 -3
  770. package/dist/unstable/reactivity/Reactivity.d.ts.map +1 -1
  771. package/dist/unstable/reactivity/Reactivity.js +2 -3
  772. package/dist/unstable/reactivity/Reactivity.js.map +1 -1
  773. package/dist/unstable/reactivity/index.d.ts +167 -0
  774. package/dist/unstable/reactivity/index.d.ts.map +1 -1
  775. package/dist/unstable/reactivity/index.js +167 -0
  776. package/dist/unstable/reactivity/index.js.map +1 -1
  777. package/dist/unstable/rpc/Rpc.d.ts +0 -1
  778. package/dist/unstable/rpc/Rpc.d.ts.map +1 -1
  779. package/dist/unstable/rpc/Rpc.js.map +1 -1
  780. package/dist/unstable/rpc/RpcClient.d.ts +0 -1
  781. package/dist/unstable/rpc/RpcClient.d.ts.map +1 -1
  782. package/dist/unstable/rpc/RpcClient.js.map +1 -1
  783. package/dist/unstable/rpc/RpcClientError.d.ts +2 -2
  784. package/dist/unstable/rpc/RpcClientError.js +2 -2
  785. package/dist/unstable/rpc/RpcMiddleware.d.ts +2 -2
  786. package/dist/unstable/rpc/RpcMiddleware.js +1 -1
  787. package/dist/unstable/rpc/RpcWorker.d.ts +0 -1
  788. package/dist/unstable/rpc/RpcWorker.d.ts.map +1 -1
  789. package/dist/unstable/rpc/RpcWorker.js.map +1 -1
  790. package/dist/unstable/rpc/Utils.d.ts +2 -0
  791. package/dist/unstable/rpc/Utils.d.ts.map +1 -1
  792. package/dist/unstable/rpc/Utils.js +2 -0
  793. package/dist/unstable/rpc/Utils.js.map +1 -1
  794. package/dist/unstable/rpc/index.d.ts +272 -0
  795. package/dist/unstable/rpc/index.d.ts.map +1 -1
  796. package/dist/unstable/rpc/index.js +272 -0
  797. package/dist/unstable/rpc/index.js.map +1 -1
  798. package/dist/unstable/schema/Model.d.ts +63 -8
  799. package/dist/unstable/schema/Model.d.ts.map +1 -1
  800. package/dist/unstable/schema/Model.js +44 -5
  801. package/dist/unstable/schema/Model.js.map +1 -1
  802. package/dist/unstable/schema/VariantSchema.d.ts +1 -4
  803. package/dist/unstable/schema/VariantSchema.d.ts.map +1 -1
  804. package/dist/unstable/schema/VariantSchema.js +1 -1
  805. package/dist/unstable/schema/VariantSchema.js.map +1 -1
  806. package/dist/unstable/schema/index.d.ts +37 -0
  807. package/dist/unstable/schema/index.d.ts.map +1 -1
  808. package/dist/unstable/schema/index.js +37 -0
  809. package/dist/unstable/schema/index.js.map +1 -1
  810. package/dist/unstable/socket/Socket.d.ts +5 -4
  811. package/dist/unstable/socket/Socket.d.ts.map +1 -1
  812. package/dist/unstable/socket/Socket.js +4 -3
  813. package/dist/unstable/socket/Socket.js.map +1 -1
  814. package/dist/unstable/socket/index.d.ts +44 -0
  815. package/dist/unstable/socket/index.d.ts.map +1 -1
  816. package/dist/unstable/socket/index.js +44 -0
  817. package/dist/unstable/socket/index.js.map +1 -1
  818. package/dist/unstable/sql/Migrator.d.ts +5 -5
  819. package/dist/unstable/sql/Migrator.js +1 -1
  820. package/dist/unstable/sql/SqlClient.d.ts +4 -0
  821. package/dist/unstable/sql/SqlClient.d.ts.map +1 -1
  822. package/dist/unstable/sql/SqlClient.js +2 -0
  823. package/dist/unstable/sql/SqlClient.js.map +1 -1
  824. package/dist/unstable/sql/SqlConnection.d.ts +3 -3
  825. package/dist/unstable/sql/SqlError.d.ts +18 -0
  826. package/dist/unstable/sql/SqlError.d.ts.map +1 -1
  827. package/dist/unstable/sql/SqlError.js +17 -0
  828. package/dist/unstable/sql/SqlError.js.map +1 -1
  829. package/dist/unstable/sql/SqlModel.d.ts +0 -1
  830. package/dist/unstable/sql/SqlModel.d.ts.map +1 -1
  831. package/dist/unstable/sql/SqlModel.js.map +1 -1
  832. package/dist/unstable/sql/SqlSchema.d.ts +5 -5
  833. package/dist/unstable/sql/SqlSchema.js +5 -5
  834. package/dist/unstable/sql/SqlStream.d.ts +1 -0
  835. package/dist/unstable/sql/SqlStream.d.ts.map +1 -1
  836. package/dist/unstable/sql/SqlStream.js +1 -0
  837. package/dist/unstable/sql/SqlStream.js.map +1 -1
  838. package/dist/unstable/sql/Statement.d.ts +27 -24
  839. package/dist/unstable/sql/Statement.d.ts.map +1 -1
  840. package/dist/unstable/sql/Statement.js +9 -6
  841. package/dist/unstable/sql/Statement.js.map +1 -1
  842. package/dist/unstable/sql/index.d.ts +178 -0
  843. package/dist/unstable/sql/index.d.ts.map +1 -1
  844. package/dist/unstable/sql/index.js +178 -0
  845. package/dist/unstable/sql/index.js.map +1 -1
  846. package/dist/unstable/workers/Transferable.d.ts +7 -7
  847. package/dist/unstable/workers/Transferable.js +4 -4
  848. package/dist/unstable/workers/Worker.d.ts +1 -0
  849. package/dist/unstable/workers/Worker.d.ts.map +1 -1
  850. package/dist/unstable/workers/Worker.js +1 -0
  851. package/dist/unstable/workers/Worker.js.map +1 -1
  852. package/dist/unstable/workers/WorkerError.d.ts +8 -8
  853. package/dist/unstable/workers/WorkerError.js +7 -7
  854. package/dist/unstable/workers/index.d.ts +80 -0
  855. package/dist/unstable/workers/index.d.ts.map +1 -1
  856. package/dist/unstable/workers/index.js +80 -0
  857. package/dist/unstable/workers/index.js.map +1 -1
  858. package/dist/unstable/workflow/Activity.d.ts +7 -7
  859. package/dist/unstable/workflow/Activity.js +2 -2
  860. package/dist/unstable/workflow/DurableClock.d.ts +2 -2
  861. package/dist/unstable/workflow/DurableClock.js +1 -1
  862. package/dist/unstable/workflow/DurableDeferred.d.ts +22 -20
  863. package/dist/unstable/workflow/DurableDeferred.d.ts.map +1 -1
  864. package/dist/unstable/workflow/DurableDeferred.js +8 -7
  865. package/dist/unstable/workflow/DurableDeferred.js.map +1 -1
  866. package/dist/unstable/workflow/DurableQueue.d.ts +7 -5
  867. package/dist/unstable/workflow/DurableQueue.d.ts.map +1 -1
  868. package/dist/unstable/workflow/DurableQueue.js +5 -3
  869. package/dist/unstable/workflow/DurableQueue.js.map +1 -1
  870. package/dist/unstable/workflow/Workflow.d.ts +12 -10
  871. package/dist/unstable/workflow/Workflow.d.ts.map +1 -1
  872. package/dist/unstable/workflow/Workflow.js +3 -3
  873. package/dist/unstable/workflow/Workflow.js.map +1 -1
  874. package/dist/unstable/workflow/WorkflowEngine.d.ts +4 -4
  875. package/dist/unstable/workflow/WorkflowEngine.js +4 -4
  876. package/dist/unstable/workflow/WorkflowProxy.d.ts +10 -12
  877. package/dist/unstable/workflow/WorkflowProxy.d.ts.map +1 -1
  878. package/dist/unstable/workflow/WorkflowProxy.js +8 -12
  879. package/dist/unstable/workflow/WorkflowProxy.js.map +1 -1
  880. package/dist/unstable/workflow/WorkflowProxyServer.d.ts +3 -2
  881. package/dist/unstable/workflow/WorkflowProxyServer.d.ts.map +1 -1
  882. package/dist/unstable/workflow/WorkflowProxyServer.js +2 -2
  883. package/dist/unstable/workflow/index.d.ts +160 -0
  884. package/dist/unstable/workflow/index.d.ts.map +1 -1
  885. package/dist/unstable/workflow/index.js +160 -0
  886. package/dist/unstable/workflow/index.js.map +1 -1
  887. package/package.json +1 -1
  888. package/src/Array.ts +41 -42
  889. package/src/BigDecimal.ts +265 -265
  890. package/src/BigInt.ts +175 -177
  891. package/src/Boolean.ts +127 -125
  892. package/src/Brand.ts +10 -4
  893. package/src/Cache.ts +42 -42
  894. package/src/Cause.ts +17 -18
  895. package/src/Channel.ts +250 -256
  896. package/src/Chunk.ts +33 -56
  897. package/src/Clock.ts +1 -1
  898. package/src/Combiner.ts +9 -1
  899. package/src/Config.ts +78 -68
  900. package/src/ConfigProvider.ts +33 -32
  901. package/src/Console.ts +23 -23
  902. package/src/Context.ts +70 -108
  903. package/src/Cron.ts +3 -5
  904. package/src/Crypto.ts +327 -0
  905. package/src/Data.ts +6 -1
  906. package/src/DateTime.ts +29 -31
  907. package/src/Deferred.ts +8 -9
  908. package/src/Differ.ts +2 -2
  909. package/src/Duration.ts +30 -27
  910. package/src/Effect.ts +402 -660
  911. package/src/Effectable.ts +2 -2
  912. package/src/Encoding.ts +9 -9
  913. package/src/Equal.ts +4 -3
  914. package/src/Equivalence.ts +4 -5
  915. package/src/ErrorReporter.ts +14 -14
  916. package/src/ExecutionPlan.ts +18 -9
  917. package/src/Exit.ts +0 -1
  918. package/src/Fiber.ts +1 -2
  919. package/src/FiberHandle.ts +5 -5
  920. package/src/FiberMap.ts +10 -10
  921. package/src/FiberSet.ts +4 -4
  922. package/src/FileSystem.ts +10 -12
  923. package/src/Filter.ts +54 -54
  924. package/src/Formatter.ts +4 -70
  925. package/src/Function.ts +64 -65
  926. package/src/Graph.ts +157 -175
  927. package/src/Hash.ts +4 -6
  928. package/src/HashMap.ts +121 -157
  929. package/src/HashRing.ts +34 -34
  930. package/src/HashSet.ts +51 -55
  931. package/src/Inspectable.ts +8 -7
  932. package/src/Iterable.ts +37 -83
  933. package/src/JsonPatch.ts +9 -7
  934. package/src/JsonPointer.ts +13 -11
  935. package/src/JsonSchema.ts +16 -0
  936. package/src/Latch.ts +4 -16
  937. package/src/Layer.ts +94 -135
  938. package/src/LayerMap.ts +15 -16
  939. package/src/LogLevel.ts +13 -13
  940. package/src/Logger.ts +16 -17
  941. package/src/ManagedRuntime.ts +5 -4
  942. package/src/Match.ts +2 -4
  943. package/src/Metric.ts +56 -58
  944. package/src/MutableHashMap.ts +42 -44
  945. package/src/MutableHashSet.ts +0 -2
  946. package/src/MutableList.ts +23 -26
  947. package/src/MutableRef.ts +0 -1
  948. package/src/Newtype.ts +12 -2
  949. package/src/NonEmptyIterable.ts +5 -12
  950. package/src/Number.ts +145 -141
  951. package/src/Optic.ts +5 -5
  952. package/src/Option.ts +105 -109
  953. package/src/Order.ts +6 -6
  954. package/src/Ordering.ts +15 -19
  955. package/src/PartitionedSemaphore.ts +3 -3
  956. package/src/Path.ts +4 -4
  957. package/src/Pipeable.ts +10 -7
  958. package/src/PlatformError.ts +3 -3
  959. package/src/Predicate.ts +3 -5
  960. package/src/PrimaryKey.ts +2 -1
  961. package/src/PubSub.ts +25 -51
  962. package/src/Queue.ts +45 -60
  963. package/src/Random.ts +31 -74
  964. package/src/RcMap.ts +11 -11
  965. package/src/RcRef.ts +0 -1
  966. package/src/Record.ts +9 -8
  967. package/src/Redactable.ts +7 -5
  968. package/src/Redacted.ts +2 -3
  969. package/src/Reducer.ts +3 -1
  970. package/src/Ref.ts +15 -33
  971. package/src/RegExp.ts +1 -1
  972. package/src/Request.ts +2 -1
  973. package/src/RequestResolver.ts +2 -3
  974. package/src/Resource.ts +1 -1
  975. package/src/Result.ts +124 -142
  976. package/src/Runtime.ts +2 -7
  977. package/src/Schedule.ts +74 -77
  978. package/src/Scheduler.ts +2 -2
  979. package/src/Schema.ts +491 -321
  980. package/src/SchemaAST.ts +98 -77
  981. package/src/SchemaGetter.ts +23 -23
  982. package/src/SchemaIssue.ts +18 -16
  983. package/src/SchemaParser.ts +46 -49
  984. package/src/SchemaRepresentation.ts +89 -77
  985. package/src/SchemaTransformation.ts +36 -5
  986. package/src/SchemaUtils.ts +1 -1
  987. package/src/Scope.ts +12 -29
  988. package/src/ScopedCache.ts +43 -43
  989. package/src/Semaphore.ts +4 -16
  990. package/src/Sink.ts +36 -39
  991. package/src/Stdio.ts +6 -6
  992. package/src/Stream.ts +789 -828
  993. package/src/String.ts +3 -2
  994. package/src/Struct.ts +20 -18
  995. package/src/SubscriptionRef.ts +2 -2
  996. package/src/Symbol.ts +3 -3
  997. package/src/SynchronizedRef.ts +1 -1
  998. package/src/Take.ts +2 -2
  999. package/src/Terminal.ts +5 -5
  1000. package/src/Tracer.ts +9 -9
  1001. package/src/Trie.ts +70 -106
  1002. package/src/Tuple.ts +34 -32
  1003. package/src/TxChunk.ts +27 -18
  1004. package/src/TxDeferred.ts +11 -11
  1005. package/src/TxHashMap.ts +62 -63
  1006. package/src/TxHashSet.ts +38 -42
  1007. package/src/TxPriorityQueue.ts +31 -31
  1008. package/src/TxPubSub.ts +18 -18
  1009. package/src/TxQueue.ts +26 -29
  1010. package/src/TxReentrantLock.ts +21 -21
  1011. package/src/TxRef.ts +24 -24
  1012. package/src/TxSemaphore.ts +13 -74
  1013. package/src/TxSubscriptionRef.ts +24 -24
  1014. package/src/Types.ts +1 -4
  1015. package/src/UndefinedOr.ts +14 -0
  1016. package/src/Unify.ts +8 -8
  1017. package/src/Utils.ts +1 -2
  1018. package/src/index.ts +1915 -408
  1019. package/src/testing/FastCheck.ts +3 -3
  1020. package/src/testing/TestClock.ts +2 -3
  1021. package/src/testing/TestConsole.ts +8 -9
  1022. package/src/testing/TestSchema.ts +2 -0
  1023. package/src/testing/index.ts +34 -0
  1024. package/src/unstable/ai/AiError.ts +10 -19
  1025. package/src/unstable/ai/Chat.ts +0 -1
  1026. package/src/unstable/ai/McpSchema.ts +3 -0
  1027. package/src/unstable/ai/McpServer.ts +3 -1
  1028. package/src/unstable/ai/Model.ts +2 -6
  1029. package/src/unstable/ai/Prompt.ts +8 -10
  1030. package/src/unstable/ai/Response.ts +20 -20
  1031. package/src/unstable/ai/ResponseIdTracker.ts +1 -1
  1032. package/src/unstable/ai/Telemetry.ts +5 -5
  1033. package/src/unstable/ai/Tokenizer.ts +1 -1
  1034. package/src/unstable/ai/Tool.ts +14 -12
  1035. package/src/unstable/ai/index.ts +79 -5
  1036. package/src/unstable/cli/CliOutput.ts +5 -6
  1037. package/src/unstable/cli/Command.ts +3 -3
  1038. package/src/unstable/cli/HelpDoc.ts +4 -4
  1039. package/src/unstable/cli/Param.ts +69 -72
  1040. package/src/unstable/cli/Primitive.ts +1 -1
  1041. package/src/unstable/cli/Prompt.ts +6 -14
  1042. package/src/unstable/cli/index.ts +205 -6
  1043. package/src/unstable/cli/internal/parser.ts +0 -1
  1044. package/src/unstable/cluster/ClusterCron.ts +1 -1
  1045. package/src/unstable/cluster/ClusterSchema.ts +8 -8
  1046. package/src/unstable/cluster/ClusterWorkflowEngine.ts +2 -2
  1047. package/src/unstable/cluster/Entity.ts +0 -1
  1048. package/src/unstable/cluster/EntityProxy.ts +10 -14
  1049. package/src/unstable/cluster/EntityProxyServer.ts +3 -2
  1050. package/src/unstable/cluster/EntityResource.ts +2 -2
  1051. package/src/unstable/cluster/Envelope.ts +1 -1
  1052. package/src/unstable/cluster/HttpRunner.ts +11 -11
  1053. package/src/unstable/cluster/K8sHttpClient.ts +5 -5
  1054. package/src/unstable/cluster/MachineId.ts +1 -1
  1055. package/src/unstable/cluster/MessageStorage.ts +1 -2
  1056. package/src/unstable/cluster/Runner.ts +1 -1
  1057. package/src/unstable/cluster/RunnerHealth.ts +2 -2
  1058. package/src/unstable/cluster/RunnerServer.ts +4 -4
  1059. package/src/unstable/cluster/Runners.ts +3 -3
  1060. package/src/unstable/cluster/ShardId.ts +7 -5
  1061. package/src/unstable/cluster/Sharding.ts +1 -1
  1062. package/src/unstable/cluster/ShardingConfig.ts +2 -2
  1063. package/src/unstable/cluster/SingleRunner.ts +1 -1
  1064. package/src/unstable/cluster/Snowflake.ts +10 -9
  1065. package/src/unstable/cluster/SocketRunner.ts +2 -2
  1066. package/src/unstable/cluster/SqlMessageStorage.ts +3 -3
  1067. package/src/unstable/cluster/SqlRunnerStorage.ts +3 -3
  1068. package/src/unstable/cluster/TestRunner.ts +1 -1
  1069. package/src/unstable/cluster/index.ts +790 -0
  1070. package/src/unstable/devtools/index.ts +58 -0
  1071. package/src/unstable/encoding/Sse.ts +16 -16
  1072. package/src/unstable/encoding/index.ts +49 -0
  1073. package/src/unstable/eventlog/Event.ts +2 -2
  1074. package/src/unstable/eventlog/EventGroup.ts +2 -2
  1075. package/src/unstable/eventlog/EventLog.ts +6 -7
  1076. package/src/unstable/eventlog/EventLogRemote.ts +2 -2
  1077. package/src/unstable/eventlog/EventLogServer.ts +2 -2
  1078. package/src/unstable/eventlog/EventLogServerEncrypted.ts +2 -2
  1079. package/src/unstable/eventlog/EventLogServerUnencrypted.ts +1 -1
  1080. package/src/unstable/eventlog/EventLogSessionAuth.ts +1 -1
  1081. package/src/unstable/eventlog/index.ts +240 -0
  1082. package/src/unstable/http/Cookies.ts +6 -6
  1083. package/src/unstable/http/Etag.ts +2 -2
  1084. package/src/unstable/http/Headers.ts +2 -2
  1085. package/src/unstable/http/HttpClient.ts +5 -6
  1086. package/src/unstable/http/HttpClientError.ts +1 -1
  1087. package/src/unstable/http/HttpClientRequest.ts +4 -4
  1088. package/src/unstable/http/HttpClientResponse.ts +6 -6
  1089. package/src/unstable/http/HttpEffect.ts +5 -5
  1090. package/src/unstable/http/HttpIncomingMessage.ts +7 -6
  1091. package/src/unstable/http/HttpMethod.ts +4 -2
  1092. package/src/unstable/http/HttpMiddleware.ts +1 -0
  1093. package/src/unstable/http/HttpRouter.ts +23 -25
  1094. package/src/unstable/http/HttpServerError.ts +4 -1
  1095. package/src/unstable/http/HttpServerRequest.ts +15 -15
  1096. package/src/unstable/http/HttpServerRespondable.ts +1 -1
  1097. package/src/unstable/http/HttpServerResponse.ts +5 -4
  1098. package/src/unstable/http/HttpStaticServer.ts +2 -4
  1099. package/src/unstable/http/Multipart.ts +20 -19
  1100. package/src/unstable/http/Template.ts +0 -1
  1101. package/src/unstable/http/Url.ts +17 -17
  1102. package/src/unstable/http/UrlParams.ts +14 -12
  1103. package/src/unstable/http/index.ts +452 -0
  1104. package/src/unstable/httpapi/HttpApiBuilder.ts +0 -1
  1105. package/src/unstable/httpapi/HttpApiClient.ts +0 -1
  1106. package/src/unstable/httpapi/HttpApiMiddleware.ts +4 -2
  1107. package/src/unstable/httpapi/HttpApiScalar.ts +2 -2
  1108. package/src/unstable/httpapi/HttpApiSchema.ts +19 -8
  1109. package/src/unstable/httpapi/HttpApiSecurity.ts +0 -1
  1110. package/src/unstable/httpapi/HttpApiSwagger.ts +0 -2
  1111. package/src/unstable/httpapi/index.ts +310 -25
  1112. package/src/unstable/observability/Otlp.ts +3 -3
  1113. package/src/unstable/observability/OtlpExporter.ts +1 -1
  1114. package/src/unstable/observability/OtlpLogger.ts +3 -2
  1115. package/src/unstable/observability/OtlpMetrics.ts +5 -4
  1116. package/src/unstable/observability/OtlpResource.ts +9 -9
  1117. package/src/unstable/observability/OtlpSerialization.ts +3 -3
  1118. package/src/unstable/observability/OtlpTracer.ts +5 -2
  1119. package/src/unstable/observability/PrometheusMetrics.ts +7 -7
  1120. package/src/unstable/observability/index.ts +158 -2
  1121. package/src/unstable/persistence/KeyValueStore.ts +4 -4
  1122. package/src/unstable/persistence/Persistable.ts +11 -11
  1123. package/src/unstable/persistence/PersistedCache.ts +2 -2
  1124. package/src/unstable/persistence/PersistedQueue.ts +6 -6
  1125. package/src/unstable/persistence/Persistence.ts +2 -1
  1126. package/src/unstable/persistence/RateLimiter.ts +19 -15
  1127. package/src/unstable/persistence/Redis.ts +3 -3
  1128. package/src/unstable/persistence/index.ts +147 -0
  1129. package/src/unstable/process/ChildProcess.ts +42 -42
  1130. package/src/unstable/process/ChildProcessSpawner.ts +10 -10
  1131. package/src/unstable/reactivity/AsyncResult.ts +8 -6
  1132. package/src/unstable/reactivity/Atom.ts +25 -20
  1133. package/src/unstable/reactivity/AtomHttpApi.ts +2 -2
  1134. package/src/unstable/reactivity/AtomRef.ts +2 -2
  1135. package/src/unstable/reactivity/AtomRegistry.ts +17 -17
  1136. package/src/unstable/reactivity/AtomRpc.ts +2 -2
  1137. package/src/unstable/reactivity/Reactivity.ts +2 -3
  1138. package/src/unstable/reactivity/index.ts +167 -0
  1139. package/src/unstable/rpc/Rpc.ts +0 -1
  1140. package/src/unstable/rpc/RpcClient.ts +0 -1
  1141. package/src/unstable/rpc/RpcClientError.ts +2 -2
  1142. package/src/unstable/rpc/RpcMiddleware.ts +2 -2
  1143. package/src/unstable/rpc/RpcWorker.ts +0 -1
  1144. package/src/unstable/rpc/Utils.ts +2 -0
  1145. package/src/unstable/rpc/index.ts +272 -0
  1146. package/src/unstable/schema/Model.ts +98 -10
  1147. package/src/unstable/schema/VariantSchema.ts +1 -4
  1148. package/src/unstable/schema/index.ts +37 -0
  1149. package/src/unstable/socket/Socket.ts +5 -4
  1150. package/src/unstable/socket/index.ts +44 -0
  1151. package/src/unstable/sql/Migrator.ts +5 -5
  1152. package/src/unstable/sql/SqlClient.ts +4 -0
  1153. package/src/unstable/sql/SqlConnection.ts +3 -3
  1154. package/src/unstable/sql/SqlError.ts +18 -0
  1155. package/src/unstable/sql/SqlModel.ts +0 -1
  1156. package/src/unstable/sql/SqlSchema.ts +5 -5
  1157. package/src/unstable/sql/SqlStream.ts +1 -0
  1158. package/src/unstable/sql/Statement.ts +27 -24
  1159. package/src/unstable/sql/index.ts +178 -0
  1160. package/src/unstable/workers/Transferable.ts +7 -7
  1161. package/src/unstable/workers/Worker.ts +1 -0
  1162. package/src/unstable/workers/WorkerError.ts +8 -8
  1163. package/src/unstable/workers/index.ts +80 -0
  1164. package/src/unstable/workflow/Activity.ts +7 -7
  1165. package/src/unstable/workflow/DurableClock.ts +2 -2
  1166. package/src/unstable/workflow/DurableDeferred.ts +22 -20
  1167. package/src/unstable/workflow/DurableQueue.ts +7 -5
  1168. package/src/unstable/workflow/Workflow.ts +12 -10
  1169. package/src/unstable/workflow/WorkflowEngine.ts +4 -4
  1170. package/src/unstable/workflow/WorkflowProxy.ts +10 -12
  1171. package/src/unstable/workflow/WorkflowProxyServer.ts +3 -2
  1172. package/src/unstable/workflow/index.ts +160 -0
package/src/Effect.ts CHANGED
@@ -137,7 +137,7 @@ import { internalCall } from "./Utils.ts"
137
137
  * Type-level identifier for `Effect` values.
138
138
  *
139
139
  * @category Type identifiers
140
- * @since 2.0.0
140
+ * @since 4.0.0
141
141
  */
142
142
  export type TypeId = "~effect/Effect"
143
143
 
@@ -145,7 +145,7 @@ export type TypeId = "~effect/Effect"
145
145
  * Runtime identifier used to recognize `Effect` values.
146
146
  *
147
147
  * @category Type identifiers
148
- * @since 2.0.0
148
+ * @since 4.0.0
149
149
  */
150
150
  export const TypeId: TypeId = core.EffectTypeId
151
151
 
@@ -163,7 +163,7 @@ export const TypeId: TypeId = core.EffectTypeId
163
163
  * To run an `Effect` value, you need a `Runtime`, which is a type that is
164
164
  * capable of executing `Effect` values.
165
165
  *
166
- * @category Models
166
+ * @category models
167
167
  * @since 2.0.0
168
168
  */
169
169
  export interface Effect<out A, out E = never, out R = never> extends Pipeable, Inspectable {
@@ -177,7 +177,7 @@ export interface Effect<out A, out E = never, out R = never> extends Pipeable, I
177
177
  /**
178
178
  * Type-level unification support for `Effect` values.
179
179
  *
180
- * @category Models
180
+ * @category models
181
181
  * @since 2.0.0
182
182
  */
183
183
  export interface EffectUnify<A extends { [Unify.typeSymbol]?: any }> {
@@ -200,7 +200,7 @@ export interface EffectTypeLambda extends TypeLambda {
200
200
  /**
201
201
  * Variance interface for Effect, encoding the type parameters' variance.
202
202
  *
203
- * @category Models
203
+ * @category models
204
204
  * @since 2.0.0
205
205
  */
206
206
  export interface Variance<A, E, R> {
@@ -212,7 +212,7 @@ export interface Variance<A, E, R> {
212
212
  /**
213
213
  * Extracts the success type from an `Effect`.
214
214
  *
215
- * @category Models
215
+ * @category models
216
216
  * @since 2.0.0
217
217
  */
218
218
  export type Success<T> = T extends Effect<infer _A, infer _E, infer _R> ? _A
@@ -221,7 +221,7 @@ export type Success<T> = T extends Effect<infer _A, infer _E, infer _R> ? _A
221
221
  /**
222
222
  * Extracts the error type from an `Effect`.
223
223
  *
224
- * @category Models
224
+ * @category models
225
225
  * @since 2.0.0
226
226
  */
227
227
  export type Error<T> = T extends Effect<infer _A, infer _E, infer _R> ? _E
@@ -230,8 +230,8 @@ export type Error<T> = T extends Effect<infer _A, infer _E, infer _R> ? _E
230
230
  /**
231
231
  * Extracts the required services type from an `Effect`.
232
232
  *
233
- * @category Models
234
- * @since 2.0.0
233
+ * @category models
234
+ * @since 4.0.0
235
235
  */
236
236
  export type Services<T> = T extends Effect<infer _A, infer _E, infer _R> ? _R
237
237
  : never
@@ -248,7 +248,7 @@ export type Services<T> = T extends Effect<infer _A, infer _E, infer _R> ? _R
248
248
  * console.log(Effect.isEffect("hello")) // false
249
249
  * ```
250
250
  *
251
- * @category Guards
251
+ * @category guards
252
252
  * @since 2.0.0
253
253
  */
254
254
  export const isEffect: (u: unknown) => u is Effect<any, any, any> = core.isEffect
@@ -256,8 +256,8 @@ export const isEffect: (u: unknown) => u is Effect<any, any, any> = core.isEffec
256
256
  /**
257
257
  * Iterator interface for Effect generators, enabling Effect values to work with generator functions.
258
258
  *
259
- * @category Models
260
- * @since 2.0.0
259
+ * @category models
260
+ * @since 4.0.0
261
261
  */
262
262
  export interface EffectIterator<T extends Effect<any, any, any>> {
263
263
  next(
@@ -273,14 +273,13 @@ export interface EffectIterator<T extends Effect<any, any, any>> {
273
273
  * Namespace containing type utilities for the `Effect.all` function, which handles
274
274
  * collecting multiple effects into various output structures.
275
275
  *
276
- * @category Models
277
276
  * @since 2.0.0
278
277
  */
279
278
  export declare namespace All {
280
279
  /**
281
280
  * Alias for any `Effect` value accepted by `Effect.all`.
282
281
  *
283
- * @category Models
282
+ * @category models
284
283
  * @since 2.0.0
285
284
  */
286
285
  export type EffectAny = Effect<any, any, any>
@@ -288,7 +287,7 @@ export declare namespace All {
288
287
  /**
289
288
  * Computes the return type for `Effect.all` when collecting an iterable.
290
289
  *
291
- * @category Models
290
+ * @category models
292
291
  * @since 2.0.0
293
292
  */
294
293
  export type ReturnIterable<
@@ -305,7 +304,7 @@ export declare namespace All {
305
304
  /**
306
305
  * Computes the return type for `Effect.all` when collecting a tuple.
307
306
  *
308
- * @category Models
307
+ * @category models
309
308
  * @since 2.0.0
310
309
  */
311
310
  export type ReturnTuple<
@@ -336,7 +335,7 @@ export declare namespace All {
336
335
  /**
337
336
  * Computes the return type for `Effect.all` when collecting a record.
338
337
  *
339
- * @category Models
338
+ * @category models
340
339
  * @since 2.0.0
341
340
  */
342
341
  export type ReturnObject<T, Discard extends boolean, Mode extends boolean = false> = [T] extends [
@@ -362,7 +361,7 @@ export declare namespace All {
362
361
  /**
363
362
  * Detects whether `Effect.all` should discard collected values.
364
363
  *
365
- * @category Models
364
+ * @category models
366
365
  * @since 2.0.0
367
366
  */
368
367
  export type IsDiscard<A> = [Extract<A, { readonly discard: true }>] extends [
@@ -373,7 +372,7 @@ export declare namespace All {
373
372
  /**
374
373
  * Detects whether `Effect.all` should collect results in `Result` mode.
375
374
  *
376
- * @category Models
375
+ * @category models
377
376
  * @since 4.0.0
378
377
  */
379
378
  export type IsResult<A> = [Extract<A, { readonly mode: "result" }>] extends [never] ? false : true
@@ -381,7 +380,7 @@ export declare namespace All {
381
380
  /**
382
381
  * Computes the return type for `Effect.all` from its input and options.
383
382
  *
384
- * @category Models
383
+ * @category models
385
384
  * @since 2.0.0
386
385
  */
387
386
  export type Return<
@@ -566,7 +565,7 @@ export const all: <
566
565
  * ```
567
566
  *
568
567
  * @category Collecting
569
- * @since 3.0.0
568
+ * @since 2.0.0
570
569
  */
571
570
  export const partition: {
572
571
  /**
@@ -595,7 +594,7 @@ export const partition: {
595
594
  * ```
596
595
  *
597
596
  * @category Collecting
598
- * @since 3.0.0
597
+ * @since 2.0.0
599
598
  */
600
599
  <A, B, E, R>(
601
600
  f: (a: A, i: number) => Effect<B, E, R>,
@@ -627,7 +626,7 @@ export const partition: {
627
626
  * ```
628
627
  *
629
628
  * @category Collecting
630
- * @since 3.0.0
629
+ * @since 2.0.0
631
630
  */
632
631
  <A, B, E, R>(
633
632
  elements: Iterable<A>,
@@ -670,7 +669,7 @@ export const partition: {
670
669
  * ```
671
670
  *
672
671
  * @category Error Accumulation
673
- * @since 4.0.0
672
+ * @since 2.0.0
674
673
  */
675
674
  export const validate: {
676
675
  /**
@@ -707,7 +706,7 @@ export const validate: {
707
706
  * ```
708
707
  *
709
708
  * @category Error Accumulation
710
- * @since 4.0.0
709
+ * @since 2.0.0
711
710
  */
712
711
  <A, B, E, R>(
713
712
  f: (a: A, i: number) => Effect<B, E, R>,
@@ -750,7 +749,7 @@ export const validate: {
750
749
  * ```
751
750
  *
752
751
  * @category Error Accumulation
753
- * @since 4.0.0
752
+ * @since 2.0.0
754
753
  */
755
754
  <A, B, E, R>(
756
755
  f: (a: A, i: number) => Effect<B, E, R>,
@@ -793,7 +792,7 @@ export const validate: {
793
792
  * ```
794
793
  *
795
794
  * @category Error Accumulation
796
- * @since 4.0.0
795
+ * @since 2.0.0
797
796
  */
798
797
  <A, B, E, R>(
799
798
  elements: Iterable<A>,
@@ -837,7 +836,7 @@ export const validate: {
837
836
  * ```
838
837
  *
839
838
  * @category Error Accumulation
840
- * @since 4.0.0
839
+ * @since 2.0.0
841
840
  */
842
841
  <A, B, E, R>(
843
842
  elements: Iterable<A>,
@@ -980,8 +979,7 @@ export const findFirstFilter: {
980
979
  * **Example** (Applying Effects to Iterable Elements)
981
980
  *
982
981
  * ```ts
983
- * import { Effect } from "effect"
984
- * import { Console } from "effect"
982
+ * import { Console, Effect } from "effect"
985
983
  *
986
984
  * const result = Effect.forEach(
987
985
  * [1, 2, 3, 4, 5],
@@ -1002,8 +1000,7 @@ export const findFirstFilter: {
1002
1000
  * **Example** (Using discard to Ignore Results)
1003
1001
  *
1004
1002
  * ```ts
1005
- * import { Effect } from "effect"
1006
- * import { Console } from "effect"
1003
+ * import { Console, Effect } from "effect"
1007
1004
  *
1008
1005
  * // Apply effects but discard the results
1009
1006
  * const result = Effect.forEach(
@@ -1053,8 +1050,7 @@ export const forEach: {
1053
1050
  * **Example** (Applying Effects to Iterable Elements)
1054
1051
  *
1055
1052
  * ```ts
1056
- * import { Effect } from "effect"
1057
- * import { Console } from "effect"
1053
+ * import { Console, Effect } from "effect"
1058
1054
  *
1059
1055
  * const result = Effect.forEach(
1060
1056
  * [1, 2, 3, 4, 5],
@@ -1075,8 +1071,7 @@ export const forEach: {
1075
1071
  * **Example** (Using discard to Ignore Results)
1076
1072
  *
1077
1073
  * ```ts
1078
- * import { Effect } from "effect"
1079
- * import { Console } from "effect"
1074
+ * import { Console, Effect } from "effect"
1080
1075
  *
1081
1076
  * // Apply effects but discard the results
1082
1077
  * const result = Effect.forEach(
@@ -1129,8 +1124,7 @@ export const forEach: {
1129
1124
  * **Example** (Applying Effects to Iterable Elements)
1130
1125
  *
1131
1126
  * ```ts
1132
- * import { Effect } from "effect"
1133
- * import { Console } from "effect"
1127
+ * import { Console, Effect } from "effect"
1134
1128
  *
1135
1129
  * const result = Effect.forEach(
1136
1130
  * [1, 2, 3, 4, 5],
@@ -1151,8 +1145,7 @@ export const forEach: {
1151
1145
  * **Example** (Using discard to Ignore Results)
1152
1146
  *
1153
1147
  * ```ts
1154
- * import { Effect } from "effect"
1155
- * import { Console } from "effect"
1148
+ * import { Console, Effect } from "effect"
1156
1149
  *
1157
1150
  * // Apply effects but discard the results
1158
1151
  * const result = Effect.forEach(
@@ -1236,7 +1229,7 @@ export const whileLoop: <A, E, R>(options: {
1236
1229
  * This defect is not a standard error but indicates a flaw in the logic that
1237
1230
  * was expected to be error-free. You can think of it similar to an unexpected
1238
1231
  * crash in the program, which can be further managed or logged using tools like
1239
- * {@link catchAllDefect}.
1232
+ * {@link catchDefect}.
1240
1233
  *
1241
1234
  * **Interruptions**
1242
1235
  *
@@ -1514,7 +1507,7 @@ export const suspend: <A, E, R>(
1514
1507
  * This defect is not a standard error but indicates a flaw in the logic that
1515
1508
  * was expected to be error-free. You can think of it similar to an unexpected
1516
1509
  * crash in the program, which can be further managed or logged using tools like
1517
- * {@link catchAllDefect}.
1510
+ * {@link catchDefect}.
1518
1511
  *
1519
1512
  * @see {@link try_ | try} for a version that can handle failures.
1520
1513
  *
@@ -1571,12 +1564,6 @@ export {
1571
1564
  * Use `Effect.callback` when integrating APIs that complete through callbacks
1572
1565
  * instead of returning a `Promise`.
1573
1566
  *
1574
- * **Previously Known As**
1575
- *
1576
- * This API replaces the following from Effect 3.x:
1577
- *
1578
- * - `Effect.async`
1579
- *
1580
1567
  * **Example** (Usage)
1581
1568
  *
1582
1569
  * ```ts
@@ -1595,7 +1582,7 @@ export {
1595
1582
  * ```
1596
1583
  *
1597
1584
  * @category Creating Effects
1598
- * @since 2.0.0
1585
+ * @since 4.0.0
1599
1586
  */
1600
1587
  export const callback: <A, E = never, R = never>(
1601
1588
  register: (
@@ -1636,8 +1623,7 @@ export const never: Effect<never> = internal.never
1636
1623
  * **Example** (Usage)
1637
1624
  *
1638
1625
  * ```ts
1639
- * import { Effect } from "effect"
1640
- * import { pipe } from "effect/Function"
1626
+ * import { Effect, pipe } from "effect"
1641
1627
  *
1642
1628
  * const program = pipe(
1643
1629
  * Effect.Do,
@@ -1648,7 +1634,7 @@ export const never: Effect<never> = internal.never
1648
1634
  * ```
1649
1635
  *
1650
1636
  * @category Do notation
1651
- * @since 4.0.0
1637
+ * @since 2.0.0
1652
1638
  */
1653
1639
  export const Do: Effect<{}> = internal.Do
1654
1640
 
@@ -1657,7 +1643,7 @@ export const Do: Effect<{}> = internal.Do
1657
1643
  * record used in do notation pipelines.
1658
1644
  *
1659
1645
  * @category Do notation
1660
- * @since 4.0.0
1646
+ * @since 2.0.0
1661
1647
  */
1662
1648
  export const bindTo: {
1663
1649
  /**
@@ -1665,7 +1651,7 @@ export const bindTo: {
1665
1651
  * record used in do notation pipelines.
1666
1652
  *
1667
1653
  * @category Do notation
1668
- * @since 4.0.0
1654
+ * @since 2.0.0
1669
1655
  */
1670
1656
  <N extends string>(name: N): <A, E, R>(self: Effect<A, E, R>) => Effect<{ [K in N]: A }, E, R>
1671
1657
  /**
@@ -1673,7 +1659,7 @@ export const bindTo: {
1673
1659
  * record used in do notation pipelines.
1674
1660
  *
1675
1661
  * @category Do notation
1676
- * @since 4.0.0
1662
+ * @since 2.0.0
1677
1663
  */
1678
1664
  <A, E, R, N extends string>(self: Effect<A, E, R>, name: N): Effect<{ [K in N]: A }, E, R>
1679
1665
  } = internal.bindTo
@@ -1697,7 +1683,7 @@ export {
1697
1683
  * Adds a computed plain value to the do notation record.
1698
1684
  *
1699
1685
  * @category Do notation
1700
- * @since 4.0.0
1686
+ * @since 2.0.0
1701
1687
  */
1702
1688
  let_ as let
1703
1689
  }
@@ -1706,14 +1692,14 @@ export {
1706
1692
  * Adds an `Effect` value to the do notation record under a given name.
1707
1693
  *
1708
1694
  * @category Do notation
1709
- * @since 4.0.0
1695
+ * @since 2.0.0
1710
1696
  */
1711
1697
  export const bind: {
1712
1698
  /**
1713
1699
  * Adds an `Effect` value to the do notation record under a given name.
1714
1700
  *
1715
1701
  * @category Do notation
1716
- * @since 4.0.0
1702
+ * @since 2.0.0
1717
1703
  */
1718
1704
  <N extends string, A extends Record<string, any>, B, E2, R2>(name: N, f: (a: NoInfer<A>) => Effect<B, E2, R2>): <E, R>(
1719
1705
  self: Effect<A, E, R>
@@ -1722,7 +1708,7 @@ export const bind: {
1722
1708
  * Adds an `Effect` value to the do notation record under a given name.
1723
1709
  *
1724
1710
  * @category Do notation
1725
- * @since 4.0.0
1711
+ * @since 2.0.0
1726
1712
  */
1727
1713
  <A extends Record<string, any>, E, R, B, E2, R2, N extends string>(self: Effect<A, E, R>, name: N, f: (a: NoInfer<A>) => Effect<B, E2, R2>): Effect<Simplify<Omit<A, N> & Record<N, B>>, E | E2, R | R2>
1728
1714
  } = internal.bind
@@ -1909,8 +1895,7 @@ export const gen: {
1909
1895
  /**
1910
1896
  * Type helpers for `Effect.gen` generator return signatures.
1911
1897
  *
1912
- * @category Creating Effects
1913
- * @since 4.0.0
1898
+ * @since 2.0.0
1914
1899
  */
1915
1900
  export namespace gen {
1916
1901
  /**
@@ -1929,7 +1914,7 @@ export namespace gen {
1929
1914
  *
1930
1915
  * Use this function to explicitly signal an error in an `Effect`. The error
1931
1916
  * will keep propagating unless it is handled. You can handle the error with
1932
- * functions like {@link catchAll} or {@link catchTag}.
1917
+ * functions like {@link catchTag} or {@link catchTags}.
1933
1918
  *
1934
1919
  * @see {@link succeed} to create an effect that represents a successful value.
1935
1920
  *
@@ -2043,8 +2028,7 @@ export const failCauseSync: <E>(
2043
2028
  * The error channel of the resulting effect is of type `never`, indicating that
2044
2029
  * it cannot recover from this failure.
2045
2030
  *
2046
- * @see {@link dieSync} for a variant that throws a specified error, evaluated lazily.
2047
- * @see {@link dieMessage} for a variant that throws a `RuntimeException` with a message.
2031
+ * @see {@link die} for a variant that dies with an already computed defect.
2048
2032
  *
2049
2033
  * **Example** (Terminating on Division by Zero with a Specified Error)
2050
2034
  *
@@ -2183,7 +2167,7 @@ export const yieldNow: Effect<void> = internal.yieldNow
2183
2167
  * ```
2184
2168
  *
2185
2169
  * @category Creating Effects
2186
- * @since 2.0.0
2170
+ * @since 4.0.0
2187
2171
  */
2188
2172
  export const yieldNowWith: (priority?: number) => Effect<void> = internal.yieldNowWith
2189
2173
 
@@ -2204,7 +2188,7 @@ export const yieldNowWith: (priority?: number) => Effect<void> = internal.yieldN
2204
2188
  * ```
2205
2189
  *
2206
2190
  * @category Creating Effects
2207
- * @since 2.0.0
2191
+ * @since 4.0.0
2208
2192
  */
2209
2193
  export const withFiber: <A, E = never, R = never>(
2210
2194
  evaluate: (fiber: Fiber<unknown, unknown>) => Effect<A, E, R>
@@ -2233,7 +2217,7 @@ export const withFiber: <A, E = never, R = never>(
2233
2217
  * // { _id: 'Exit', _tag: 'Failure', cause: { _id: 'Cause', _tag: 'Fail', failure: 'Something went wrong' } }
2234
2218
  * ```
2235
2219
  *
2236
- * @category Conversions
2220
+ * @category converting
2237
2221
  * @since 4.0.0
2238
2222
  */
2239
2223
  export const fromResult: <A, E>(result: Result.Result<A, E>) => Effect<A, E> = internal.fromResult
@@ -2260,7 +2244,7 @@ export const fromResult: <A, E>(result: Result.Result<A, E>) => Effect<A, E> = i
2260
2244
  * // { _id: 'Exit', _tag: 'Failure', cause: { _id: 'Cause', _tag: 'Fail', failure: { _id: 'NoSuchElementError' } } }
2261
2245
  * ```
2262
2246
  *
2263
- * @category Conversions
2247
+ * @category converting
2264
2248
  * @since 4.0.0
2265
2249
  */
2266
2250
  export const fromOption: <A>(
@@ -2289,7 +2273,7 @@ export const fromOption: <A>(
2289
2273
  * // Output: hello
2290
2274
  * ```
2291
2275
  *
2292
- * @category Conversions
2276
+ * @category converting
2293
2277
  * @since 4.0.0
2294
2278
  */
2295
2279
  export const fromNullishOr: <A>(value: A) => Effect<NonNullable<A>, Cause.NoSuchElementError> = internal.fromNullishOr
@@ -2359,7 +2343,7 @@ export const fromNullishOr: <A>(value: A) => Effect<NonNullable<A>, Cause.NoSuch
2359
2343
  *
2360
2344
  * @see {@link tap} for a version that ignores the result of the effect.
2361
2345
  *
2362
- * @category Sequencing
2346
+ * @category sequencing
2363
2347
  * @since 2.0.0
2364
2348
  */
2365
2349
  export const flatMap: {
@@ -2428,7 +2412,7 @@ export const flatMap: {
2428
2412
  *
2429
2413
  * @see {@link tap} for a version that ignores the result of the effect.
2430
2414
  *
2431
- * @category Sequencing
2415
+ * @category sequencing
2432
2416
  * @since 2.0.0
2433
2417
  */
2434
2418
  <A, B, E1, R1>(f: (a: A) => Effect<B, E1, R1>): <E, R>(self: Effect<A, E, R>) => Effect<B, E1 | E, R1 | R>
@@ -2497,7 +2481,7 @@ export const flatMap: {
2497
2481
  *
2498
2482
  * @see {@link tap} for a version that ignores the result of the effect.
2499
2483
  *
2500
- * @category Sequencing
2484
+ * @category sequencing
2501
2485
  * @since 2.0.0
2502
2486
  */
2503
2487
  <A, E, R, B, E1, R1>(self: Effect<A, E, R>, f: (a: A) => Effect<B, E1, R1>): Effect<B, E | E1, R | R1>
@@ -2520,7 +2504,7 @@ export const flatMap: {
2520
2504
  * })
2521
2505
  * ```
2522
2506
  *
2523
- * @category Sequencing
2507
+ * @category sequencing
2524
2508
  * @since 2.0.0
2525
2509
  */
2526
2510
  export const flatten: <A, E, R, E2, R2>(self: Effect<Effect<A, E, R>, E2, R2>) => Effect<A, E | E2, R | R2> =
@@ -2555,12 +2539,6 @@ export const flatten: <A, E, R, E2, R2>(self: Effect<Effect<A, E, R>, E2, R2>) =
2555
2539
  * Failures or requirements from either effect are preserved in the returned
2556
2540
  * effect.
2557
2541
  *
2558
- * **Previously Known As**
2559
- *
2560
- * This API replaces the following from Effect 3.x:
2561
- *
2562
- * - `Effect.zipRight`
2563
- *
2564
2542
  * **Example** (Applying a Discount Based on Fetched Amount)
2565
2543
  *
2566
2544
  * ```ts
@@ -2601,7 +2579,7 @@ export const flatten: <A, E, R, E2, R2>(self: Effect<Effect<A, E, R>, E2, R2>) =
2601
2579
  * // Output: 190
2602
2580
  * ```
2603
2581
  *
2604
- * @category Sequencing
2582
+ * @category sequencing
2605
2583
  * @since 2.0.0
2606
2584
  */
2607
2585
  export const andThen: {
@@ -2634,12 +2612,6 @@ export const andThen: {
2634
2612
  * Failures or requirements from either effect are preserved in the returned
2635
2613
  * effect.
2636
2614
  *
2637
- * **Previously Known As**
2638
- *
2639
- * This API replaces the following from Effect 3.x:
2640
- *
2641
- * - `Effect.zipRight`
2642
- *
2643
2615
  * **Example** (Applying a Discount Based on Fetched Amount)
2644
2616
  *
2645
2617
  * ```ts
@@ -2680,7 +2652,7 @@ export const andThen: {
2680
2652
  * // Output: 190
2681
2653
  * ```
2682
2654
  *
2683
- * @category Sequencing
2655
+ * @category sequencing
2684
2656
  * @since 2.0.0
2685
2657
  */
2686
2658
  <A, B, E2, R2>(f: (a: A) => Effect<B, E2, R2>): <E, R>(self: Effect<A, E, R>) => Effect<B, E | E2, R | R2>
@@ -2713,12 +2685,6 @@ export const andThen: {
2713
2685
  * Failures or requirements from either effect are preserved in the returned
2714
2686
  * effect.
2715
2687
  *
2716
- * **Previously Known As**
2717
- *
2718
- * This API replaces the following from Effect 3.x:
2719
- *
2720
- * - `Effect.zipRight`
2721
- *
2722
2688
  * **Example** (Applying a Discount Based on Fetched Amount)
2723
2689
  *
2724
2690
  * ```ts
@@ -2759,7 +2725,7 @@ export const andThen: {
2759
2725
  * // Output: 190
2760
2726
  * ```
2761
2727
  *
2762
- * @category Sequencing
2728
+ * @category sequencing
2763
2729
  * @since 2.0.0
2764
2730
  */
2765
2731
  <B, E2, R2>(f: Effect<B, E2, R2>): <A, E, R>(self: Effect<A, E, R>) => Effect<B, E | E2, R | R2>
@@ -2792,12 +2758,6 @@ export const andThen: {
2792
2758
  * Failures or requirements from either effect are preserved in the returned
2793
2759
  * effect.
2794
2760
  *
2795
- * **Previously Known As**
2796
- *
2797
- * This API replaces the following from Effect 3.x:
2798
- *
2799
- * - `Effect.zipRight`
2800
- *
2801
2761
  * **Example** (Applying a Discount Based on Fetched Amount)
2802
2762
  *
2803
2763
  * ```ts
@@ -2838,7 +2798,7 @@ export const andThen: {
2838
2798
  * // Output: 190
2839
2799
  * ```
2840
2800
  *
2841
- * @category Sequencing
2801
+ * @category sequencing
2842
2802
  * @since 2.0.0
2843
2803
  */
2844
2804
  <A, E, R, B, E2, R2>(self: Effect<A, E, R>, f: (a: A) => Effect<B, E2, R2>): Effect<B, E | E2, R | R2>
@@ -2871,12 +2831,6 @@ export const andThen: {
2871
2831
  * Failures or requirements from either effect are preserved in the returned
2872
2832
  * effect.
2873
2833
  *
2874
- * **Previously Known As**
2875
- *
2876
- * This API replaces the following from Effect 3.x:
2877
- *
2878
- * - `Effect.zipRight`
2879
- *
2880
2834
  * **Example** (Applying a Discount Based on Fetched Amount)
2881
2835
  *
2882
2836
  * ```ts
@@ -2917,7 +2871,7 @@ export const andThen: {
2917
2871
  * // Output: 190
2918
2872
  * ```
2919
2873
  *
2920
- * @category Sequencing
2874
+ * @category sequencing
2921
2875
  * @since 2.0.0
2922
2876
  */
2923
2877
  <A, E, R, B, E2, R2>(self: Effect<A, E, R>, f: Effect<B, E2, R2>): Effect<B, E | E2, R | R2>
@@ -2940,17 +2894,10 @@ export const andThen: {
2940
2894
  * next part of the chain. Note that if the side effect fails, the entire chain
2941
2895
  * will fail too.
2942
2896
  *
2943
- * **Previously Known As**
2944
- *
2945
- * This API replaces the following from Effect 3.x:
2946
- *
2947
- * - `Effect.zipLeft`
2948
- *
2949
2897
  * **Example** (Logging a step in a pipeline)
2950
2898
  *
2951
2899
  * ```ts
2952
- * import { Data, Effect, pipe } from "effect"
2953
- * import { Console } from "effect"
2900
+ * import { Console, Data, Effect, pipe } from "effect"
2954
2901
  *
2955
2902
  * class DiscountRateError extends Data.TaggedError("DiscountRateError")<{}> {}
2956
2903
  *
@@ -2980,7 +2927,7 @@ export const andThen: {
2980
2927
  * // 95
2981
2928
  * ```
2982
2929
  *
2983
- * @category Sequencing
2930
+ * @category sequencing
2984
2931
  * @since 2.0.0
2985
2932
  */
2986
2933
  export const tap: {
@@ -3001,17 +2948,10 @@ export const tap: {
3001
2948
  * next part of the chain. Note that if the side effect fails, the entire chain
3002
2949
  * will fail too.
3003
2950
  *
3004
- * **Previously Known As**
3005
- *
3006
- * This API replaces the following from Effect 3.x:
3007
- *
3008
- * - `Effect.zipLeft`
3009
- *
3010
2951
  * **Example** (Logging a step in a pipeline)
3011
2952
  *
3012
2953
  * ```ts
3013
- * import { Data, Effect, pipe } from "effect"
3014
- * import { Console } from "effect"
2954
+ * import { Console, Data, Effect, pipe } from "effect"
3015
2955
  *
3016
2956
  * class DiscountRateError extends Data.TaggedError("DiscountRateError")<{}> {}
3017
2957
  *
@@ -3041,7 +2981,7 @@ export const tap: {
3041
2981
  * // 95
3042
2982
  * ```
3043
2983
  *
3044
- * @category Sequencing
2984
+ * @category sequencing
3045
2985
  * @since 2.0.0
3046
2986
  */
3047
2987
  <A, B, E2, R2>(f: (a: NoInfer<A>) => Effect<B, E2, R2>): <E, R>(self: Effect<A, E, R>) => Effect<A, E | E2, R | R2>
@@ -3062,17 +3002,10 @@ export const tap: {
3062
3002
  * next part of the chain. Note that if the side effect fails, the entire chain
3063
3003
  * will fail too.
3064
3004
  *
3065
- * **Previously Known As**
3066
- *
3067
- * This API replaces the following from Effect 3.x:
3068
- *
3069
- * - `Effect.zipLeft`
3070
- *
3071
3005
  * **Example** (Logging a step in a pipeline)
3072
3006
  *
3073
3007
  * ```ts
3074
- * import { Data, Effect, pipe } from "effect"
3075
- * import { Console } from "effect"
3008
+ * import { Console, Data, Effect, pipe } from "effect"
3076
3009
  *
3077
3010
  * class DiscountRateError extends Data.TaggedError("DiscountRateError")<{}> {}
3078
3011
  *
@@ -3102,7 +3035,7 @@ export const tap: {
3102
3035
  * // 95
3103
3036
  * ```
3104
3037
  *
3105
- * @category Sequencing
3038
+ * @category sequencing
3106
3039
  * @since 2.0.0
3107
3040
  */
3108
3041
  <B, E2, R2>(f: Effect<B, E2, R2>): <A, E, R>(self: Effect<A, E, R>) => Effect<A, E | E2, R | R2>
@@ -3123,17 +3056,10 @@ export const tap: {
3123
3056
  * next part of the chain. Note that if the side effect fails, the entire chain
3124
3057
  * will fail too.
3125
3058
  *
3126
- * **Previously Known As**
3127
- *
3128
- * This API replaces the following from Effect 3.x:
3129
- *
3130
- * - `Effect.zipLeft`
3131
- *
3132
3059
  * **Example** (Logging a step in a pipeline)
3133
3060
  *
3134
3061
  * ```ts
3135
- * import { Data, Effect, pipe } from "effect"
3136
- * import { Console } from "effect"
3062
+ * import { Console, Data, Effect, pipe } from "effect"
3137
3063
  *
3138
3064
  * class DiscountRateError extends Data.TaggedError("DiscountRateError")<{}> {}
3139
3065
  *
@@ -3163,7 +3089,7 @@ export const tap: {
3163
3089
  * // 95
3164
3090
  * ```
3165
3091
  *
3166
- * @category Sequencing
3092
+ * @category sequencing
3167
3093
  * @since 2.0.0
3168
3094
  */
3169
3095
  <A, E, R, B, E2, R2>(self: Effect<A, E, R>, f: (a: NoInfer<A>) => Effect<B, E2, R2>): Effect<A, E | E2, R | R2>
@@ -3184,17 +3110,10 @@ export const tap: {
3184
3110
  * next part of the chain. Note that if the side effect fails, the entire chain
3185
3111
  * will fail too.
3186
3112
  *
3187
- * **Previously Known As**
3188
- *
3189
- * This API replaces the following from Effect 3.x:
3190
- *
3191
- * - `Effect.zipLeft`
3192
- *
3193
3113
  * **Example** (Logging a step in a pipeline)
3194
3114
  *
3195
3115
  * ```ts
3196
- * import { Data, Effect, pipe } from "effect"
3197
- * import { Console } from "effect"
3116
+ * import { Console, Data, Effect, pipe } from "effect"
3198
3117
  *
3199
3118
  * class DiscountRateError extends Data.TaggedError("DiscountRateError")<{}> {}
3200
3119
  *
@@ -3224,7 +3143,7 @@ export const tap: {
3224
3143
  * // 95
3225
3144
  * ```
3226
3145
  *
3227
- * @category Sequencing
3146
+ * @category sequencing
3228
3147
  * @since 2.0.0
3229
3148
  */
3230
3149
  <A, E, R, B, E2, R2>(self: Effect<A, E, R>, f: Effect<B, E2, R2>): Effect<A, E | E2, R | R2>
@@ -3253,12 +3172,6 @@ export const tap: {
3253
3172
  * The resulting effect cannot fail directly because all recoverable failures
3254
3173
  * are represented inside the `Result` type.
3255
3174
  *
3256
- * **Previously Known As**
3257
- *
3258
- * This API replaces the following from Effect 3.x:
3259
- *
3260
- * - `Effect.either`
3261
- *
3262
3175
  * **Example** (Usage)
3263
3176
  *
3264
3177
  * ```ts
@@ -3404,7 +3317,7 @@ export const exit: <A, E, R>(
3404
3317
  * @see {@link mapBoth} for a version that operates on both channels.
3405
3318
  * @see {@link flatMap} or {@link andThen} for a version that can return a new effect.
3406
3319
  *
3407
- * @category Mapping
3320
+ * @category mapping
3408
3321
  * @since 2.0.0
3409
3322
  */
3410
3323
  export const map: {
@@ -3452,7 +3365,7 @@ export const map: {
3452
3365
  * @see {@link mapBoth} for a version that operates on both channels.
3453
3366
  * @see {@link flatMap} or {@link andThen} for a version that can return a new effect.
3454
3367
  *
3455
- * @category Mapping
3368
+ * @category mapping
3456
3369
  * @since 2.0.0
3457
3370
  */
3458
3371
  <A, B>(f: (a: A) => B): <E, R>(self: Effect<A, E, R>) => Effect<B, E, R>
@@ -3500,7 +3413,7 @@ export const map: {
3500
3413
  * @see {@link mapBoth} for a version that operates on both channels.
3501
3414
  * @see {@link flatMap} or {@link andThen} for a version that can return a new effect.
3502
3415
  *
3503
- * @category Mapping
3416
+ * @category mapping
3504
3417
  * @since 2.0.0
3505
3418
  */
3506
3419
  <A, E, R, B>(self: Effect<A, E, R>, f: (a: A) => B): Effect<B, E, R>
@@ -3524,7 +3437,7 @@ export const map: {
3524
3437
  * // Output: "new value"
3525
3438
  * ```
3526
3439
  *
3527
- * @category Mapping
3440
+ * @category mapping
3528
3441
  * @since 2.0.0
3529
3442
  */
3530
3443
  export const as: {
@@ -3546,7 +3459,7 @@ export const as: {
3546
3459
  * // Output: "new value"
3547
3460
  * ```
3548
3461
  *
3549
- * @category Mapping
3462
+ * @category mapping
3550
3463
  * @since 2.0.0
3551
3464
  */
3552
3465
  <B>(value: B): <A, E, R>(self: Effect<A, E, R>) => Effect<B, E, R>
@@ -3568,7 +3481,7 @@ export const as: {
3568
3481
  * // Output: "new value"
3569
3482
  * ```
3570
3483
  *
3571
- * @category Mapping
3484
+ * @category mapping
3572
3485
  * @since 2.0.0
3573
3486
  */
3574
3487
  <A, E, R, B>(self: Effect<A, E, R>, value: B): Effect<B, E, R>
@@ -3590,7 +3503,7 @@ export const as: {
3590
3503
  * // { _id: 'Option', _tag: 'Some', value: 42 }
3591
3504
  * ```
3592
3505
  *
3593
- * @category Mapping
3506
+ * @category mapping
3594
3507
  * @since 2.0.0
3595
3508
  */
3596
3509
  export const asSome: <A, E, R>(self: Effect<A, E, R>) => Effect<Option<A>, E, R> = internal.asSome
@@ -3612,7 +3525,7 @@ export const asSome: <A, E, R>(self: Effect<A, E, R>) => Effect<Option<A>, E, R>
3612
3525
  * // undefined (void)
3613
3526
  * ```
3614
3527
  *
3615
- * @category Mapping
3528
+ * @category mapping
3616
3529
  * @since 2.0.0
3617
3530
  */
3618
3531
  export const asVoid: <A, E, R>(self: Effect<A, E, R>) => Effect<void, E, R> = internal.asVoid
@@ -3640,7 +3553,7 @@ export const asVoid: <A, E, R>(self: Effect<A, E, R>) => Effect<void, E, R> = in
3640
3553
  * const flipped = Effect.flip(program)
3641
3554
  * ```
3642
3555
  *
3643
- * @category Mapping
3556
+ * @category mapping
3644
3557
  * @since 2.0.0
3645
3558
  */
3646
3559
  export const flip: <A, E, R>(self: Effect<A, E, R>) => Effect<E, A, R> = internal.flip
@@ -3714,7 +3627,7 @@ export const flip: <A, E, R>(self: Effect<A, E, R>) => Effect<E, A, R> = interna
3714
3627
  * // [ 1, 'hello' ]
3715
3628
  * ```
3716
3629
  *
3717
- * @category Zipping
3630
+ * @category zipping
3718
3631
  * @since 2.0.0
3719
3632
  */
3720
3633
  export const zip: {
@@ -3787,7 +3700,7 @@ export const zip: {
3787
3700
  * // [ 1, 'hello' ]
3788
3701
  * ```
3789
3702
  *
3790
- * @category Zipping
3703
+ * @category zipping
3791
3704
  * @since 2.0.0
3792
3705
  */
3793
3706
  <A2, E2, R2>(
@@ -3863,7 +3776,7 @@ export const zip: {
3863
3776
  * // [ 1, 'hello' ]
3864
3777
  * ```
3865
3778
  *
3866
- * @category Zipping
3779
+ * @category zipping
3867
3780
  * @since 2.0.0
3868
3781
  */
3869
3782
  <A, E, R, A2, E2, R2>(
@@ -3916,7 +3829,7 @@ export const zip: {
3916
3829
  * // 6
3917
3830
  * ```
3918
3831
  *
3919
- * @category Zipping
3832
+ * @category zipping
3920
3833
  * @since 2.0.0
3921
3834
  */
3922
3835
  export const zipWith: {
@@ -3963,7 +3876,7 @@ export const zipWith: {
3963
3876
  * // 6
3964
3877
  * ```
3965
3878
  *
3966
- * @category Zipping
3879
+ * @category zipping
3967
3880
  * @since 2.0.0
3968
3881
  */
3969
3882
  <A2, E2, R2, A, B>(
@@ -4014,7 +3927,7 @@ export const zipWith: {
4014
3927
  * // 6
4015
3928
  * ```
4016
3929
  *
4017
- * @category Zipping
3930
+ * @category zipping
4018
3931
  * @since 2.0.0
4019
3932
  */
4020
3933
  <A, E, R, A2, E2, R2, B>(
@@ -4055,13 +3968,7 @@ export {
4055
3968
  *
4056
3969
  * @see {@link catchCause} for a version that can recover from both recoverable and unrecoverable errors.
4057
3970
  *
4058
- * **Previously Known As**
4059
- *
4060
- * This API replaces the following from Effect 3.x:
4061
- *
4062
- * - `Effect.catchAll`
4063
- *
4064
- * @category Error Handling
3971
+ * @category error handling
4065
3972
  * @since 4.0.0
4066
3973
  */
4067
3974
  catch_ as catch
@@ -4105,7 +4012,7 @@ export {
4105
4012
  * )
4106
4013
  * ```
4107
4014
  *
4108
- * @category Error Handling
4015
+ * @category error handling
4109
4016
  * @since 2.0.0
4110
4017
  */
4111
4018
  export const catchTag: {
@@ -4147,7 +4054,7 @@ export const catchTag: {
4147
4054
  * )
4148
4055
  * ```
4149
4056
  *
4150
- * @category Error Handling
4057
+ * @category error handling
4151
4058
  * @since 2.0.0
4152
4059
  */
4153
4060
  <
@@ -4204,7 +4111,7 @@ export const catchTag: {
4204
4111
  * )
4205
4112
  * ```
4206
4113
  *
4207
- * @category Error Handling
4114
+ * @category error handling
4208
4115
  * @since 2.0.0
4209
4116
  */
4210
4117
  <
@@ -4268,7 +4175,7 @@ export const catchTag: {
4268
4175
  * })
4269
4176
  * ```
4270
4177
  *
4271
- * @category Error Handling
4178
+ * @category error handling
4272
4179
  * @since 2.0.0
4273
4180
  */
4274
4181
  export const catchTags: {
@@ -4312,7 +4219,7 @@ export const catchTags: {
4312
4219
  * })
4313
4220
  * ```
4314
4221
  *
4315
- * @category Error Handling
4222
+ * @category error handling
4316
4223
  * @since 2.0.0
4317
4224
  */
4318
4225
  <
@@ -4384,7 +4291,7 @@ export const catchTags: {
4384
4291
  * })
4385
4292
  * ```
4386
4293
  *
4387
- * @category Error Handling
4294
+ * @category error handling
4388
4295
  * @since 2.0.0
4389
4296
  */
4390
4297
  <
@@ -4452,7 +4359,7 @@ export const catchTags: {
4452
4359
  * )
4453
4360
  * ```
4454
4361
  *
4455
- * @category Error Handling
4362
+ * @category error handling
4456
4363
  * @since 4.0.0
4457
4364
  */
4458
4365
  export const catchReason: {
@@ -4489,7 +4396,7 @@ export const catchReason: {
4489
4396
  * )
4490
4397
  * ```
4491
4398
  *
4492
- * @category Error Handling
4399
+ * @category error handling
4493
4400
  * @since 4.0.0
4494
4401
  */
4495
4402
  <
@@ -4551,7 +4458,7 @@ export const catchReason: {
4551
4458
  * )
4552
4459
  * ```
4553
4460
  *
4554
- * @category Error Handling
4461
+ * @category error handling
4555
4462
  * @since 4.0.0
4556
4463
  */
4557
4464
  <
@@ -4609,7 +4516,7 @@ export const catchReason: {
4609
4516
  * )
4610
4517
  * ```
4611
4518
  *
4612
- * @category Error Handling
4519
+ * @category error handling
4613
4520
  * @since 4.0.0
4614
4521
  */
4615
4522
  export const catchReasons: {
@@ -4645,7 +4552,7 @@ export const catchReasons: {
4645
4552
  * )
4646
4553
  * ```
4647
4554
  *
4648
- * @category Error Handling
4555
+ * @category error handling
4649
4556
  * @since 4.0.0
4650
4557
  */
4651
4558
  <
@@ -4720,7 +4627,7 @@ export const catchReasons: {
4720
4627
  * )
4721
4628
  * ```
4722
4629
  *
4723
- * @category Error Handling
4630
+ * @category error handling
4724
4631
  * @since 4.0.0
4725
4632
  */
4726
4633
  <
@@ -4771,7 +4678,7 @@ export const catchReasons: {
4771
4678
  *
4772
4679
  * Used by `catchReasons` and `unwrapReason` to constrain the parent error tag to reason-bearing errors.
4773
4680
  *
4774
- * @category Error Handling
4681
+ * @category error handling
4775
4682
  * @since 4.0.0
4776
4683
  */
4777
4684
  export type TagsWithReason<E> = {
@@ -4806,7 +4713,7 @@ export type TagsWithReason<E> = {
4806
4713
  * const unwrapped = program.pipe(Effect.unwrapReason("AiError"))
4807
4714
  * ```
4808
4715
  *
4809
- * @category Error Handling
4716
+ * @category error handling
4810
4717
  * @since 4.0.0
4811
4718
  */
4812
4719
  export const unwrapReason: {
@@ -4838,7 +4745,7 @@ export const unwrapReason: {
4838
4745
  * const unwrapped = program.pipe(Effect.unwrapReason("AiError"))
4839
4746
  * ```
4840
4747
  *
4841
- * @category Error Handling
4748
+ * @category error handling
4842
4749
  * @since 4.0.0
4843
4750
  */
4844
4751
  <
@@ -4873,7 +4780,7 @@ export const unwrapReason: {
4873
4780
  * const unwrapped = program.pipe(Effect.unwrapReason("AiError"))
4874
4781
  * ```
4875
4782
  *
4876
- * @category Error Handling
4783
+ * @category error handling
4877
4784
  * @since 4.0.0
4878
4785
  */
4879
4786
  <
@@ -4901,12 +4808,6 @@ export const unwrapReason: {
4901
4808
  * they often indicate serious issues. However, in some cases, such as
4902
4809
  * dynamically loaded plugins, controlled recovery might be needed.
4903
4810
  *
4904
- * **Previously Known As**
4905
- *
4906
- * This API replaces the following from Effect 3.x:
4907
- *
4908
- * - `Effect.catchAllCause`
4909
- *
4910
4811
  * **Example** (Usage)
4911
4812
  *
4912
4813
  * ```ts
@@ -4926,7 +4827,7 @@ export const unwrapReason: {
4926
4827
  * })
4927
4828
  * ```
4928
4829
  *
4929
- * @category Error Handling
4830
+ * @category error handling
4930
4831
  * @since 4.0.0
4931
4832
  */
4932
4833
  export const catchCause: {
@@ -4947,12 +4848,6 @@ export const catchCause: {
4947
4848
  * they often indicate serious issues. However, in some cases, such as
4948
4849
  * dynamically loaded plugins, controlled recovery might be needed.
4949
4850
  *
4950
- * **Previously Known As**
4951
- *
4952
- * This API replaces the following from Effect 3.x:
4953
- *
4954
- * - `Effect.catchAllCause`
4955
- *
4956
4851
  * **Example** (Usage)
4957
4852
  *
4958
4853
  * ```ts
@@ -4972,7 +4867,7 @@ export const catchCause: {
4972
4867
  * })
4973
4868
  * ```
4974
4869
  *
4975
- * @category Error Handling
4870
+ * @category error handling
4976
4871
  * @since 4.0.0
4977
4872
  */
4978
4873
  <E, A2, E2, R2>(f: (cause: Cause.Cause<E>) => Effect<A2, E2, R2>): <A, R>(self: Effect<A, E, R>) => Effect<A2 | A, E2, R2 | R>
@@ -4993,12 +4888,6 @@ export const catchCause: {
4993
4888
  * they often indicate serious issues. However, in some cases, such as
4994
4889
  * dynamically loaded plugins, controlled recovery might be needed.
4995
4890
  *
4996
- * **Previously Known As**
4997
- *
4998
- * This API replaces the following from Effect 3.x:
4999
- *
5000
- * - `Effect.catchAllCause`
5001
- *
5002
4891
  * **Example** (Usage)
5003
4892
  *
5004
4893
  * ```ts
@@ -5018,7 +4907,7 @@ export const catchCause: {
5018
4907
  * })
5019
4908
  * ```
5020
4909
  *
5021
- * @category Error Handling
4910
+ * @category error handling
5022
4911
  * @since 4.0.0
5023
4912
  */
5024
4913
  <A, E, R, A2, E2, R2>(self: Effect<A, E, R>, f: (cause: Cause.Cause<E>) => Effect<A2, E2, R2>): Effect<A | A2, E2, R | R2>
@@ -5043,12 +4932,6 @@ export const catchCause: {
5043
4932
  * they often indicate serious issues. In some cases, such as dynamically loaded
5044
4933
  * plugins, controlled recovery may be needed.
5045
4934
  *
5046
- * **Previously Known As**
5047
- *
5048
- * This API replaces the following from Effect 3.x:
5049
- *
5050
- * - `Effect.catchAllDefect`
5051
- *
5052
4935
  * **Example** (Usage)
5053
4936
  *
5054
4937
  * ```ts
@@ -5067,7 +4950,7 @@ export const catchCause: {
5067
4950
  * })
5068
4951
  * ```
5069
4952
  *
5070
- * @category Error Handling
4953
+ * @category error handling
5071
4954
  * @since 4.0.0
5072
4955
  */
5073
4956
  export const catchDefect: {
@@ -5090,12 +4973,6 @@ export const catchDefect: {
5090
4973
  * they often indicate serious issues. In some cases, such as dynamically loaded
5091
4974
  * plugins, controlled recovery may be needed.
5092
4975
  *
5093
- * **Previously Known As**
5094
- *
5095
- * This API replaces the following from Effect 3.x:
5096
- *
5097
- * - `Effect.catchAllDefect`
5098
- *
5099
4976
  * **Example** (Usage)
5100
4977
  *
5101
4978
  * ```ts
@@ -5114,7 +4991,7 @@ export const catchDefect: {
5114
4991
  * })
5115
4992
  * ```
5116
4993
  *
5117
- * @category Error Handling
4994
+ * @category error handling
5118
4995
  * @since 4.0.0
5119
4996
  */
5120
4997
  <A2, E2, R2>(f: (defect: unknown) => Effect<A2, E2, R2>): <A, E, R>(self: Effect<A, E, R>) => Effect<A2 | A, E2 | E, R2 | R>
@@ -5137,12 +5014,6 @@ export const catchDefect: {
5137
5014
  * they often indicate serious issues. In some cases, such as dynamically loaded
5138
5015
  * plugins, controlled recovery may be needed.
5139
5016
  *
5140
- * **Previously Known As**
5141
- *
5142
- * This API replaces the following from Effect 3.x:
5143
- *
5144
- * - `Effect.catchAllDefect`
5145
- *
5146
5017
  * **Example** (Usage)
5147
5018
  *
5148
5019
  * ```ts
@@ -5161,7 +5032,7 @@ export const catchDefect: {
5161
5032
  * })
5162
5033
  * ```
5163
5034
  *
5164
- * @category Error Handling
5035
+ * @category error handling
5165
5036
  * @since 4.0.0
5166
5037
  */
5167
5038
  <A, E, R, A2, E2, R2>(self: Effect<A, E, R>, f: (defect: unknown) => Effect<A2, E2, R2>): Effect<A | A2, E | E2, R | R2>
@@ -5177,13 +5048,6 @@ export const catchDefect: {
5177
5048
  * matching. Non-matching errors re-fail with the original cause. Defects and
5178
5049
  * interrupts are not caught.
5179
5050
  *
5180
- * **Previously Known As**
5181
- *
5182
- * This API replaces the following:
5183
- *
5184
- * - `Effect.catchSome` (Effect 3.x)
5185
- * - `Effect.catchIf`
5186
- *
5187
5051
  * **Example** (Usage)
5188
5052
  *
5189
5053
  * ```ts
@@ -5210,7 +5074,7 @@ export const catchDefect: {
5210
5074
  * )
5211
5075
  * ```
5212
5076
  *
5213
- * @category Error Handling
5077
+ * @category error handling
5214
5078
  * @since 2.0.0
5215
5079
  */
5216
5080
  export const catchIf: {
@@ -5224,13 +5088,6 @@ export const catchIf: {
5224
5088
  * matching. Non-matching errors re-fail with the original cause. Defects and
5225
5089
  * interrupts are not caught.
5226
5090
  *
5227
- * **Previously Known As**
5228
- *
5229
- * This API replaces the following:
5230
- *
5231
- * - `Effect.catchSome` (Effect 3.x)
5232
- * - `Effect.catchIf`
5233
- *
5234
5091
  * **Example** (Usage)
5235
5092
  *
5236
5093
  * ```ts
@@ -5257,7 +5114,7 @@ export const catchIf: {
5257
5114
  * )
5258
5115
  * ```
5259
5116
  *
5260
- * @category Error Handling
5117
+ * @category error handling
5261
5118
  * @since 2.0.0
5262
5119
  */
5263
5120
  <E, EB extends E, A2, E2, R2, A3 = never, E3 = Exclude<E, EB>, R3 = never>(
@@ -5275,13 +5132,6 @@ export const catchIf: {
5275
5132
  * matching. Non-matching errors re-fail with the original cause. Defects and
5276
5133
  * interrupts are not caught.
5277
5134
  *
5278
- * **Previously Known As**
5279
- *
5280
- * This API replaces the following:
5281
- *
5282
- * - `Effect.catchSome` (Effect 3.x)
5283
- * - `Effect.catchIf`
5284
- *
5285
5135
  * **Example** (Usage)
5286
5136
  *
5287
5137
  * ```ts
@@ -5308,7 +5158,7 @@ export const catchIf: {
5308
5158
  * )
5309
5159
  * ```
5310
5160
  *
5311
- * @category Error Handling
5161
+ * @category error handling
5312
5162
  * @since 2.0.0
5313
5163
  */
5314
5164
  <E, A2, E2, R2, A3 = never, E3 = E, R3 = never>(
@@ -5326,13 +5176,6 @@ export const catchIf: {
5326
5176
  * matching. Non-matching errors re-fail with the original cause. Defects and
5327
5177
  * interrupts are not caught.
5328
5178
  *
5329
- * **Previously Known As**
5330
- *
5331
- * This API replaces the following:
5332
- *
5333
- * - `Effect.catchSome` (Effect 3.x)
5334
- * - `Effect.catchIf`
5335
- *
5336
5179
  * **Example** (Usage)
5337
5180
  *
5338
5181
  * ```ts
@@ -5359,7 +5202,7 @@ export const catchIf: {
5359
5202
  * )
5360
5203
  * ```
5361
5204
  *
5362
- * @category Error Handling
5205
+ * @category error handling
5363
5206
  * @since 2.0.0
5364
5207
  */
5365
5208
  <A, E, R, EB extends E, A2, E2, R2, A3 = never, E3 = Exclude<E, EB>, R3 = never>(
@@ -5378,13 +5221,6 @@ export const catchIf: {
5378
5221
  * matching. Non-matching errors re-fail with the original cause. Defects and
5379
5222
  * interrupts are not caught.
5380
5223
  *
5381
- * **Previously Known As**
5382
- *
5383
- * This API replaces the following:
5384
- *
5385
- * - `Effect.catchSome` (Effect 3.x)
5386
- * - `Effect.catchIf`
5387
- *
5388
5224
  * **Example** (Usage)
5389
5225
  *
5390
5226
  * ```ts
@@ -5411,7 +5247,7 @@ export const catchIf: {
5411
5247
  * )
5412
5248
  * ```
5413
5249
  *
5414
- * @category Error Handling
5250
+ * @category error handling
5415
5251
  * @since 2.0.0
5416
5252
  */
5417
5253
  <A, E, R, A2, E2, R2, A3 = never, E3 = E, R3 = never>(
@@ -5425,14 +5261,14 @@ export const catchIf: {
5425
5261
  /**
5426
5262
  * Recovers from specific errors using a `Filter`.
5427
5263
  *
5428
- * @category Error Handling
5264
+ * @category error handling
5429
5265
  * @since 4.0.0
5430
5266
  */
5431
5267
  export const catchFilter: {
5432
5268
  /**
5433
5269
  * Recovers from specific errors using a `Filter`.
5434
5270
  *
5435
- * @category Error Handling
5271
+ * @category error handling
5436
5272
  * @since 4.0.0
5437
5273
  */
5438
5274
  <E, EB, A2, E2, R2, X, A3 = never, E3 = X, R3 = never>(
@@ -5443,7 +5279,7 @@ export const catchFilter: {
5443
5279
  /**
5444
5280
  * Recovers from specific errors using a `Filter`.
5445
5281
  *
5446
- * @category Error Handling
5282
+ * @category error handling
5447
5283
  * @since 4.0.0
5448
5284
  */
5449
5285
  <A, E, R, EB, A2, E2, R2, X, A3 = never, E3 = X, R3 = never>(
@@ -5472,14 +5308,8 @@ export const catchFilter: {
5472
5308
  * Effect.runPromise(none).then(console.log) // { _id: 'Option', _tag: 'None' }
5473
5309
  * ```
5474
5310
  *
5475
- * **Previously Known As**
5476
- *
5477
- * This API replaces the following from Effect 3.x:
5478
- *
5479
- * - `Effect.optionFromOptional`
5480
- *
5481
- * @category Error Handling
5482
- * @since 2.0.0
5311
+ * @category error handling
5312
+ * @since 4.0.0
5483
5313
  */
5484
5314
  export const catchNoSuchElement: <A, E, R>(
5485
5315
  self: Effect<A, E, R>
@@ -5492,12 +5322,6 @@ export const catchNoSuchElement: <A, E, R>(
5492
5322
  * that match a specific predicate. This is useful when you want to handle
5493
5323
  * only certain types of errors while letting others propagate.
5494
5324
  *
5495
- * **Previously Known As**
5496
- *
5497
- * This API replaces the following from Effect 3.x:
5498
- *
5499
- * - `Effect.catchSomeCause`
5500
- *
5501
5325
  * **Example** (Usage)
5502
5326
  *
5503
5327
  * ```ts
@@ -5521,7 +5345,7 @@ export const catchNoSuchElement: <A, E, R>(
5521
5345
  * // Then: "Fallback response"
5522
5346
  * ```
5523
5347
  *
5524
- * @category Error Handling
5348
+ * @category error handling
5525
5349
  * @since 4.0.0
5526
5350
  */
5527
5351
  export const catchCauseIf: {
@@ -5532,12 +5356,6 @@ export const catchCauseIf: {
5532
5356
  * that match a specific predicate. This is useful when you want to handle
5533
5357
  * only certain types of errors while letting others propagate.
5534
5358
  *
5535
- * **Previously Known As**
5536
- *
5537
- * This API replaces the following from Effect 3.x:
5538
- *
5539
- * - `Effect.catchSomeCause`
5540
- *
5541
5359
  * **Example** (Usage)
5542
5360
  *
5543
5361
  * ```ts
@@ -5561,7 +5379,7 @@ export const catchCauseIf: {
5561
5379
  * // Then: "Fallback response"
5562
5380
  * ```
5563
5381
  *
5564
- * @category Error Handling
5382
+ * @category error handling
5565
5383
  * @since 4.0.0
5566
5384
  */
5567
5385
  <E, B, E2, R2>(
@@ -5575,12 +5393,6 @@ export const catchCauseIf: {
5575
5393
  * that match a specific predicate. This is useful when you want to handle
5576
5394
  * only certain types of errors while letting others propagate.
5577
5395
  *
5578
- * **Previously Known As**
5579
- *
5580
- * This API replaces the following from Effect 3.x:
5581
- *
5582
- * - `Effect.catchSomeCause`
5583
- *
5584
5396
  * **Example** (Usage)
5585
5397
  *
5586
5398
  * ```ts
@@ -5604,7 +5416,7 @@ export const catchCauseIf: {
5604
5416
  * // Then: "Fallback response"
5605
5417
  * ```
5606
5418
  *
5607
- * @category Error Handling
5419
+ * @category error handling
5608
5420
  * @since 4.0.0
5609
5421
  */
5610
5422
  <A, E, R, B, E2, R2>(
@@ -5617,14 +5429,14 @@ export const catchCauseIf: {
5617
5429
  /**
5618
5430
  * Recovers from specific failures based on a `Filter`.
5619
5431
  *
5620
- * @category Error Handling
5432
+ * @category error handling
5621
5433
  * @since 4.0.0
5622
5434
  */
5623
5435
  export const catchCauseFilter: {
5624
5436
  /**
5625
5437
  * Recovers from specific failures based on a `Filter`.
5626
5438
  *
5627
- * @category Error Handling
5439
+ * @category error handling
5628
5440
  * @since 4.0.0
5629
5441
  */
5630
5442
  <E, B, E2, R2, EB, X extends Cause.Cause<any>>(
@@ -5634,7 +5446,7 @@ export const catchCauseFilter: {
5634
5446
  /**
5635
5447
  * Recovers from specific failures based on a `Filter`.
5636
5448
  *
5637
- * @category Error Handling
5449
+ * @category error handling
5638
5450
  * @since 4.0.0
5639
5451
  */
5640
5452
  <A, E, R, B, E2, R2, EB, X extends Cause.Cause<any>>(
@@ -5655,7 +5467,7 @@ export const catchCauseFilter: {
5655
5467
  *
5656
5468
  * @see {@link map} for a version that operates on the success channel.
5657
5469
  * @see {@link mapBoth} for a version that operates on both channels.
5658
- * @see {@link orElseFail} if you want to replace the error with a new one.
5470
+ * @see {@link mapError} if you want to replace the error with a new one.
5659
5471
  *
5660
5472
  * **Example** (Usage)
5661
5473
  *
@@ -5676,7 +5488,7 @@ export const catchCauseFilter: {
5676
5488
  * )
5677
5489
  * ```
5678
5490
  *
5679
- * @category Error Handling
5491
+ * @category error handling
5680
5492
  * @since 2.0.0
5681
5493
  */
5682
5494
  export const mapError: {
@@ -5691,7 +5503,7 @@ export const mapError: {
5691
5503
  *
5692
5504
  * @see {@link map} for a version that operates on the success channel.
5693
5505
  * @see {@link mapBoth} for a version that operates on both channels.
5694
- * @see {@link orElseFail} if you want to replace the error with a new one.
5506
+ * @see {@link mapError} if you want to replace the error with a new one.
5695
5507
  *
5696
5508
  * **Example** (Usage)
5697
5509
  *
@@ -5712,7 +5524,7 @@ export const mapError: {
5712
5524
  * )
5713
5525
  * ```
5714
5526
  *
5715
- * @category Error Handling
5527
+ * @category error handling
5716
5528
  * @since 2.0.0
5717
5529
  */
5718
5530
  <E, E2>(f: (e: E) => E2): <A, R>(self: Effect<A, E, R>) => Effect<A, E2, R>
@@ -5727,7 +5539,7 @@ export const mapError: {
5727
5539
  *
5728
5540
  * @see {@link map} for a version that operates on the success channel.
5729
5541
  * @see {@link mapBoth} for a version that operates on both channels.
5730
- * @see {@link orElseFail} if you want to replace the error with a new one.
5542
+ * @see {@link mapError} if you want to replace the error with a new one.
5731
5543
  *
5732
5544
  * **Example** (Usage)
5733
5545
  *
@@ -5748,7 +5560,7 @@ export const mapError: {
5748
5560
  * )
5749
5561
  * ```
5750
5562
  *
5751
- * @category Error Handling
5563
+ * @category error handling
5752
5564
  * @since 2.0.0
5753
5565
  */
5754
5566
  <A, E, R, E2>(self: Effect<A, E, R>, f: (e: E) => E2): Effect<A, E2, R>
@@ -5786,7 +5598,7 @@ export const mapError: {
5786
5598
  * @see {@link map} for a version that operates on the success channel.
5787
5599
  * @see {@link mapError} for a version that operates on the error channel.
5788
5600
  *
5789
- * @category Mapping
5601
+ * @category mapping
5790
5602
  * @since 2.0.0
5791
5603
  */
5792
5604
  export const mapBoth: {
@@ -5822,7 +5634,7 @@ export const mapBoth: {
5822
5634
  * @see {@link map} for a version that operates on the success channel.
5823
5635
  * @see {@link mapError} for a version that operates on the error channel.
5824
5636
  *
5825
- * @category Mapping
5637
+ * @category mapping
5826
5638
  * @since 2.0.0
5827
5639
  */
5828
5640
  <E, E2, A, A2>(
@@ -5860,7 +5672,7 @@ export const mapBoth: {
5860
5672
  * @see {@link map} for a version that operates on the success channel.
5861
5673
  * @see {@link mapError} for a version that operates on the error channel.
5862
5674
  *
5863
- * @category Mapping
5675
+ * @category mapping
5864
5676
  * @since 2.0.0
5865
5677
  */
5866
5678
  <A, E, R, E2, A2>(
@@ -5878,7 +5690,7 @@ export const mapBoth: {
5878
5690
  * Use `orDie` when a typed failure represents an unrecoverable bug or invalid
5879
5691
  * state and should not be handled as a recoverable error.
5880
5692
  *
5881
- * @see {@link orDieWith} if you need to customize the error.
5693
+ * @see {@link mapError} to transform the error before converting it into a defect with {@link orDie}.
5882
5694
  *
5883
5695
  * **Example** (Propagating an Error as a Defect)
5884
5696
  *
@@ -5936,7 +5748,7 @@ export const orDie: <A, E, R>(self: Effect<A, E, R>) => Effect<A, never, R> = in
5936
5748
  * // expected error: NetworkError
5937
5749
  * ```
5938
5750
  *
5939
- * @category Sequencing
5751
+ * @category sequencing
5940
5752
  * @since 2.0.0
5941
5753
  */
5942
5754
  export const tapError: {
@@ -5969,7 +5781,7 @@ export const tapError: {
5969
5781
  * // expected error: NetworkError
5970
5782
  * ```
5971
5783
  *
5972
- * @category Sequencing
5784
+ * @category sequencing
5973
5785
  * @since 2.0.0
5974
5786
  */
5975
5787
  <E, X, E2, R2>(f: (e: NoInfer<E>) => Effect<X, E2, R2>): <A, R>(self: Effect<A, E, R>) => Effect<A, E | E2, R2 | R>
@@ -6002,7 +5814,7 @@ export const tapError: {
6002
5814
  * // expected error: NetworkError
6003
5815
  * ```
6004
5816
  *
6005
- * @category Sequencing
5817
+ * @category sequencing
6006
5818
  * @since 2.0.0
6007
5819
  */
6008
5820
  <A, E, R, X, E2, R2>(self: Effect<A, E, R>, f: (e: E) => Effect<X, E2, R2>): Effect<A, E | E2, R | R2>
@@ -6040,7 +5852,7 @@ export const tapError: {
6040
5852
  * // expected error: 504
6041
5853
  * ```
6042
5854
  *
6043
- * @category Sequencing
5855
+ * @category sequencing
6044
5856
  * @since 2.0.0
6045
5857
  */
6046
5858
  export const tapErrorTag: {
@@ -6076,7 +5888,7 @@ export const tapErrorTag: {
6076
5888
  * // expected error: 504
6077
5889
  * ```
6078
5890
  *
6079
- * @category Sequencing
5891
+ * @category sequencing
6080
5892
  * @since 2.0.0
6081
5893
  */
6082
5894
  <const K extends Tags<E> | Arr.NonEmptyReadonlyArray<Tags<E>>, E, A1, E1, R1>(
@@ -6115,7 +5927,7 @@ export const tapErrorTag: {
6115
5927
  * // expected error: 504
6116
5928
  * ```
6117
5929
  *
6118
- * @category Sequencing
5930
+ * @category sequencing
6119
5931
  * @since 2.0.0
6120
5932
  */
6121
5933
  <
@@ -6143,12 +5955,6 @@ export const tapErrorTag: {
6143
5955
  * the operation succeeds, the original cause is preserved. If the operation
6144
5956
  * fails, its error is also represented in the returned effect.
6145
5957
  *
6146
- * **Previously Known As**
6147
- *
6148
- * This API replaces the following from Effect 3.x:
6149
- *
6150
- * - `Effect.tapErrorCause`
6151
- *
6152
5958
  * **Example** (Usage)
6153
5959
  *
6154
5960
  * ```ts
@@ -6166,8 +5972,8 @@ export const tapErrorTag: {
6166
5972
  * // Then: { _id: 'Exit', _tag: 'Failure', cause: ... }
6167
5973
  * ```
6168
5974
  *
6169
- * @category Sequencing
6170
- * @since 2.0.0
5975
+ * @category sequencing
5976
+ * @since 4.0.0
6171
5977
  */
6172
5978
  export const tapCause: {
6173
5979
  /**
@@ -6180,12 +5986,6 @@ export const tapCause: {
6180
5986
  * the operation succeeds, the original cause is preserved. If the operation
6181
5987
  * fails, its error is also represented in the returned effect.
6182
5988
  *
6183
- * **Previously Known As**
6184
- *
6185
- * This API replaces the following from Effect 3.x:
6186
- *
6187
- * - `Effect.tapErrorCause`
6188
- *
6189
5989
  * **Example** (Usage)
6190
5990
  *
6191
5991
  * ```ts
@@ -6203,8 +6003,8 @@ export const tapCause: {
6203
6003
  * // Then: { _id: 'Exit', _tag: 'Failure', cause: ... }
6204
6004
  * ```
6205
6005
  *
6206
- * @category Sequencing
6207
- * @since 2.0.0
6006
+ * @category sequencing
6007
+ * @since 4.0.0
6208
6008
  */
6209
6009
  <E, X, E2, R2>(f: (cause: Cause.Cause<NoInfer<E>>) => Effect<X, E2, R2>): <A, R>(self: Effect<A, E, R>) => Effect<A, E | E2, R2 | R>
6210
6010
  /**
@@ -6217,12 +6017,6 @@ export const tapCause: {
6217
6017
  * the operation succeeds, the original cause is preserved. If the operation
6218
6018
  * fails, its error is also represented in the returned effect.
6219
6019
  *
6220
- * **Previously Known As**
6221
- *
6222
- * This API replaces the following from Effect 3.x:
6223
- *
6224
- * - `Effect.tapErrorCause`
6225
- *
6226
6020
  * **Example** (Usage)
6227
6021
  *
6228
6022
  * ```ts
@@ -6240,8 +6034,8 @@ export const tapCause: {
6240
6034
  * // Then: { _id: 'Exit', _tag: 'Failure', cause: ... }
6241
6035
  * ```
6242
6036
  *
6243
- * @category Sequencing
6244
- * @since 2.0.0
6037
+ * @category sequencing
6038
+ * @since 4.0.0
6245
6039
  */
6246
6040
  <A, E, R, X, E2, R2>(self: Effect<A, E, R>, f: (cause: Cause.Cause<E>) => Effect<X, E2, R2>): Effect<A, E | E2, R | R2>
6247
6041
  } = internal.tapCause
@@ -6272,7 +6066,7 @@ export const tapCause: {
6272
6066
  * // Then: { _id: 'Exit', _tag: 'Failure', cause: ... }
6273
6067
  * ```
6274
6068
  *
6275
- * @category Sequencing
6069
+ * @category sequencing
6276
6070
  * @since 4.0.0
6277
6071
  */
6278
6072
  export const tapCauseIf: {
@@ -6302,7 +6096,7 @@ export const tapCauseIf: {
6302
6096
  * // Then: { _id: 'Exit', _tag: 'Failure', cause: ... }
6303
6097
  * ```
6304
6098
  *
6305
- * @category Sequencing
6099
+ * @category sequencing
6306
6100
  * @since 4.0.0
6307
6101
  */
6308
6102
  <E, B, E2, R2>(
@@ -6335,7 +6129,7 @@ export const tapCauseIf: {
6335
6129
  * // Then: { _id: 'Exit', _tag: 'Failure', cause: ... }
6336
6130
  * ```
6337
6131
  *
6338
- * @category Sequencing
6132
+ * @category sequencing
6339
6133
  * @since 4.0.0
6340
6134
  */
6341
6135
  <A, E, R, B, E2, R2>(
@@ -6348,14 +6142,14 @@ export const tapCauseIf: {
6348
6142
  /**
6349
6143
  * Conditionally executes a side effect based on the cause of a failed effect.
6350
6144
  *
6351
- * @category Sequencing
6145
+ * @category sequencing
6352
6146
  * @since 4.0.0
6353
6147
  */
6354
6148
  export const tapCauseFilter: {
6355
6149
  /**
6356
6150
  * Conditionally executes a side effect based on the cause of a failed effect.
6357
6151
  *
6358
- * @category Sequencing
6152
+ * @category sequencing
6359
6153
  * @since 4.0.0
6360
6154
  */
6361
6155
  <E, B, E2, R2, EB, X extends Cause.Cause<any>>(
@@ -6365,7 +6159,7 @@ export const tapCauseFilter: {
6365
6159
  /**
6366
6160
  * Conditionally executes a side effect based on the cause of a failed effect.
6367
6161
  *
6368
- * @category Sequencing
6162
+ * @category sequencing
6369
6163
  * @since 4.0.0
6370
6164
  */
6371
6165
  <A, E, R, B, E2, R2, EB, X extends Cause.Cause<any>>(
@@ -6419,7 +6213,7 @@ export const tapCauseFilter: {
6419
6213
  * // ... stack trace ...
6420
6214
  * ```
6421
6215
  *
6422
- * @category Sequencing
6216
+ * @category sequencing
6423
6217
  * @since 2.0.0
6424
6218
  */
6425
6219
  export const tapDefect: {
@@ -6467,7 +6261,7 @@ export const tapDefect: {
6467
6261
  * // ... stack trace ...
6468
6262
  * ```
6469
6263
  *
6470
- * @category Sequencing
6264
+ * @category sequencing
6471
6265
  * @since 2.0.0
6472
6266
  */
6473
6267
  <E, B, E2, R2>(f: (defect: unknown) => Effect<B, E2, R2>): <A, R>(self: Effect<A, E, R>) => Effect<A, E | E2, R | R2>
@@ -6515,7 +6309,7 @@ export const tapDefect: {
6515
6309
  * // ... stack trace ...
6516
6310
  * ```
6517
6311
  *
6518
- * @category Sequencing
6312
+ * @category sequencing
6519
6313
  * @since 2.0.0
6520
6314
  */
6521
6315
  <A, E, R, B, E2, R2>(self: Effect<A, E, R>, f: (defect: unknown) => Effect<B, E2, R2>): Effect<A, E | E2, R | R2>
@@ -6564,14 +6358,13 @@ export const eventually: <A, E, R>(self: Effect<A, E, R>) => Effect<A, never, R>
6564
6358
  /**
6565
6359
  * Type helpers for retrying effects.
6566
6360
  *
6567
- * @category Error Handling
6568
6361
  * @since 2.0.0
6569
6362
  */
6570
6363
  export declare namespace Retry {
6571
6364
  /**
6572
6365
  * Computes the result type of `Effect.retry` from the original effect and retry options.
6573
6366
  *
6574
- * @category Error Handling
6367
+ * @category error handling
6575
6368
  * @since 2.0.0
6576
6369
  */
6577
6370
  export type Return<R, E, A, O extends Options<E>> = Effect<
@@ -6600,7 +6393,7 @@ export declare namespace Retry {
6600
6393
  /**
6601
6394
  * Options that control whether and how a failing effect is retried.
6602
6395
  *
6603
- * @category Error Handling
6396
+ * @category error handling
6604
6397
  * @since 2.0.0
6605
6398
  */
6606
6399
  export interface Options<E> {
@@ -6655,7 +6448,7 @@ export declare namespace Retry {
6655
6448
  * @see {@link retryOrElse} for a version that allows you to run a fallback.
6656
6449
  * @see {@link repeat} if your retry condition is based on successful outcomes rather than errors.
6657
6450
  *
6658
- * @category Error Handling
6451
+ * @category error handling
6659
6452
  * @since 2.0.0
6660
6453
  */
6661
6454
  export const retry: {
@@ -6703,7 +6496,7 @@ export const retry: {
6703
6496
  * @see {@link retryOrElse} for a version that allows you to run a fallback.
6704
6497
  * @see {@link repeat} if your retry condition is based on successful outcomes rather than errors.
6705
6498
  *
6706
- * @category Error Handling
6499
+ * @category error handling
6707
6500
  * @since 2.0.0
6708
6501
  */
6709
6502
  <E, O extends Retry.Options<E>>(options: O): <A, R>(self: Effect<A, E, R>) => Retry.Return<R, E, A, O>
@@ -6751,7 +6544,7 @@ export const retry: {
6751
6544
  * @see {@link retryOrElse} for a version that allows you to run a fallback.
6752
6545
  * @see {@link repeat} if your retry condition is based on successful outcomes rather than errors.
6753
6546
  *
6754
- * @category Error Handling
6547
+ * @category error handling
6755
6548
  * @since 2.0.0
6756
6549
  */
6757
6550
  <B, E, Error, Env>(policy: Schedule<B, NoInfer<E>, Error, Env>): <A, R>(self: Effect<A, E, R>) => Effect<A, E | Error, R | Env>
@@ -6799,7 +6592,7 @@ export const retry: {
6799
6592
  * @see {@link retryOrElse} for a version that allows you to run a fallback.
6800
6593
  * @see {@link repeat} if your retry condition is based on successful outcomes rather than errors.
6801
6594
  *
6802
- * @category Error Handling
6595
+ * @category error handling
6803
6596
  * @since 2.0.0
6804
6597
  */
6805
6598
  <B, E, Error, Env>(
@@ -6851,7 +6644,7 @@ export const retry: {
6851
6644
  * @see {@link retryOrElse} for a version that allows you to run a fallback.
6852
6645
  * @see {@link repeat} if your retry condition is based on successful outcomes rather than errors.
6853
6646
  *
6854
- * @category Error Handling
6647
+ * @category error handling
6855
6648
  * @since 2.0.0
6856
6649
  */
6857
6650
  <A, E, R, O extends Retry.Options<E>>(self: Effect<A, E, R>, options: O): Retry.Return<R, E, A, O>
@@ -6899,7 +6692,7 @@ export const retry: {
6899
6692
  * @see {@link retryOrElse} for a version that allows you to run a fallback.
6900
6693
  * @see {@link repeat} if your retry condition is based on successful outcomes rather than errors.
6901
6694
  *
6902
- * @category Error Handling
6695
+ * @category error handling
6903
6696
  * @since 2.0.0
6904
6697
  */
6905
6698
  <A, E, R, B, Error, Env>(self: Effect<A, E, R>, policy: Schedule<B, NoInfer<E>, Error, Env>): Effect<A, E | Error, R | Env>
@@ -6947,7 +6740,7 @@ export const retry: {
6947
6740
  * @see {@link retryOrElse} for a version that allows you to run a fallback.
6948
6741
  * @see {@link repeat} if your retry condition is based on successful outcomes rather than errors.
6949
6742
  *
6950
- * @category Error Handling
6743
+ * @category error handling
6951
6744
  * @since 2.0.0
6952
6745
  */
6953
6746
  <A, E, R, B, Error, Env>(
@@ -7012,7 +6805,7 @@ export const retry: {
7012
6805
  * // Network data
7013
6806
  * ```
7014
6807
  *
7015
- * @category Error Handling
6808
+ * @category error handling
7016
6809
  * @since 2.0.0
7017
6810
  */
7018
6811
  export const retryOrElse: {
@@ -7070,7 +6863,7 @@ export const retryOrElse: {
7070
6863
  * // Network data
7071
6864
  * ```
7072
6865
  *
7073
- * @category Error Handling
6866
+ * @category error handling
7074
6867
  * @since 2.0.0
7075
6868
  */
7076
6869
  <A1, E, E1, R1, A2, E2, R2>(
@@ -7131,7 +6924,7 @@ export const retryOrElse: {
7131
6924
  * // Network data
7132
6925
  * ```
7133
6926
  *
7134
- * @category Error Handling
6927
+ * @category error handling
7135
6928
  * @since 2.0.0
7136
6929
  */
7137
6930
  <A, E, R, A1, E1, R1, A2, E2, R2>(
@@ -7167,9 +6960,9 @@ export const retryOrElse: {
7167
6960
  * // Output: "Caught cause: Something went wrong"
7168
6961
  * ```
7169
6962
  *
7170
- * @see {@link unsandbox} to restore the original error handling.
6963
+ * @see {@link sandbox} to expose failures as full causes.
7171
6964
  *
7172
- * @category Error Handling
6965
+ * @category error handling
7173
6966
  * @since 2.0.0
7174
6967
  */
7175
6968
  export const sandbox: <A, E, R>(
@@ -7213,13 +7006,7 @@ export const sandbox: <A, E, R>(
7213
7006
  * const programWarn = task.pipe(Effect.ignore({ log: "Warn", message: "Ignoring task failure" }))
7214
7007
  * ```
7215
7008
  *
7216
- * **Previously Known As**
7217
- *
7218
- * This API replaces the following from Effect 3.x:
7219
- *
7220
- * - `Effect.ignoreLogged`
7221
- *
7222
- * @category Error Handling
7009
+ * @category error handling
7223
7010
  * @since 2.0.0
7224
7011
  */
7225
7012
  export const ignore: <
@@ -7256,7 +7043,7 @@ export const ignore: <
7256
7043
  * const programLog = task.pipe(Effect.ignoreCause({ log: true, message: "Ignoring failure cause" }))
7257
7044
  * ```
7258
7045
  *
7259
- * @category Error Handling
7046
+ * @category error handling
7260
7047
  * @since 4.0.0
7261
7048
  */
7262
7049
  export const ignoreCause: <
@@ -7287,7 +7074,7 @@ export const ignoreCause: <
7287
7074
  * **Example** (Usage)
7288
7075
  *
7289
7076
  * ```ts
7290
- * import { Effect, ExecutionPlan, Layer, Context } from "effect"
7077
+ * import { Context, Effect, ExecutionPlan, Layer } from "effect"
7291
7078
  *
7292
7079
  * const Endpoint = Context.Service<{ url: string }>("Endpoint")
7293
7080
  *
@@ -7322,7 +7109,7 @@ export const withExecutionPlan: {
7322
7109
  * **Example** (Usage)
7323
7110
  *
7324
7111
  * ```ts
7325
- * import { Effect, ExecutionPlan, Layer, Context } from "effect"
7112
+ * import { Context, Effect, ExecutionPlan, Layer } from "effect"
7326
7113
  *
7327
7114
  * const Endpoint = Context.Service<{ url: string }>("Endpoint")
7328
7115
  *
@@ -7361,7 +7148,7 @@ export const withExecutionPlan: {
7361
7148
  * **Example** (Usage)
7362
7149
  *
7363
7150
  * ```ts
7364
- * import { Effect, ExecutionPlan, Layer, Context } from "effect"
7151
+ * import { Context, Effect, ExecutionPlan, Layer } from "effect"
7365
7152
  *
7366
7153
  * const Endpoint = Context.Service<{ url: string }>("Endpoint")
7367
7154
  *
@@ -7396,7 +7183,7 @@ export const withExecutionPlan: {
7396
7183
  * If the `defectsOnly` option is set to `true`, only defects (unrecoverable
7397
7184
  * errors) will be reported, while regular failures will be ignored.
7398
7185
  *
7399
- * @category Error Handling
7186
+ * @category error handling
7400
7187
  * @since 4.0.0
7401
7188
  */
7402
7189
  export const withErrorReporting: <
@@ -7596,9 +7383,7 @@ export const firstSuccessOf: <Eff extends Effect<any, any, any>>(
7596
7383
  * your program waits for a task to finish, ensuring that it doesn't hang
7597
7384
  * indefinitely if the task takes too long.
7598
7385
  *
7599
- * @see {@link timeoutFail} for a version that raises a custom error.
7600
- * @see {@link timeoutFailCause} for a version that raises a custom defect.
7601
- * @see {@link timeoutTo} for a version that allows specifying both success and timeout handlers.
7386
+ * @see {@link timeoutOrElse} for a version that allows specifying both success and timeout handlers.
7602
7387
  *
7603
7388
  * **Example** (Usage)
7604
7389
  *
@@ -7648,9 +7433,7 @@ export const timeout: {
7648
7433
  * your program waits for a task to finish, ensuring that it doesn't hang
7649
7434
  * indefinitely if the task takes too long.
7650
7435
  *
7651
- * @see {@link timeoutFail} for a version that raises a custom error.
7652
- * @see {@link timeoutFailCause} for a version that raises a custom defect.
7653
- * @see {@link timeoutTo} for a version that allows specifying both success and timeout handlers.
7436
+ * @see {@link timeoutOrElse} for a version that allows specifying both success and timeout handlers.
7654
7437
  *
7655
7438
  * **Example** (Usage)
7656
7439
  *
@@ -7700,9 +7483,7 @@ export const timeout: {
7700
7483
  * your program waits for a task to finish, ensuring that it doesn't hang
7701
7484
  * indefinitely if the task takes too long.
7702
7485
  *
7703
- * @see {@link timeoutFail} for a version that raises a custom error.
7704
- * @see {@link timeoutFailCause} for a version that raises a custom defect.
7705
- * @see {@link timeoutTo} for a version that allows specifying both success and timeout handlers.
7486
+ * @see {@link timeoutOrElse} for a version that allows specifying both success and timeout handlers.
7706
7487
  *
7707
7488
  * **Example** (Usage)
7708
7489
  *
@@ -7752,9 +7533,7 @@ export const timeout: {
7752
7533
  * source effect fails before the timeout, that failure is preserved.
7753
7534
  *
7754
7535
  * @see {@link timeout} for a version that raises a `TimeoutException`.
7755
- * @see {@link timeoutFail} for a version that raises a custom error.
7756
- * @see {@link timeoutFailCause} for a version that raises a custom defect.
7757
- * @see {@link timeoutTo} for a version that allows specifying both success and timeout handlers.
7536
+ * @see {@link timeoutOrElse} for a version that allows specifying both success and timeout handlers.
7758
7537
  *
7759
7538
  * **Example** (Usage)
7760
7539
  *
@@ -7800,9 +7579,7 @@ export const timeoutOption: {
7800
7579
  * source effect fails before the timeout, that failure is preserved.
7801
7580
  *
7802
7581
  * @see {@link timeout} for a version that raises a `TimeoutException`.
7803
- * @see {@link timeoutFail} for a version that raises a custom error.
7804
- * @see {@link timeoutFailCause} for a version that raises a custom defect.
7805
- * @see {@link timeoutTo} for a version that allows specifying both success and timeout handlers.
7582
+ * @see {@link timeoutOrElse} for a version that allows specifying both success and timeout handlers.
7806
7583
  *
7807
7584
  * **Example** (Usage)
7808
7585
  *
@@ -7848,9 +7625,7 @@ export const timeoutOption: {
7848
7625
  * source effect fails before the timeout, that failure is preserved.
7849
7626
  *
7850
7627
  * @see {@link timeout} for a version that raises a `TimeoutException`.
7851
- * @see {@link timeoutFail} for a version that raises a custom error.
7852
- * @see {@link timeoutFailCause} for a version that raises a custom defect.
7853
- * @see {@link timeoutTo} for a version that allows specifying both success and timeout handlers.
7628
+ * @see {@link timeoutOrElse} for a version that allows specifying both success and timeout handlers.
7854
7629
  *
7855
7630
  * **Example** (Usage)
7856
7631
  *
@@ -7921,7 +7696,7 @@ export const timeoutOption: {
7921
7696
  * ```
7922
7697
  *
7923
7698
  * @category Delays & Timeouts
7924
- * @since 3.1.0
7699
+ * @since 4.0.0
7925
7700
  */
7926
7701
  export const timeoutOrElse: {
7927
7702
  /**
@@ -7959,7 +7734,7 @@ export const timeoutOrElse: {
7959
7734
  * ```
7960
7735
  *
7961
7736
  * @category Delays & Timeouts
7962
- * @since 3.1.0
7737
+ * @since 4.0.0
7963
7738
  */
7964
7739
  <A2, E2, R2>(
7965
7740
  options: {
@@ -8002,7 +7777,7 @@ export const timeoutOrElse: {
8002
7777
  * ```
8003
7778
  *
8004
7779
  * @category Delays & Timeouts
8005
- * @since 3.1.0
7780
+ * @since 4.0.0
8006
7781
  */
8007
7782
  <A, E, R, A2, E2, R2>(
8008
7783
  self: Effect<A, E, R>,
@@ -8447,7 +8222,7 @@ export const raceFirst: {
8447
8222
  * // Use Effect.filterMapEffect for effectful Filter.Filter callbacks
8448
8223
  * ```
8449
8224
  *
8450
- * @category Filtering
8225
+ * @category filtering
8451
8226
  * @since 2.0.0
8452
8227
  */
8453
8228
  export const filter: {
@@ -8473,7 +8248,7 @@ export const filter: {
8473
8248
  * // Use Effect.filterMapEffect for effectful Filter.Filter callbacks
8474
8249
  * ```
8475
8250
  *
8476
- * @category Filtering
8251
+ * @category filtering
8477
8252
  * @since 2.0.0
8478
8253
  */
8479
8254
  <A, B extends A>(refinement: Predicate.Refinement<NoInfer<A>, B>): (elements: Iterable<A>) => Effect<Array<B>>
@@ -8499,7 +8274,7 @@ export const filter: {
8499
8274
  * // Use Effect.filterMapEffect for effectful Filter.Filter callbacks
8500
8275
  * ```
8501
8276
  *
8502
- * @category Filtering
8277
+ * @category filtering
8503
8278
  * @since 2.0.0
8504
8279
  */
8505
8280
  <A>(predicate: Predicate.Predicate<NoInfer<A>>): (elements: Iterable<A>) => Effect<Array<A>>
@@ -8525,7 +8300,7 @@ export const filter: {
8525
8300
  * // Use Effect.filterMapEffect for effectful Filter.Filter callbacks
8526
8301
  * ```
8527
8302
  *
8528
- * @category Filtering
8303
+ * @category filtering
8529
8304
  * @since 2.0.0
8530
8305
  */
8531
8306
  <A, E, R>(
@@ -8554,7 +8329,7 @@ export const filter: {
8554
8329
  * // Use Effect.filterMapEffect for effectful Filter.Filter callbacks
8555
8330
  * ```
8556
8331
  *
8557
- * @category Filtering
8332
+ * @category filtering
8558
8333
  * @since 2.0.0
8559
8334
  */
8560
8335
  <A, B extends A>(elements: Iterable<A>, refinement: Predicate.Refinement<A, B>): Effect<Array<B>>
@@ -8580,7 +8355,7 @@ export const filter: {
8580
8355
  * // Use Effect.filterMapEffect for effectful Filter.Filter callbacks
8581
8356
  * ```
8582
8357
  *
8583
- * @category Filtering
8358
+ * @category filtering
8584
8359
  * @since 2.0.0
8585
8360
  */
8586
8361
  <A>(elements: Iterable<A>, predicate: Predicate.Predicate<A>): Effect<Array<A>>
@@ -8606,7 +8381,7 @@ export const filter: {
8606
8381
  * // Use Effect.filterMapEffect for effectful Filter.Filter callbacks
8607
8382
  * ```
8608
8383
  *
8609
- * @category Filtering
8384
+ * @category filtering
8610
8385
  * @since 2.0.0
8611
8386
  */
8612
8387
  <A, E, R>(
@@ -8619,22 +8394,22 @@ export const filter: {
8619
8394
  /**
8620
8395
  * Filters and maps elements of an iterable with a `Filter`.
8621
8396
  *
8622
- * @category Filtering
8623
- * @since 4.0.0
8397
+ * @category filtering
8398
+ * @since 2.0.0
8624
8399
  */
8625
8400
  export const filterMap: {
8626
8401
  /**
8627
8402
  * Filters and maps elements of an iterable with a `Filter`.
8628
8403
  *
8629
- * @category Filtering
8630
- * @since 4.0.0
8404
+ * @category filtering
8405
+ * @since 2.0.0
8631
8406
  */
8632
8407
  <A, B, X>(filter: Filter.Filter<NoInfer<A>, B, X>): (elements: Iterable<A>) => Effect<Array<B>>
8633
8408
  /**
8634
8409
  * Filters and maps elements of an iterable with a `Filter`.
8635
8410
  *
8636
- * @category Filtering
8637
- * @since 4.0.0
8411
+ * @category filtering
8412
+ * @since 2.0.0
8638
8413
  */
8639
8414
  <A, B, X>(elements: Iterable<A>, filter: Filter.Filter<NoInfer<A>, B, X>): Effect<Array<B>>
8640
8415
  } = internal.filterMap
@@ -8642,14 +8417,14 @@ export const filterMap: {
8642
8417
  /**
8643
8418
  * Effectfully filters and maps elements of an iterable with a `FilterEffect`.
8644
8419
  *
8645
- * @category Filtering
8420
+ * @category filtering
8646
8421
  * @since 4.0.0
8647
8422
  */
8648
8423
  export const filterMapEffect: {
8649
8424
  /**
8650
8425
  * Effectfully filters and maps elements of an iterable with a `FilterEffect`.
8651
8426
  *
8652
- * @category Filtering
8427
+ * @category filtering
8653
8428
  * @since 4.0.0
8654
8429
  */
8655
8430
  <A, B, X, E, R>(
@@ -8659,7 +8434,7 @@ export const filterMapEffect: {
8659
8434
  /**
8660
8435
  * Effectfully filters and maps elements of an iterable with a `FilterEffect`.
8661
8436
  *
8662
- * @category Filtering
8437
+ * @category filtering
8663
8438
  * @since 4.0.0
8664
8439
  */
8665
8440
  <A, B, X, E, R>(
@@ -8697,7 +8472,7 @@ export const filterMapEffect: {
8697
8472
  * // Result: "Number 5 is odd" (since 5 is not even)
8698
8473
  * ```
8699
8474
  *
8700
- * @category Filtering
8475
+ * @category filtering
8701
8476
  * @since 2.0.0
8702
8477
  */
8703
8478
  export const filterOrElse: {
@@ -8729,7 +8504,7 @@ export const filterOrElse: {
8729
8504
  * // Result: "Number 5 is odd" (since 5 is not even)
8730
8505
  * ```
8731
8506
  *
8732
- * @category Filtering
8507
+ * @category filtering
8733
8508
  * @since 2.0.0
8734
8509
  */
8735
8510
  <A, C, E2, R2, B extends A>(
@@ -8764,7 +8539,7 @@ export const filterOrElse: {
8764
8539
  * // Result: "Number 5 is odd" (since 5 is not even)
8765
8540
  * ```
8766
8541
  *
8767
- * @category Filtering
8542
+ * @category filtering
8768
8543
  * @since 2.0.0
8769
8544
  */
8770
8545
  <A, C, E2, R2>(
@@ -8799,7 +8574,7 @@ export const filterOrElse: {
8799
8574
  * // Result: "Number 5 is odd" (since 5 is not even)
8800
8575
  * ```
8801
8576
  *
8802
- * @category Filtering
8577
+ * @category filtering
8803
8578
  * @since 2.0.0
8804
8579
  */
8805
8580
  <A, E, R, C, E2, R2, B extends A>(
@@ -8835,7 +8610,7 @@ export const filterOrElse: {
8835
8610
  * // Result: "Number 5 is odd" (since 5 is not even)
8836
8611
  * ```
8837
8612
  *
8838
- * @category Filtering
8613
+ * @category filtering
8839
8614
  * @since 2.0.0
8840
8615
  */
8841
8616
  <A, E, R, C, E2, R2>(
@@ -8848,14 +8623,14 @@ export const filterOrElse: {
8848
8623
  /**
8849
8624
  * Filters an effect with a `Filter`, providing an alternative effect on failure.
8850
8625
  *
8851
- * @category Filtering
8626
+ * @category filtering
8852
8627
  * @since 4.0.0
8853
8628
  */
8854
8629
  export const filterMapOrElse: {
8855
8630
  /**
8856
8631
  * Filters an effect with a `Filter`, providing an alternative effect on failure.
8857
8632
  *
8858
- * @category Filtering
8633
+ * @category filtering
8859
8634
  * @since 4.0.0
8860
8635
  */
8861
8636
  <A, B, X, C, E2, R2>(
@@ -8865,7 +8640,7 @@ export const filterMapOrElse: {
8865
8640
  /**
8866
8641
  * Filters an effect with a `Filter`, providing an alternative effect on failure.
8867
8642
  *
8868
- * @category Filtering
8643
+ * @category filtering
8869
8644
  * @since 4.0.0
8870
8645
  */
8871
8646
  <A, E, R, B, X, C, E2, R2>(
@@ -8902,7 +8677,7 @@ export const filterMapOrElse: {
8902
8677
  * // Result: Effect.fail("Expected even number, got 5")
8903
8678
  * ```
8904
8679
  *
8905
- * @category Filtering
8680
+ * @category filtering
8906
8681
  * @since 2.0.0
8907
8682
  */
8908
8683
  export const filterOrFail: {
@@ -8933,7 +8708,7 @@ export const filterOrFail: {
8933
8708
  * // Result: Effect.fail("Expected even number, got 5")
8934
8709
  * ```
8935
8710
  *
8936
- * @category Filtering
8711
+ * @category filtering
8937
8712
  * @since 2.0.0
8938
8713
  */
8939
8714
  <A, E2, B extends A>(
@@ -8967,7 +8742,7 @@ export const filterOrFail: {
8967
8742
  * // Result: Effect.fail("Expected even number, got 5")
8968
8743
  * ```
8969
8744
  *
8970
- * @category Filtering
8745
+ * @category filtering
8971
8746
  * @since 2.0.0
8972
8747
  */
8973
8748
  <A, E2>(
@@ -9001,7 +8776,7 @@ export const filterOrFail: {
9001
8776
  * // Result: Effect.fail("Expected even number, got 5")
9002
8777
  * ```
9003
8778
  *
9004
- * @category Filtering
8779
+ * @category filtering
9005
8780
  * @since 2.0.0
9006
8781
  */
9007
8782
  <A, B extends A>(refinement: Predicate.Refinement<NoInfer<A>, B>): <E, R>(self: Effect<A, E, R>) => Effect<B, Cause.NoSuchElementError | E, R>
@@ -9032,7 +8807,7 @@ export const filterOrFail: {
9032
8807
  * // Result: Effect.fail("Expected even number, got 5")
9033
8808
  * ```
9034
8809
  *
9035
- * @category Filtering
8810
+ * @category filtering
9036
8811
  * @since 2.0.0
9037
8812
  */
9038
8813
  <A>(predicate: Predicate.Predicate<NoInfer<A>>): <E, R>(self: Effect<A, E, R>) => Effect<A, Cause.NoSuchElementError | E, R>
@@ -9063,7 +8838,7 @@ export const filterOrFail: {
9063
8838
  * // Result: Effect.fail("Expected even number, got 5")
9064
8839
  * ```
9065
8840
  *
9066
- * @category Filtering
8841
+ * @category filtering
9067
8842
  * @since 2.0.0
9068
8843
  */
9069
8844
  <A, E, R, E2, B extends A>(
@@ -9098,7 +8873,7 @@ export const filterOrFail: {
9098
8873
  * // Result: Effect.fail("Expected even number, got 5")
9099
8874
  * ```
9100
8875
  *
9101
- * @category Filtering
8876
+ * @category filtering
9102
8877
  * @since 2.0.0
9103
8878
  */
9104
8879
  <A, E, R, E2>(
@@ -9133,7 +8908,7 @@ export const filterOrFail: {
9133
8908
  * // Result: Effect.fail("Expected even number, got 5")
9134
8909
  * ```
9135
8910
  *
9136
- * @category Filtering
8911
+ * @category filtering
9137
8912
  * @since 2.0.0
9138
8913
  */
9139
8914
  <A, E, R, B extends A>(self: Effect<A, E, R>, refinement: Predicate.Refinement<NoInfer<A>, B>): Effect<B, E | Cause.NoSuchElementError, R>
@@ -9164,7 +8939,7 @@ export const filterOrFail: {
9164
8939
  * // Result: Effect.fail("Expected even number, got 5")
9165
8940
  * ```
9166
8941
  *
9167
- * @category Filtering
8942
+ * @category filtering
9168
8943
  * @since 2.0.0
9169
8944
  */
9170
8945
  <A, E, R>(self: Effect<A, E, R>, predicate: Predicate.Predicate<NoInfer<A>>): Effect<A, E | Cause.NoSuchElementError, R>
@@ -9173,28 +8948,28 @@ export const filterOrFail: {
9173
8948
  /**
9174
8949
  * Filters an effect with a `Filter`, failing when the filter fails.
9175
8950
  *
9176
- * @category Filtering
8951
+ * @category filtering
9177
8952
  * @since 4.0.0
9178
8953
  */
9179
8954
  export const filterMapOrFail: {
9180
8955
  /**
9181
8956
  * Filters an effect with a `Filter`, failing when the filter fails.
9182
8957
  *
9183
- * @category Filtering
8958
+ * @category filtering
9184
8959
  * @since 4.0.0
9185
8960
  */
9186
8961
  <A, B, X, E2>(filter: Filter.Filter<NoInfer<A>, B, X>, orFailWith: (x: X) => E2): <E, R>(self: Effect<A, E, R>) => Effect<B, E2 | E, R>
9187
8962
  /**
9188
8963
  * Filters an effect with a `Filter`, failing when the filter fails.
9189
8964
  *
9190
- * @category Filtering
8965
+ * @category filtering
9191
8966
  * @since 4.0.0
9192
8967
  */
9193
8968
  <A, B, X>(filter: Filter.Filter<NoInfer<A>, B, X>): <E, R>(self: Effect<A, E, R>) => Effect<B, Cause.NoSuchElementError | E, R>
9194
8969
  /**
9195
8970
  * Filters an effect with a `Filter`, failing when the filter fails.
9196
8971
  *
9197
- * @category Filtering
8972
+ * @category filtering
9198
8973
  * @since 4.0.0
9199
8974
  */
9200
8975
  <A, E, R, B, X, E2>(
@@ -9205,7 +8980,7 @@ export const filterMapOrFail: {
9205
8980
  /**
9206
8981
  * Filters an effect with a `Filter`, failing when the filter fails.
9207
8982
  *
9208
- * @category Filtering
8983
+ * @category filtering
9209
8984
  * @since 4.0.0
9210
8985
  */
9211
8986
  <A, E, R, B, X>(self: Effect<A, E, R>, filter: Filter.Filter<A, B, X>): Effect<B, Cause.NoSuchElementError | E, R>
@@ -9248,8 +9023,7 @@ export const filterMapOrFail: {
9248
9023
  * // { _id: 'Option', _tag: 'Some', value: undefined }
9249
9024
  * ```
9250
9025
  *
9251
- * @see {@link whenEffect} for a version that allows the condition to be an effect.
9252
- * @see {@link unless} for a version that executes the effect when the condition is `false`.
9026
+ * @see {@link when} for conditional execution with a boolean condition.
9253
9027
  *
9254
9028
  * @category Conditional Operators
9255
9029
  * @since 2.0.0
@@ -9292,8 +9066,7 @@ export const when: {
9292
9066
  * // { _id: 'Option', _tag: 'Some', value: undefined }
9293
9067
  * ```
9294
9068
  *
9295
- * @see {@link whenEffect} for a version that allows the condition to be an effect.
9296
- * @see {@link unless} for a version that executes the effect when the condition is `false`.
9069
+ * @see {@link when} for conditional execution with a boolean condition.
9297
9070
  *
9298
9071
  * @category Conditional Operators
9299
9072
  * @since 2.0.0
@@ -9336,8 +9109,7 @@ export const when: {
9336
9109
  * // { _id: 'Option', _tag: 'Some', value: undefined }
9337
9110
  * ```
9338
9111
  *
9339
- * @see {@link whenEffect} for a version that allows the condition to be an effect.
9340
- * @see {@link unless} for a version that executes the effect when the condition is `false`.
9112
+ * @see {@link when} for conditional execution with a boolean condition.
9341
9113
  *
9342
9114
  * @category Conditional Operators
9343
9115
  * @since 2.0.0
@@ -9567,7 +9339,7 @@ export const match: {
9567
9339
  * @see {@link matchEffect} if you need to perform side effects in the handlers.
9568
9340
  *
9569
9341
  * @category Pattern Matching
9570
- * @since 2.0.0
9342
+ * @since 4.0.0
9571
9343
  */
9572
9344
  export const matchEager: {
9573
9345
  /**
@@ -9605,7 +9377,7 @@ export const matchEager: {
9605
9377
  * @see {@link matchEffect} if you need to perform side effects in the handlers.
9606
9378
  *
9607
9379
  * @category Pattern Matching
9608
- * @since 2.0.0
9380
+ * @since 4.0.0
9609
9381
  */
9610
9382
  <E, A2, A, A3>(
9611
9383
  options: {
@@ -9648,7 +9420,7 @@ export const matchEager: {
9648
9420
  * @see {@link matchEffect} if you need to perform side effects in the handlers.
9649
9421
  *
9650
9422
  * @category Pattern Matching
9651
- * @since 2.0.0
9423
+ * @since 4.0.0
9652
9424
  */
9653
9425
  <A, E, R, A2, A3>(
9654
9426
  self: Effect<A, E, R>,
@@ -9813,7 +9585,7 @@ export const matchCause: {
9813
9585
  * ```
9814
9586
  *
9815
9587
  * @category Pattern Matching
9816
- * @since 3.8.0
9588
+ * @since 4.0.0
9817
9589
  */
9818
9590
  export const matchCauseEager: {
9819
9591
  /**
@@ -9843,7 +9615,7 @@ export const matchCauseEager: {
9843
9615
  * ```
9844
9616
  *
9845
9617
  * @category Pattern Matching
9846
- * @since 3.8.0
9618
+ * @since 4.0.0
9847
9619
  */
9848
9620
  <E, A2, A, A3>(
9849
9621
  options: {
@@ -9878,7 +9650,7 @@ export const matchCauseEager: {
9878
9650
  * ```
9879
9651
  *
9880
9652
  * @category Pattern Matching
9881
- * @since 3.8.0
9653
+ * @since 4.0.0
9882
9654
  */
9883
9655
  <A, E, R, A2, A3>(
9884
9656
  self: Effect<A, E, R>,
@@ -10377,7 +10149,7 @@ export const isSuccess: <A, E, R>(self: Effect<A, E, R>) => Effect<boolean, neve
10377
10149
  * **Example** (Usage)
10378
10150
  *
10379
10151
  * ```ts
10380
- * import { Console, Effect, Option, Context } from "effect"
10152
+ * import { Console, Context, Effect, Option } from "effect"
10381
10153
  *
10382
10154
  * const Logger = Context.Service<{
10383
10155
  * log: (msg: string) => void
@@ -10418,7 +10190,7 @@ export const context: <R = never>() => Effect<Context.Context<R>, never, R> = in
10418
10190
  * **Example** (Usage)
10419
10191
  *
10420
10192
  * ```ts
10421
- * import { Console, Effect, Option, Context } from "effect"
10193
+ * import { Console, Context, Effect, Option } from "effect"
10422
10194
  *
10423
10195
  * const Logger = Context.Service<{
10424
10196
  * log: (msg: string) => void
@@ -10465,7 +10237,7 @@ export const contextWith: <R, A, E, R2>(
10465
10237
  * **Example** (Usage)
10466
10238
  *
10467
10239
  * ```ts
10468
- * import { Effect, Layer, Context } from "effect"
10240
+ * import { Context, Effect, Layer } from "effect"
10469
10241
  *
10470
10242
  * interface Database {
10471
10243
  * readonly query: (sql: string) => Effect.Effect<string>
@@ -10500,7 +10272,7 @@ export const provide: {
10500
10272
  * **Example** (Usage)
10501
10273
  *
10502
10274
  * ```ts
10503
- * import { Effect, Layer, Context } from "effect"
10275
+ * import { Context, Effect, Layer } from "effect"
10504
10276
  *
10505
10277
  * interface Database {
10506
10278
  * readonly query: (sql: string) => Effect.Effect<string>
@@ -10546,7 +10318,7 @@ export const provide: {
10546
10318
  * **Example** (Usage)
10547
10319
  *
10548
10320
  * ```ts
10549
- * import { Effect, Layer, Context } from "effect"
10321
+ * import { Context, Effect, Layer } from "effect"
10550
10322
  *
10551
10323
  * interface Database {
10552
10324
  * readonly query: (sql: string) => Effect.Effect<string>
@@ -10588,7 +10360,7 @@ export const provide: {
10588
10360
  * **Example** (Usage)
10589
10361
  *
10590
10362
  * ```ts
10591
- * import { Effect, Layer, Context } from "effect"
10363
+ * import { Context, Effect, Layer } from "effect"
10592
10364
  *
10593
10365
  * interface Database {
10594
10366
  * readonly query: (sql: string) => Effect.Effect<string>
@@ -10623,7 +10395,7 @@ export const provide: {
10623
10395
  * **Example** (Usage)
10624
10396
  *
10625
10397
  * ```ts
10626
- * import { Effect, Layer, Context } from "effect"
10398
+ * import { Context, Effect, Layer } from "effect"
10627
10399
  *
10628
10400
  * interface Database {
10629
10401
  * readonly query: (sql: string) => Effect.Effect<string>
@@ -10668,7 +10440,7 @@ export const provide: {
10668
10440
  * **Example** (Usage)
10669
10441
  *
10670
10442
  * ```ts
10671
- * import { Effect, Layer, Context } from "effect"
10443
+ * import { Context, Effect, Layer } from "effect"
10672
10444
  *
10673
10445
  * interface Database {
10674
10446
  * readonly query: (sql: string) => Effect.Effect<string>
@@ -10709,7 +10481,7 @@ export const provide: {
10709
10481
  * **Example** (Usage)
10710
10482
  *
10711
10483
  * ```ts
10712
- * import { Effect, Layer, Context } from "effect"
10484
+ * import { Context, Effect, Layer } from "effect"
10713
10485
  *
10714
10486
  * interface Database {
10715
10487
  * readonly query: (sql: string) => Effect.Effect<string>
@@ -10750,7 +10522,7 @@ export const provide: {
10750
10522
  * **Example** (Usage)
10751
10523
  *
10752
10524
  * ```ts
10753
- * import { Effect, Context } from "effect"
10525
+ * import { Context, Effect } from "effect"
10754
10526
  *
10755
10527
  * // Define service keys
10756
10528
  * const Logger = Context.Service<{
@@ -10776,7 +10548,7 @@ export const provide: {
10776
10548
  * ```
10777
10549
  *
10778
10550
  * @category Environment
10779
- * @since 2.0.0
10551
+ * @since 4.0.0
10780
10552
  */
10781
10553
  export const provideContext: {
10782
10554
  /**
@@ -10791,7 +10563,7 @@ export const provideContext: {
10791
10563
  * **Example** (Usage)
10792
10564
  *
10793
10565
  * ```ts
10794
- * import { Effect, Context } from "effect"
10566
+ * import { Context, Effect } from "effect"
10795
10567
  *
10796
10568
  * // Define service keys
10797
10569
  * const Logger = Context.Service<{
@@ -10817,7 +10589,7 @@ export const provideContext: {
10817
10589
  * ```
10818
10590
  *
10819
10591
  * @category Environment
10820
- * @since 2.0.0
10592
+ * @since 4.0.0
10821
10593
  */
10822
10594
  <XR>(context: Context.Context<XR>): <A, E, R>(self: Effect<A, E, R>) => Effect<A, E, Exclude<R, XR>>
10823
10595
  /**
@@ -10832,7 +10604,7 @@ export const provideContext: {
10832
10604
  * **Example** (Usage)
10833
10605
  *
10834
10606
  * ```ts
10835
- * import { Effect, Context } from "effect"
10607
+ * import { Context, Effect } from "effect"
10836
10608
  *
10837
10609
  * // Define service keys
10838
10610
  * const Logger = Context.Service<{
@@ -10858,7 +10630,7 @@ export const provideContext: {
10858
10630
  * ```
10859
10631
  *
10860
10632
  * @category Environment
10861
- * @since 2.0.0
10633
+ * @since 4.0.0
10862
10634
  */
10863
10635
  <A, E, R, XR>(self: Effect<A, E, R>, context: Context.Context<XR>): Effect<A, E, Exclude<R, XR>>
10864
10636
  } = internal.provideContext
@@ -10869,7 +10641,7 @@ export const provideContext: {
10869
10641
  * **Example** (Usage)
10870
10642
  *
10871
10643
  * ```ts
10872
- * import { Effect, Context } from "effect"
10644
+ * import { Context, Effect } from "effect"
10873
10645
  *
10874
10646
  * interface Database {
10875
10647
  * readonly query: (sql: string) => Effect.Effect<string>
@@ -10901,7 +10673,7 @@ export const service: <I, S>(service: Context.Key<I, S>) => Effect<S, never, I>
10901
10673
  * **Example** (Usage)
10902
10674
  *
10903
10675
  * ```ts
10904
- * import { Effect, Option, Context } from "effect"
10676
+ * import { Context, Effect, Option } from "effect"
10905
10677
  *
10906
10678
  * // Define a service key
10907
10679
  * const Logger = Context.Service<{
@@ -10936,7 +10708,7 @@ export const serviceOption: <I, S>(key: Context.Key<I, S>) => Effect<Option<S>>
10936
10708
  * **Example** (Usage)
10937
10709
  *
10938
10710
  * ```ts
10939
- * import { Effect, Context } from "effect"
10711
+ * import { Context, Effect } from "effect"
10940
10712
  *
10941
10713
  * // Define services
10942
10714
  * const Logger = Context.Service<{
@@ -10978,7 +10750,7 @@ export const updateContext: {
10978
10750
  * **Example** (Usage)
10979
10751
  *
10980
10752
  * ```ts
10981
- * import { Effect, Context } from "effect"
10753
+ * import { Context, Effect } from "effect"
10982
10754
  *
10983
10755
  * // Define services
10984
10756
  * const Logger = Context.Service<{
@@ -11020,7 +10792,7 @@ export const updateContext: {
11020
10792
  * **Example** (Usage)
11021
10793
  *
11022
10794
  * ```ts
11023
- * import { Effect, Context } from "effect"
10795
+ * import { Context, Effect } from "effect"
11024
10796
  *
11025
10797
  * // Define services
11026
10798
  * const Logger = Context.Service<{
@@ -11066,7 +10838,7 @@ export const updateContext: {
11066
10838
  * **Example** (Usage)
11067
10839
  *
11068
10840
  * ```ts
11069
- * import { Console, Effect, Context } from "effect"
10841
+ * import { Console, Context, Effect } from "effect"
11070
10842
  *
11071
10843
  * // Define a counter service
11072
10844
  * const Counter = Context.Service<{ count: number }>("Counter")
@@ -11100,7 +10872,7 @@ export const updateService: {
11100
10872
  * **Example** (Usage)
11101
10873
  *
11102
10874
  * ```ts
11103
- * import { Console, Effect, Context } from "effect"
10875
+ * import { Console, Context, Effect } from "effect"
11104
10876
  *
11105
10877
  * // Define a counter service
11106
10878
  * const Counter = Context.Service<{ count: number }>("Counter")
@@ -11134,7 +10906,7 @@ export const updateService: {
11134
10906
  * **Example** (Usage)
11135
10907
  *
11136
10908
  * ```ts
11137
- * import { Console, Effect, Context } from "effect"
10909
+ * import { Console, Context, Effect } from "effect"
11138
10910
  *
11139
10911
  * // Define a counter service
11140
10912
  * const Counter = Context.Service<{ count: number }>("Counter")
@@ -11175,7 +10947,7 @@ export const updateService: {
11175
10947
  * **Example** (Usage)
11176
10948
  *
11177
10949
  * ```ts
11178
- * import { Console, Effect, Context } from "effect"
10950
+ * import { Console, Context, Effect } from "effect"
11179
10951
  *
11180
10952
  * // Define a service for configuration
11181
10953
  * const Config = Context.Service<{
@@ -11222,7 +10994,7 @@ export const provideService: {
11222
10994
  * **Example** (Usage)
11223
10995
  *
11224
10996
  * ```ts
11225
- * import { Console, Effect, Context } from "effect"
10997
+ * import { Console, Context, Effect } from "effect"
11226
10998
  *
11227
10999
  * // Define a service for configuration
11228
11000
  * const Config = Context.Service<{
@@ -11269,7 +11041,7 @@ export const provideService: {
11269
11041
  * **Example** (Usage)
11270
11042
  *
11271
11043
  * ```ts
11272
- * import { Console, Effect, Context } from "effect"
11044
+ * import { Console, Context, Effect } from "effect"
11273
11045
  *
11274
11046
  * // Define a service for configuration
11275
11047
  * const Config = Context.Service<{
@@ -11316,7 +11088,7 @@ export const provideService: {
11316
11088
  * **Example** (Usage)
11317
11089
  *
11318
11090
  * ```ts
11319
- * import { Console, Effect, Context } from "effect"
11091
+ * import { Console, Context, Effect } from "effect"
11320
11092
  *
11321
11093
  * // Define a service for configuration
11322
11094
  * const Config = Context.Service<{
@@ -11364,7 +11136,7 @@ export const provideService: {
11364
11136
  * **Example** (Usage)
11365
11137
  *
11366
11138
  * ```ts
11367
- * import { Console, Effect, Context } from "effect"
11139
+ * import { Console, Context, Effect } from "effect"
11368
11140
  *
11369
11141
  * // Define a service for configuration
11370
11142
  * const Config = Context.Service<{
@@ -11411,7 +11183,7 @@ export const provideService: {
11411
11183
  * **Example** (Usage)
11412
11184
  *
11413
11185
  * ```ts
11414
- * import { Console, Effect, Context } from "effect"
11186
+ * import { Console, Context, Effect } from "effect"
11415
11187
  *
11416
11188
  * // Define a service for configuration
11417
11189
  * const Config = Context.Service<{
@@ -11458,7 +11230,7 @@ export const provideService: {
11458
11230
  * **Example** (Usage)
11459
11231
  *
11460
11232
  * ```ts
11461
- * import { Console, Effect, Context } from "effect"
11233
+ * import { Console, Context, Effect } from "effect"
11462
11234
  *
11463
11235
  * // Define a database connection service
11464
11236
  * interface DatabaseConnection {
@@ -11512,7 +11284,7 @@ export const provideServiceEffect: {
11512
11284
  * **Example** (Usage)
11513
11285
  *
11514
11286
  * ```ts
11515
- * import { Console, Effect, Context } from "effect"
11287
+ * import { Console, Context, Effect } from "effect"
11516
11288
  *
11517
11289
  * // Define a database connection service
11518
11290
  * interface DatabaseConnection {
@@ -11566,7 +11338,7 @@ export const provideServiceEffect: {
11566
11338
  * **Example** (Usage)
11567
11339
  *
11568
11340
  * ```ts
11569
- * import { Console, Effect, Context } from "effect"
11341
+ * import { Console, Context, Effect } from "effect"
11570
11342
  *
11571
11343
  * // Define a database connection service
11572
11344
  * interface DatabaseConnection {
@@ -11646,7 +11418,7 @@ export const provideServiceEffect: {
11646
11418
  * // [1, 2, 3, 4, 5]
11647
11419
  * ```
11648
11420
  *
11649
- * @category References
11421
+ * @category references
11650
11422
  * @since 2.0.0
11651
11423
  */
11652
11424
  export const withConcurrency: {
@@ -11683,7 +11455,7 @@ export const withConcurrency: {
11683
11455
  * // [1, 2, 3, 4, 5]
11684
11456
  * ```
11685
11457
  *
11686
- * @category References
11458
+ * @category references
11687
11459
  * @since 2.0.0
11688
11460
  */
11689
11461
  (concurrency: number | "unbounded"): <A, E, R>(self: Effect<A, E, R>) => Effect<A, E, R>
@@ -11720,7 +11492,7 @@ export const withConcurrency: {
11720
11492
  * // [1, 2, 3, 4, 5]
11721
11493
  * ```
11722
11494
  *
11723
- * @category References
11495
+ * @category references
11724
11496
  * @since 2.0.0
11725
11497
  */
11726
11498
  <A, E, R>(self: Effect<A, E, R>, concurrency: number | "unbounded"): Effect<A, E, R>
@@ -11759,7 +11531,7 @@ export const withConcurrency: {
11759
11531
  * // Releasing resource
11760
11532
  * ```
11761
11533
  *
11762
- * @category Resource Management & Finalization
11534
+ * @category resource management
11763
11535
  * @since 2.0.0
11764
11536
  */
11765
11537
  export const scope: Effect<Scope, never, Scope> = internal.scope
@@ -11793,7 +11565,7 @@ export const scope: Effect<Scope, never, Scope> = internal.scope
11793
11565
  * // Output: "Releasing resource"
11794
11566
  * ```
11795
11567
  *
11796
- * @category Resource Management & Finalization
11568
+ * @category resource management
11797
11569
  * @since 2.0.0
11798
11570
  */
11799
11571
  export const scoped: <A, E, R>(
@@ -11836,8 +11608,8 @@ export const scoped: <A, E, R>(
11836
11608
  * // Manual finalizer
11837
11609
  * ```
11838
11610
  *
11839
- * @category Resource Management & Finalization
11840
- * @since 2.0.0
11611
+ * @category resource management
11612
+ * @since 3.11.0
11841
11613
  */
11842
11614
  export const scopedWith: <A, E, R>(
11843
11615
  f: (scope: Scope) => Effect<A, E, R>
@@ -11894,7 +11666,7 @@ export const scopedWith: <A, E, R>(
11894
11666
  * )
11895
11667
  * ```
11896
11668
  *
11897
- * @category Resource Management & Finalization
11669
+ * @category resource management
11898
11670
  * @since 2.0.0
11899
11671
  */
11900
11672
  export const acquireRelease: <A, E, R, R2>(
@@ -11916,13 +11688,13 @@ export const acquireRelease: <A, E, R, R2>(
11916
11688
  * JavaScript disposal protocal instead of requiring an explicit release
11917
11689
  * function.
11918
11690
  *
11919
- * @see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/using}
11691
+ * @see [JavaScript `using` declarations](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/using)
11920
11692
  *
11921
11693
  * **Example** (Usage)
11922
11694
  *
11923
11695
  * ```ts
11924
11696
  * import sqlite from "node:sqlite";
11925
- * import { Effect } from "effect";
11697
+ * import { Effect } from "effect"
11926
11698
  *
11927
11699
  * const program = Effect.scoped(
11928
11700
  * Effect.gen(function* () {
@@ -11938,7 +11710,7 @@ export const acquireRelease: <A, E, R, R2>(
11938
11710
  * )
11939
11711
  * ```
11940
11712
  *
11941
- * @category Resource Management & Finalization
11713
+ * @category resource management
11942
11714
  * @since 4.0.0
11943
11715
  */
11944
11716
  export const acquireDisposable: <A extends AsyncDisposable | Disposable, E, R>(
@@ -12014,7 +11786,7 @@ export const acquireDisposable: <A extends AsyncDisposable | Disposable, E, R>(
12014
11786
  * // Closing connection to db://localhost:5432 (success)
12015
11787
  * ```
12016
11788
  *
12017
- * @category Resource Management & Finalization
11789
+ * @category resource management
12018
11790
  * @since 2.0.0
12019
11791
  */
12020
11792
  export const acquireUseRelease: <Resource, E, R, A, E2, R2, E3, R3>(
@@ -12062,7 +11834,7 @@ export const acquireUseRelease: <Resource, E, R, A, E2, R2, E3, R3>(
12062
11834
  * // operation result
12063
11835
  * ```
12064
11836
  *
12065
- * @category Resource Management & Finalization
11837
+ * @category resource management
12066
11838
  * @since 2.0.0
12067
11839
  */
12068
11840
  export const addFinalizer: <R>(
@@ -12106,7 +11878,7 @@ export const addFinalizer: <R>(
12106
11878
  * // 42
12107
11879
  * ```
12108
11880
  *
12109
- * @category Resource Management & Finalization
11881
+ * @category resource management
12110
11882
  * @since 2.0.0
12111
11883
  */
12112
11884
  export const ensuring: {
@@ -12147,7 +11919,7 @@ export const ensuring: {
12147
11919
  * // 42
12148
11920
  * ```
12149
11921
  *
12150
- * @category Resource Management & Finalization
11922
+ * @category resource management
12151
11923
  * @since 2.0.0
12152
11924
  */
12153
11925
  <X, R1>(finalizer: Effect<X, never, R1>): <A, E, R>(self: Effect<A, E, R>) => Effect<A, E, R1 | R>
@@ -12188,7 +11960,7 @@ export const ensuring: {
12188
11960
  * // 42
12189
11961
  * ```
12190
11962
  *
12191
- * @category Resource Management & Finalization
11963
+ * @category resource management
12192
11964
  * @since 2.0.0
12193
11965
  */
12194
11966
  <A, E, R, X, R1>(self: Effect<A, E, R>, finalizer: Effect<X, never, R1>): Effect<A, E, R1 | R>
@@ -12201,7 +11973,7 @@ export const ensuring: {
12201
11973
  * **Example** (Usage)
12202
11974
  *
12203
11975
  * ```ts
12204
- * import { Cause, Data, Console, Effect } from "effect"
11976
+ * import { Cause, Console, Data, Effect } from "effect"
12205
11977
  *
12206
11978
  * class TaskError extends Data.TaggedError("TaskError")<{ readonly message: string }> {}
12207
11979
  *
@@ -12218,7 +11990,7 @@ export const ensuring: {
12218
11990
  * // TaskError: Something went wrong
12219
11991
  * ```
12220
11992
  *
12221
- * @category Resource Management & Finalization
11993
+ * @category resource management
12222
11994
  * @since 2.0.0
12223
11995
  */
12224
11996
  export const onError: {
@@ -12229,7 +12001,7 @@ export const onError: {
12229
12001
  * **Example** (Usage)
12230
12002
  *
12231
12003
  * ```ts
12232
- * import { Cause, Data, Console, Effect } from "effect"
12004
+ * import { Cause, Console, Data, Effect } from "effect"
12233
12005
  *
12234
12006
  * class TaskError extends Data.TaggedError("TaskError")<{ readonly message: string }> {}
12235
12007
  *
@@ -12246,7 +12018,7 @@ export const onError: {
12246
12018
  * // TaskError: Something went wrong
12247
12019
  * ```
12248
12020
  *
12249
- * @category Resource Management & Finalization
12021
+ * @category resource management
12250
12022
  * @since 2.0.0
12251
12023
  */
12252
12024
  <E, X, R2>(cleanup: (cause: Cause.Cause<E>) => Effect<X, never, R2>): <A, R>(self: Effect<A, E, R>) => Effect<A, E, R2 | R>
@@ -12257,7 +12029,7 @@ export const onError: {
12257
12029
  * **Example** (Usage)
12258
12030
  *
12259
12031
  * ```ts
12260
- * import { Cause, Data, Console, Effect } from "effect"
12032
+ * import { Cause, Console, Data, Effect } from "effect"
12261
12033
  *
12262
12034
  * class TaskError extends Data.TaggedError("TaskError")<{ readonly message: string }> {}
12263
12035
  *
@@ -12274,7 +12046,7 @@ export const onError: {
12274
12046
  * // TaskError: Something went wrong
12275
12047
  * ```
12276
12048
  *
12277
- * @category Resource Management & Finalization
12049
+ * @category resource management
12278
12050
  * @since 2.0.0
12279
12051
  */
12280
12052
  <A, E, R, X, R2>(
@@ -12304,7 +12076,7 @@ export const onError: {
12304
12076
  * )
12305
12077
  * ```
12306
12078
  *
12307
- * @category Resource Management & Finalization
12079
+ * @category resource management
12308
12080
  * @since 4.0.0
12309
12081
  */
12310
12082
  export const onErrorIf: {
@@ -12329,7 +12101,7 @@ export const onErrorIf: {
12329
12101
  * )
12330
12102
  * ```
12331
12103
  *
12332
- * @category Resource Management & Finalization
12104
+ * @category resource management
12333
12105
  * @since 4.0.0
12334
12106
  */
12335
12107
  <E, XE, XR>(
@@ -12357,7 +12129,7 @@ export const onErrorIf: {
12357
12129
  * )
12358
12130
  * ```
12359
12131
  *
12360
- * @category Resource Management & Finalization
12132
+ * @category resource management
12361
12133
  * @since 4.0.0
12362
12134
  */
12363
12135
  <A, E, R, XE, XR>(
@@ -12370,14 +12142,14 @@ export const onErrorIf: {
12370
12142
  /**
12371
12143
  * Runs the finalizer only when this effect fails and the cause matches the provided `Filter`.
12372
12144
  *
12373
- * @category Resource Management & Finalization
12145
+ * @category resource management
12374
12146
  * @since 4.0.0
12375
12147
  */
12376
12148
  export const onErrorFilter: {
12377
12149
  /**
12378
12150
  * Runs the finalizer only when this effect fails and the cause matches the provided `Filter`.
12379
12151
  *
12380
- * @category Resource Management & Finalization
12152
+ * @category resource management
12381
12153
  * @since 4.0.0
12382
12154
  */
12383
12155
  <A, E, EB, X, XE, XR>(
@@ -12387,7 +12159,7 @@ export const onErrorFilter: {
12387
12159
  /**
12388
12160
  * Runs the finalizer only when this effect fails and the cause matches the provided `Filter`.
12389
12161
  *
12390
- * @category Resource Management & Finalization
12162
+ * @category resource management
12391
12163
  * @since 4.0.0
12392
12164
  */
12393
12165
  <A, E, R, EB, X, XE, XR>(
@@ -12406,8 +12178,8 @@ export const onErrorFilter: {
12406
12178
  * This low-level operator preserves the source effect's result unless the
12407
12179
  * finalizer fails. Prefer `onExit` for normal cleanup logic.
12408
12180
  *
12409
- * @category Resource Management & Finalization
12410
- * @since 2.0.0
12181
+ * @category resource management
12182
+ * @since 4.0.0
12411
12183
  */
12412
12184
  export const onExitPrimitive: <A, E, R, XE = never, XR = never>(
12413
12185
  self: Effect<A, E, R>,
@@ -12439,7 +12211,7 @@ export const onExitPrimitive: <A, E, R, XE = never, XR = never>(
12439
12211
  * // 42
12440
12212
  * ```
12441
12213
  *
12442
- * @category Resource Management & Finalization
12214
+ * @category resource management
12443
12215
  * @since 2.0.0
12444
12216
  */
12445
12217
  export const onExit: {
@@ -12467,7 +12239,7 @@ export const onExit: {
12467
12239
  * // 42
12468
12240
  * ```
12469
12241
  *
12470
- * @category Resource Management & Finalization
12242
+ * @category resource management
12471
12243
  * @since 2.0.0
12472
12244
  */
12473
12245
  <A, E, XE = never, XR = never>(f: (exit: Exit.Exit<A, E>) => Effect<void, XE, XR>): <R>(self: Effect<A, E, R>) => Effect<A, E | XE, R | XR>
@@ -12495,7 +12267,7 @@ export const onExit: {
12495
12267
  * // 42
12496
12268
  * ```
12497
12269
  *
12498
- * @category Resource Management & Finalization
12270
+ * @category resource management
12499
12271
  * @since 2.0.0
12500
12272
  */
12501
12273
  <A, E, R, XE = never, XR = never>(self: Effect<A, E, R>, f: (exit: Exit.Exit<A, E>) => Effect<void, XE, XR>): Effect<A, E | XE, R | XR>
@@ -12520,7 +12292,7 @@ export const onExit: {
12520
12292
  * )
12521
12293
  * ```
12522
12294
  *
12523
- * @category Resource Management & Finalization
12295
+ * @category resource management
12524
12296
  * @since 4.0.0
12525
12297
  */
12526
12298
  export const onExitIf: {
@@ -12543,7 +12315,7 @@ export const onExitIf: {
12543
12315
  * )
12544
12316
  * ```
12545
12317
  *
12546
- * @category Resource Management & Finalization
12318
+ * @category resource management
12547
12319
  * @since 4.0.0
12548
12320
  */
12549
12321
  <A, E, XE, XR>(
@@ -12569,7 +12341,7 @@ export const onExitIf: {
12569
12341
  * )
12570
12342
  * ```
12571
12343
  *
12572
- * @category Resource Management & Finalization
12344
+ * @category resource management
12573
12345
  * @since 4.0.0
12574
12346
  */
12575
12347
  <A, E, R, XE, XR>(
@@ -12582,14 +12354,14 @@ export const onExitIf: {
12582
12354
  /**
12583
12355
  * Runs the cleanup effect only when the `Exit` matches the provided `Filter`.
12584
12356
  *
12585
- * @category Resource Management & Finalization
12357
+ * @category resource management
12586
12358
  * @since 4.0.0
12587
12359
  */
12588
12360
  export const onExitFilter: {
12589
12361
  /**
12590
12362
  * Runs the cleanup effect only when the `Exit` matches the provided `Filter`.
12591
12363
  *
12592
- * @category Resource Management & Finalization
12364
+ * @category resource management
12593
12365
  * @since 4.0.0
12594
12366
  */
12595
12367
  <A, E, XE, XR, B, X>(
@@ -12599,7 +12371,7 @@ export const onExitFilter: {
12599
12371
  /**
12600
12372
  * Runs the cleanup effect only when the `Exit` matches the provided `Filter`.
12601
12373
  *
12602
- * @category Resource Management & Finalization
12374
+ * @category resource management
12603
12375
  * @since 4.0.0
12604
12376
  */
12605
12377
  <A, E, R, XE, XR, B, X>(
@@ -13346,7 +13118,6 @@ export const abortSignal: Effect<AbortSignal, never, Scope> = internal.abortSign
13346
13118
  /**
13347
13119
  * Type helpers for repeating effects.
13348
13120
  *
13349
- * @category Repetition / Recursion
13350
13121
  * @since 2.0.0
13351
13122
  */
13352
13123
  export declare namespace Repeat {
@@ -13465,9 +13236,7 @@ export const forever: <
13465
13236
  *
13466
13237
  * ```ts
13467
13238
  * // Success Example
13468
- * import { Effect } from "effect"
13469
- * import { Schedule } from "effect"
13470
- * import { Console } from "effect"
13239
+ * import { Console, Effect, Schedule } from "effect"
13471
13240
  *
13472
13241
  * const action = Console.log("success")
13473
13242
  * const policy = Schedule.addDelay(Schedule.recurs(2), () => Effect.succeed("100 millis"))
@@ -13480,8 +13249,7 @@ export const forever: <
13480
13249
  *
13481
13250
  * ```ts
13482
13251
  * // Failure Example
13483
- * import { Effect } from "effect"
13484
- * import { Schedule } from "effect"
13252
+ * import { Effect, Schedule } from "effect"
13485
13253
  *
13486
13254
  * let count = 0
13487
13255
  *
@@ -13533,9 +13301,7 @@ export const repeat: {
13533
13301
  *
13534
13302
  * ```ts
13535
13303
  * // Success Example
13536
- * import { Effect } from "effect"
13537
- * import { Schedule } from "effect"
13538
- * import { Console } from "effect"
13304
+ * import { Console, Effect, Schedule } from "effect"
13539
13305
  *
13540
13306
  * const action = Console.log("success")
13541
13307
  * const policy = Schedule.addDelay(Schedule.recurs(2), () => Effect.succeed("100 millis"))
@@ -13548,8 +13314,7 @@ export const repeat: {
13548
13314
  *
13549
13315
  * ```ts
13550
13316
  * // Failure Example
13551
- * import { Effect } from "effect"
13552
- * import { Schedule } from "effect"
13317
+ * import { Effect, Schedule } from "effect"
13553
13318
  *
13554
13319
  * let count = 0
13555
13320
  *
@@ -13601,9 +13366,7 @@ export const repeat: {
13601
13366
  *
13602
13367
  * ```ts
13603
13368
  * // Success Example
13604
- * import { Effect } from "effect"
13605
- * import { Schedule } from "effect"
13606
- * import { Console } from "effect"
13369
+ * import { Console, Effect, Schedule } from "effect"
13607
13370
  *
13608
13371
  * const action = Console.log("success")
13609
13372
  * const policy = Schedule.addDelay(Schedule.recurs(2), () => Effect.succeed("100 millis"))
@@ -13616,8 +13379,7 @@ export const repeat: {
13616
13379
  *
13617
13380
  * ```ts
13618
13381
  * // Failure Example
13619
- * import { Effect } from "effect"
13620
- * import { Schedule } from "effect"
13382
+ * import { Effect, Schedule } from "effect"
13621
13383
  *
13622
13384
  * let count = 0
13623
13385
  *
@@ -13669,9 +13431,7 @@ export const repeat: {
13669
13431
  *
13670
13432
  * ```ts
13671
13433
  * // Success Example
13672
- * import { Effect } from "effect"
13673
- * import { Schedule } from "effect"
13674
- * import { Console } from "effect"
13434
+ * import { Console, Effect, Schedule } from "effect"
13675
13435
  *
13676
13436
  * const action = Console.log("success")
13677
13437
  * const policy = Schedule.addDelay(Schedule.recurs(2), () => Effect.succeed("100 millis"))
@@ -13684,8 +13444,7 @@ export const repeat: {
13684
13444
  *
13685
13445
  * ```ts
13686
13446
  * // Failure Example
13687
- * import { Effect } from "effect"
13688
- * import { Schedule } from "effect"
13447
+ * import { Effect, Schedule } from "effect"
13689
13448
  *
13690
13449
  * let count = 0
13691
13450
  *
@@ -13741,9 +13500,7 @@ export const repeat: {
13741
13500
  *
13742
13501
  * ```ts
13743
13502
  * // Success Example
13744
- * import { Effect } from "effect"
13745
- * import { Schedule } from "effect"
13746
- * import { Console } from "effect"
13503
+ * import { Console, Effect, Schedule } from "effect"
13747
13504
  *
13748
13505
  * const action = Console.log("success")
13749
13506
  * const policy = Schedule.addDelay(Schedule.recurs(2), () => Effect.succeed("100 millis"))
@@ -13756,8 +13513,7 @@ export const repeat: {
13756
13513
  *
13757
13514
  * ```ts
13758
13515
  * // Failure Example
13759
- * import { Effect } from "effect"
13760
- * import { Schedule } from "effect"
13516
+ * import { Effect, Schedule } from "effect"
13761
13517
  *
13762
13518
  * let count = 0
13763
13519
  *
@@ -13809,9 +13565,7 @@ export const repeat: {
13809
13565
  *
13810
13566
  * ```ts
13811
13567
  * // Success Example
13812
- * import { Effect } from "effect"
13813
- * import { Schedule } from "effect"
13814
- * import { Console } from "effect"
13568
+ * import { Console, Effect, Schedule } from "effect"
13815
13569
  *
13816
13570
  * const action = Console.log("success")
13817
13571
  * const policy = Schedule.addDelay(Schedule.recurs(2), () => Effect.succeed("100 millis"))
@@ -13824,8 +13578,7 @@ export const repeat: {
13824
13578
  *
13825
13579
  * ```ts
13826
13580
  * // Failure Example
13827
- * import { Effect } from "effect"
13828
- * import { Schedule } from "effect"
13581
+ * import { Effect, Schedule } from "effect"
13829
13582
  *
13830
13583
  * let count = 0
13831
13584
  *
@@ -13880,9 +13633,7 @@ export const repeat: {
13880
13633
  *
13881
13634
  * ```ts
13882
13635
  * // Success Example
13883
- * import { Effect } from "effect"
13884
- * import { Schedule } from "effect"
13885
- * import { Console } from "effect"
13636
+ * import { Console, Effect, Schedule } from "effect"
13886
13637
  *
13887
13638
  * const action = Console.log("success")
13888
13639
  * const policy = Schedule.addDelay(Schedule.recurs(2), () => Effect.succeed("100 millis"))
@@ -13895,8 +13646,7 @@ export const repeat: {
13895
13646
  *
13896
13647
  * ```ts
13897
13648
  * // Failure Example
13898
- * import { Effect } from "effect"
13899
- * import { Schedule } from "effect"
13649
+ * import { Effect, Schedule } from "effect"
13900
13650
  *
13901
13651
  * let count = 0
13902
13652
  *
@@ -13943,8 +13693,7 @@ export const repeat: {
13943
13693
  * **Example** (Usage)
13944
13694
  *
13945
13695
  * ```ts
13946
- * import { Console, Effect, Schedule } from "effect"
13947
- * import * as Option from "effect/Option"
13696
+ * import { Console, Effect, Option, Schedule } from "effect"
13948
13697
  *
13949
13698
  * let attempt = 0
13950
13699
  * const task = Effect.gen(function*() {
@@ -13987,8 +13736,7 @@ export const repeatOrElse: {
13987
13736
  * **Example** (Usage)
13988
13737
  *
13989
13738
  * ```ts
13990
- * import { Console, Effect, Schedule } from "effect"
13991
- * import * as Option from "effect/Option"
13739
+ * import { Console, Effect, Option, Schedule } from "effect"
13992
13740
  *
13993
13741
  * let attempt = 0
13994
13742
  * const task = Effect.gen(function*() {
@@ -14034,8 +13782,7 @@ export const repeatOrElse: {
14034
13782
  * **Example** (Usage)
14035
13783
  *
14036
13784
  * ```ts
14037
- * import { Console, Effect, Schedule } from "effect"
14038
- * import * as Option from "effect/Option"
13785
+ * import { Console, Effect, Option, Schedule } from "effect"
14039
13786
  *
14040
13787
  * let attempt = 0
14041
13788
  * const task = Effect.gen(function*() {
@@ -14488,7 +14235,7 @@ export const scheduleFrom: {
14488
14235
  * })
14489
14236
  * ```
14490
14237
  *
14491
- * @category Tracing
14238
+ * @category tracing
14492
14239
  * @since 2.0.0
14493
14240
  */
14494
14241
  export const tracer: Effect<Tracer> = internal.tracer
@@ -14510,7 +14257,7 @@ export const tracer: Effect<Tracer> = internal.tracer
14510
14257
  * // const traced = Effect.withTracer(program, customTracer)
14511
14258
  * ```
14512
14259
  *
14513
- * @category Tracing
14260
+ * @category tracing
14514
14261
  * @since 2.0.0
14515
14262
  */
14516
14263
  export const withTracer: {
@@ -14531,7 +14278,7 @@ export const withTracer: {
14531
14278
  * // const traced = Effect.withTracer(program, customTracer)
14532
14279
  * ```
14533
14280
  *
14534
- * @category Tracing
14281
+ * @category tracing
14535
14282
  * @since 2.0.0
14536
14283
  */
14537
14284
  (value: Tracer): <A, E, R>(effect: Effect<A, E, R>) => Effect<A, E, R>
@@ -14552,7 +14299,7 @@ export const withTracer: {
14552
14299
  * // const traced = Effect.withTracer(program, customTracer)
14553
14300
  * ```
14554
14301
  *
14555
- * @category Tracing
14302
+ * @category tracing
14556
14303
  * @since 2.0.0
14557
14304
  */
14558
14305
  <A, E, R>(effect: Effect<A, E, R>, value: Tracer): Effect<A, E, R>
@@ -14578,7 +14325,7 @@ export const withTracer: {
14578
14325
  * )
14579
14326
  * ```
14580
14327
  *
14581
- * @category Tracing
14328
+ * @category tracing
14582
14329
  * @since 2.0.0
14583
14330
  */
14584
14331
  export const withTracerEnabled: {
@@ -14602,7 +14349,7 @@ export const withTracerEnabled: {
14602
14349
  * )
14603
14350
  * ```
14604
14351
  *
14605
- * @category Tracing
14352
+ * @category tracing
14606
14353
  * @since 2.0.0
14607
14354
  */
14608
14355
  (enabled: boolean): <A, E, R>(effect: Effect<A, E, R>) => Effect<A, E, R>
@@ -14626,7 +14373,7 @@ export const withTracerEnabled: {
14626
14373
  * )
14627
14374
  * ```
14628
14375
  *
14629
- * @category Tracing
14376
+ * @category tracing
14630
14377
  * @since 2.0.0
14631
14378
  */
14632
14379
  <A, E, R>(effect: Effect<A, E, R>, enabled: boolean): Effect<A, E, R>
@@ -14647,7 +14394,7 @@ export const withTracerEnabled: {
14647
14394
  * )
14648
14395
  * ```
14649
14396
  *
14650
- * @category Tracing
14397
+ * @category tracing
14651
14398
  * @since 2.0.0
14652
14399
  */
14653
14400
  export const withTracerTiming: {
@@ -14666,7 +14413,7 @@ export const withTracerTiming: {
14666
14413
  * )
14667
14414
  * ```
14668
14415
  *
14669
- * @category Tracing
14416
+ * @category tracing
14670
14417
  * @since 2.0.0
14671
14418
  */
14672
14419
  (enabled: boolean): <A, E, R>(effect: Effect<A, E, R>) => Effect<A, E, R>
@@ -14685,7 +14432,7 @@ export const withTracerTiming: {
14685
14432
  * )
14686
14433
  * ```
14687
14434
  *
14688
- * @category Tracing
14435
+ * @category tracing
14689
14436
  * @since 2.0.0
14690
14437
  */
14691
14438
  <A, E, R>(effect: Effect<A, E, R>, enabled: boolean): Effect<A, E, R>
@@ -14715,7 +14462,7 @@ export const withTracerTiming: {
14715
14462
  * })
14716
14463
  * ```
14717
14464
  *
14718
- * @category Tracing
14465
+ * @category tracing
14719
14466
  * @since 2.0.0
14720
14467
  */
14721
14468
  export const annotateSpans: {
@@ -14743,7 +14490,7 @@ export const annotateSpans: {
14743
14490
  * })
14744
14491
  * ```
14745
14492
  *
14746
- * @category Tracing
14493
+ * @category tracing
14747
14494
  * @since 2.0.0
14748
14495
  */
14749
14496
  (key: string, value: unknown): <A, E, R>(effect: Effect<A, E, R>) => Effect<A, E, R>
@@ -14771,7 +14518,7 @@ export const annotateSpans: {
14771
14518
  * })
14772
14519
  * ```
14773
14520
  *
14774
- * @category Tracing
14521
+ * @category tracing
14775
14522
  * @since 2.0.0
14776
14523
  */
14777
14524
  (values: Record<string, unknown>): <A, E, R>(effect: Effect<A, E, R>) => Effect<A, E, R>
@@ -14799,7 +14546,7 @@ export const annotateSpans: {
14799
14546
  * })
14800
14547
  * ```
14801
14548
  *
14802
- * @category Tracing
14549
+ * @category tracing
14803
14550
  * @since 2.0.0
14804
14551
  */
14805
14552
  <A, E, R>(effect: Effect<A, E, R>, key: string, value: unknown): Effect<A, E, R>
@@ -14827,7 +14574,7 @@ export const annotateSpans: {
14827
14574
  * })
14828
14575
  * ```
14829
14576
  *
14830
- * @category Tracing
14577
+ * @category tracing
14831
14578
  * @since 2.0.0
14832
14579
  */
14833
14580
  <A, E, R>(effect: Effect<A, E, R>, values: Record<string, unknown>): Effect<A, E, R>
@@ -14854,7 +14601,7 @@ export const annotateSpans: {
14854
14601
  * const traced = Effect.withSpan(program, "user-operation")
14855
14602
  * ```
14856
14603
  *
14857
- * @category Tracing
14604
+ * @category tracing
14858
14605
  * @since 2.0.0
14859
14606
  */
14860
14607
  export const annotateCurrentSpan: {
@@ -14879,7 +14626,7 @@ export const annotateCurrentSpan: {
14879
14626
  * const traced = Effect.withSpan(program, "user-operation")
14880
14627
  * ```
14881
14628
  *
14882
- * @category Tracing
14629
+ * @category tracing
14883
14630
  * @since 2.0.0
14884
14631
  */
14885
14632
  (key: string, value: unknown): Effect<void>
@@ -14904,7 +14651,7 @@ export const annotateCurrentSpan: {
14904
14651
  * const traced = Effect.withSpan(program, "user-operation")
14905
14652
  * ```
14906
14653
  *
14907
- * @category Tracing
14654
+ * @category tracing
14908
14655
  * @since 2.0.0
14909
14656
  */
14910
14657
  (values: Record<string, unknown>): Effect<void>
@@ -14932,7 +14679,7 @@ export const annotateCurrentSpan: {
14932
14679
  * const traced = Effect.withSpan(program, "my-span")
14933
14680
  * ```
14934
14681
  *
14935
- * @category Tracing
14682
+ * @category tracing
14936
14683
  * @since 2.0.0
14937
14684
  */
14938
14685
  export const currentSpan: Effect<Span, Cause.NoSuchElementError> = internal.currentSpan
@@ -14965,7 +14712,7 @@ export const currentSpan: Effect<Span, Cause.NoSuchElementError> = internal.curr
14965
14712
  * const traced = Effect.withSpan(program, "parent-span")
14966
14713
  * ```
14967
14714
  *
14968
- * @category Tracing
14715
+ * @category tracing
14969
14716
  * @since 2.0.0
14970
14717
  */
14971
14718
  export const currentParentSpan: Effect<AnySpan, Cause.NoSuchElementError> = internal.currentParentSpan
@@ -14999,7 +14746,7 @@ export const currentParentSpan: Effect<AnySpan, Cause.NoSuchElementError> = inte
14999
14746
  * // Output: Current span annotations: { userId: "123", operation: "data-processing" }
15000
14747
  * ```
15001
14748
  *
15002
- * @category Tracing
14749
+ * @category tracing
15003
14750
  * @since 2.0.0
15004
14751
  */
15005
14752
  export const spanAnnotations: Effect<Readonly<Record<string, unknown>>> = internal.spanAnnotations
@@ -15025,7 +14772,7 @@ export const spanAnnotations: Effect<Readonly<Record<string, unknown>>> = intern
15025
14772
  * })
15026
14773
  * ```
15027
14774
  *
15028
- * @category Tracing
14775
+ * @category tracing
15029
14776
  * @since 2.0.0
15030
14777
  */
15031
14778
  export const spanLinks: Effect<ReadonlyArray<SpanLink>> = internal.spanLinks
@@ -15079,7 +14826,7 @@ export const spanLinks: Effect<ReadonlyArray<SpanLink>> = internal.spanLinks
15079
14826
  * })
15080
14827
  * ```
15081
14828
  *
15082
- * @category Tracing
14829
+ * @category tracing
15083
14830
  * @since 2.0.0
15084
14831
  */
15085
14832
  export const linkSpans: {
@@ -15132,7 +14879,7 @@ export const linkSpans: {
15132
14879
  * })
15133
14880
  * ```
15134
14881
  *
15135
- * @category Tracing
14882
+ * @category tracing
15136
14883
  * @since 2.0.0
15137
14884
  */
15138
14885
  (
@@ -15188,7 +14935,7 @@ export const linkSpans: {
15188
14935
  * })
15189
14936
  * ```
15190
14937
  *
15191
- * @category Tracing
14938
+ * @category tracing
15192
14939
  * @since 2.0.0
15193
14940
  */
15194
14941
  <A, E, R>(
@@ -15219,7 +14966,7 @@ export const linkSpans: {
15219
14966
  * })
15220
14967
  * ```
15221
14968
  *
15222
- * @category Tracing
14969
+ * @category tracing
15223
14970
  * @since 2.0.0
15224
14971
  */
15225
14972
  export const makeSpan: (name: string, options?: SpanOptionsNoTrace) => Effect<Span> = internal.makeSpan
@@ -15246,7 +14993,7 @@ export const makeSpan: (name: string, options?: SpanOptionsNoTrace) => Effect<Sp
15246
14993
  * )
15247
14994
  * ```
15248
14995
  *
15249
- * @category Tracing
14996
+ * @category tracing
15250
14997
  * @since 2.0.0
15251
14998
  */
15252
14999
  export const makeSpanScoped: (
@@ -15276,7 +15023,7 @@ export const makeSpanScoped: (
15276
15023
  * )
15277
15024
  * ```
15278
15025
  *
15279
- * @category Tracing
15026
+ * @category tracing
15280
15027
  * @since 2.0.0
15281
15028
  */
15282
15029
  export const useSpan: {
@@ -15302,7 +15049,7 @@ export const useSpan: {
15302
15049
  * )
15303
15050
  * ```
15304
15051
  *
15305
- * @category Tracing
15052
+ * @category tracing
15306
15053
  * @since 2.0.0
15307
15054
  */
15308
15055
  <A, E, R>(name: string, evaluate: (span: Span) => Effect<A, E, R>): Effect<A, E, R>
@@ -15328,7 +15075,7 @@ export const useSpan: {
15328
15075
  * )
15329
15076
  * ```
15330
15077
  *
15331
- * @category Tracing
15078
+ * @category tracing
15332
15079
  * @since 2.0.0
15333
15080
  */
15334
15081
  <A, E, R>(
@@ -15356,7 +15103,7 @@ export const useSpan: {
15356
15103
  * })
15357
15104
  * ```
15358
15105
  *
15359
- * @category Tracing
15106
+ * @category tracing
15360
15107
  * @since 2.0.0
15361
15108
  */
15362
15109
  export const withSpan: {
@@ -15378,7 +15125,7 @@ export const withSpan: {
15378
15125
  * })
15379
15126
  * ```
15380
15127
  *
15381
- * @category Tracing
15128
+ * @category tracing
15382
15129
  * @since 2.0.0
15383
15130
  */
15384
15131
  <Args extends ReadonlyArray<any>>(
@@ -15407,7 +15154,7 @@ export const withSpan: {
15407
15154
  * })
15408
15155
  * ```
15409
15156
  *
15410
- * @category Tracing
15157
+ * @category tracing
15411
15158
  * @since 2.0.0
15412
15159
  */
15413
15160
  <A, E, R>(self: Effect<A, E, R>, name: string, options?: SpanOptions | undefined): Effect<A, E, Exclude<R, ParentSpan>>
@@ -15432,7 +15179,7 @@ export const withSpan: {
15432
15179
  * )
15433
15180
  * ```
15434
15181
  *
15435
- * @category Tracing
15182
+ * @category tracing
15436
15183
  * @since 2.0.0
15437
15184
  */
15438
15185
  export const withSpanScoped: {
@@ -15455,7 +15202,7 @@ export const withSpanScoped: {
15455
15202
  * )
15456
15203
  * ```
15457
15204
  *
15458
- * @category Tracing
15205
+ * @category tracing
15459
15206
  * @since 2.0.0
15460
15207
  */
15461
15208
  (name: string, options?: SpanOptions): <A, E, R>(
@@ -15480,7 +15227,7 @@ export const withSpanScoped: {
15480
15227
  * )
15481
15228
  * ```
15482
15229
  *
15483
- * @category Tracing
15230
+ * @category tracing
15484
15231
  * @since 2.0.0
15485
15232
  */
15486
15233
  <A, E, R>(self: Effect<A, E, R>, name: string, options?: SpanOptions): Effect<A, E, Exclude<R, ParentSpan> | Scope>
@@ -15502,7 +15249,7 @@ export const withSpanScoped: {
15502
15249
  * })
15503
15250
  * ```
15504
15251
  *
15505
- * @category Tracing
15252
+ * @category tracing
15506
15253
  * @since 2.0.0
15507
15254
  */
15508
15255
  export const withParentSpan: {
@@ -15522,7 +15269,7 @@ export const withParentSpan: {
15522
15269
  * })
15523
15270
  * ```
15524
15271
  *
15525
- * @category Tracing
15272
+ * @category tracing
15526
15273
  * @since 2.0.0
15527
15274
  */
15528
15275
  (value: AnySpan, options?: TraceOptions): <A, E, R>(self: Effect<A, E, R>) => Effect<A, E, Exclude<R, ParentSpan>>
@@ -15542,7 +15289,7 @@ export const withParentSpan: {
15542
15289
  * })
15543
15290
  * ```
15544
15291
  *
15545
- * @category Tracing
15292
+ * @category tracing
15546
15293
  * @since 2.0.0
15547
15294
  */
15548
15295
  <A, E, R>(self: Effect<A, E, R>, value: AnySpan, options?: TraceOptions): Effect<A, E, Exclude<R, ParentSpan>>
@@ -15927,7 +15674,7 @@ export const forkScoped: <
15927
15674
  * ```
15928
15675
  *
15929
15676
  * @category Supervision & Fibers
15930
- * @since 2.0.0
15677
+ * @since 4.0.0
15931
15678
  */
15932
15679
  export const forkDetach: <
15933
15680
  Arg extends Effect<any, any, any> | {
@@ -15994,7 +15741,7 @@ export const fiber: Effect<Fiber<unknown, unknown>> = internal.fiber
15994
15741
  * ```
15995
15742
  *
15996
15743
  * @category Supervision & Fibers
15997
- * @since 4.0.0
15744
+ * @since 2.0.0
15998
15745
  */
15999
15746
  export const fiberId: Effect<number> = internal.fiberId
16000
15747
 
@@ -16032,10 +15779,7 @@ export interface RunOptions {
16032
15779
  * **Example** (Running an Effect in the Background)
16033
15780
  *
16034
15781
  * ```ts
16035
- * import { Effect } from "effect"
16036
- * import { Schedule } from "effect"
16037
- * import { Fiber } from "effect"
16038
- * import { Console } from "effect"
15782
+ * import { Console, Effect, Fiber, Schedule } from "effect"
16039
15783
  *
16040
15784
  * // ┌─── Effect<number, never, never>
16041
15785
  * // ▼
@@ -16065,7 +15809,7 @@ export const runFork: <A, E>(effect: Effect<A, E, never>, options?: RunOptions |
16065
15809
  * **Example** (Usage)
16066
15810
  *
16067
15811
  * ```ts
16068
- * import { Effect, Context } from "effect"
15812
+ * import { Context, Effect } from "effect"
16069
15813
  *
16070
15814
  * interface Logger {
16071
15815
  * log: (message: string) => void
@@ -16101,7 +15845,7 @@ export const runForkWith: <R>(
16101
15845
  * **Example** (Usage)
16102
15846
  *
16103
15847
  * ```ts
16104
- * import { Console, Effect, Exit, Context } from "effect"
15848
+ * import { Console, Context, Effect, Exit } from "effect"
16105
15849
  *
16106
15850
  * interface Logger {
16107
15851
  * log: (message: string) => Effect.Effect<void>
@@ -16177,7 +15921,7 @@ export const runCallbackWith: <R>(
16177
15921
  * ```
16178
15922
  *
16179
15923
  * @category Running Effects
16180
- * @since 4.0.0
15924
+ * @since 2.0.0
16181
15925
  */
16182
15926
  export const runCallback: <A, E>(
16183
15927
  effect: Effect<A, E, never>,
@@ -16232,7 +15976,7 @@ export const runPromise: <A, E>(
16232
15976
  * **Example** (Usage)
16233
15977
  *
16234
15978
  * ```ts
16235
- * import { Effect, Context } from "effect"
15979
+ * import { Context, Effect } from "effect"
16236
15980
  *
16237
15981
  * interface Config {
16238
15982
  * apiUrl: string
@@ -16317,7 +16061,7 @@ export const runPromiseExit: <A, E>(
16317
16061
  * **Example** (Usage)
16318
16062
  *
16319
16063
  * ```ts
16320
- * import { Effect, Exit, Context } from "effect"
16064
+ * import { Context, Effect, Exit } from "effect"
16321
16065
  *
16322
16066
  * interface Database {
16323
16067
  * query: (sql: string) => string
@@ -16417,7 +16161,7 @@ export const runSync: <A, E>(effect: Effect<A, E>) => A = internal.runSync
16417
16161
  * **Example** (Usage)
16418
16162
  *
16419
16163
  * ```ts
16420
- * import { Effect, Context } from "effect"
16164
+ * import { Context, Effect } from "effect"
16421
16165
  *
16422
16166
  * interface MathService {
16423
16167
  * add: (a: number, b: number) => number
@@ -16524,7 +16268,7 @@ export const runSyncExit: <A, E>(effect: Effect<A, E>) => Exit.Exit<A, E> = inte
16524
16268
  * **Example** (Usage)
16525
16269
  *
16526
16270
  * ```ts
16527
- * import { Effect, Exit, Context } from "effect"
16271
+ * import { Context, Effect, Exit } from "effect"
16528
16272
  *
16529
16273
  * // Define a logger service
16530
16274
  * const Logger = Context.Service<{
@@ -16570,14 +16314,13 @@ export const runSyncExitWith: <R>(
16570
16314
  *
16571
16315
  * Use these to describe generator-based signatures and traced or untraced variants.
16572
16316
  *
16573
- * @category Function
16574
- * @since 3.12.0
16317
+ * @since 3.11.0
16575
16318
  */
16576
16319
  export namespace fn {
16577
16320
  /**
16578
16321
  * Generator return type accepted by `Effect.fn` and `Effect.fnUntraced`.
16579
16322
  *
16580
- * @category Models
16323
+ * @category models
16581
16324
  * @since 3.19.0
16582
16325
  */
16583
16326
  export type Return<A, E = never, R = never> = Generator<Effect<any, E, R>, A, any>
@@ -16585,7 +16328,7 @@ export namespace fn {
16585
16328
  /**
16586
16329
  * Type of the untraced function builder used by `Effect.fnUntraced`.
16587
16330
  *
16588
- * @category Models
16331
+ * @category models
16589
16332
  * @since 3.11.0
16590
16333
  */
16591
16334
  export type Untraced = {
@@ -18173,8 +17916,8 @@ export namespace fn {
18173
17916
  /**
18174
17917
  * Type of the traced function builder used by `Effect.fn`.
18175
17918
  *
18176
- * @category Models
18177
- * @since 3.11.0
17919
+ * @category models
17920
+ * @since 4.0.0
18178
17921
  */
18179
17922
  export type Traced = {
18180
17923
  <Eff extends Effect<any, any, any>, AEff, Args extends Array<any>>(
@@ -20663,7 +20406,7 @@ export const fnUntraced: fn.Untraced = internal.fnUntraced
20663
20406
  * ```
20664
20407
  *
20665
20408
  * @category Function
20666
- * @since 3.12.0
20409
+ * @since 3.11.0
20667
20410
  */
20668
20411
  export const fn: fn.Traced & {
20669
20412
  (name: string, options?: SpanOptionsNoTrace): fn.Traced
@@ -20723,7 +20466,7 @@ export const clockWith: <A, E, R>(
20723
20466
  * })
20724
20467
  * ```
20725
20468
  *
20726
- * @category Logging
20469
+ * @category logging
20727
20470
  * @since 2.0.0
20728
20471
  */
20729
20472
  export const logWithLevel: (level?: Severity) => (...message: ReadonlyArray<any>) => Effect<void> =
@@ -20753,7 +20496,7 @@ export const logWithLevel: (level?: Severity) => (...message: ReadonlyArray<any>
20753
20496
  * // 4
20754
20497
  * ```
20755
20498
  *
20756
- * @category Logging
20499
+ * @category logging
20757
20500
  * @since 2.0.0
20758
20501
  */
20759
20502
  export const log: (...message: ReadonlyArray<any>) => Effect<void> = internal.logWithLevel()
@@ -20783,7 +20526,7 @@ export const log: (...message: ReadonlyArray<any>) => Effect<void> = internal.lo
20783
20526
  * // timestamp=2023-... level=FATAL message="System shutting down"
20784
20527
  * ```
20785
20528
  *
20786
- * @category Logging
20529
+ * @category logging
20787
20530
  * @since 2.0.0
20788
20531
  */
20789
20532
  export const logFatal: (...message: ReadonlyArray<any>) => Effect<void> = internal.logWithLevel("Fatal")
@@ -20814,7 +20557,7 @@ export const logFatal: (...message: ReadonlyArray<any>) => Effect<void> = intern
20814
20557
  * // timestamp=2023-... level=WARN message="Using deprecated API endpoint"
20815
20558
  * ```
20816
20559
  *
20817
- * @category Logging
20560
+ * @category logging
20818
20561
  * @since 2.0.0
20819
20562
  */
20820
20563
  export const logWarning: (...message: ReadonlyArray<any>) => Effect<void> = internal.logWithLevel("Warn")
@@ -20848,7 +20591,7 @@ export const logWarning: (...message: ReadonlyArray<any>) => Effect<void> = inte
20848
20591
  * // timestamp=2023-... level=ERROR message="Caught error: Something went wrong"
20849
20592
  * ```
20850
20593
  *
20851
- * @category Logging
20594
+ * @category logging
20852
20595
  * @since 2.0.0
20853
20596
  */
20854
20597
  export const logError: (...message: ReadonlyArray<any>) => Effect<void> = internal.logWithLevel("Error")
@@ -20877,7 +20620,7 @@ export const logError: (...message: ReadonlyArray<any>) => Effect<void> = intern
20877
20620
  * // timestamp=2023-... level=INFO message="Application version: 1.2.3"
20878
20621
  * ```
20879
20622
  *
20880
- * @category Logging
20623
+ * @category logging
20881
20624
  * @since 2.0.0
20882
20625
  */
20883
20626
  export const logInfo: (...message: ReadonlyArray<any>) => Effect<void> = internal.logWithLevel("Info")
@@ -20907,7 +20650,7 @@ export const logInfo: (...message: ReadonlyArray<any>) => Effect<void> = interna
20907
20650
  * // timestamp=2023-... level=DEBUG message="Variable state: x=10 y=20 z=30"
20908
20651
  * ```
20909
20652
  *
20910
- * @category Logging
20653
+ * @category logging
20911
20654
  * @since 2.0.0
20912
20655
  */
20913
20656
  export const logDebug: (...message: ReadonlyArray<any>) => Effect<void> = internal.logWithLevel("Debug")
@@ -20940,7 +20683,7 @@ export const logDebug: (...message: ReadonlyArray<any>) => Effect<void> = intern
20940
20683
  * // timestamp=2023-... level=TRACE message="Exiting function processData"
20941
20684
  * ```
20942
20685
  *
20943
- * @category Logging
20686
+ * @category logging
20944
20687
  * @since 2.0.0
20945
20688
  */
20946
20689
  export const logTrace: (...message: ReadonlyArray<any>) => Effect<void> = internal.logWithLevel("Trace")
@@ -20970,8 +20713,8 @@ export const logTrace: (...message: ReadonlyArray<any>) => Effect<void> = intern
20970
20713
  * // Output includes both default and custom log outputs
20971
20714
  * ```
20972
20715
  *
20973
- * @category Logging
20974
- * @since 2.0.0
20716
+ * @category logging
20717
+ * @since 4.0.0
20975
20718
  */
20976
20719
  export const withLogger = dual<
20977
20720
  /**
@@ -20999,8 +20742,8 @@ export const withLogger = dual<
20999
20742
  * // Output includes both default and custom log outputs
21000
20743
  * ```
21001
20744
  *
21002
- * @category Logging
21003
- * @since 2.0.0
20745
+ * @category logging
20746
+ * @since 4.0.0
21004
20747
  */
21005
20748
  <Output>(logger: Logger<unknown, Output>) => <A, E, R>(effect: Effect<A, E, R>) => Effect<A, E, R>,
21006
20749
  /**
@@ -21028,8 +20771,8 @@ export const withLogger = dual<
21028
20771
  * // Output includes both default and custom log outputs
21029
20772
  * ```
21030
20773
  *
21031
- * @category Logging
21032
- * @since 2.0.0
20774
+ * @category logging
20775
+ * @since 4.0.0
21033
20776
  */
21034
20777
  <A, E, R, Output>(effect: Effect<A, E, R>, logger: Logger<unknown, Output>) => Effect<A, E, R>
21035
20778
  >(2, (effect, logger) =>
@@ -21066,7 +20809,7 @@ export const withLogger = dual<
21066
20809
  * // All log messages will include the userId and operation annotations
21067
20810
  * ```
21068
20811
  *
21069
- * @category Logging
20812
+ * @category logging
21070
20813
  * @since 2.0.0
21071
20814
  */
21072
20815
  export const annotateLogs = dual<
@@ -21097,7 +20840,7 @@ export const annotateLogs = dual<
21097
20840
  * // All log messages will include the userId and operation annotations
21098
20841
  * ```
21099
20842
  *
21100
- * @category Logging
20843
+ * @category logging
21101
20844
  * @since 2.0.0
21102
20845
  */
21103
20846
  {
@@ -21136,7 +20879,7 @@ export const annotateLogs = dual<
21136
20879
  * // All log messages will include the userId and operation annotations
21137
20880
  * ```
21138
20881
  *
21139
- * @category Logging
20882
+ * @category logging
21140
20883
  * @since 2.0.0
21141
20884
  */
21142
20885
  {
@@ -21190,8 +20933,8 @@ export const annotateLogs = dual<
21190
20933
  * Effect.runPromise(program)
21191
20934
  * ```
21192
20935
  *
21193
- * @category Logging
21194
- * @since 4.0.0
20936
+ * @category logging
20937
+ * @since 3.1.0
21195
20938
  */
21196
20939
  export const annotateLogsScoped: {
21197
20940
  /**
@@ -21217,8 +20960,8 @@ export const annotateLogsScoped: {
21217
20960
  * Effect.runPromise(program)
21218
20961
  * ```
21219
20962
  *
21220
- * @category Logging
21221
- * @since 4.0.0
20963
+ * @category logging
20964
+ * @since 3.1.0
21222
20965
  */
21223
20966
  (key: string, value: unknown): Effect<void, never, Scope>
21224
20967
  /**
@@ -21244,8 +20987,8 @@ export const annotateLogsScoped: {
21244
20987
  * Effect.runPromise(program)
21245
20988
  * ```
21246
20989
  *
21247
- * @category Logging
21248
- * @since 4.0.0
20990
+ * @category logging
20991
+ * @since 3.1.0
21249
20992
  */
21250
20993
  (values: Record<string, unknown>): Effect<void, never, Scope>
21251
20994
  } = internal.annotateLogsScoped
@@ -21278,7 +21021,7 @@ export const annotateLogsScoped: {
21278
21021
  * // All log messages will include span information showing the nested operation context
21279
21022
  * ```
21280
21023
  *
21281
- * @category Logging
21024
+ * @category logging
21282
21025
  * @since 2.0.0
21283
21026
  */
21284
21027
  export const withLogSpan = dual<
@@ -21310,7 +21053,7 @@ export const withLogSpan = dual<
21310
21053
  * // All log messages will include span information showing the nested operation context
21311
21054
  * ```
21312
21055
  *
21313
- * @category Logging
21056
+ * @category logging
21314
21057
  * @since 2.0.0
21315
21058
  */
21316
21059
  (label: string) => <A, E, R>(effect: Effect<A, E, R>) => Effect<A, E, R>,
@@ -21342,7 +21085,7 @@ export const withLogSpan = dual<
21342
21085
  * // All log messages will include span information showing the nested operation context
21343
21086
  * ```
21344
21087
  *
21345
- * @category Logging
21088
+ * @category logging
21346
21089
  * @since 2.0.0
21347
21090
  */
21348
21091
  <A, E, R>(effect: Effect<A, E, R>, label: string) => Effect<A, E, R>
@@ -22925,7 +22668,6 @@ export const txRetry: Effect<never, never, Transaction> = flatMap(
22925
22668
  /**
22926
22669
  * Type helpers for converting callback-based functions into `Effect` functions.
22927
22670
  *
22928
- * @category Effectify
22929
22671
  * @since 4.0.0
22930
22672
  */
22931
22673
  export declare namespace Effectify {