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/Stream.ts CHANGED
@@ -67,7 +67,7 @@ import * as Option from "./Option.ts"
67
67
  import type { Pipeable } from "./Pipeable.ts"
68
68
  import type { Predicate, Refinement } from "./Predicate.ts"
69
69
  import { hasProperty, isNotUndefined, isTagged } from "./Predicate.ts"
70
- import type * as PubSub from "./PubSub.ts"
70
+ import * as PubSub from "./PubSub.ts"
71
71
  import * as Pull from "./Pull.ts"
72
72
  import * as Queue from "./Queue.ts"
73
73
  import * as RcMap from "./RcMap.ts"
@@ -90,6 +90,7 @@ import type {
90
90
  OmitReason,
91
91
  ReasonTags,
92
92
  Tags,
93
+ TupleOf,
93
94
  unassigned
94
95
  } from "./Types.ts"
95
96
  import type * as Unify from "./Unify.ts"
@@ -138,7 +139,7 @@ export const TypeId: TypeId = "~effect/Stream"
138
139
  * // 6
139
140
  * ```
140
141
  *
141
- * @category Models
142
+ * @category models
142
143
  * @since 2.0.0
143
144
  */
144
145
  export interface Stream<out A, out E = never, out R = never> extends Variance<A, E, R>, Pipeable {
@@ -151,7 +152,7 @@ export interface Stream<out A, out E = never, out R = never> extends Variance<A,
151
152
  /**
152
153
  * Type-level unification hook for Stream within the Effect type system.
153
154
  *
154
- * @category Models
155
+ * @category models
155
156
  * @since 2.0.0
156
157
  */
157
158
  export interface StreamUnify<A extends { [Unify.typeSymbol]?: any }> extends Effect.EffectUnify<A> {
@@ -161,7 +162,7 @@ export interface StreamUnify<A extends { [Unify.typeSymbol]?: any }> extends Eff
161
162
  /**
162
163
  * Type-level marker that excludes Stream from unification.
163
164
  *
164
- * @category Models
165
+ * @category models
165
166
  * @since 2.0.0
166
167
  */
167
168
  export interface StreamUnifyIgnore {
@@ -174,11 +175,10 @@ export interface StreamUnifyIgnore {
174
175
  * **Example** (Using the stream type lambda)
175
176
  *
176
177
  * ```ts
177
- * import type { Kind } from "effect/HKT"
178
- * import type { StreamTypeLambda } from "effect/Stream"
178
+ * import type { HKT, Stream } from "effect"
179
179
  *
180
180
  * // Create a Stream type using the type lambda
181
- * type NumberStream = Kind<StreamTypeLambda, never, string, never, number>
181
+ * type NumberStream = HKT.Kind<Stream.StreamTypeLambda, never, string, never, number>
182
182
  * // Equivalent to: Stream<number, string, never>
183
183
  * ```
184
184
  *
@@ -195,7 +195,7 @@ export interface StreamTypeLambda extends TypeLambda {
195
195
  * The emitted value `A`, error `E`, and service requirement `R` type
196
196
  * parameters are covariant.
197
197
  *
198
- * @category Models
198
+ * @category models
199
199
  * @since 2.0.0
200
200
  */
201
201
  export interface Variance<out A, out E, out R> {
@@ -208,8 +208,8 @@ export interface Variance<out A, out E, out R> {
208
208
  *
209
209
  * `_A`, `_E`, and `_R` are covariant markers.
210
210
  *
211
- * @category Models
212
- * @since 2.0.0
211
+ * @category models
212
+ * @since 3.4.0
213
213
  */
214
214
  export interface VarianceStruct<out A, out E, out R> {
215
215
  readonly _A: Covariant<A>
@@ -256,10 +256,6 @@ export type Error<T extends Stream<any, any, any>> = [T] extends [Stream<infer _
256
256
  /**
257
257
  * Extract the services type from a Stream type.
258
258
  *
259
- * **Previously Known As:**
260
- *
261
- * This type alias was named `Context` in Effect 3.x.
262
- *
263
259
  * **Example** (Extracting the services type from a Stream type)
264
260
  *
265
261
  * ```ts
@@ -274,7 +270,7 @@ export type Error<T extends Stream<any, any, any>> = [T] extends [Stream<infer _
274
270
  * ```
275
271
  *
276
272
  * @category Type-Level
277
- * @since 3.4.0
273
+ * @since 4.0.0
278
274
  */
279
275
  export type Services<T extends Stream<any, any, any>> = [T] extends [Stream<infer _A, infer _E, infer _R>] ? _R
280
276
  : never
@@ -300,8 +296,8 @@ export type Services<T extends Stream<any, any, any>> = [T] extends [Stream<infe
300
296
  * Effect.runPromise(program)
301
297
  * ```
302
298
  *
303
- * @category Guards
304
- * @since 2.0.0
299
+ * @category guards
300
+ * @since 4.0.0
305
301
  */
306
302
  export const isStream = (u: unknown): u is Stream<unknown, unknown, unknown> => hasProperty(u, TypeId)
307
303
 
@@ -329,14 +325,8 @@ export const DefaultChunkSize: number = Channel.DefaultChunkSize
329
325
  /**
330
326
  * Describes how merged streams decide when to halt.
331
327
  *
332
- * **Previously Known As**
333
- *
334
- * This API replaces the following from Effect 3.x:
335
- *
336
- * - `StreamHaltStrategy.HaltStrategy`
337
- *
338
- * @category Models
339
- * @since 2.0.0
328
+ * @category models
329
+ * @since 4.0.0
340
330
  */
341
331
  export type HaltStrategy = Channel.HaltStrategy
342
332
 
@@ -358,7 +348,7 @@ export type HaltStrategy = Channel.HaltStrategy
358
348
  * // Output: [ 1, 2, 3 ]
359
349
  * ```
360
350
  *
361
- * @category Constructors
351
+ * @category constructors
362
352
  * @since 2.0.0
363
353
  */
364
354
  export const fromChannel: <Arr extends Arr.NonEmptyReadonlyArray<any>, E, R>(
@@ -384,7 +374,7 @@ export const fromChannel: <Arr extends Arr.NonEmptyReadonlyArray<any>, E, R>(
384
374
  * // Output: [ 42 ]
385
375
  * ```
386
376
  *
387
- * @category Constructors
377
+ * @category constructors
388
378
  * @since 2.0.0
389
379
  */
390
380
  export const fromEffect = <A, E, R>(effect: Effect.Effect<A, E, R>): Stream<A, E, R> =>
@@ -396,7 +386,7 @@ export const fromEffect = <A, E, R>(effect: Effect.Effect<A, E, R>): Stream<A, E
396
386
  * **Example** (Accessing a service as a stream)
397
387
  *
398
388
  * ```ts
399
- * import { Effect, Context, Stream } from "effect"
389
+ * import { Context, Effect, Stream } from "effect"
400
390
  *
401
391
  * class Greeter extends Context.Service<Greeter, {
402
392
  * readonly greet: (name: string) => string
@@ -431,7 +421,7 @@ export const service = <I, S>(service: Context.Key<I, S>): Stream<S, never, I> =
431
421
  * **Example** (Accessing an optional service as a stream)
432
422
  *
433
423
  * ```ts
434
- * import { Effect, Option, Context, Stream } from "effect"
424
+ * import { Context, Effect, Option, Stream } from "effect"
435
425
  *
436
426
  * class Greeter extends Context.Service<Greeter, {
437
427
  * readonly greet: (name: string) => string
@@ -483,7 +473,7 @@ export const serviceOption = <I, S>(service: Context.Key<I, S>): Stream<Option.O
483
473
  * // Output: Draining side effect
484
474
  * ```
485
475
  *
486
- * @category Constructors
476
+ * @category constructors
487
477
  * @since 4.0.0
488
478
  */
489
479
  export const fromEffectDrain = <A, E, R>(effect: Effect.Effect<A, E, R>): Stream<never, E, R> =>
@@ -492,12 +482,6 @@ export const fromEffectDrain = <A, E, R>(effect: Effect.Effect<A, E, R>): Stream
492
482
  /**
493
483
  * Creates a stream from an effect producing a value of type `A` which repeats forever.
494
484
  *
495
- * **Previously Known As**
496
- *
497
- * This API replaces the following from Effect 3.x:
498
- *
499
- * - `Stream.repeatEffect`
500
- *
501
485
  * **Example** (Repeating an effect forever)
502
486
  *
503
487
  * ```ts
@@ -515,7 +499,7 @@ export const fromEffectDrain = <A, E, R>(effect: Effect.Effect<A, E, R>): Stream
515
499
  * // Output: [ 3891571149, 4239494205, 2352981603, 2339111046, 1488052210 ]
516
500
  * ```
517
501
  *
518
- * @category Constructors
502
+ * @category constructors
519
503
  * @since 4.0.0
520
504
  */
521
505
  export const fromEffectRepeat = <A, E, R>(effect: Effect.Effect<A, E, R>): Stream<A, Pull.ExcludeDone<E>, R> =>
@@ -525,12 +509,6 @@ export const fromEffectRepeat = <A, E, R>(effect: Effect.Effect<A, E, R>): Strea
525
509
  * Creates a stream from an effect producing a value of type `A`, which is
526
510
  * repeated using the specified schedule.
527
511
  *
528
- * **Previously Known As**
529
- *
530
- * This API replaces the following from Effect 3.x:
531
- *
532
- * - `Stream.repeatEffectWithSchedule`
533
- *
534
512
  * **Example** (Repeating an effect with a schedule)
535
513
  *
536
514
  * ```ts
@@ -549,8 +527,8 @@ export const fromEffectRepeat = <A, E, R>(effect: Effect.Effect<A, E, R>): Strea
549
527
  * // Output: [ "ping", "ping", "ping" ]
550
528
  * ```
551
529
  *
552
- * @category Constructors
553
- * @since 2.0.0
530
+ * @category constructors
531
+ * @since 4.0.0
554
532
  */
555
533
  export const fromEffectSchedule = <A, E, R, X, AS extends A, ES, RS>(
556
534
  effect: Effect.Effect<A, E, R>,
@@ -597,7 +575,7 @@ export const fromEffectSchedule = <A, E, R, X, AS extends A, ES, RS>(
597
575
  * // Output: [ undefined, undefined, undefined ]
598
576
  * ```
599
577
  *
600
- * @category Constructors
578
+ * @category constructors
601
579
  * @since 2.0.0
602
580
  */
603
581
  export const tick = (interval: Duration.Input): Stream<void> =>
@@ -639,7 +617,7 @@ export const tick = (interval: Duration.Input): Stream<void> =>
639
617
  * // Output: [1, 2, 3]
640
618
  * ```
641
619
  *
642
- * @category Constructors
620
+ * @category constructors
643
621
  * @since 2.0.0
644
622
  */
645
623
  export const fromPull = <A, E, R, EX, RX>(
@@ -667,7 +645,7 @@ export const fromPull = <A, E, R, EX, RX>(
667
645
  * // Output: [ 1, 2, 3 ]
668
646
  * ```
669
647
  *
670
- * @category Constructors
648
+ * @category constructors
671
649
  * @since 4.0.0
672
650
  */
673
651
  export const transformPull = <A, E, R, B, E2, R2, EX, RX>(
@@ -716,7 +694,7 @@ export const transformPull = <A, E, R, B, E2, R2, EX, RX>(
716
694
  * // Releasing scope
717
695
  * ```
718
696
  *
719
- * @category Constructors
697
+ * @category constructors
720
698
  * @since 4.0.0
721
699
  */
722
700
  export const transformPullBracket = <A, E, R, B, E2, R2, EX, RX>(
@@ -756,7 +734,7 @@ export const transformPullBracket = <A, E, R, B, E2, R2, EX, RX>(
756
734
  * // Output: [ 1, 2, 3 ]
757
735
  * ```
758
736
  *
759
- * @category Constructors
737
+ * @category constructors
760
738
  * @since 2.0.0
761
739
  */
762
740
  export const toChannel = <A, E, R>(
@@ -773,15 +751,6 @@ export const toChannel = <A, E, R>(
773
751
  * You can customize the buffer size and strategy by passing an object as the
774
752
  * second argument with the `bufferSize` and `strategy` fields.
775
753
  *
776
- * **Previously Known As**
777
- *
778
- * This API replaces the following from Effect 3.x:
779
- *
780
- * - `Stream.async`
781
- * - `Stream.asyncEffect`
782
- * - `Stream.asyncPush`
783
- * - `Stream.asyncScoped`
784
- *
785
754
  * **Example** (Creating a stream from a callback that can emit values into a queue)
786
755
  *
787
756
  * ```ts
@@ -807,8 +776,8 @@ export const toChannel = <A, E, R>(
807
776
  * Effect.runPromise(program)
808
777
  * ```
809
778
  *
810
- * @category Constructors
811
- * @since 2.0.0
779
+ * @category constructors
780
+ * @since 4.0.0
812
781
  */
813
782
  export const callback = <A, E = never, R = never>(
814
783
  f: (queue: Queue.Queue<A, E | Cause.Done>) => Effect.Effect<unknown, E, R | Scope.Scope>,
@@ -835,8 +804,8 @@ export const callback = <A, E = never, R = never>(
835
804
  * // []
836
805
  * ```
837
806
  *
838
- * @category Constructors
839
- * @since 4.0.0
807
+ * @category constructors
808
+ * @since 2.0.0
840
809
  */
841
810
  export const empty: Stream<never> = fromChannel(Channel.empty)
842
811
 
@@ -857,7 +826,7 @@ export const empty: Stream<never> = fromChannel(Channel.empty)
857
826
  * // [ 3 ]
858
827
  * ```
859
828
  *
860
- * @category Constructors
829
+ * @category constructors
861
830
  * @since 2.0.0
862
831
  */
863
832
  export const succeed = <A>(value: A): Stream<A> => fromChannel(Channel.succeed(Arr.of(value)))
@@ -880,7 +849,7 @@ export const succeed = <A>(value: A): Stream<A> => fromChannel(Channel.succeed(A
880
849
  * Effect.runPromise(program)
881
850
  * ```
882
851
  *
883
- * @category Constructors
852
+ * @category constructors
884
853
  * @since 2.0.0
885
854
  */
886
855
  export const make = <const As extends ReadonlyArray<any>>(...values: As): Stream<As[number]> => fromArray(values)
@@ -904,7 +873,7 @@ export const make = <const As extends ReadonlyArray<any>>(...values: As): Stream
904
873
  * // Output: [ 3 ]
905
874
  * ```
906
875
  *
907
- * @category Constructors
876
+ * @category constructors
908
877
  * @since 2.0.0
909
878
  */
910
879
  export const sync = <A>(evaluate: LazyArg<A>): Stream<A> => fromChannel(Channel.sync(() => Arr.of(evaluate())))
@@ -928,7 +897,7 @@ export const sync = <A>(evaluate: LazyArg<A>): Stream<A> => fromChannel(Channel.
928
897
  * // Output: [ 1, 2, 3 ]
929
898
  * ```
930
899
  *
931
- * @category Constructors
900
+ * @category constructors
932
901
  * @since 2.0.0
933
902
  */
934
903
  export const suspend = <A, E, R>(stream: LazyArg<Stream<A, E, R>>): Stream<A, E, R> =>
@@ -952,7 +921,7 @@ export const suspend = <A, E, R>(stream: LazyArg<Stream<A, E, R>>): Stream<A, E,
952
921
  * Effect.runPromise(program)
953
922
  * ```
954
923
  *
955
- * @category Constructors
924
+ * @category constructors
956
925
  * @since 2.0.0
957
926
  */
958
927
  export const fail = <E>(error: E): Stream<never, E> => fromChannel(Channel.fail(error))
@@ -977,7 +946,7 @@ export const fail = <E>(error: E): Stream<never, E> => fromChannel(Channel.fail(
977
946
  * // { _id: 'Exit', _tag: 'Failure', cause: { _id: 'Cause', _tag: 'Fail', failure: 'Uh oh!' } }
978
947
  * ```
979
948
  *
980
- * @category Constructors
949
+ * @category constructors
981
950
  * @since 2.0.0
982
951
  */
983
952
  export const failSync = <E>(evaluate: LazyArg<E>): Stream<never, E> => fromChannel(Channel.failSync(evaluate))
@@ -1003,7 +972,7 @@ export const failSync = <E>(evaluate: LazyArg<E>): Stream<never, E> => fromChann
1003
972
  * Effect.runPromise(program)
1004
973
  * ```
1005
974
  *
1006
- * @category Constructors
975
+ * @category constructors
1007
976
  * @since 2.0.0
1008
977
  */
1009
978
  export const failCause = <E>(cause: Cause.Cause<E>): Stream<never, E> => fromChannel(Channel.failCause(cause))
@@ -1036,7 +1005,7 @@ export const failCause = <E>(cause: Cause.Cause<E>): Stream<never, E> => fromCha
1036
1005
  * // Output: Exit.Failure(Error: Boom)
1037
1006
  * ```
1038
1007
  *
1039
- * @category Constructors
1008
+ * @category constructors
1040
1009
  * @since 2.0.0
1041
1010
  */
1042
1011
  export const die = (defect: unknown): Stream<never> => fromChannel(Channel.die(defect))
@@ -1063,7 +1032,7 @@ export const die = (defect: unknown): Stream<never> => fromChannel(Channel.die(d
1063
1032
  * // { _id: 'Exit', _tag: 'Failure', cause: { _id: 'Cause', _tag: 'Fail', failure: 'Connection timeout after retries' } }
1064
1033
  * ```
1065
1034
  *
1066
- * @category Constructors
1035
+ * @category constructors
1067
1036
  * @since 2.0.0
1068
1037
  */
1069
1038
  export const failCauseSync = <E>(evaluate: LazyArg<Cause.Cause<E>>): Stream<never, E> =>
@@ -1096,7 +1065,7 @@ export const failCauseSync = <E>(evaluate: LazyArg<Cause.Cause<E>>): Stream<neve
1096
1065
  * // Output: [ 1, 2, 3 ]
1097
1066
  * ```
1098
1067
  *
1099
- * @category Constructors
1068
+ * @category constructors
1100
1069
  * @since 2.0.0
1101
1070
  */
1102
1071
  export const fromIteratorSucceed = <A>(iterator: IterableIterator<A>, maxChunkSize?: number): Stream<A> =>
@@ -1126,7 +1095,7 @@ export const fromIteratorSucceed = <A>(iterator: IterableIterator<A>, maxChunkSi
1126
1095
  * // Output: [ 1, 2, 3 ]
1127
1096
  * ```
1128
1097
  *
1129
- * @category Constructors
1098
+ * @category constructors
1130
1099
  * @since 2.0.0
1131
1100
  */
1132
1101
  export const fromIterable = <A>(
@@ -1145,7 +1114,7 @@ export const fromIterable = <A>(
1145
1114
  * **Example** (Creating a stream from an iterable effect)
1146
1115
  *
1147
1116
  * ```ts
1148
- * import { Console, Effect, Context, Stream } from "effect"
1117
+ * import { Console, Context, Effect, Stream } from "effect"
1149
1118
  *
1150
1119
  * class UserRepo extends Context.Service<UserRepo, {
1151
1120
  * readonly list: Effect.Effect<ReadonlyArray<string>>
@@ -1171,7 +1140,7 @@ export const fromIterable = <A>(
1171
1140
  * // Output: [ "user1", "user2" ]
1172
1141
  * ```
1173
1142
  *
1174
- * @category Constructors
1143
+ * @category constructors
1175
1144
  * @since 2.0.0
1176
1145
  */
1177
1146
  export const fromIterableEffect = <A, E, R>(iterable: Effect.Effect<Iterable<A>, E, R>): Stream<A, E, R> =>
@@ -1180,12 +1149,6 @@ export const fromIterableEffect = <A, E, R>(iterable: Effect.Effect<Iterable<A>,
1180
1149
  /**
1181
1150
  * Creates a stream by repeatedly running an effect that yields an iterable of values.
1182
1151
  *
1183
- * **Previously Known As**
1184
- *
1185
- * This API replaces the following from Effect 3.x:
1186
- *
1187
- * - `Stream.repeatEffectChunk`
1188
- *
1189
1152
  * **Example** (Repeating an iterable effect)
1190
1153
  *
1191
1154
  * ```ts
@@ -1203,7 +1166,7 @@ export const fromIterableEffect = <A, E, R>(iterable: Effect.Effect<Iterable<A>,
1203
1166
  * // Output: [ 1, 2, 1, 2, 1 ]
1204
1167
  * ```
1205
1168
  *
1206
- * @category Constructors
1169
+ * @category constructors
1207
1170
  * @since 4.0.0
1208
1171
  */
1209
1172
  export const fromIterableEffectRepeat = <A, E, R>(
@@ -1213,12 +1176,6 @@ export const fromIterableEffectRepeat = <A, E, R>(
1213
1176
  /**
1214
1177
  * Creates a stream from an array of values.
1215
1178
  *
1216
- * **Previously Known As**
1217
- *
1218
- * This API replaces the following from Effect 3.x:
1219
- *
1220
- * - `Stream.fromChunk`
1221
- *
1222
1179
  * **Example** (Creating a stream from an array of values)
1223
1180
  *
1224
1181
  * ```ts
@@ -1234,7 +1191,7 @@ export const fromIterableEffectRepeat = <A, E, R>(
1234
1191
  * // Output: [ 1, 2, 3 ]
1235
1192
  * ```
1236
1193
  *
1237
- * @category Constructors
1194
+ * @category constructors
1238
1195
  * @since 4.0.0
1239
1196
  */
1240
1197
  export const fromArray = <A>(array: ReadonlyArray<A>): Stream<A> =>
@@ -1258,7 +1215,7 @@ export const fromArray = <A>(array: ReadonlyArray<A>): Stream<A> =>
1258
1215
  * // Output: [ "Ada", "Grace" ]
1259
1216
  * ```
1260
1217
  *
1261
- * @category Constructors
1218
+ * @category constructors
1262
1219
  * @since 4.0.0
1263
1220
  */
1264
1221
  export const fromArrayEffect = <A, E, R>(
@@ -1268,12 +1225,6 @@ export const fromArrayEffect = <A, E, R>(
1268
1225
  /**
1269
1226
  * Creates a stream from an arbitrary number of arrays.
1270
1227
  *
1271
- * **Previously Known As**
1272
- *
1273
- * This API replaces the following from Effect 3.x:
1274
- *
1275
- * - `Stream.fromChunks`
1276
- *
1277
1228
  * **Example** (Creating a stream from an arbitrary number of arrays)
1278
1229
  *
1279
1230
  * ```ts
@@ -1289,7 +1240,7 @@ export const fromArrayEffect = <A, E, R>(
1289
1240
  * // Output: [ 1, 2, 3, 4 ]
1290
1241
  * ```
1291
1242
  *
1292
- * @category Constructors
1243
+ * @category constructors
1293
1244
  * @since 4.0.0
1294
1245
  */
1295
1246
  export const fromArrays = <Arr extends ReadonlyArray<ReadonlyArray<any>>>(
@@ -1323,8 +1274,8 @@ export const fromArrays = <Arr extends ReadonlyArray<ReadonlyArray<any>>>(
1323
1274
  * // Output: [ 1, 2, 3 ]
1324
1275
  * ```
1325
1276
  *
1326
- * @category Constructors
1327
- * @since 4.0.0
1277
+ * @category constructors
1278
+ * @since 2.0.0
1328
1279
  */
1329
1280
  export const fromQueue = <A, E>(queue: Queue.Dequeue<A, E>): Stream<A, Exclude<E, Cause.Done>> =>
1330
1281
  fromChannel(Channel.fromQueueArray(queue))
@@ -1358,8 +1309,8 @@ export const fromQueue = <A, E>(queue: Queue.Dequeue<A, E>): Stream<A, Exclude<E
1358
1309
  * // Output: [ 1, 2, 3 ]
1359
1310
  * ```
1360
1311
  *
1361
- * @category Constructors
1362
- * @since 4.0.0
1312
+ * @category constructors
1313
+ * @since 2.0.0
1363
1314
  */
1364
1315
  export const fromPubSub = <A>(pubsub: PubSub.PubSub<A>): Stream<A> => fromChannel(Channel.fromPubSubArray(pubsub))
1365
1316
 
@@ -1390,7 +1341,7 @@ export const fromPubSub = <A>(pubsub: PubSub.PubSub<A>): Stream<A> => fromChanne
1390
1341
  * // Output: [ 1, 2 ]
1391
1342
  * ```
1392
1343
  *
1393
- * @category Constructors
1344
+ * @category constructors
1394
1345
  * @since 4.0.0
1395
1346
  */
1396
1347
  export const fromPubSubTake = <A, E>(pubsub: PubSub.PubSub<Take.Take<A, E>>): Stream<A, E> =>
@@ -1432,7 +1383,7 @@ export const fromPubSubTake = <A, E>(pubsub: PubSub.PubSub<Take.Take<A, E>>): St
1432
1383
  * // Output: [ 1, 2, 3 ]
1433
1384
  * ```
1434
1385
  *
1435
- * @category Constructors
1386
+ * @category constructors
1436
1387
  * @since 2.0.0
1437
1388
  */
1438
1389
  export const fromReadableStream = <A, E>(
@@ -1484,7 +1435,7 @@ export const fromReadableStream = <A, E>(
1484
1435
  * // [ 1, 2, 3 ]
1485
1436
  * ```
1486
1437
  *
1487
- * @category Constructors
1438
+ * @category constructors
1488
1439
  * @since 2.0.0
1489
1440
  */
1490
1441
  export const fromAsyncIterable = <A, E>(
@@ -1514,7 +1465,7 @@ export const fromAsyncIterable = <A, E>(
1514
1465
  * // Output: [ 0, 1, 2 ]
1515
1466
  * ```
1516
1467
  *
1517
- * @category Constructors
1468
+ * @category constructors
1518
1469
  * @since 2.0.0
1519
1470
  */
1520
1471
  export const fromSchedule = <O, E, R>(schedule: Schedule.Schedule<O, unknown, E, R>): Stream<O, E, R> =>
@@ -1552,7 +1503,7 @@ export const fromSchedule = <O, E, R>(schedule: Schedule.Schedule<O, unknown, E,
1552
1503
  * // Output: [ 1, 2 ]
1553
1504
  * ```
1554
1505
  *
1555
- * @category Constructors
1506
+ * @category constructors
1556
1507
  * @since 4.0.0
1557
1508
  */
1558
1509
  export const fromSubscription = <A>(pubsub: PubSub.Subscription<A>): Stream<A> =>
@@ -1561,7 +1512,7 @@ export const fromSubscription = <A>(pubsub: PubSub.Subscription<A>): Stream<A> =
1561
1512
  /**
1562
1513
  * Interface representing an event listener target.
1563
1514
  *
1564
- * @category Models
1515
+ * @category models
1565
1516
  * @since 3.4.0
1566
1517
  */
1567
1518
  export interface EventListener<A> {
@@ -1614,7 +1565,7 @@ export interface EventListener<A> {
1614
1565
  * // [ 1, 2, 3 ]
1615
1566
  * ```
1616
1567
  *
1617
- * @category Constructors
1568
+ * @category constructors
1618
1569
  * @since 3.1.0
1619
1570
  */
1620
1571
  export const fromEventListener = <A = unknown>(
@@ -1659,7 +1610,7 @@ export const fromEventListener = <A = unknown>(
1659
1610
  * // Output: [ 1, 2, 3, 4, 5 ]
1660
1611
  * ```
1661
1612
  *
1662
- * @category Constructors
1613
+ * @category constructors
1663
1614
  * @since 2.0.0
1664
1615
  */
1665
1616
  export const unfold = <S, A, E, R>(
@@ -1683,8 +1634,7 @@ export const unfold = <S, A, E, R>(
1683
1634
  * **Example** (Paginating stream state)
1684
1635
  *
1685
1636
  * ```ts
1686
- * import { Console, Effect, Stream } from "effect"
1687
- * import * as Option from "effect/Option"
1637
+ * import { Console, Effect, Option, Stream } from "effect"
1688
1638
  *
1689
1639
  * const stream = Stream.paginate(0, (n: number) =>
1690
1640
  * Effect.succeed(
@@ -1698,7 +1648,7 @@ export const unfold = <S, A, E, R>(
1698
1648
  * // Output: [ 0, 1, 2, 3 ]
1699
1649
  * ```
1700
1650
  *
1701
- * @category Constructors
1651
+ * @category constructors
1702
1652
  * @since 2.0.0
1703
1653
  */
1704
1654
  export const paginate = <S, A, E = never, R = never>(
@@ -1743,7 +1693,7 @@ export const paginate = <S, A, E = never, R = never>(
1743
1693
  * // Output: [ 1, 2, 3 ]
1744
1694
  * ```
1745
1695
  *
1746
- * @category Constructors
1696
+ * @category constructors
1747
1697
  * @since 2.0.0
1748
1698
  */
1749
1699
  export const iterate = <A>(value: A, next: (value: A) => A): Stream<A> =>
@@ -1768,8 +1718,8 @@ export const iterate = <A>(value: A, next: (value: A) => A): Stream<A> =>
1768
1718
  * Effect.runPromise(program)
1769
1719
  * // Output: [ 1, 2, 3, 4, 5 ]
1770
1720
  * ```
1771
- * @category Constructors
1772
- * @since 4.0.0
1721
+ * @category constructors
1722
+ * @since 2.0.0
1773
1723
  */
1774
1724
  export const range = (
1775
1725
  min: number,
@@ -1810,8 +1760,8 @@ export const range = (
1810
1760
  * // []
1811
1761
  * ```
1812
1762
  *
1813
- * @category Constructors
1814
- * @since 4.0.0
1763
+ * @category constructors
1764
+ * @since 2.0.0
1815
1765
  */
1816
1766
  export const never: Stream<never> = fromChannel(Channel.never)
1817
1767
 
@@ -1834,7 +1784,7 @@ export const never: Stream<never> = fromChannel(Channel.never)
1834
1784
  * // [1, 2, 3]
1835
1785
  * ```
1836
1786
  *
1837
- * @category Constructors
1787
+ * @category constructors
1838
1788
  * @since 2.0.0
1839
1789
  */
1840
1790
  export const unwrap = <A, E2, R2, E, R>(
@@ -1865,7 +1815,7 @@ export const unwrap = <A, E2, R2, E, R>(
1865
1815
  * // [ "resource" ]
1866
1816
  * ```
1867
1817
  *
1868
- * @category Constructors
1818
+ * @category constructors
1869
1819
  * @since 2.0.0
1870
1820
  */
1871
1821
  export const scoped = <A, E, R>(
@@ -1889,7 +1839,7 @@ export const scoped = <A, E, R>(
1889
1839
  * // [ 1, 3, 5 ]
1890
1840
  * ```
1891
1841
  *
1892
- * @category Mapping
1842
+ * @category mapping
1893
1843
  * @since 2.0.0
1894
1844
  */
1895
1845
  export const map: {
@@ -1910,7 +1860,7 @@ export const map: {
1910
1860
  * // [ 1, 3, 5 ]
1911
1861
  * ```
1912
1862
  *
1913
- * @category Mapping
1863
+ * @category mapping
1914
1864
  * @since 2.0.0
1915
1865
  */
1916
1866
  <A, B>(f: (a: A, i: number) => B): <E, R>(self: Stream<A, E, R>) => Stream<B, E, R>
@@ -1931,7 +1881,7 @@ export const map: {
1931
1881
  * // [ 1, 3, 5 ]
1932
1882
  * ```
1933
1883
  *
1934
- * @category Mapping
1884
+ * @category mapping
1935
1885
  * @since 2.0.0
1936
1886
  */
1937
1887
  <A, E, R, B>(self: Stream<A, E, R>, f: (a: A, i: number) => B): Stream<B, E, R>
@@ -1977,7 +1927,7 @@ export const map: {
1977
1927
  * // Output: [ "error: boom" ]
1978
1928
  * ```
1979
1929
  *
1980
- * @category Mapping
1930
+ * @category mapping
1981
1931
  * @since 2.0.0
1982
1932
  */
1983
1933
  export const mapBoth: {
@@ -2014,7 +1964,7 @@ export const mapBoth: {
2014
1964
  * // Output: [ "error: boom" ]
2015
1965
  * ```
2016
1966
  *
2017
- * @category Mapping
1967
+ * @category mapping
2018
1968
  * @since 2.0.0
2019
1969
  */
2020
1970
  <E, E2, A, A2>(
@@ -2053,7 +2003,7 @@ export const mapBoth: {
2053
2003
  * // Output: [ "error: boom" ]
2054
2004
  * ```
2055
2005
  *
2056
- * @category Mapping
2006
+ * @category mapping
2057
2007
  * @since 2.0.0
2058
2008
  */
2059
2009
  <A, E, R, E2, A2>(
@@ -2072,12 +2022,6 @@ export const mapBoth: {
2072
2022
  /**
2073
2023
  * Transforms each emitted chunk using the provided function, which receives the chunk and its index.
2074
2024
  *
2075
- * **Previously Known As**
2076
- *
2077
- * This API replaces the following from Effect 3.x:
2078
- *
2079
- * - `Stream.mapChunks`
2080
- *
2081
2025
  * **Example** (Mapping stream chunks)
2082
2026
  *
2083
2027
  * ```ts
@@ -2096,19 +2040,13 @@ export const mapBoth: {
2096
2040
  * // Output: [ 1, 2, 4, 5 ]
2097
2041
  * ```
2098
2042
  *
2099
- * @category Mapping
2100
- * @since 2.0.0
2043
+ * @category mapping
2044
+ * @since 4.0.0
2101
2045
  */
2102
2046
  export const mapArray: {
2103
2047
  /**
2104
2048
  * Transforms each emitted chunk using the provided function, which receives the chunk and its index.
2105
2049
  *
2106
- * **Previously Known As**
2107
- *
2108
- * This API replaces the following from Effect 3.x:
2109
- *
2110
- * - `Stream.mapChunks`
2111
- *
2112
2050
  * **Example** (Mapping stream chunks)
2113
2051
  *
2114
2052
  * ```ts
@@ -2127,8 +2065,8 @@ export const mapArray: {
2127
2065
  * // Output: [ 1, 2, 4, 5 ]
2128
2066
  * ```
2129
2067
  *
2130
- * @category Mapping
2131
- * @since 2.0.0
2068
+ * @category mapping
2069
+ * @since 4.0.0
2132
2070
  */
2133
2071
  <A, B>(
2134
2072
  f: (a: Arr.NonEmptyReadonlyArray<A>, i: number) => Arr.NonEmptyReadonlyArray<B>
@@ -2136,12 +2074,6 @@ export const mapArray: {
2136
2074
  /**
2137
2075
  * Transforms each emitted chunk using the provided function, which receives the chunk and its index.
2138
2076
  *
2139
- * **Previously Known As**
2140
- *
2141
- * This API replaces the following from Effect 3.x:
2142
- *
2143
- * - `Stream.mapChunks`
2144
- *
2145
2077
  * **Example** (Mapping stream chunks)
2146
2078
  *
2147
2079
  * ```ts
@@ -2160,8 +2092,8 @@ export const mapArray: {
2160
2092
  * // Output: [ 1, 2, 4, 5 ]
2161
2093
  * ```
2162
2094
  *
2163
- * @category Mapping
2164
- * @since 2.0.0
2095
+ * @category mapping
2096
+ * @since 4.0.0
2165
2097
  */
2166
2098
  <A, E, R, B>(
2167
2099
  self: Stream<A, E, R>,
@@ -2204,7 +2136,7 @@ export const mapArray: {
2204
2136
  * // [2, 4, 6]
2205
2137
  * ```
2206
2138
  *
2207
- * @category Mapping
2139
+ * @category mapping
2208
2140
  * @since 2.0.0
2209
2141
  */
2210
2142
  export const mapEffect: {
@@ -2240,7 +2172,7 @@ export const mapEffect: {
2240
2172
  * // [2, 4, 6]
2241
2173
  * ```
2242
2174
  *
2243
- * @category Mapping
2175
+ * @category mapping
2244
2176
  * @since 2.0.0
2245
2177
  */
2246
2178
  <A, A2, E2, R2>(
@@ -2282,7 +2214,7 @@ export const mapEffect: {
2282
2214
  * // [2, 4, 6]
2283
2215
  * ```
2284
2216
  *
2285
- * @category Mapping
2217
+ * @category mapping
2286
2218
  * @since 2.0.0
2287
2219
  */
2288
2220
  <A, E, R, A2, E2, R2>(
@@ -2327,7 +2259,7 @@ export const mapEffect: {
2327
2259
  * // Output: [1, 2, 3]
2328
2260
  * ```
2329
2261
  *
2330
- * @category Mapping
2262
+ * @category mapping
2331
2263
  * @since 2.0.0
2332
2264
  */
2333
2265
  export const flattenEffect: <
@@ -2360,12 +2292,6 @@ export const flattenEffect: <
2360
2292
  /**
2361
2293
  * Effectfully maps over non-empty array chunks emitted by the stream.
2362
2294
  *
2363
- * **Previously Known As**
2364
- *
2365
- * This API replaces the following from Effect 3.x:
2366
- *
2367
- * - `Stream.mapChunksEffect`
2368
- *
2369
2295
  * **Example** (Effectfully mapping stream chunks)
2370
2296
  *
2371
2297
  * ```ts
@@ -2386,19 +2312,13 @@ export const flattenEffect: <
2386
2312
  * // Output: [1, 2, 13, 14]
2387
2313
  * ```
2388
2314
  *
2389
- * @category Mapping
2315
+ * @category mapping
2390
2316
  * @since 4.0.0
2391
2317
  */
2392
2318
  export const mapArrayEffect: {
2393
2319
  /**
2394
2320
  * Effectfully maps over non-empty array chunks emitted by the stream.
2395
2321
  *
2396
- * **Previously Known As**
2397
- *
2398
- * This API replaces the following from Effect 3.x:
2399
- *
2400
- * - `Stream.mapChunksEffect`
2401
- *
2402
2322
  * **Example** (Effectfully mapping stream chunks)
2403
2323
  *
2404
2324
  * ```ts
@@ -2419,7 +2339,7 @@ export const mapArrayEffect: {
2419
2339
  * // Output: [1, 2, 13, 14]
2420
2340
  * ```
2421
2341
  *
2422
- * @category Mapping
2342
+ * @category mapping
2423
2343
  * @since 4.0.0
2424
2344
  */
2425
2345
  <A, B, E2, R2>(
@@ -2428,12 +2348,6 @@ export const mapArrayEffect: {
2428
2348
  /**
2429
2349
  * Effectfully maps over non-empty array chunks emitted by the stream.
2430
2350
  *
2431
- * **Previously Known As**
2432
- *
2433
- * This API replaces the following from Effect 3.x:
2434
- *
2435
- * - `Stream.mapChunksEffect`
2436
- *
2437
2351
  * **Example** (Effectfully mapping stream chunks)
2438
2352
  *
2439
2353
  * ```ts
@@ -2454,7 +2368,7 @@ export const mapArrayEffect: {
2454
2368
  * // Output: [1, 2, 13, 14]
2455
2369
  * ```
2456
2370
  *
2457
- * @category Mapping
2371
+ * @category mapping
2458
2372
  * @since 4.0.0
2459
2373
  */
2460
2374
  <A, E, R, B, E2, R2>(
@@ -2471,12 +2385,6 @@ export const mapArrayEffect: {
2471
2385
  *
2472
2386
  * The stream ends after the first failure, emitting a `Result.fail` value.
2473
2387
  *
2474
- * **Previously Known As:**
2475
- *
2476
- * This API replaces the following from Effect 3.x:
2477
- *
2478
- * - `Stream.either`
2479
- *
2480
2388
  * **Example** (Converting failures to results)
2481
2389
  *
2482
2390
  * ```ts
@@ -2499,7 +2407,7 @@ export const mapArrayEffect: {
2499
2407
  * // Output: [ "success: 1", "success: 2", "failure: boom" ]
2500
2408
  * ```
2501
2409
  *
2502
- * @category Error Handling
2410
+ * @category error handling
2503
2411
  * @since 4.0.0
2504
2412
  */
2505
2413
  export const result = <A, E, R>(self: Stream<A, E, R>): Stream<Result.Result<A, E>, never, R> =>
@@ -2538,7 +2446,7 @@ export const result = <A, E, R>(self: Stream<A, E, R>): Stream<Result.Result<A,
2538
2446
  * // [ 2, 4, 6 ]
2539
2447
  * ```
2540
2448
  *
2541
- * @category Sequencing
2449
+ * @category sequencing
2542
2450
  * @since 2.0.0
2543
2451
  */
2544
2452
  export const tap: {
@@ -2572,7 +2480,7 @@ export const tap: {
2572
2480
  * // [ 2, 4, 6 ]
2573
2481
  * ```
2574
2482
  *
2575
- * @category Sequencing
2483
+ * @category sequencing
2576
2484
  * @since 2.0.0
2577
2485
  */
2578
2486
  <A, X, E2, R2>(
@@ -2611,7 +2519,7 @@ export const tap: {
2611
2519
  * // [ 2, 4, 6 ]
2612
2520
  * ```
2613
2521
  *
2614
- * @category Sequencing
2522
+ * @category sequencing
2615
2523
  * @since 2.0.0
2616
2524
  */
2617
2525
  <A, E, R, X, E2, R2>(
@@ -2663,7 +2571,7 @@ export const tap: {
2663
2571
  * // [ 1, 2, 3 ]
2664
2572
  * ```
2665
2573
  *
2666
- * @category Sequencing
2574
+ * @category sequencing
2667
2575
  * @since 2.0.0
2668
2576
  */
2669
2577
  export const tapBoth: {
@@ -2696,7 +2604,7 @@ export const tapBoth: {
2696
2604
  * // [ 1, 2, 3 ]
2697
2605
  * ```
2698
2606
  *
2699
- * @category Sequencing
2607
+ * @category sequencing
2700
2608
  * @since 2.0.0
2701
2609
  */
2702
2610
  <A, E, X, E2, R2, Y, E3, R3>(
@@ -2735,7 +2643,7 @@ export const tapBoth: {
2735
2643
  * // [ 1, 2, 3 ]
2736
2644
  * ```
2737
2645
  *
2738
- * @category Sequencing
2646
+ * @category sequencing
2739
2647
  * @since 2.0.0
2740
2648
  */
2741
2649
  <A, E, R, X, E2, R2, Y, E3, R3>(
@@ -2787,7 +2695,7 @@ export const tapBoth: {
2787
2695
  * // Output: [1, 2, 3]
2788
2696
  * ```
2789
2697
  *
2790
- * @category Sequencing
2698
+ * @category sequencing
2791
2699
  * @since 2.0.0
2792
2700
  */
2793
2701
  export const tapSink: {
@@ -2819,7 +2727,7 @@ export const tapSink: {
2819
2727
  * // Output: [1, 2, 3]
2820
2728
  * ```
2821
2729
  *
2822
- * @category Sequencing
2730
+ * @category sequencing
2823
2731
  * @since 2.0.0
2824
2732
  */
2825
2733
  <A, E2, R2>(sink: Sink.Sink<unknown, A, unknown, E2, R2>): <E, R>(self: Stream<A, E, R>) => Stream<A, E2 | E, R2 | R>
@@ -2851,7 +2759,7 @@ export const tapSink: {
2851
2759
  * // Output: [1, 2, 3]
2852
2760
  * ```
2853
2761
  *
2854
- * @category Sequencing
2762
+ * @category sequencing
2855
2763
  * @since 2.0.0
2856
2764
  */
2857
2765
  <A, E, R, E2, R2>(self: Stream<A, E, R>, sink: Sink.Sink<unknown, A, unknown, E2, R2>): Stream<A, E | E2, R | R2>
@@ -2945,7 +2853,7 @@ export const tapSink: {
2945
2853
  * // Output: [ 1, 2, 2, 4, 3, 6 ]
2946
2854
  * ```
2947
2855
  *
2948
- * @category Mapping
2856
+ * @category mapping
2949
2857
  * @since 2.0.0
2950
2858
  */
2951
2859
  export const flatMap: {
@@ -2974,7 +2882,7 @@ export const flatMap: {
2974
2882
  * // Output: [ 1, 2, 2, 4, 3, 6 ]
2975
2883
  * ```
2976
2884
  *
2977
- * @category Mapping
2885
+ * @category mapping
2978
2886
  * @since 2.0.0
2979
2887
  */
2980
2888
  <A, A2, E2, R2>(
@@ -3009,7 +2917,7 @@ export const flatMap: {
3009
2917
  * // Output: [ 1, 2, 2, 4, 3, 6 ]
3010
2918
  * ```
3011
2919
  *
3012
- * @category Mapping
2920
+ * @category mapping
3013
2921
  * @since 2.0.0
3014
2922
  */
3015
2923
  <A, E, R, A2, E2, R2>(
@@ -3055,7 +2963,7 @@ export const flatMap: {
3055
2963
  * })
3056
2964
  * ```
3057
2965
  *
3058
- * @category Sequencing
2966
+ * @category sequencing
3059
2967
  * @since 4.0.0
3060
2968
  */
3061
2969
  export const switchMap: {
@@ -3080,7 +2988,7 @@ export const switchMap: {
3080
2988
  * })
3081
2989
  * ```
3082
2990
  *
3083
- * @category Sequencing
2991
+ * @category sequencing
3084
2992
  * @since 4.0.0
3085
2993
  */
3086
2994
  <A, A2, E2, R2>(
@@ -3111,7 +3019,7 @@ export const switchMap: {
3111
3019
  * })
3112
3020
  * ```
3113
3021
  *
3114
- * @category Sequencing
3022
+ * @category sequencing
3115
3023
  * @since 4.0.0
3116
3024
  */
3117
3025
  <A, E, R, A2, E2, R2>(
@@ -3164,7 +3072,7 @@ export const switchMap: {
3164
3072
  * // Output: [ 1, 2, 3, 4, 5, 6 ]
3165
3073
  * ```
3166
3074
  *
3167
- * @category Mapping
3075
+ * @category mapping
3168
3076
  * @since 2.0.0
3169
3077
  */
3170
3078
  export const flatten: <
@@ -3196,12 +3104,6 @@ export const flatten: <
3196
3104
  /**
3197
3105
  * Flattens a stream of non-empty arrays into a stream of elements.
3198
3106
  *
3199
- * **Previously Known As**
3200
- *
3201
- * This API replaces the following from Effect 3.x:
3202
- *
3203
- * - `Stream.flattenChunks`
3204
- *
3205
3107
  * **Example** (Flattening a stream of non-empty arrays into a stream of elements)
3206
3108
  *
3207
3109
  * ```ts
@@ -3218,7 +3120,7 @@ export const flatten: <
3218
3120
  * // Output: [ 1, 2, 3 ]
3219
3121
  * ```
3220
3122
  *
3221
- * @category Sequencing
3123
+ * @category sequencing
3222
3124
  * @since 4.0.0
3223
3125
  */
3224
3126
  export const flattenArray = <A, E, R>(self: Stream<Arr.NonEmptyReadonlyArray<A>, E, R>): Stream<A, E, R> =>
@@ -3241,7 +3143,7 @@ export const flattenArray = <A, E, R>(self: Stream<Arr.NonEmptyReadonlyArray<A>,
3241
3143
  * // Output: []
3242
3144
  * ```
3243
3145
  *
3244
- * @category Sequencing
3146
+ * @category sequencing
3245
3147
  * @since 2.0.0
3246
3148
  */
3247
3149
  export const drain = <A, E, R>(self: Stream<A, E, R>): Stream<never, E, R> => fromChannel(Channel.drain(self.channel))
@@ -3271,7 +3173,7 @@ export const drain = <A, E, R>(self: Stream<A, E, R>): Stream<never, E, R> => fr
3271
3173
  * // Output: [ 1, 2 ]
3272
3174
  * ```
3273
3175
  *
3274
- * @category Sequencing
3176
+ * @category sequencing
3275
3177
  * @since 2.0.0
3276
3178
  */
3277
3179
  export const drainFork: {
@@ -3300,7 +3202,7 @@ export const drainFork: {
3300
3202
  * // Output: [ 1, 2 ]
3301
3203
  * ```
3302
3204
  *
3303
- * @category Sequencing
3205
+ * @category sequencing
3304
3206
  * @since 2.0.0
3305
3207
  */
3306
3208
  <A2, E2, R2>(that: Stream<A2, E2, R2>): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E2 | E, R2 | R>
@@ -3329,7 +3231,7 @@ export const drainFork: {
3329
3231
  * // Output: [ 1, 2 ]
3330
3232
  * ```
3331
3233
  *
3332
- * @category Sequencing
3234
+ * @category sequencing
3333
3235
  * @since 2.0.0
3334
3236
  */
3335
3237
  <A, E, R, A2, E2, R2>(self: Stream<A, E, R>, that: Stream<A2, E2, R2>): Stream<A, E | E2, R | R2>
@@ -3360,7 +3262,7 @@ export const drainFork: {
3360
3262
  * // Output: [ 1, 1, 1, 1, 1 ]
3361
3263
  * ```
3362
3264
  *
3363
- * @category Sequencing
3265
+ * @category sequencing
3364
3266
  * @since 2.0.0
3365
3267
  */
3366
3268
  export const repeat: {
@@ -3385,7 +3287,7 @@ export const repeat: {
3385
3287
  * // Output: [ 1, 1, 1, 1, 1 ]
3386
3288
  * ```
3387
3289
  *
3388
- * @category Sequencing
3290
+ * @category sequencing
3389
3291
  * @since 2.0.0
3390
3292
  */
3391
3293
  <B, E2, R2>(
@@ -3416,7 +3318,7 @@ export const repeat: {
3416
3318
  * // Output: [ 1, 1, 1, 1, 1 ]
3417
3319
  * ```
3418
3320
  *
3419
- * @category Sequencing
3321
+ * @category sequencing
3420
3322
  * @since 2.0.0
3421
3323
  */
3422
3324
  <A, E, R, B, E2, R2>(
@@ -3615,7 +3517,7 @@ export const timeout: {
3615
3517
  * unchanged.
3616
3518
  *
3617
3519
  * @category Rate Limiting
3618
- * @since 2.0.0
3520
+ * @since 4.0.0
3619
3521
  */
3620
3522
  export const timeoutOrElse: {
3621
3523
  /**
@@ -3627,7 +3529,7 @@ export const timeoutOrElse: {
3627
3529
  * unchanged.
3628
3530
  *
3629
3531
  * @category Rate Limiting
3630
- * @since 2.0.0
3532
+ * @since 4.0.0
3631
3533
  */
3632
3534
  <B, E2, R2>(
3633
3535
  options: {
@@ -3644,7 +3546,7 @@ export const timeoutOrElse: {
3644
3546
  * unchanged.
3645
3547
  *
3646
3548
  * @category Rate Limiting
3647
- * @since 2.0.0
3549
+ * @since 4.0.0
3648
3550
  */
3649
3551
  <A, E, R, B, E2, R2>(
3650
3552
  self: Stream<A, E, R>,
@@ -3714,8 +3616,6 @@ export const timeoutOrElse: {
3714
3616
  * Repeats each element of the stream according to the provided schedule,
3715
3617
  * including the original emission.
3716
3618
  *
3717
- * @category Sequencing
3718
- * @since 2.0.0
3719
3619
  * **Example** (Repeating stream elements)
3720
3620
  *
3721
3621
  * ```ts
@@ -3732,14 +3632,15 @@ export const timeoutOrElse: {
3732
3632
  * Effect.runPromise(program)
3733
3633
  * // Output: [ "A", "A", "B", "B", "C", "C" ]
3734
3634
  * ```
3635
+ *
3636
+ * @category sequencing
3637
+ * @since 2.0.0
3735
3638
  */
3736
3639
  export const repeatElements: {
3737
3640
  /**
3738
3641
  * Repeats each element of the stream according to the provided schedule,
3739
3642
  * including the original emission.
3740
3643
  *
3741
- * @category Sequencing
3742
- * @since 2.0.0
3743
3644
  * **Example** (Repeating stream elements)
3744
3645
  *
3745
3646
  * ```ts
@@ -3756,14 +3657,15 @@ export const repeatElements: {
3756
3657
  * Effect.runPromise(program)
3757
3658
  * // Output: [ "A", "A", "B", "B", "C", "C" ]
3758
3659
  * ```
3660
+ *
3661
+ * @category sequencing
3662
+ * @since 2.0.0
3759
3663
  */
3760
3664
  <B, E2, R2>(schedule: Schedule.Schedule<B, unknown, E2, R2>): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E | E2, R2 | R>
3761
3665
  /**
3762
3666
  * Repeats each element of the stream according to the provided schedule,
3763
3667
  * including the original emission.
3764
3668
  *
3765
- * @category Sequencing
3766
- * @since 2.0.0
3767
3669
  * **Example** (Repeating stream elements)
3768
3670
  *
3769
3671
  * ```ts
@@ -3780,6 +3682,9 @@ export const repeatElements: {
3780
3682
  * Effect.runPromise(program)
3781
3683
  * // Output: [ "A", "A", "B", "B", "C", "C" ]
3782
3684
  * ```
3685
+ *
3686
+ * @category sequencing
3687
+ * @since 2.0.0
3783
3688
  */
3784
3689
  <A, E, R, B, E2, R2>(self: Stream<A, E, R>, schedule: Schedule.Schedule<B, unknown, E2, R2>): Stream<A, E | E2, R | R2>
3785
3690
  } = dual(
@@ -3841,7 +3746,7 @@ export const repeatElements: {
3841
3746
  * // Output: [ "A", "B", "A", "B", "A" ]
3842
3747
  * ```
3843
3748
  *
3844
- * @category Sequencing
3749
+ * @category sequencing
3845
3750
  * @since 2.0.0
3846
3751
  */
3847
3752
  export const forever = <A, E, R>(self: Stream<A, E, R>): Stream<A, E, R> => fromChannel(Channel.forever(self.channel))
@@ -3849,12 +3754,6 @@ export const forever = <A, E, R>(self: Stream<A, E, R>): Stream<A, E, R> => from
3849
3754
  /**
3850
3755
  * Submerges the iterables emitted by this stream into the stream's structure.
3851
3756
  *
3852
- * **Previously Known As**
3853
- *
3854
- * This API replaces the following from Effect 3.x:
3855
- *
3856
- * - `Stream.flattenIterables`
3857
- *
3858
3757
  * **Example** (Flattening iterable values)
3859
3758
  *
3860
3759
  * ```ts
@@ -3870,7 +3769,7 @@ export const forever = <A, E, R>(self: Stream<A, E, R>): Stream<A, E, R> => from
3870
3769
  * // Output: [ 1, 2, 3, 4 ]
3871
3770
  * ```
3872
3771
  *
3873
- * @category Mapping
3772
+ * @category mapping
3874
3773
  * @since 4.0.0
3875
3774
  */
3876
3775
  export const flattenIterable = <A, E, R>(self: Stream<Iterable<A>, E, R>): Stream<A, E, R> =>
@@ -3900,8 +3799,8 @@ export const flattenIterable = <A, E, R>(self: Stream<Iterable<A>, E, R>): Strea
3900
3799
  * // Output: [ 1, 2, 3 ]
3901
3800
  * ```
3902
3801
  *
3903
- * @category Sequencing
3904
- * @since 4.0.0
3802
+ * @category sequencing
3803
+ * @since 2.0.0
3905
3804
  */
3906
3805
  export const flattenTake = <A, E, E2, R>(self: Stream<Take.Take<A, E>, E2, R>): Stream<A, E | E2, R> =>
3907
3806
  self.channel.pipe(
@@ -3928,7 +3827,7 @@ export const flattenTake = <A, E, E2, R>(self: Stream<Take.Take<A, E>, E2, R>):
3928
3827
  * // Output: [ 1, 2, 3, 4, 5, 6 ]
3929
3828
  * ```
3930
3829
  *
3931
- * @category Sequencing
3830
+ * @category sequencing
3932
3831
  * @since 2.0.0
3933
3832
  */
3934
3833
  export const concat: {
@@ -3950,7 +3849,7 @@ export const concat: {
3950
3849
  * // Output: [ 1, 2, 3, 4, 5, 6 ]
3951
3850
  * ```
3952
3851
  *
3953
- * @category Sequencing
3852
+ * @category sequencing
3954
3853
  * @since 2.0.0
3955
3854
  */
3956
3855
  <A2, E2, R2>(that: Stream<A2, E2, R2>): <A, E, R>(self: Stream<A, E, R>) => Stream<A | A2, E | E2, R | R2>
@@ -3972,7 +3871,7 @@ export const concat: {
3972
3871
  * // Output: [ 1, 2, 3, 4, 5, 6 ]
3973
3872
  * ```
3974
3873
  *
3975
- * @category Sequencing
3874
+ * @category sequencing
3976
3875
  * @since 2.0.0
3977
3876
  */
3978
3877
  <A, E, R, A2, E2, R2>(self: Stream<A, E, R>, that: Stream<A2, E2, R2>): Stream<A | A2, E | E2, R | R2>
@@ -3997,7 +3896,7 @@ export const concat: {
3997
3896
  * // Output: [ 1, 2, 3, 4, 5, 6 ]
3998
3897
  * ```
3999
3898
  *
4000
- * @category Sequencing
3899
+ * @category sequencing
4001
3900
  * @since 2.0.0
4002
3901
  */
4003
3902
  Stream<A | A2, E | E2, R | R2>>([self, that]))
@@ -4024,7 +3923,7 @@ export const concat: {
4024
3923
  * Effect.runPromise(program)
4025
3924
  * ```
4026
3925
  *
4027
- * @category Sequencing
3926
+ * @category sequencing
4028
3927
  * @since 2.0.0
4029
3928
  */
4030
3929
  export const prepend: {
@@ -4049,7 +3948,7 @@ export const prepend: {
4049
3948
  * Effect.runPromise(program)
4050
3949
  * ```
4051
3950
  *
4052
- * @category Sequencing
3951
+ * @category sequencing
4053
3952
  * @since 2.0.0
4054
3953
  */
4055
3954
  <B>(values: Iterable<B>): <A, E, R>(self: Stream<A, E, R>) => Stream<B | A, E, R>
@@ -4074,7 +3973,7 @@ export const prepend: {
4074
3973
  * Effect.runPromise(program)
4075
3974
  * ```
4076
3975
  *
4077
- * @category Sequencing
3976
+ * @category sequencing
4078
3977
  * @since 2.0.0
4079
3978
  */
4080
3979
  <A, E, R, B>(self: Stream<A, E, R>, values: Iterable<B>): Stream<A | B, E, R>
@@ -4192,8 +4091,6 @@ export const merge: {
4192
4091
  * The effect runs concurrently, fails the stream if it fails, and is interrupted
4193
4092
  * when the stream completes.
4194
4093
  *
4195
- * @category Merging
4196
- * @since 4.0.0
4197
4094
  * **Example** (Merging with a background effect)
4198
4095
  *
4199
4096
  * ```ts
@@ -4212,6 +4109,9 @@ export const merge: {
4212
4109
  * // Output: side task
4213
4110
  * // Output: [ 1, 2, 3 ]
4214
4111
  * ```
4112
+ *
4113
+ * @category Merging
4114
+ * @since 4.0.0
4215
4115
  */
4216
4116
  export const mergeEffect: {
4217
4117
  /**
@@ -4220,8 +4120,6 @@ export const mergeEffect: {
4220
4120
  * The effect runs concurrently, fails the stream if it fails, and is interrupted
4221
4121
  * when the stream completes.
4222
4122
  *
4223
- * @category Merging
4224
- * @since 4.0.0
4225
4123
  * **Example** (Merging with a background effect)
4226
4124
  *
4227
4125
  * ```ts
@@ -4240,6 +4138,9 @@ export const mergeEffect: {
4240
4138
  * // Output: side task
4241
4139
  * // Output: [ 1, 2, 3 ]
4242
4140
  * ```
4141
+ *
4142
+ * @category Merging
4143
+ * @since 4.0.0
4243
4144
  */
4244
4145
  <A2, E2, R2>(effect: Effect.Effect<A2, E2, R2>): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E2 | E, R2 | R>
4245
4146
  /**
@@ -4248,8 +4149,6 @@ export const mergeEffect: {
4248
4149
  * The effect runs concurrently, fails the stream if it fails, and is interrupted
4249
4150
  * when the stream completes.
4250
4151
  *
4251
- * @category Merging
4252
- * @since 4.0.0
4253
4152
  * **Example** (Merging with a background effect)
4254
4153
  *
4255
4154
  * ```ts
@@ -4268,6 +4167,9 @@ export const mergeEffect: {
4268
4167
  * // Output: side task
4269
4168
  * // Output: [ 1, 2, 3 ]
4270
4169
  * ```
4170
+ *
4171
+ * @category Merging
4172
+ * @since 4.0.0
4271
4173
  */
4272
4174
  <A, E, R, A2, E2, R2>(self: Stream<A, E, R>, effect: Effect.Effect<A2, E2, R2>): Stream<A, E | E2, R | R2>
4273
4175
  } = dual(
@@ -4283,12 +4185,6 @@ export const mergeEffect: {
4283
4185
  * Merges this stream and the specified stream together, tagging values from the
4284
4186
  * left stream as `Result.succeed` and values from the right stream as `Result.fail`.
4285
4187
  *
4286
- * **Previously Known As**
4287
- *
4288
- * This API replaces the following from Effect 3.x:
4289
- *
4290
- * - `Stream.mergeEither`
4291
- *
4292
4188
  * **Example** (Merging streams into results)
4293
4189
  *
4294
4190
  * ```ts
@@ -4317,19 +4213,13 @@ export const mergeEffect: {
4317
4213
  * ```
4318
4214
  *
4319
4215
  * @category Merging
4320
- * @since 2.0.0
4216
+ * @since 4.0.0
4321
4217
  */
4322
4218
  export const mergeResult: {
4323
4219
  /**
4324
4220
  * Merges this stream and the specified stream together, tagging values from the
4325
4221
  * left stream as `Result.succeed` and values from the right stream as `Result.fail`.
4326
4222
  *
4327
- * **Previously Known As**
4328
- *
4329
- * This API replaces the following from Effect 3.x:
4330
- *
4331
- * - `Stream.mergeEither`
4332
- *
4333
4223
  * **Example** (Merging streams into results)
4334
4224
  *
4335
4225
  * ```ts
@@ -4358,19 +4248,13 @@ export const mergeResult: {
4358
4248
  * ```
4359
4249
  *
4360
4250
  * @category Merging
4361
- * @since 2.0.0
4251
+ * @since 4.0.0
4362
4252
  */
4363
4253
  <A2, E2, R2>(that: Stream<A2, E2, R2>): <A, E, R>(self: Stream<A, E, R>) => Stream<Result.Result<A, A2>, E2 | E, R2 | R>
4364
4254
  /**
4365
4255
  * Merges this stream and the specified stream together, tagging values from the
4366
4256
  * left stream as `Result.succeed` and values from the right stream as `Result.fail`.
4367
4257
  *
4368
- * **Previously Known As**
4369
- *
4370
- * This API replaces the following from Effect 3.x:
4371
- *
4372
- * - `Stream.mergeEither`
4373
- *
4374
4258
  * **Example** (Merging streams into results)
4375
4259
  *
4376
4260
  * ```ts
@@ -4399,7 +4283,7 @@ export const mergeResult: {
4399
4283
  * ```
4400
4284
  *
4401
4285
  * @category Merging
4402
- * @since 2.0.0
4286
+ * @since 4.0.0
4403
4287
  */
4404
4288
  <A, E, R, A2, E2, R2>(self: Stream<A, E, R>, that: Stream<A2, E2, R2>): Stream<Result.Result<A, A2>, E | E2, R | R2>
4405
4289
  } = dual(
@@ -4728,7 +4612,7 @@ export const mergeAll: {
4728
4612
  * // Output: [ [ 1, "a" ], [ 1, "b" ], [ 2, "a" ], [ 2, "b" ] ]
4729
4613
  * ```
4730
4614
  *
4731
- * @category Zipping
4615
+ * @category zipping
4732
4616
  * @since 2.0.0
4733
4617
  */
4734
4618
  export const cross: {
@@ -4754,7 +4638,7 @@ export const cross: {
4754
4638
  * // Output: [ [ 1, "a" ], [ 1, "b" ], [ 2, "a" ], [ 2, "b" ] ]
4755
4639
  * ```
4756
4640
  *
4757
- * @category Zipping
4641
+ * @category zipping
4758
4642
  * @since 2.0.0
4759
4643
  */
4760
4644
  <AR, ER, RR>(right: Stream<AR, ER, RR>): <AL, EL, RL>(left: Stream<AL, EL, RL>) => Stream<[AL, AR], EL | ER, RL | RR>
@@ -4780,7 +4664,7 @@ export const cross: {
4780
4664
  * // Output: [ [ 1, "a" ], [ 1, "b" ], [ 2, "a" ], [ 2, "b" ] ]
4781
4665
  * ```
4782
4666
  *
4783
- * @category Zipping
4667
+ * @category zipping
4784
4668
  * @since 2.0.0
4785
4669
  */
4786
4670
  <AL, ER, RR, AR, EL, RL>(left: Stream<AL, ER, RR>, right: Stream<AR, EL, RL>): Stream<[AL, AR], EL | ER, RL | RR>
@@ -4813,7 +4697,7 @@ export const cross: {
4813
4697
  * // Output: [ "1-a", "1-b", "2-a", "2-b" ]
4814
4698
  * ```
4815
4699
  *
4816
- * @category Zipping
4700
+ * @category zipping
4817
4701
  * @since 2.0.0
4818
4702
  */
4819
4703
  export const crossWith: {
@@ -4841,7 +4725,7 @@ export const crossWith: {
4841
4725
  * // Output: [ "1-a", "1-b", "2-a", "2-b" ]
4842
4726
  * ```
4843
4727
  *
4844
- * @category Zipping
4728
+ * @category zipping
4845
4729
  * @since 2.0.0
4846
4730
  */
4847
4731
  <AR, ER, RR, AL, A>(right: Stream<AR, ER, RR>, f: (left: AL, right: AR) => A): <EL, RL>(left: Stream<AL, EL, RL>) => Stream<A, EL | ER, RL | RR>
@@ -4869,7 +4753,7 @@ export const crossWith: {
4869
4753
  * // Output: [ "1-a", "1-b", "2-a", "2-b" ]
4870
4754
  * ```
4871
4755
  *
4872
- * @category Zipping
4756
+ * @category zipping
4873
4757
  * @since 2.0.0
4874
4758
  */
4875
4759
  <AL, EL, RL, AR, ER, RR, A>(
@@ -4905,7 +4789,7 @@ export const crossWith: {
4905
4789
  * // Output: [ "1-a", "2-b", "3-c" ]
4906
4790
  * ```
4907
4791
  *
4908
- * @category Zipping
4792
+ * @category zipping
4909
4793
  * @since 2.0.0
4910
4794
  */
4911
4795
  export const zipWith: {
@@ -4931,7 +4815,7 @@ export const zipWith: {
4931
4815
  * // Output: [ "1-a", "2-b", "3-c" ]
4932
4816
  * ```
4933
4817
  *
4934
- * @category Zipping
4818
+ * @category zipping
4935
4819
  * @since 2.0.0
4936
4820
  */
4937
4821
  <AR, ER, RR, AL, A>(right: Stream<AR, ER, RR>, f: (left: AL, right: AR) => A): <EL, RL>(left: Stream<AL, EL, RL>) => Stream<A, EL | ER, RL | RR>
@@ -4957,7 +4841,7 @@ export const zipWith: {
4957
4841
  * // Output: [ "1-a", "2-b", "3-c" ]
4958
4842
  * ```
4959
4843
  *
4960
- * @category Zipping
4844
+ * @category zipping
4961
4845
  * @since 2.0.0
4962
4846
  */
4963
4847
  <AL, EL, RL, AR, ER, RR, A>(
@@ -4993,12 +4877,6 @@ const zipArrays = <AL, AR, A>(
4993
4877
  *
4994
4878
  * The function returns output plus leftover arrays that carry into the next pull.
4995
4879
  *
4996
- * **Previously Known As**
4997
- *
4998
- * This API replaces the following from Effect 3.x:
4999
- *
5000
- * - `Stream.zipWithChunks`
5001
- *
5002
4880
  * **Example** (Zipping stream chunks)
5003
4881
  *
5004
4882
  * ```ts
@@ -5023,8 +4901,8 @@ const zipArrays = <AL, AR, A>(
5023
4901
  * // Output: [[1, "a"], [2, "b"], [3, "c"], [4, "d"], [5, "e"]]
5024
4902
  * ```
5025
4903
  *
5026
- * @category Zipping
5027
- * @since 2.0.0
4904
+ * @category zipping
4905
+ * @since 4.0.0
5028
4906
  */
5029
4907
  export const zipWithArray: {
5030
4908
  /**
@@ -5032,12 +4910,6 @@ export const zipWithArray: {
5032
4910
  *
5033
4911
  * The function returns output plus leftover arrays that carry into the next pull.
5034
4912
  *
5035
- * **Previously Known As**
5036
- *
5037
- * This API replaces the following from Effect 3.x:
5038
- *
5039
- * - `Stream.zipWithChunks`
5040
- *
5041
4913
  * **Example** (Zipping stream chunks)
5042
4914
  *
5043
4915
  * ```ts
@@ -5062,8 +4934,8 @@ export const zipWithArray: {
5062
4934
  * // Output: [[1, "a"], [2, "b"], [3, "c"], [4, "d"], [5, "e"]]
5063
4935
  * ```
5064
4936
  *
5065
- * @category Zipping
5066
- * @since 2.0.0
4937
+ * @category zipping
4938
+ * @since 4.0.0
5067
4939
  */
5068
4940
  <AR, ER, RR, AL, A>(
5069
4941
  right: Stream<AR, ER, RR>,
@@ -5081,12 +4953,6 @@ export const zipWithArray: {
5081
4953
  *
5082
4954
  * The function returns output plus leftover arrays that carry into the next pull.
5083
4955
  *
5084
- * **Previously Known As**
5085
- *
5086
- * This API replaces the following from Effect 3.x:
5087
- *
5088
- * - `Stream.zipWithChunks`
5089
- *
5090
4956
  * **Example** (Zipping stream chunks)
5091
4957
  *
5092
4958
  * ```ts
@@ -5111,8 +4977,8 @@ export const zipWithArray: {
5111
4977
  * // Output: [[1, "a"], [2, "b"], [3, "c"], [4, "d"], [5, "e"]]
5112
4978
  * ```
5113
4979
  *
5114
- * @category Zipping
5115
- * @since 2.0.0
4980
+ * @category zipping
4981
+ * @since 4.0.0
5116
4982
  */
5117
4983
  <AL, EL, RL, AR, ER, RR, A>(
5118
4984
  left: Stream<AL, EL, RL>,
@@ -5203,7 +5069,7 @@ export const zipWithArray: {
5203
5069
  * // Output: [[1, "a"], [2, "b"], [3, "c"]]
5204
5070
  * ```
5205
5071
  *
5206
- * @category Zipping
5072
+ * @category zipping
5207
5073
  * @since 2.0.0
5208
5074
  */
5209
5075
  export const zip: {
@@ -5230,7 +5096,7 @@ export const zip: {
5230
5096
  * // Output: [[1, "a"], [2, "b"], [3, "c"]]
5231
5097
  * ```
5232
5098
  *
5233
- * @category Zipping
5099
+ * @category zipping
5234
5100
  * @since 2.0.0
5235
5101
  */
5236
5102
  <A2, E2, R2>(that: Stream<A2, E2, R2>): <A, E, R>(self: Stream<A, E, R>) => Stream<[A, A2], E2 | E, R2 | R>
@@ -5257,7 +5123,7 @@ export const zip: {
5257
5123
  * // Output: [[1, "a"], [2, "b"], [3, "c"]]
5258
5124
  * ```
5259
5125
  *
5260
- * @category Zipping
5126
+ * @category zipping
5261
5127
  * @since 2.0.0
5262
5128
  */
5263
5129
  <A, E, R, A2, E2, R2>(self: Stream<A, E, R>, that: Stream<A2, E2, R2>): Stream<[A, A2], E | E2, R | R2>
@@ -5292,7 +5158,7 @@ export const zip: {
5292
5158
  * // Output: [1, 2]
5293
5159
  * ```
5294
5160
  *
5295
- * @category Zipping
5161
+ * @category zipping
5296
5162
  * @since 2.0.0
5297
5163
  */
5298
5164
  export const zipLeft: {
@@ -5319,7 +5185,7 @@ export const zipLeft: {
5319
5185
  * // Output: [1, 2]
5320
5186
  * ```
5321
5187
  *
5322
- * @category Zipping
5188
+ * @category zipping
5323
5189
  * @since 2.0.0
5324
5190
  */
5325
5191
  <AR, ER, RR>(right: Stream<AR, ER, RR>): <AL, EL, RL>(left: Stream<AL, EL, RL>) => Stream<AL, ER | EL, RR | RL>
@@ -5346,7 +5212,7 @@ export const zipLeft: {
5346
5212
  * // Output: [1, 2]
5347
5213
  * ```
5348
5214
  *
5349
- * @category Zipping
5215
+ * @category zipping
5350
5216
  * @since 2.0.0
5351
5217
  */
5352
5218
  <AL, EL, RL, AR, ER, RR>(left: Stream<AL, EL, RL>, right: Stream<AR, ER, RR>): Stream<AL, EL | ER, RL | RR>
@@ -5386,7 +5252,7 @@ export const zipLeft: {
5386
5252
  * // Output: ["a", "b"]
5387
5253
  * ```
5388
5254
  *
5389
- * @category Zipping
5255
+ * @category zipping
5390
5256
  * @since 2.0.0
5391
5257
  */
5392
5258
  export const zipRight: {
@@ -5410,7 +5276,7 @@ export const zipRight: {
5410
5276
  * // Output: ["a", "b"]
5411
5277
  * ```
5412
5278
  *
5413
- * @category Zipping
5279
+ * @category zipping
5414
5280
  * @since 2.0.0
5415
5281
  */
5416
5282
  <AR, ER, RR>(right: Stream<AR, ER, RR>): <AL, EL, RL>(left: Stream<AL, EL, RL>) => Stream<AR, ER | EL, RR | RL>
@@ -5434,7 +5300,7 @@ export const zipRight: {
5434
5300
  * // Output: ["a", "b"]
5435
5301
  * ```
5436
5302
  *
5437
- * @category Zipping
5303
+ * @category zipping
5438
5304
  * @since 2.0.0
5439
5305
  */
5440
5306
  <AL, EL, RL, AR, ER, RR>(left: Stream<AL, EL, RL>, right: Stream<AR, ER, RR>): Stream<AR, EL | ER, RL | RR>
@@ -5481,7 +5347,7 @@ export const zipRight: {
5481
5347
  * // Output: [[1, "a", "x"], [2, "b", "y"], [3, "c", "z"]]
5482
5348
  * ```
5483
5349
  *
5484
- * @category Zipping
5350
+ * @category zipping
5485
5351
  * @since 2.0.0
5486
5352
  */
5487
5353
  export const zipFlatten: {
@@ -5512,7 +5378,7 @@ export const zipFlatten: {
5512
5378
  * // Output: [[1, "a", "x"], [2, "b", "y"], [3, "c", "z"]]
5513
5379
  * ```
5514
5380
  *
5515
- * @category Zipping
5381
+ * @category zipping
5516
5382
  * @since 2.0.0
5517
5383
  */
5518
5384
  <A2, E2, R2>(that: Stream<A2, E2, R2>): <A extends ReadonlyArray<any>, E, R>(self: Stream<A, E, R>) => Stream<[...A, A2], E2 | E, R2 | R>
@@ -5543,7 +5409,7 @@ export const zipFlatten: {
5543
5409
  * // Output: [[1, "a", "x"], [2, "b", "y"], [3, "c", "z"]]
5544
5410
  * ```
5545
5411
  *
5546
- * @category Zipping
5412
+ * @category zipping
5547
5413
  * @since 2.0.0
5548
5414
  */
5549
5415
  <A extends ReadonlyArray<any>, E, R, A2, E2, R2>(self: Stream<A, E, R>, that: Stream<A2, E2, R2>): Stream<[...A, A2], E | E2, R | R2>
@@ -5575,7 +5441,7 @@ export const zipFlatten: {
5575
5441
  * // Output: [["a", 0], ["b", 1], ["c", 2], ["d", 3]]
5576
5442
  * ```
5577
5443
  *
5578
- * @category Zipping
5444
+ * @category zipping
5579
5445
  * @since 2.0.0
5580
5446
  */
5581
5447
  export const zipWithIndex = <A, E, R>(self: Stream<A, E, R>): Stream<[A, number], E, R> => map(self, (a, i) => [a, i])
@@ -5603,7 +5469,7 @@ export const zipWithIndex = <A, E, R>(self: Stream<A, E, R>): Stream<[A, number]
5603
5469
  * // ]
5604
5470
  * ```
5605
5471
  *
5606
- * @category Zipping
5472
+ * @category zipping
5607
5473
  * @since 2.0.0
5608
5474
  */
5609
5475
  export const zipWithNext = <A, E, R>(self: Stream<A, E, R>): Stream<[A, Option.Option<A>], E, R> =>
@@ -5650,7 +5516,7 @@ export const zipWithNext = <A, E, R>(self: Stream<A, E, R>): Stream<[A, Option.O
5650
5516
  * // ]
5651
5517
  * ```
5652
5518
  *
5653
- * @category Zipping
5519
+ * @category zipping
5654
5520
  * @since 2.0.0
5655
5521
  */
5656
5522
  export const zipWithPrevious = <A, E, R>(self: Stream<A, E, R>): Stream<[Option.Option<A>, A], E, R> =>
@@ -5684,7 +5550,7 @@ export const zipWithPrevious = <A, E, R>(self: Stream<A, E, R>): Stream<[Option.
5684
5550
  * // Output: [ [Option.none(), 1, Option.some(2)], [Option.some(1), 2, Option.some(3)], [Option.some(2), 3, Option.none()] ]
5685
5551
  * ```
5686
5552
  *
5687
- * @category Zipping
5553
+ * @category zipping
5688
5554
  * @since 2.0.0
5689
5555
  */
5690
5556
  export const zipWithPreviousAndNext = <A, E, R>(
@@ -5746,8 +5612,8 @@ export const zipWithPreviousAndNext = <A, E, R>(
5746
5612
  * // Output: [ [ 1, "a", true ], [ 2, "a", true ], [ 3, "a", true ], [ 3, "b", true ], [ 3, "c", true ], [ 3, "c", false ], [ 3, "c", true ] ]
5747
5613
  * ```
5748
5614
  *
5749
- * @category Zipping
5750
- * @since 2.0.0
5615
+ * @category zipping
5616
+ * @since 3.3.0
5751
5617
  */
5752
5618
  export const zipLatestAll = <T extends ReadonlyArray<Stream<any, any, any>>>(
5753
5619
  ...streams: T
@@ -5811,7 +5677,7 @@ export const zipLatestAll = <T extends ReadonlyArray<Stream<any, any, any>>>(
5811
5677
  * // Output: [ [1, "a"] ]
5812
5678
  * ```
5813
5679
  *
5814
- * @category Zipping
5680
+ * @category zipping
5815
5681
  * @since 2.0.0
5816
5682
  */
5817
5683
  export const zipLatest: {
@@ -5838,7 +5704,7 @@ export const zipLatest: {
5838
5704
  * // Output: [ [1, "a"] ]
5839
5705
  * ```
5840
5706
  *
5841
- * @category Zipping
5707
+ * @category zipping
5842
5708
  * @since 2.0.0
5843
5709
  */
5844
5710
  <AR, ER, RR>(right: Stream<AR, ER, RR>): <AL, EL, RL>(left: Stream<AL, EL, RL>) => Stream<[AL, AR], EL | ER, RL | RR>
@@ -5865,7 +5731,7 @@ export const zipLatest: {
5865
5731
  * // Output: [ [1, "a"] ]
5866
5732
  * ```
5867
5733
  *
5868
- * @category Zipping
5734
+ * @category zipping
5869
5735
  * @since 2.0.0
5870
5736
  */
5871
5737
  <AL, EL, RL, AR, ER, RR>(left: Stream<AL, EL, RL>, right: Stream<AR, ER, RR>): Stream<[AL, AR], EL | ER, RL | RR>
@@ -5905,7 +5771,7 @@ export const zipLatest: {
5905
5771
  * })
5906
5772
  * ```
5907
5773
  *
5908
- * @category Zipping
5774
+ * @category zipping
5909
5775
  * @since 2.0.0
5910
5776
  */
5911
5777
  export const zipLatestWith: {
@@ -5937,7 +5803,7 @@ export const zipLatestWith: {
5937
5803
  * })
5938
5804
  * ```
5939
5805
  *
5940
- * @category Zipping
5806
+ * @category zipping
5941
5807
  * @since 2.0.0
5942
5808
  */
5943
5809
  <AR, ER, RR, AL, A>(right: Stream<AR, ER, RR>, f: (left: AL, right: AR) => A): <EL, RL>(left: Stream<AL, EL, RL>) => Stream<A, EL | ER, RL | RR>
@@ -5969,7 +5835,7 @@ export const zipLatestWith: {
5969
5835
  * })
5970
5836
  * ```
5971
5837
  *
5972
- * @category Zipping
5838
+ * @category zipping
5973
5839
  * @since 2.0.0
5974
5840
  */
5975
5841
  <AL, EL, RL, AR, ER, RR, A>(
@@ -5995,7 +5861,7 @@ export const zipLatestWith: {
5995
5861
  * winner is chosen, that stream's later failures are propagated.
5996
5862
  *
5997
5863
  * @category Racing
5998
- * @since 3.7.0
5864
+ * @since 3.5.0
5999
5865
  *
6000
5866
  * **Example** (Racing multiple streams)
6001
5867
  *
@@ -6161,7 +6027,7 @@ export const race: {
6161
6027
  * // Output: [ 2, 4 ]
6162
6028
  * ```
6163
6029
  *
6164
- * @category Filtering
6030
+ * @category filtering
6165
6031
  * @since 2.0.0
6166
6032
  */
6167
6033
  export const filter: {
@@ -6185,7 +6051,7 @@ export const filter: {
6185
6051
  * // Output: [ 2, 4 ]
6186
6052
  * ```
6187
6053
  *
6188
- * @category Filtering
6054
+ * @category filtering
6189
6055
  * @since 2.0.0
6190
6056
  */
6191
6057
  <A, B extends A>(refinement: Refinement<NoInfer<A>, B>): <E, R>(self: Stream<A, E, R>) => Stream<B, E, R>
@@ -6209,7 +6075,7 @@ export const filter: {
6209
6075
  * // Output: [ 2, 4 ]
6210
6076
  * ```
6211
6077
  *
6212
- * @category Filtering
6078
+ * @category filtering
6213
6079
  * @since 2.0.0
6214
6080
  */
6215
6081
  <A>(predicate: Predicate<NoInfer<A>>): <E, R>(self: Stream<A, E, R>) => Stream<A, E, R>
@@ -6233,7 +6099,7 @@ export const filter: {
6233
6099
  * // Output: [ 2, 4 ]
6234
6100
  * ```
6235
6101
  *
6236
- * @category Filtering
6102
+ * @category filtering
6237
6103
  * @since 2.0.0
6238
6104
  */
6239
6105
  <A, E, R, B extends A>(self: Stream<A, E, R>, refinement: Refinement<A, B>): Stream<B, E, R>
@@ -6257,7 +6123,7 @@ export const filter: {
6257
6123
  * // Output: [ 2, 4 ]
6258
6124
  * ```
6259
6125
  *
6260
- * @category Filtering
6126
+ * @category filtering
6261
6127
  * @since 2.0.0
6262
6128
  */
6263
6129
  <A, E, R>(self: Stream<A, E, R>, predicate: Predicate<A>): Stream<A, E, R>
@@ -6272,22 +6138,22 @@ export const filter: {
6272
6138
  /**
6273
6139
  * Filters and maps stream elements in one pass using a `Filter`.
6274
6140
  *
6275
- * @category Filtering
6276
- * @since 4.0.0
6141
+ * @category filtering
6142
+ * @since 2.0.0
6277
6143
  */
6278
6144
  export const filterMap: {
6279
6145
  /**
6280
6146
  * Filters and maps stream elements in one pass using a `Filter`.
6281
6147
  *
6282
- * @category Filtering
6283
- * @since 4.0.0
6148
+ * @category filtering
6149
+ * @since 2.0.0
6284
6150
  */
6285
6151
  <A, B, X>(filter: Filter.Filter<NoInfer<A>, B, X>): <E, R>(self: Stream<A, E, R>) => Stream<B, E, R>
6286
6152
  /**
6287
6153
  * Filters and maps stream elements in one pass using a `Filter`.
6288
6154
  *
6289
- * @category Filtering
6290
- * @since 4.0.0
6155
+ * @category filtering
6156
+ * @since 2.0.0
6291
6157
  */
6292
6158
  <A, E, R, B, X>(self: Stream<A, E, R>, filter: Filter.Filter<A, B, X>): Stream<B, E, R>
6293
6159
  } = dual(
@@ -6317,7 +6183,7 @@ export const filterMap: {
6317
6183
  * // Output: [ 3, 4 ]
6318
6184
  * ```
6319
6185
  *
6320
- * @category Filtering
6186
+ * @category filtering
6321
6187
  * @since 2.0.0
6322
6188
  */
6323
6189
  export const filterEffect: {
@@ -6340,7 +6206,7 @@ export const filterEffect: {
6340
6206
  * // Output: [ 3, 4 ]
6341
6207
  * ```
6342
6208
  *
6343
- * @category Filtering
6209
+ * @category filtering
6344
6210
  * @since 2.0.0
6345
6211
  */
6346
6212
  <A, EX, RX>(predicate: (a: NoInfer<A>, i: number) => Effect.Effect<boolean, EX, RX>): <E, R>(self: Stream<A, E, R>) => Stream<A, E | EX, R | RX>
@@ -6363,7 +6229,7 @@ export const filterEffect: {
6363
6229
  * // Output: [ 3, 4 ]
6364
6230
  * ```
6365
6231
  *
6366
- * @category Filtering
6232
+ * @category filtering
6367
6233
  * @since 2.0.0
6368
6234
  */
6369
6235
  <A, E, R, EX, RX>(
@@ -6381,22 +6247,22 @@ export const filterEffect: {
6381
6247
  /**
6382
6248
  * Effectfully filters and maps elements in a single pass.
6383
6249
  *
6384
- * @category Filtering
6385
- * @since 4.0.0
6250
+ * @category filtering
6251
+ * @since 2.0.0
6386
6252
  */
6387
6253
  export const filterMapEffect: {
6388
6254
  /**
6389
6255
  * Effectfully filters and maps elements in a single pass.
6390
6256
  *
6391
- * @category Filtering
6392
- * @since 4.0.0
6257
+ * @category filtering
6258
+ * @since 2.0.0
6393
6259
  */
6394
6260
  <A, B, X, EX, RX>(filter: Filter.FilterEffect<NoInfer<A>, B, X, EX, RX>): <E, R>(self: Stream<A, E, R>) => Stream<B, E | EX, R | RX>
6395
6261
  /**
6396
6262
  * Effectfully filters and maps elements in a single pass.
6397
6263
  *
6398
- * @category Filtering
6399
- * @since 4.0.0
6264
+ * @category filtering
6265
+ * @since 2.0.0
6400
6266
  */
6401
6267
  <A, E, R, B, X, EX, RX>(self: Stream<A, E, R>, filter: Filter.FilterEffect<A, B, X, EX, RX>): Stream<B, E | EX, R | RX>
6402
6268
  } = dual(
@@ -6437,7 +6303,7 @@ export const filterMapEffect: {
6437
6303
  * Effect.runPromise(Effect.scoped(program))
6438
6304
  * ```
6439
6305
  *
6440
- * @category Filtering
6306
+ * @category filtering
6441
6307
  * @since 4.0.0
6442
6308
  */
6443
6309
  export const partitionQueue: {
@@ -6471,7 +6337,7 @@ export const partitionQueue: {
6471
6337
  * Effect.runPromise(Effect.scoped(program))
6472
6338
  * ```
6473
6339
  *
6474
- * @category Filtering
6340
+ * @category filtering
6475
6341
  * @since 4.0.0
6476
6342
  */
6477
6343
  <A, Pass, Fail>(
@@ -6517,7 +6383,7 @@ export const partitionQueue: {
6517
6383
  * Effect.runPromise(Effect.scoped(program))
6518
6384
  * ```
6519
6385
  *
6520
- * @category Filtering
6386
+ * @category filtering
6521
6387
  * @since 4.0.0
6522
6388
  */
6523
6389
  <A, E, R, Pass, Fail>(
@@ -6584,7 +6450,7 @@ export const partitionQueue: {
6584
6450
  * Effect.runPromise(Effect.scoped(program))
6585
6451
  * ```
6586
6452
  *
6587
- * @category Filtering
6453
+ * @category filtering
6588
6454
  * @since 4.0.0
6589
6455
  */
6590
6456
  Pass, /**
@@ -6617,7 +6483,7 @@ export const partitionQueue: {
6617
6483
  * Effect.runPromise(Effect.scoped(program))
6618
6484
  * ```
6619
6485
  *
6620
- * @category Filtering
6486
+ * @category filtering
6621
6487
  * @since 4.0.0
6622
6488
  */
6623
6489
  E | Cause.Done>({ capacity })
@@ -6651,7 +6517,7 @@ export const partitionQueue: {
6651
6517
  * Effect.runPromise(Effect.scoped(program))
6652
6518
  * ```
6653
6519
  *
6654
- * @category Filtering
6520
+ * @category filtering
6655
6521
  * @since 4.0.0
6656
6522
  */
6657
6523
  Fail, /**
@@ -6684,7 +6550,7 @@ export const partitionQueue: {
6684
6550
  * Effect.runPromise(Effect.scoped(program))
6685
6551
  * ```
6686
6552
  *
6687
- * @category Filtering
6553
+ * @category filtering
6688
6554
  * @since 4.0.0
6689
6555
  */
6690
6556
  E | Cause.Done>({ capacity })
@@ -6739,7 +6605,7 @@ export const partitionQueue: {
6739
6605
  * consumed while that scope remains open. The first stream emits success values
6740
6606
  * from the filter, and the second emits failure values.
6741
6607
  *
6742
- * @category Filtering
6608
+ * @category filtering
6743
6609
  * @since 4.0.0
6744
6610
  */
6745
6611
  export const partitionEffect: {
@@ -6751,7 +6617,7 @@ export const partitionEffect: {
6751
6617
  * consumed while that scope remains open. The first stream emits success values
6752
6618
  * from the filter, and the second emits failure values.
6753
6619
  *
6754
- * @category Filtering
6620
+ * @category filtering
6755
6621
  * @since 4.0.0
6756
6622
  */
6757
6623
  <A, Pass, Fail, EX, RX>(
@@ -6776,7 +6642,7 @@ export const partitionEffect: {
6776
6642
  * consumed while that scope remains open. The first stream emits success values
6777
6643
  * from the filter, and the second emits failure values.
6778
6644
  *
6779
- * @category Filtering
6645
+ * @category filtering
6780
6646
  * @since 4.0.0
6781
6647
  */
6782
6648
  <A, E, R, Pass, Fail, EX, RX>(
@@ -6820,7 +6686,7 @@ export const partitionEffect: {
6820
6686
  * consumed while that scope remains open. The first stream emits success values
6821
6687
  * from the filter, and the second emits failure values.
6822
6688
  *
6823
- * @category Filtering
6689
+ * @category filtering
6824
6690
  * @since 4.0.0
6825
6691
  */
6826
6692
  Result.Result<Pass, Fail>, /**
@@ -6831,7 +6697,7 @@ export const partitionEffect: {
6831
6697
  * consumed while that scope remains open. The first stream emits success values
6832
6698
  * from the filter, and the second emits failure values.
6833
6699
  *
6834
- * @category Filtering
6700
+ * @category filtering
6835
6701
  * @since 4.0.0
6836
6702
  */
6837
6703
  E | EX, /**
@@ -6842,7 +6708,7 @@ export const partitionEffect: {
6842
6708
  * consumed while that scope remains open. The first stream emits success values
6843
6709
  * from the filter, and the second emits failure values.
6844
6710
  *
6845
- * @category Filtering
6711
+ * @category filtering
6846
6712
  * @since 4.0.0
6847
6713
  */
6848
6714
  R | RX, /**
@@ -6853,7 +6719,7 @@ export const partitionEffect: {
6853
6719
  * consumed while that scope remains open. The first stream emits success values
6854
6720
  * from the filter, and the second emits failure values.
6855
6721
  *
6856
- * @category Filtering
6722
+ * @category filtering
6857
6723
  * @since 4.0.0
6858
6724
  */
6859
6725
  Pass, /**
@@ -6864,7 +6730,7 @@ export const partitionEffect: {
6864
6730
  * consumed while that scope remains open. The first stream emits success values
6865
6731
  * from the filter, and the second emits failure values.
6866
6732
  *
6867
- * @category Filtering
6733
+ * @category filtering
6868
6734
  * @since 4.0.0
6869
6735
  */
6870
6736
  Fail>(
@@ -6884,8 +6750,8 @@ export const partitionEffect: {
6884
6750
  * consumed while that scope remains open. The faster stream may advance up to
6885
6751
  * `bufferSize` elements ahead of the slower one.
6886
6752
  *
6887
- * @category Filtering
6888
- * @since 4.0.0
6753
+ * @category filtering
6754
+ * @since 2.0.0
6889
6755
  *
6890
6756
  * **Example** (Partitioning a stream)
6891
6757
  *
@@ -6915,8 +6781,8 @@ export const partition: {
6915
6781
  * consumed while that scope remains open. The faster stream may advance up to
6916
6782
  * `bufferSize` elements ahead of the slower one.
6917
6783
  *
6918
- * @category Filtering
6919
- * @since 4.0.0
6784
+ * @category filtering
6785
+ * @since 2.0.0
6920
6786
  *
6921
6787
  * **Example** (Partitioning a stream)
6922
6788
  *
@@ -6955,8 +6821,8 @@ export const partition: {
6955
6821
  * consumed while that scope remains open. The faster stream may advance up to
6956
6822
  * `bufferSize` elements ahead of the slower one.
6957
6823
  *
6958
- * @category Filtering
6959
- * @since 4.0.0
6824
+ * @category filtering
6825
+ * @since 2.0.0
6960
6826
  *
6961
6827
  * **Example** (Partitioning a stream)
6962
6828
  *
@@ -7023,7 +6889,7 @@ export const partition: {
7023
6889
  * // Output: []
7024
6890
  * ```
7025
6891
  *
7026
- * @category Filtering
6892
+ * @category filtering
7027
6893
  * @since 2.0.0
7028
6894
  */
7029
6895
  export const when: {
@@ -7047,7 +6913,7 @@ export const when: {
7047
6913
  * // Output: []
7048
6914
  * ```
7049
6915
  *
7050
- * @category Filtering
6916
+ * @category filtering
7051
6917
  * @since 2.0.0
7052
6918
  */
7053
6919
  <EX = never, RX = never>(test: Effect.Effect<boolean, EX, RX>): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E | EX, R | RX>
@@ -7071,7 +6937,7 @@ export const when: {
7071
6937
  * // Output: []
7072
6938
  * ```
7073
6939
  *
7074
- * @category Filtering
6940
+ * @category filtering
7075
6941
  * @since 2.0.0
7076
6942
  */
7077
6943
  <A, E, R, EX = never, RX = never>(self: Stream<A, E, R>, test: Effect.Effect<boolean, EX, RX>): Stream<A, E | EX, R | RX>
@@ -7110,7 +6976,7 @@ export const when: {
7110
6976
  * // Output: [ [1, 2, 3], [4, 5, 6] ]
7111
6977
  * ```
7112
6978
  *
7113
- * @category Destructors
6979
+ * @category destructors
7114
6980
  * @since 2.0.0
7115
6981
  */
7116
6982
  export const peel: {
@@ -7140,7 +7006,7 @@ export const peel: {
7140
7006
  * // Output: [ [1, 2, 3], [4, 5, 6] ]
7141
7007
  * ```
7142
7008
  *
7143
- * @category Destructors
7009
+ * @category destructors
7144
7010
  * @since 2.0.0
7145
7011
  */
7146
7012
  <A2, A, E2, R2>(sink: Sink.Sink<A2, A, A, E2, R2>): <E, R>(self: Stream<A, E, R>) => Effect.Effect<[A2, Stream<A, E, never>], E2 | E, Scope.Scope | R2 | R>
@@ -7170,7 +7036,7 @@ export const peel: {
7170
7036
  * // Output: [ [1, 2, 3], [4, 5, 6] ]
7171
7037
  * ```
7172
7038
  *
7173
- * @category Destructors
7039
+ * @category destructors
7174
7040
  * @since 2.0.0
7175
7041
  */
7176
7042
  <A, E, R, A2, E2, R2>(self: Stream<A, E, R>, sink: Sink.Sink<A2, A, A, E2, R2>): Effect.Effect<[A2, Stream<A, E, never>], E | E2, Scope.Scope | R | R2>
@@ -7317,12 +7183,6 @@ export const buffer: {
7317
7183
  * buffer is full. This combinator preserves chunking and is best with
7318
7184
  * power-of-2 capacities.
7319
7185
  *
7320
- * **Previously Known As**
7321
- *
7322
- * This API replaces the following from Effect 3.x:
7323
- *
7324
- * - `Stream.bufferChunks`
7325
- *
7326
7186
  * **Example** (Buffering stream chunks)
7327
7187
  *
7328
7188
  * ```ts
@@ -7340,7 +7200,7 @@ export const buffer: {
7340
7200
  * ```
7341
7201
  *
7342
7202
  * @category Rate Limiting
7343
- * @since 2.0.0
7203
+ * @since 4.0.0
7344
7204
  */
7345
7205
  export const bufferArray: {
7346
7206
  /**
@@ -7352,12 +7212,6 @@ export const bufferArray: {
7352
7212
  * buffer is full. This combinator preserves chunking and is best with
7353
7213
  * power-of-2 capacities.
7354
7214
  *
7355
- * **Previously Known As**
7356
- *
7357
- * This API replaces the following from Effect 3.x:
7358
- *
7359
- * - `Stream.bufferChunks`
7360
- *
7361
7215
  * **Example** (Buffering stream chunks)
7362
7216
  *
7363
7217
  * ```ts
@@ -7375,7 +7229,7 @@ export const bufferArray: {
7375
7229
  * ```
7376
7230
  *
7377
7231
  * @category Rate Limiting
7378
- * @since 2.0.0
7232
+ * @since 4.0.0
7379
7233
  */
7380
7234
  (
7381
7235
  options: { readonly capacity: "unbounded" } | {
@@ -7392,12 +7246,6 @@ export const bufferArray: {
7392
7246
  * buffer is full. This combinator preserves chunking and is best with
7393
7247
  * power-of-2 capacities.
7394
7248
  *
7395
- * **Previously Known As**
7396
- *
7397
- * This API replaces the following from Effect 3.x:
7398
- *
7399
- * - `Stream.bufferChunks`
7400
- *
7401
7249
  * **Example** (Buffering stream chunks)
7402
7250
  *
7403
7251
  * ```ts
@@ -7415,7 +7263,7 @@ export const bufferArray: {
7415
7263
  * ```
7416
7264
  *
7417
7265
  * @category Rate Limiting
7418
- * @since 2.0.0
7266
+ * @since 4.0.0
7419
7267
  */
7420
7268
  <A, E, R>(
7421
7269
  self: Stream<A, E, R>,
@@ -7437,12 +7285,6 @@ export const bufferArray: {
7437
7285
  * one fails. Allows recovery from all causes of failure, including
7438
7286
  * interruption if the stream is uninterruptible.
7439
7287
  *
7440
- * **Previously Known As**
7441
- *
7442
- * This API replaces the following from Effect 3.x:
7443
- *
7444
- * - `Stream.catchAllCause`
7445
- *
7446
7288
  * **Example** (Catching stream causes)
7447
7289
  *
7448
7290
  * ```ts
@@ -7466,8 +7308,8 @@ export const bufferArray: {
7466
7308
  * // Output: [ 1, 2, 999 ]
7467
7309
  * ```
7468
7310
  *
7469
- * @category Error Handling
7470
- * @since 4.0.0
7311
+ * @category error handling
7312
+ * @since 2.0.0
7471
7313
  */
7472
7314
  export const catchCause: {
7473
7315
  /**
@@ -7475,12 +7317,6 @@ export const catchCause: {
7475
7317
  * one fails. Allows recovery from all causes of failure, including
7476
7318
  * interruption if the stream is uninterruptible.
7477
7319
  *
7478
- * **Previously Known As**
7479
- *
7480
- * This API replaces the following from Effect 3.x:
7481
- *
7482
- * - `Stream.catchAllCause`
7483
- *
7484
7320
  * **Example** (Catching stream causes)
7485
7321
  *
7486
7322
  * ```ts
@@ -7504,8 +7340,8 @@ export const catchCause: {
7504
7340
  * // Output: [ 1, 2, 999 ]
7505
7341
  * ```
7506
7342
  *
7507
- * @category Error Handling
7508
- * @since 4.0.0
7343
+ * @category error handling
7344
+ * @since 2.0.0
7509
7345
  */
7510
7346
  <E, A2, E2, R2>(f: (cause: Cause.Cause<E>) => Stream<A2, E2, R2>): <A, R>(self: Stream<A, E, R>) => Stream<A | A2, E2, R2 | R>
7511
7347
  /**
@@ -7513,12 +7349,6 @@ export const catchCause: {
7513
7349
  * one fails. Allows recovery from all causes of failure, including
7514
7350
  * interruption if the stream is uninterruptible.
7515
7351
  *
7516
- * **Previously Known As**
7517
- *
7518
- * This API replaces the following from Effect 3.x:
7519
- *
7520
- * - `Stream.catchAllCause`
7521
- *
7522
7352
  * **Example** (Catching stream causes)
7523
7353
  *
7524
7354
  * ```ts
@@ -7542,8 +7372,8 @@ export const catchCause: {
7542
7372
  * // Output: [ 1, 2, 999 ]
7543
7373
  * ```
7544
7374
  *
7545
- * @category Error Handling
7546
- * @since 4.0.0
7375
+ * @category error handling
7376
+ * @since 2.0.0
7547
7377
  */
7548
7378
  <A, E, R, A2, E2, R2>(self: Stream<A, E, R>, f: (cause: Cause.Cause<E>) => Stream<A2, E2, R2>): Stream<A | A2, E2, R | R2>
7549
7379
  } = dual(2, <A, E, R, A2, E2, R2>(
@@ -7559,12 +7389,6 @@ export const catchCause: {
7559
7389
  * Runs an effect when the stream fails without changing its values or error,
7560
7390
  * unless the tap effect itself fails.
7561
7391
  *
7562
- * **Previously Known As**
7563
- *
7564
- * This API replaces the following from Effect 3.x:
7565
- *
7566
- * - `Stream.tapErrorCause`
7567
- *
7568
7392
  * **Example** (Tapping stream causes)
7569
7393
  *
7570
7394
  * ```ts
@@ -7586,20 +7410,14 @@ export const catchCause: {
7586
7410
  * // Output: [ 1, 2, 0 ]
7587
7411
  * ```
7588
7412
  *
7589
- * @category Error Handling
7590
- * @since 4.0.0
7413
+ * @category error handling
7414
+ * @since 2.0.0
7591
7415
  */
7592
7416
  export const tapCause: {
7593
7417
  /**
7594
7418
  * Runs an effect when the stream fails without changing its values or error,
7595
7419
  * unless the tap effect itself fails.
7596
7420
  *
7597
- * **Previously Known As**
7598
- *
7599
- * This API replaces the following from Effect 3.x:
7600
- *
7601
- * - `Stream.tapErrorCause`
7602
- *
7603
7421
  * **Example** (Tapping stream causes)
7604
7422
  *
7605
7423
  * ```ts
@@ -7621,20 +7439,14 @@ export const tapCause: {
7621
7439
  * // Output: [ 1, 2, 0 ]
7622
7440
  * ```
7623
7441
  *
7624
- * @category Error Handling
7625
- * @since 4.0.0
7442
+ * @category error handling
7443
+ * @since 2.0.0
7626
7444
  */
7627
7445
  <E, A2, E2, R2>(f: (cause: Cause.Cause<E>) => Effect.Effect<A2, E2, R2>): <A, R>(self: Stream<A, E, R>) => Stream<A, E | E2, R2 | R>
7628
7446
  /**
7629
7447
  * Runs an effect when the stream fails without changing its values or error,
7630
7448
  * unless the tap effect itself fails.
7631
7449
  *
7632
- * **Previously Known As**
7633
- *
7634
- * This API replaces the following from Effect 3.x:
7635
- *
7636
- * - `Stream.tapErrorCause`
7637
- *
7638
7450
  * **Example** (Tapping stream causes)
7639
7451
  *
7640
7452
  * ```ts
@@ -7656,8 +7468,8 @@ export const tapCause: {
7656
7468
  * // Output: [ 1, 2, 0 ]
7657
7469
  * ```
7658
7470
  *
7659
- * @category Error Handling
7660
- * @since 4.0.0
7471
+ * @category error handling
7472
+ * @since 2.0.0
7661
7473
  */
7662
7474
  <A, E, R, A2, E2, R2>(
7663
7475
  self: Stream<A, E, R>,
@@ -7689,12 +7501,6 @@ export {
7689
7501
  /**
7690
7502
  * Switches over to the stream produced by the provided function if this one fails.
7691
7503
  *
7692
- * **Previously Known As**
7693
- *
7694
- * This API replaces the following from Effect 3.x:
7695
- *
7696
- * - `Stream.catchAll`
7697
- *
7698
7504
  * **Example** (Catching stream failures)
7699
7505
  *
7700
7506
  * ```ts
@@ -7714,7 +7520,7 @@ export {
7714
7520
  * // Output: [ 1, 2, 999 ]
7715
7521
  * ```
7716
7522
  *
7717
- * @category Error Handling
7523
+ * @category error handling
7718
7524
  * @since 4.0.0
7719
7525
  */
7720
7526
  catch_ as catch
@@ -7745,8 +7551,8 @@ export {
7745
7551
  * // [ 1, 2, 999 ]
7746
7552
  * ```
7747
7553
  *
7748
- * @category Error Handling
7749
- * @since 4.0.0
7554
+ * @category error handling
7555
+ * @since 2.0.0
7750
7556
  */
7751
7557
  export const tapError: {
7752
7558
  /**
@@ -7774,8 +7580,8 @@ export const tapError: {
7774
7580
  * // [ 1, 2, 999 ]
7775
7581
  * ```
7776
7582
  *
7777
- * @category Error Handling
7778
- * @since 4.0.0
7583
+ * @category error handling
7584
+ * @since 2.0.0
7779
7585
  */
7780
7586
  <E, A2, E2, R2>(f: (error: E) => Effect.Effect<A2, E2, R2>): <A, R>(self: Stream<A, E, R>) => Stream<A, E | E2, R2 | R>
7781
7587
  /**
@@ -7803,8 +7609,8 @@ export const tapError: {
7803
7609
  * // [ 1, 2, 999 ]
7804
7610
  * ```
7805
7611
  *
7806
- * @category Error Handling
7807
- * @since 4.0.0
7612
+ * @category error handling
7613
+ * @since 2.0.0
7808
7614
  */
7809
7615
  <A, E, R, A2, E2, R2>(self: Stream<A, E, R>, f: (error: E) => Effect.Effect<A2, E2, R2>): Stream<A, E | E2, R | R2>
7810
7616
  } = dual(2, <A, E, R, A2, E2, R2>(
@@ -7823,12 +7629,6 @@ export const tapError: {
7823
7629
  * stream. Non-matching failures propagate downstream, so the error type is
7824
7630
  * preserved unless the filter narrows it.
7825
7631
  *
7826
- * **Previously Known As**
7827
- *
7828
- * This API replaces the following from Effect 3.x:
7829
- *
7830
- * - `Stream.catchSome`
7831
- *
7832
7632
  * **Example** (Catching matching failures)
7833
7633
  *
7834
7634
  * ```ts
@@ -7851,7 +7651,7 @@ export const tapError: {
7851
7651
  * Effect.runPromise(program)
7852
7652
  * ```
7853
7653
  *
7854
- * @category Error Handling
7654
+ * @category error handling
7855
7655
  * @since 4.0.0
7856
7656
  */
7857
7657
  export const catchIf: {
@@ -7862,12 +7662,6 @@ export const catchIf: {
7862
7662
  * stream. Non-matching failures propagate downstream, so the error type is
7863
7663
  * preserved unless the filter narrows it.
7864
7664
  *
7865
- * **Previously Known As**
7866
- *
7867
- * This API replaces the following from Effect 3.x:
7868
- *
7869
- * - `Stream.catchSome`
7870
- *
7871
7665
  * **Example** (Catching matching failures)
7872
7666
  *
7873
7667
  * ```ts
@@ -7890,7 +7684,7 @@ export const catchIf: {
7890
7684
  * Effect.runPromise(program)
7891
7685
  * ```
7892
7686
  *
7893
- * @category Error Handling
7687
+ * @category error handling
7894
7688
  * @since 4.0.0
7895
7689
  */
7896
7690
  <E, EB extends E, A2, E2, R2, A3 = never, E3 = Exclude<E, EB>, R3 = never>(
@@ -7905,12 +7699,6 @@ export const catchIf: {
7905
7699
  * stream. Non-matching failures propagate downstream, so the error type is
7906
7700
  * preserved unless the filter narrows it.
7907
7701
  *
7908
- * **Previously Known As**
7909
- *
7910
- * This API replaces the following from Effect 3.x:
7911
- *
7912
- * - `Stream.catchSome`
7913
- *
7914
7702
  * **Example** (Catching matching failures)
7915
7703
  *
7916
7704
  * ```ts
@@ -7933,7 +7721,7 @@ export const catchIf: {
7933
7721
  * Effect.runPromise(program)
7934
7722
  * ```
7935
7723
  *
7936
- * @category Error Handling
7724
+ * @category error handling
7937
7725
  * @since 4.0.0
7938
7726
  */
7939
7727
  <E, A2, E2, R2, A3 = never, E3 = E, R3 = never>(
@@ -7948,12 +7736,6 @@ export const catchIf: {
7948
7736
  * stream. Non-matching failures propagate downstream, so the error type is
7949
7737
  * preserved unless the filter narrows it.
7950
7738
  *
7951
- * **Previously Known As**
7952
- *
7953
- * This API replaces the following from Effect 3.x:
7954
- *
7955
- * - `Stream.catchSome`
7956
- *
7957
7739
  * **Example** (Catching matching failures)
7958
7740
  *
7959
7741
  * ```ts
@@ -7976,7 +7758,7 @@ export const catchIf: {
7976
7758
  * Effect.runPromise(program)
7977
7759
  * ```
7978
7760
  *
7979
- * @category Error Handling
7761
+ * @category error handling
7980
7762
  * @since 4.0.0
7981
7763
  */
7982
7764
  <A, E, R, EB extends E, A2, E2, R2, A3 = never, E3 = Exclude<E, EB>, R3 = never>(
@@ -7992,12 +7774,6 @@ export const catchIf: {
7992
7774
  * stream. Non-matching failures propagate downstream, so the error type is
7993
7775
  * preserved unless the filter narrows it.
7994
7776
  *
7995
- * **Previously Known As**
7996
- *
7997
- * This API replaces the following from Effect 3.x:
7998
- *
7999
- * - `Stream.catchSome`
8000
- *
8001
7777
  * **Example** (Catching matching failures)
8002
7778
  *
8003
7779
  * ```ts
@@ -8020,7 +7796,7 @@ export const catchIf: {
8020
7796
  * Effect.runPromise(program)
8021
7797
  * ```
8022
7798
  *
8023
- * @category Error Handling
7799
+ * @category error handling
8024
7800
  * @since 4.0.0
8025
7801
  */
8026
7802
  <A, E, R, A2, E2, R2, A3 = never, E3 = E, R3 = never>(
@@ -8058,7 +7834,7 @@ export const catchIf: {
8058
7834
  * Recovers from errors that match a `Filter` by switching to a recovery
8059
7835
  * stream.
8060
7836
  *
8061
- * @category Error Handling
7837
+ * @category error handling
8062
7838
  * @since 4.0.0
8063
7839
  */
8064
7840
  export const catchFilter: {
@@ -8066,7 +7842,7 @@ export const catchFilter: {
8066
7842
  * Recovers from errors that match a `Filter` by switching to a recovery
8067
7843
  * stream.
8068
7844
  *
8069
- * @category Error Handling
7845
+ * @category error handling
8070
7846
  * @since 4.0.0
8071
7847
  */
8072
7848
  <E, EB, A2, E2, R2, X, A3 = never, E3 = X, R3 = never>(
@@ -8078,7 +7854,7 @@ export const catchFilter: {
8078
7854
  * Recovers from errors that match a `Filter` by switching to a recovery
8079
7855
  * stream.
8080
7856
  *
8081
- * @category Error Handling
7857
+ * @category error handling
8082
7858
  * @since 4.0.0
8083
7859
  */
8084
7860
  <A, E, R, EB, A2, E2, R2, X, A3 = never, E3 = X, R3 = never>(
@@ -8145,8 +7921,8 @@ export const catchFilter: {
8145
7921
  * Effect.runPromise(program)
8146
7922
  * ```
8147
7923
  *
8148
- * @category Error Handling
8149
- * @since 4.0.0
7924
+ * @category error handling
7925
+ * @since 2.0.0
8150
7926
  */
8151
7927
  export const catchTag: {
8152
7928
  /**
@@ -8180,8 +7956,8 @@ export const catchTag: {
8180
7956
  * Effect.runPromise(program)
8181
7957
  * ```
8182
7958
  *
8183
- * @category Error Handling
8184
- * @since 4.0.0
7959
+ * @category error handling
7960
+ * @since 2.0.0
8185
7961
  */
8186
7962
  <
8187
7963
  const K extends Tags<E> | Arr.NonEmptyReadonlyArray<Tags<E>>,
@@ -8234,8 +8010,8 @@ export const catchTag: {
8234
8010
  * Effect.runPromise(program)
8235
8011
  * ```
8236
8012
  *
8237
- * @category Error Handling
8238
- * @since 4.0.0
8013
+ * @category error handling
8014
+ * @since 2.0.0
8239
8015
  */
8240
8016
  <
8241
8017
  A,
@@ -8318,8 +8094,8 @@ export const catchTag: {
8318
8094
  * // Output: [ "fallback" ]
8319
8095
  * ```
8320
8096
  *
8321
- * @category Error Handling
8322
- * @since 4.0.0
8097
+ * @category error handling
8098
+ * @since 2.0.0
8323
8099
  */
8324
8100
  export const catchTags: {
8325
8101
  /**
@@ -8356,8 +8132,8 @@ export const catchTags: {
8356
8132
  * // Output: [ "fallback" ]
8357
8133
  * ```
8358
8134
  *
8359
- * @category Error Handling
8360
- * @since 4.0.0
8135
+ * @category error handling
8136
+ * @since 2.0.0
8361
8137
  */
8362
8138
  <
8363
8139
  E,
@@ -8421,8 +8197,8 @@ export const catchTags: {
8421
8197
  * // Output: [ "fallback" ]
8422
8198
  * ```
8423
8199
  *
8424
- * @category Error Handling
8425
- * @since 4.0.0
8200
+ * @category error handling
8201
+ * @since 2.0.0
8426
8202
  */
8427
8203
  <
8428
8204
  R,
@@ -8511,7 +8287,7 @@ export const catchTags: {
8511
8287
  * // Output: [ "retry: 60" ]
8512
8288
  * ```
8513
8289
  *
8514
- * @category Error Handling
8290
+ * @category error handling
8515
8291
  * @since 4.0.0
8516
8292
  */
8517
8293
  export const catchReason: {
@@ -8556,7 +8332,7 @@ export const catchReason: {
8556
8332
  * // Output: [ "retry: 60" ]
8557
8333
  * ```
8558
8334
  *
8559
- * @category Error Handling
8335
+ * @category error handling
8560
8336
  * @since 4.0.0
8561
8337
  */
8562
8338
  <
@@ -8626,7 +8402,7 @@ export const catchReason: {
8626
8402
  * // Output: [ "retry: 60" ]
8627
8403
  * ```
8628
8404
  *
8629
- * @category Error Handling
8405
+ * @category error handling
8630
8406
  * @since 4.0.0
8631
8407
  */
8632
8408
  <
@@ -8723,7 +8499,7 @@ export const catchReason: {
8723
8499
  * // Output: [ "retry: 60" ]
8724
8500
  * ```
8725
8501
  *
8726
- * @category Error Handling
8502
+ * @category error handling
8727
8503
  * @since 4.0.0
8728
8504
  */
8729
8505
  export const catchReasons: {
@@ -8766,7 +8542,7 @@ export const catchReasons: {
8766
8542
  * // Output: [ "retry: 60" ]
8767
8543
  * ```
8768
8544
  *
8769
- * @category Error Handling
8545
+ * @category error handling
8770
8546
  * @since 4.0.0
8771
8547
  */
8772
8548
  <
@@ -8846,7 +8622,7 @@ export const catchReasons: {
8846
8622
  * // Output: [ "retry: 60" ]
8847
8623
  * ```
8848
8624
  *
8849
- * @category Error Handling
8625
+ * @category error handling
8850
8626
  * @since 4.0.0
8851
8627
  */
8852
8628
  <
@@ -8931,7 +8707,7 @@ export const catchReasons: {
8931
8707
  * // Output: [ "recovered from mapped: bad" ]
8932
8708
  * ```
8933
8709
  *
8934
- * @category Error Handling
8710
+ * @category error handling
8935
8711
  * @since 2.0.0
8936
8712
  */
8937
8713
  export const mapError: {
@@ -8956,7 +8732,7 @@ export const mapError: {
8956
8732
  * // Output: [ "recovered from mapped: bad" ]
8957
8733
  * ```
8958
8734
  *
8959
- * @category Error Handling
8735
+ * @category error handling
8960
8736
  * @since 2.0.0
8961
8737
  */
8962
8738
  <E, E2>(f: (error: E) => E2): <A, R>(self: Stream<A, E, R>) => Stream<A, E2, R>
@@ -8981,7 +8757,7 @@ export const mapError: {
8981
8757
  * // Output: [ "recovered from mapped: bad" ]
8982
8758
  * ```
8983
8759
  *
8984
- * @category Error Handling
8760
+ * @category error handling
8985
8761
  * @since 2.0.0
8986
8762
  */
8987
8763
  <A, E, R, E2>(self: Stream<A, E, R>, f: (error: E) => E2): Stream<A, E2, R>
@@ -8994,12 +8770,6 @@ export const mapError: {
8994
8770
  * Recovers from stream failures by filtering the `Cause` and switching to a recovery stream.
8995
8771
  * Non-matching causes are re-emitted as failures.
8996
8772
  *
8997
- * **Previously Known As**
8998
- *
8999
- * This API replaces the following from Effect 3.x:
9000
- *
9001
- * - `Stream.catchSomeCause`
9002
- *
9003
8773
  * **Example** (Catching matching causes)
9004
8774
  *
9005
8775
  * ```ts
@@ -9021,7 +8791,7 @@ export const mapError: {
9021
8791
  * // Output: [ "Recovered: NetworkError" ]
9022
8792
  * ```
9023
8793
  *
9024
- * @category Error Handling
8794
+ * @category error handling
9025
8795
  * @since 4.0.0
9026
8796
  */
9027
8797
  export const catchCauseIf: {
@@ -9029,12 +8799,6 @@ export const catchCauseIf: {
9029
8799
  * Recovers from stream failures by filtering the `Cause` and switching to a recovery stream.
9030
8800
  * Non-matching causes are re-emitted as failures.
9031
8801
  *
9032
- * **Previously Known As**
9033
- *
9034
- * This API replaces the following from Effect 3.x:
9035
- *
9036
- * - `Stream.catchSomeCause`
9037
- *
9038
8802
  * **Example** (Catching matching causes)
9039
8803
  *
9040
8804
  * ```ts
@@ -9056,7 +8820,7 @@ export const catchCauseIf: {
9056
8820
  * // Output: [ "Recovered: NetworkError" ]
9057
8821
  * ```
9058
8822
  *
9059
- * @category Error Handling
8823
+ * @category error handling
9060
8824
  * @since 4.0.0
9061
8825
  */
9062
8826
  <E, A2, E2, R2>(
@@ -9069,12 +8833,6 @@ export const catchCauseIf: {
9069
8833
  * Recovers from stream failures by filtering the `Cause` and switching to a recovery stream.
9070
8834
  * Non-matching causes are re-emitted as failures.
9071
8835
  *
9072
- * **Previously Known As**
9073
- *
9074
- * This API replaces the following from Effect 3.x:
9075
- *
9076
- * - `Stream.catchSomeCause`
9077
- *
9078
8836
  * **Example** (Catching matching causes)
9079
8837
  *
9080
8838
  * ```ts
@@ -9096,7 +8854,7 @@ export const catchCauseIf: {
9096
8854
  * // Output: [ "Recovered: NetworkError" ]
9097
8855
  * ```
9098
8856
  *
9099
- * @category Error Handling
8857
+ * @category error handling
9100
8858
  * @since 4.0.0
9101
8859
  */
9102
8860
  <A, E, R, A2, E2, R2>(
@@ -9121,7 +8879,7 @@ export const catchCauseIf: {
9121
8879
  * Recovers from stream failures by filtering the `Cause` and switching to a
9122
8880
  * recovery stream.
9123
8881
  *
9124
- * @category Error Handling
8882
+ * @category error handling
9125
8883
  * @since 4.0.0
9126
8884
  */
9127
8885
  export const catchCauseFilter: {
@@ -9129,7 +8887,7 @@ export const catchCauseFilter: {
9129
8887
  * Recovers from stream failures by filtering the `Cause` and switching to a
9130
8888
  * recovery stream.
9131
8889
  *
9132
- * @category Error Handling
8890
+ * @category error handling
9133
8891
  * @since 4.0.0
9134
8892
  */
9135
8893
  <E, EB, A2, E2, R2, X extends Cause.Cause<any>>(
@@ -9142,7 +8900,7 @@ export const catchCauseFilter: {
9142
8900
  * Recovers from stream failures by filtering the `Cause` and switching to a
9143
8901
  * recovery stream.
9144
8902
  *
9145
- * @category Error Handling
8903
+ * @category error handling
9146
8904
  * @since 4.0.0
9147
8905
  */
9148
8906
  <A, E, R, EB, A2, E2, R2, X extends Cause.Cause<any>>(
@@ -9183,7 +8941,7 @@ export const catchCauseFilter: {
9183
8941
  * // Output: [ 1, 2 ]
9184
8942
  * ```
9185
8943
  *
9186
- * @category Error Handling
8944
+ * @category error handling
9187
8945
  * @since 2.0.0
9188
8946
  */
9189
8947
  export const orElseIfEmpty: {
@@ -9207,7 +8965,7 @@ export const orElseIfEmpty: {
9207
8965
  * // Output: [ 1, 2 ]
9208
8966
  * ```
9209
8967
  *
9210
- * @category Error Handling
8968
+ * @category error handling
9211
8969
  * @since 2.0.0
9212
8970
  */
9213
8971
  <E, A2, E2, R2>(orElse: LazyArg<Stream<A2, E2, R2>>): <A, R>(self: Stream<A, E, R>) => Stream<A | A2, E | E2, R | R2>
@@ -9231,7 +8989,7 @@ export const orElseIfEmpty: {
9231
8989
  * // Output: [ 1, 2 ]
9232
8990
  * ```
9233
8991
  *
9234
- * @category Error Handling
8992
+ * @category error handling
9235
8993
  * @since 2.0.0
9236
8994
  */
9237
8995
  <A, E, R, A2, E2, R2>(self: Stream<A, E, R>, orElse: LazyArg<Stream<A2, E2, R2>>): Stream<A | A2, E | E2, R | R2>
@@ -9265,7 +9023,7 @@ export const orElseIfEmpty: {
9265
9023
  * // Output: [ "Recovered: NetworkError" ]
9266
9024
  * ```
9267
9025
  *
9268
- * @category Error Handling
9026
+ * @category error handling
9269
9027
  * @since 2.0.0
9270
9028
  */
9271
9029
  export const orElseSucceed: {
@@ -9290,7 +9048,7 @@ export const orElseSucceed: {
9290
9048
  * // Output: [ "Recovered: NetworkError" ]
9291
9049
  * ```
9292
9050
  *
9293
- * @category Error Handling
9051
+ * @category error handling
9294
9052
  * @since 2.0.0
9295
9053
  */
9296
9054
  <E, A2>(f: (error: E) => A2): <A, R>(self: Stream<A, E, R>) => Stream<A | A2, never, R>
@@ -9315,7 +9073,7 @@ export const orElseSucceed: {
9315
9073
  * // Output: [ "Recovered: NetworkError" ]
9316
9074
  * ```
9317
9075
  *
9318
- * @category Error Handling
9076
+ * @category error handling
9319
9077
  * @since 2.0.0
9320
9078
  */
9321
9079
  <A, E, R, A2>(self: Stream<A, E, R>, f: (error: E) => A2): Stream<A | A2, never, R>
@@ -9345,7 +9103,7 @@ export const orElseSucceed: {
9345
9103
  * // Output: [ 1, 2, 3 ]
9346
9104
  * ```
9347
9105
  *
9348
- * @category Error Handling
9106
+ * @category error handling
9349
9107
  * @since 2.0.0
9350
9108
  */
9351
9109
  export const orDie = <A, E, R>(self: Stream<A, E, R>): Stream<A, never, R> => fromChannel(Channel.orDie(self.channel))
@@ -9389,7 +9147,7 @@ export const orDie = <A, E, R>(self: Stream<A, E, R>): Stream<A, never, R> => fr
9389
9147
  * // []
9390
9148
  * ```
9391
9149
  *
9392
- * @category Error Handling
9150
+ * @category error handling
9393
9151
  * @since 4.0.0
9394
9152
  */
9395
9153
  export const ignore: <
@@ -9434,7 +9192,7 @@ export const ignore: <
9434
9192
  * // [ 1, 2 ]
9435
9193
  * ```
9436
9194
  *
9437
- * @category Error Handling
9195
+ * @category error handling
9438
9196
  * @since 4.0.0
9439
9197
  */
9440
9198
  export const ignoreCause: <
@@ -9484,7 +9242,7 @@ export const ignoreCause: <
9484
9242
  * // Output: [ 1, 1 ]
9485
9243
  * ```
9486
9244
  *
9487
- * @category Error Handling
9245
+ * @category error handling
9488
9246
  * @since 2.0.0
9489
9247
  */
9490
9248
  export const retry: {
@@ -9517,7 +9275,7 @@ export const retry: {
9517
9275
  * // Output: [ 1, 1 ]
9518
9276
  * ```
9519
9277
  *
9520
- * @category Error Handling
9278
+ * @category error handling
9521
9279
  * @since 2.0.0
9522
9280
  */
9523
9281
  <E, X, E2, R2>(
@@ -9556,7 +9314,7 @@ export const retry: {
9556
9314
  * // Output: [ 1, 1 ]
9557
9315
  * ```
9558
9316
  *
9559
- * @category Error Handling
9317
+ * @category error handling
9560
9318
  * @since 2.0.0
9561
9319
  */
9562
9320
  <A, E, R, X, E2, R2>(
@@ -9590,7 +9348,7 @@ export const retry: {
9590
9348
  * **Example** (Applying an execution plan)
9591
9349
  *
9592
9350
  * ```ts
9593
- * import { Console, Effect, ExecutionPlan, Layer, Context, Stream } from "effect"
9351
+ * import { Console, Context, Effect, ExecutionPlan, Layer, Stream } from "effect"
9594
9352
  *
9595
9353
  * class Service extends Context.Service<Service>()("Service", {
9596
9354
  * make: Effect.succeed({
@@ -9617,9 +9375,8 @@ export const retry: {
9617
9375
  * // Output: [ 1, 2, 3 ]
9618
9376
  * ```
9619
9377
  *
9620
- * @category Error Handling
9378
+ * @category error handling
9621
9379
  * @since 3.16.0
9622
- * @experimental
9623
9380
  */
9624
9381
  export const withExecutionPlan: {
9625
9382
  /**
@@ -9633,7 +9390,7 @@ export const withExecutionPlan: {
9633
9390
  * **Example** (Applying an execution plan)
9634
9391
  *
9635
9392
  * ```ts
9636
- * import { Console, Effect, ExecutionPlan, Layer, Context, Stream } from "effect"
9393
+ * import { Console, Context, Effect, ExecutionPlan, Layer, Stream } from "effect"
9637
9394
  *
9638
9395
  * class Service extends Context.Service<Service>()("Service", {
9639
9396
  * make: Effect.succeed({
@@ -9660,9 +9417,8 @@ export const withExecutionPlan: {
9660
9417
  * // Output: [ 1, 2, 3 ]
9661
9418
  * ```
9662
9419
  *
9663
- * @category Error Handling
9420
+ * @category error handling
9664
9421
  * @since 3.16.0
9665
- * @experimental
9666
9422
  */
9667
9423
  <Input, R2, Provides, PolicyE>(
9668
9424
  policy: ExecutionPlan.ExecutionPlan<{ provides: Provides; input: Input; error: PolicyE; requirements: R2 }>,
@@ -9679,7 +9435,7 @@ export const withExecutionPlan: {
9679
9435
  * **Example** (Applying an execution plan)
9680
9436
  *
9681
9437
  * ```ts
9682
- * import { Console, Effect, ExecutionPlan, Layer, Context, Stream } from "effect"
9438
+ * import { Console, Context, Effect, ExecutionPlan, Layer, Stream } from "effect"
9683
9439
  *
9684
9440
  * class Service extends Context.Service<Service>()("Service", {
9685
9441
  * make: Effect.succeed({
@@ -9706,9 +9462,8 @@ export const withExecutionPlan: {
9706
9462
  * // Output: [ 1, 2, 3 ]
9707
9463
  * ```
9708
9464
  *
9709
- * @category Error Handling
9465
+ * @category error handling
9710
9466
  * @since 3.16.0
9711
- * @experimental
9712
9467
  */
9713
9468
  <A, E extends Input, R, R2, Input, Provides, PolicyE>(
9714
9469
  self: Stream<A, E, R>,
@@ -9755,7 +9510,7 @@ export const withExecutionPlan: {
9755
9510
  * **Example** (Applying an execution plan)
9756
9511
  *
9757
9512
  * ```ts
9758
- * import { Console, Effect, ExecutionPlan, Layer, Context, Stream } from "effect"
9513
+ * import { Console, Context, Effect, ExecutionPlan, Layer, Stream } from "effect"
9759
9514
  *
9760
9515
  * class Service extends Context.Service<Service>()("Service", {
9761
9516
  * make: Effect.succeed({
@@ -9782,9 +9537,8 @@ export const withExecutionPlan: {
9782
9537
  * // Output: [ 1, 2, 3 ]
9783
9538
  * ```
9784
9539
  *
9785
- * @category Error Handling
9540
+ * @category error handling
9786
9541
  * @since 3.16.0
9787
- * @experimental
9788
9542
  */
9789
9543
  E | PolicyE>()
9790
9544
  const loop: Stream<
@@ -9856,7 +9610,7 @@ export const withExecutionPlan: {
9856
9610
  * // Output: [ 1, 2, 3 ]
9857
9611
  * ```
9858
9612
  *
9859
- * @category Filtering
9613
+ * @category filtering
9860
9614
  * @since 2.0.0
9861
9615
  */
9862
9616
  export const take: {
@@ -9880,7 +9634,7 @@ export const take: {
9880
9634
  * // Output: [ 1, 2, 3 ]
9881
9635
  * ```
9882
9636
  *
9883
- * @category Filtering
9637
+ * @category filtering
9884
9638
  * @since 2.0.0
9885
9639
  */
9886
9640
  (n: number): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E, R>
@@ -9904,7 +9658,7 @@ export const take: {
9904
9658
  * // Output: [ 1, 2, 3 ]
9905
9659
  * ```
9906
9660
  *
9907
- * @category Filtering
9661
+ * @category filtering
9908
9662
  * @since 2.0.0
9909
9663
  */
9910
9664
  <A, E, R>(self: Stream<A, E, R>, n: number): Stream<A, E, R>
@@ -9934,7 +9688,7 @@ export const take: {
9934
9688
  * // Output: [ 4, 5, 6 ]
9935
9689
  * ```
9936
9690
  *
9937
- * @category Filtering
9691
+ * @category filtering
9938
9692
  * @since 2.0.0
9939
9693
  */
9940
9694
  export const takeRight: {
@@ -9958,7 +9712,7 @@ export const takeRight: {
9958
9712
  * // Output: [ 4, 5, 6 ]
9959
9713
  * ```
9960
9714
  *
9961
- * @category Filtering
9715
+ * @category filtering
9962
9716
  * @since 2.0.0
9963
9717
  */
9964
9718
  (n: number): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E, R>
@@ -9982,7 +9736,7 @@ export const takeRight: {
9982
9736
  * // Output: [ 4, 5, 6 ]
9983
9737
  * ```
9984
9738
  *
9985
- * @category Filtering
9739
+ * @category filtering
9986
9740
  * @since 2.0.0
9987
9741
  */
9988
9742
  <A, E, R>(self: Stream<A, E, R>, n: number): Stream<A, E, R>
@@ -10031,7 +9785,7 @@ export const takeRight: {
10031
9785
  * })
10032
9786
  * ```
10033
9787
  *
10034
- * @category Filtering
9788
+ * @category filtering
10035
9789
  * @since 2.0.0
10036
9790
  */
10037
9791
  export const takeUntil: {
@@ -10064,7 +9818,7 @@ export const takeUntil: {
10064
9818
  * })
10065
9819
  * ```
10066
9820
  *
10067
- * @category Filtering
9821
+ * @category filtering
10068
9822
  * @since 2.0.0
10069
9823
  */
10070
9824
  <A>(
@@ -10102,7 +9856,7 @@ export const takeUntil: {
10102
9856
  * })
10103
9857
  * ```
10104
9858
  *
10105
- * @category Filtering
9859
+ * @category filtering
10106
9860
  * @since 2.0.0
10107
9861
  */
10108
9862
  <A, E, R>(
@@ -10157,7 +9911,7 @@ export const takeUntil: {
10157
9911
  * // Output: [ 1, 2, 3 ]
10158
9912
  * ```
10159
9913
  *
10160
- * @category Filtering
9914
+ * @category filtering
10161
9915
  * @since 2.0.0
10162
9916
  */
10163
9917
  export const takeUntilEffect: {
@@ -10181,7 +9935,7 @@ export const takeUntilEffect: {
10181
9935
  * // Output: [ 1, 2, 3 ]
10182
9936
  * ```
10183
9937
  *
10184
- * @category Filtering
9938
+ * @category filtering
10185
9939
  * @since 2.0.0
10186
9940
  */
10187
9941
  <A, E2, R2>(
@@ -10210,7 +9964,7 @@ export const takeUntilEffect: {
10210
9964
  * // Output: [ 1, 2, 3 ]
10211
9965
  * ```
10212
9966
  *
10213
- * @category Filtering
9967
+ * @category filtering
10214
9968
  * @since 2.0.0
10215
9969
  */
10216
9970
  <A, E, R, E2, R2>(
@@ -10266,7 +10020,7 @@ export const takeUntilEffect: {
10266
10020
  * // Output: [ 1, 2 ]
10267
10021
  * ```
10268
10022
  *
10269
- * @category Filtering
10023
+ * @category filtering
10270
10024
  * @since 2.0.0
10271
10025
  */
10272
10026
  export const takeWhile: {
@@ -10291,7 +10045,7 @@ export const takeWhile: {
10291
10045
  * // Output: [ 1, 2 ]
10292
10046
  * ```
10293
10047
  *
10294
- * @category Filtering
10048
+ * @category filtering
10295
10049
  * @since 2.0.0
10296
10050
  */
10297
10051
  <A, B extends A>(refinement: (a: NoInfer<A>, n: number) => a is B): <E, R>(self: Stream<A, E, R>) => Stream<B, E, R>
@@ -10316,7 +10070,7 @@ export const takeWhile: {
10316
10070
  * // Output: [ 1, 2 ]
10317
10071
  * ```
10318
10072
  *
10319
- * @category Filtering
10073
+ * @category filtering
10320
10074
  * @since 2.0.0
10321
10075
  */
10322
10076
  <A>(predicate: (a: NoInfer<A>, n: number) => boolean): <E, R>(self: Stream<A, E, R>) => Stream<A, E, R>
@@ -10341,7 +10095,7 @@ export const takeWhile: {
10341
10095
  * // Output: [ 1, 2 ]
10342
10096
  * ```
10343
10097
  *
10344
- * @category Filtering
10098
+ * @category filtering
10345
10099
  * @since 2.0.0
10346
10100
  */
10347
10101
  <A, E, R, B extends A>(self: Stream<A, E, R>, refinement: (a: NoInfer<A>, n: number) => a is B): Stream<B, E, R>
@@ -10366,7 +10120,7 @@ export const takeWhile: {
10366
10120
  * // Output: [ 1, 2 ]
10367
10121
  * ```
10368
10122
  *
10369
- * @category Filtering
10123
+ * @category filtering
10370
10124
  * @since 2.0.0
10371
10125
  */
10372
10126
  <A, E, R>(self: Stream<A, E, R>, predicate: (a: NoInfer<A>, n: number) => boolean): Stream<A, E, R>
@@ -10404,7 +10158,7 @@ export const takeWhile: {
10404
10158
  *
10405
10159
  * The stream stops at the first `Result.fail` returned by the filter.
10406
10160
  *
10407
- * @category Filtering
10161
+ * @category filtering
10408
10162
  * @since 4.0.0
10409
10163
  */
10410
10164
  export const takeWhileFilter: {
@@ -10414,7 +10168,7 @@ export const takeWhileFilter: {
10414
10168
  *
10415
10169
  * The stream stops at the first `Result.fail` returned by the filter.
10416
10170
  *
10417
- * @category Filtering
10171
+ * @category filtering
10418
10172
  * @since 4.0.0
10419
10173
  */
10420
10174
  <A, B, X>(f: Filter.Filter<NoInfer<A>, B, X>): <E, R>(self: Stream<A, E, R>) => Stream<B, E, R>
@@ -10424,7 +10178,7 @@ export const takeWhileFilter: {
10424
10178
  *
10425
10179
  * The stream stops at the first `Result.fail` returned by the filter.
10426
10180
  *
10427
- * @category Filtering
10181
+ * @category filtering
10428
10182
  * @since 4.0.0
10429
10183
  */
10430
10184
  <A, E, R, B, X>(self: Stream<A, E, R>, f: Filter.Filter<NoInfer<A>, B, X>): Stream<B, E, R>
@@ -10476,8 +10230,8 @@ export const takeWhileFilter: {
10476
10230
  * // Output: [ 1, 2 ]
10477
10231
  * ```
10478
10232
  *
10479
- * @category Filtering
10480
- * @since 2.0.0
10233
+ * @category filtering
10234
+ * @since 4.0.0
10481
10235
  */
10482
10236
  export const takeWhileEffect: {
10483
10237
  /**
@@ -10500,8 +10254,8 @@ export const takeWhileEffect: {
10500
10254
  * // Output: [ 1, 2 ]
10501
10255
  * ```
10502
10256
  *
10503
- * @category Filtering
10504
- * @since 2.0.0
10257
+ * @category filtering
10258
+ * @since 4.0.0
10505
10259
  */
10506
10260
  <A, E2, R2>(predicate: (a: NoInfer<A>, n: number) => Effect.Effect<boolean, E2, R2>): <E, R>(self: Stream<A, E, R>) => Stream<A, E | E2, R | R2>
10507
10261
  /**
@@ -10524,8 +10278,8 @@ export const takeWhileEffect: {
10524
10278
  * // Output: [ 1, 2 ]
10525
10279
  * ```
10526
10280
  *
10527
- * @category Filtering
10528
- * @since 2.0.0
10281
+ * @category filtering
10282
+ * @since 4.0.0
10529
10283
  */
10530
10284
  <A, E, R, E2, R2>(
10531
10285
  self: Stream<A, E, R>,
@@ -10561,7 +10315,7 @@ export const takeWhileEffect: {
10561
10315
  * // Output: [ 3, 4, 5 ]
10562
10316
  * ```
10563
10317
  *
10564
- * @category Filtering
10318
+ * @category filtering
10565
10319
  * @since 2.0.0
10566
10320
  */
10567
10321
  export const drop: {
@@ -10585,7 +10339,7 @@ export const drop: {
10585
10339
  * // Output: [ 3, 4, 5 ]
10586
10340
  * ```
10587
10341
  *
10588
- * @category Filtering
10342
+ * @category filtering
10589
10343
  * @since 2.0.0
10590
10344
  */
10591
10345
  (n: number): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E, R>
@@ -10609,7 +10363,7 @@ export const drop: {
10609
10363
  * // Output: [ 3, 4, 5 ]
10610
10364
  * ```
10611
10365
  *
10612
- * @category Filtering
10366
+ * @category filtering
10613
10367
  * @since 2.0.0
10614
10368
  */
10615
10369
  <A, E, R>(self: Stream<A, E, R>, n: number): Stream<A, E, R>
@@ -10649,7 +10403,7 @@ export const drop: {
10649
10403
  * })
10650
10404
  * ```
10651
10405
  *
10652
- * @category Filtering
10406
+ * @category filtering
10653
10407
  * @since 2.0.0
10654
10408
  */
10655
10409
  export const dropUntil: {
@@ -10671,7 +10425,7 @@ export const dropUntil: {
10671
10425
  * })
10672
10426
  * ```
10673
10427
  *
10674
- * @category Filtering
10428
+ * @category filtering
10675
10429
  * @since 2.0.0
10676
10430
  */
10677
10431
  <A>(predicate: (a: NoInfer<A>, index: number) => boolean): <E, R>(self: Stream<A, E, R>) => Stream<A, E, R>
@@ -10693,7 +10447,7 @@ export const dropUntil: {
10693
10447
  * })
10694
10448
  * ```
10695
10449
  *
10696
- * @category Filtering
10450
+ * @category filtering
10697
10451
  * @since 2.0.0
10698
10452
  */
10699
10453
  <A, E, R>(
@@ -10728,7 +10482,7 @@ export const dropUntil: {
10728
10482
  * // Output: [ 4, 5 ]
10729
10483
  * ```
10730
10484
  *
10731
- * @category Filtering
10485
+ * @category filtering
10732
10486
  * @since 2.0.0
10733
10487
  */
10734
10488
  export const dropUntilEffect: {
@@ -10755,7 +10509,7 @@ export const dropUntilEffect: {
10755
10509
  * // Output: [ 4, 5 ]
10756
10510
  * ```
10757
10511
  *
10758
- * @category Filtering
10512
+ * @category filtering
10759
10513
  * @since 2.0.0
10760
10514
  */
10761
10515
  <A, E2, R2>(
@@ -10784,7 +10538,7 @@ export const dropUntilEffect: {
10784
10538
  * // Output: [ 4, 5 ]
10785
10539
  * ```
10786
10540
  *
10787
- * @category Filtering
10541
+ * @category filtering
10788
10542
  * @since 2.0.0
10789
10543
  */
10790
10544
  <A, E, R, E2, R2>(
@@ -10823,7 +10577,7 @@ export const dropUntilEffect: {
10823
10577
  * // Output: [ 3, 4, 5 ]
10824
10578
  * ```
10825
10579
  *
10826
- * @category Filtering
10580
+ * @category filtering
10827
10581
  * @since 2.0.0
10828
10582
  */
10829
10583
  export const dropWhile: {
@@ -10847,7 +10601,7 @@ export const dropWhile: {
10847
10601
  * // Output: [ 3, 4, 5 ]
10848
10602
  * ```
10849
10603
  *
10850
- * @category Filtering
10604
+ * @category filtering
10851
10605
  * @since 2.0.0
10852
10606
  */
10853
10607
  <A>(predicate: (a: NoInfer<A>, index: number) => boolean): <E, R>(self: Stream<A, E, R>) => Stream<A, E, R>
@@ -10871,7 +10625,7 @@ export const dropWhile: {
10871
10625
  * // Output: [ 3, 4, 5 ]
10872
10626
  * ```
10873
10627
  *
10874
- * @category Filtering
10628
+ * @category filtering
10875
10629
  * @since 2.0.0
10876
10630
  */
10877
10631
  <A, E, R>(
@@ -10898,21 +10652,21 @@ export const dropWhile: {
10898
10652
  /**
10899
10653
  * Drops elements while the filter succeeds.
10900
10654
  *
10901
- * @category Filtering
10655
+ * @category filtering
10902
10656
  * @since 4.0.0
10903
10657
  */
10904
10658
  export const dropWhileFilter: {
10905
10659
  /**
10906
10660
  * Drops elements while the filter succeeds.
10907
10661
  *
10908
- * @category Filtering
10662
+ * @category filtering
10909
10663
  * @since 4.0.0
10910
10664
  */
10911
10665
  <A, B, X>(filter: Filter.Filter<NoInfer<A>, B, X>): <E, R>(self: Stream<A, E, R>) => Stream<A, E, R>
10912
10666
  /**
10913
10667
  * Drops elements while the filter succeeds.
10914
10668
  *
10915
- * @category Filtering
10669
+ * @category filtering
10916
10670
  * @since 4.0.0
10917
10671
  */
10918
10672
  <A, E, R, B, X>(self: Stream<A, E, R>, filter: Filter.Filter<NoInfer<A>, B, X>): Stream<A, E, R>
@@ -10952,7 +10706,7 @@ export const dropWhileFilter: {
10952
10706
  * // Output: [ 3, 4, 5 ]
10953
10707
  * ```
10954
10708
  *
10955
- * @category Filtering
10709
+ * @category filtering
10956
10710
  * @since 2.0.0
10957
10711
  */
10958
10712
  export const dropWhileEffect: {
@@ -10976,7 +10730,7 @@ export const dropWhileEffect: {
10976
10730
  * // Output: [ 3, 4, 5 ]
10977
10731
  * ```
10978
10732
  *
10979
- * @category Filtering
10733
+ * @category filtering
10980
10734
  * @since 2.0.0
10981
10735
  */
10982
10736
  <A, E2, R2>(
@@ -11002,7 +10756,7 @@ export const dropWhileEffect: {
11002
10756
  * // Output: [ 3, 4, 5 ]
11003
10757
  * ```
11004
10758
  *
11005
- * @category Filtering
10759
+ * @category filtering
11006
10760
  * @since 2.0.0
11007
10761
  */
11008
10762
  <A, E, R, E2, R2>(
@@ -11055,7 +10809,7 @@ export const dropWhileEffect: {
11055
10809
  * // Output: [ 1, 2, 3 ]
11056
10810
  * ```
11057
10811
  *
11058
- * @category Filtering
10812
+ * @category filtering
11059
10813
  * @since 2.0.0
11060
10814
  */
11061
10815
  export const dropRight: {
@@ -11081,7 +10835,7 @@ export const dropRight: {
11081
10835
  * // Output: [ 1, 2, 3 ]
11082
10836
  * ```
11083
10837
  *
11084
- * @category Filtering
10838
+ * @category filtering
11085
10839
  * @since 2.0.0
11086
10840
  */
11087
10841
  (n: number): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E, R>
@@ -11107,7 +10861,7 @@ export const dropRight: {
11107
10861
  * // Output: [ 1, 2, 3 ]
11108
10862
  * ```
11109
10863
  *
11110
- * @category Filtering
10864
+ * @category filtering
11111
10865
  * @since 2.0.0
11112
10866
  */
11113
10867
  <A, E, R>(self: Stream<A, E, R>, n: number): Stream<A, E, R>
@@ -11139,7 +10893,7 @@ export const dropRight: {
11139
10893
  * // Output: [ 1, 2, 3 ]
11140
10894
  * ```
11141
10895
  *
11142
- * @category Filtering
10896
+ * @category filtering
11143
10897
  * @since 2.0.0
11144
10898
  */
11145
10899
  A>()
@@ -11343,7 +11097,7 @@ export const rechunk: {
11343
11097
  * **Example** (Emitting sliding windows)
11344
11098
  *
11345
11099
  * ```ts
11346
- * import { Console, Effect, Stream, pipe } from "effect"
11100
+ * import { Console, Effect, pipe, Stream } from "effect"
11347
11101
  *
11348
11102
  * Effect.gen(function*() {
11349
11103
  * const result = yield* pipe(
@@ -11366,7 +11120,7 @@ export const sliding: {
11366
11120
  * **Example** (Emitting sliding windows)
11367
11121
  *
11368
11122
  * ```ts
11369
- * import { Console, Effect, Stream, pipe } from "effect"
11123
+ * import { Console, Effect, pipe, Stream } from "effect"
11370
11124
  *
11371
11125
  * Effect.gen(function*() {
11372
11126
  * const result = yield* pipe(
@@ -11389,7 +11143,7 @@ export const sliding: {
11389
11143
  * **Example** (Emitting sliding windows)
11390
11144
  *
11391
11145
  * ```ts
11392
- * import { Console, Effect, Stream, pipe } from "effect"
11146
+ * import { Console, Effect, pipe, Stream } from "effect"
11393
11147
  *
11394
11148
  * Effect.gen(function*() {
11395
11149
  * const result = yield* pipe(
@@ -11877,12 +11631,6 @@ export const combine: {
11877
11631
  * internal state to control the combining process, with the initial state
11878
11632
  * being specified by `s`.
11879
11633
  *
11880
- * **Previously Known As**
11881
- *
11882
- * This API replaces the following from Effect 3.x:
11883
- *
11884
- * - `Stream.combineChunks`
11885
- *
11886
11634
  * **Example** (Combining stream chunks with state)
11887
11635
  *
11888
11636
  * ```ts
@@ -11909,8 +11657,8 @@ export const combine: {
11909
11657
  * // Output: [ 1, 2, 10, 20 ]
11910
11658
  * ```
11911
11659
  *
11912
- * @category Sequencing
11913
- * @since 2.0.0
11660
+ * @category sequencing
11661
+ * @since 4.0.0
11914
11662
  */
11915
11663
  export const combineArray: {
11916
11664
  /**
@@ -11920,12 +11668,6 @@ export const combineArray: {
11920
11668
  * internal state to control the combining process, with the initial state
11921
11669
  * being specified by `s`.
11922
11670
  *
11923
- * **Previously Known As**
11924
- *
11925
- * This API replaces the following from Effect 3.x:
11926
- *
11927
- * - `Stream.combineChunks`
11928
- *
11929
11671
  * **Example** (Combining stream chunks with state)
11930
11672
  *
11931
11673
  * ```ts
@@ -11952,8 +11694,8 @@ export const combineArray: {
11952
11694
  * // Output: [ 1, 2, 10, 20 ]
11953
11695
  * ```
11954
11696
  *
11955
- * @category Sequencing
11956
- * @since 2.0.0
11697
+ * @category sequencing
11698
+ * @since 4.0.0
11957
11699
  */
11958
11700
  <A2, E2, R2, S, E, A, A3, E3, R3>(
11959
11701
  that: Stream<A2, E2, R2>,
@@ -11971,12 +11713,6 @@ export const combineArray: {
11971
11713
  * internal state to control the combining process, with the initial state
11972
11714
  * being specified by `s`.
11973
11715
  *
11974
- * **Previously Known As**
11975
- *
11976
- * This API replaces the following from Effect 3.x:
11977
- *
11978
- * - `Stream.combineChunks`
11979
- *
11980
11716
  * **Example** (Combining stream chunks with state)
11981
11717
  *
11982
11718
  * ```ts
@@ -12003,8 +11739,8 @@ export const combineArray: {
12003
11739
  * // Output: [ 1, 2, 10, 20 ]
12004
11740
  * ```
12005
11741
  *
12006
- * @category Sequencing
12007
- * @since 2.0.0
11742
+ * @category sequencing
11743
+ * @since 4.0.0
12008
11744
  */
12009
11745
  <R, A2, E2, R2, S, E, A, A3, E3, R3>(
12010
11746
  self: Stream<A, E, R>,
@@ -12057,7 +11793,7 @@ export const combineArray: {
12057
11793
  * // Output: [ 0, 1, 3, 6, 10, 15, 21 ]
12058
11794
  * ```
12059
11795
  *
12060
- * @category Mapping
11796
+ * @category mapping
12061
11797
  * @since 2.0.0
12062
11798
  */
12063
11799
  export const mapAccum: {
@@ -12085,7 +11821,7 @@ export const mapAccum: {
12085
11821
  * // Output: [ 0, 1, 3, 6, 10, 15, 21 ]
12086
11822
  * ```
12087
11823
  *
12088
- * @category Mapping
11824
+ * @category mapping
12089
11825
  * @since 2.0.0
12090
11826
  */
12091
11827
  <S, A, B>(
@@ -12119,7 +11855,7 @@ export const mapAccum: {
12119
11855
  * // Output: [ 0, 1, 3, 6, 10, 15, 21 ]
12120
11856
  * ```
12121
11857
  *
12122
- * @category Mapping
11858
+ * @category mapping
12123
11859
  * @since 2.0.0
12124
11860
  */
12125
11861
  <A, E, R, S, B>(
@@ -12166,7 +11902,7 @@ export const mapAccum: {
12166
11902
  * // Output: [ 0, 1, 3, 6, 10, 15, 21 ]
12167
11903
  * ```
12168
11904
  *
12169
- * @category Mapping
11905
+ * @category mapping
12170
11906
  * @since 2.0.0
12171
11907
  */
12172
11908
  B>()
@@ -12213,8 +11949,8 @@ export const mapAccum: {
12213
11949
  * // Output: [ 3, 10, 21 ]
12214
11950
  * ```
12215
11951
  *
12216
- * @category Mapping
12217
- * @since 2.0.0
11952
+ * @category mapping
11953
+ * @since 4.0.0
12218
11954
  */
12219
11955
  export const mapAccumArray: {
12220
11956
  /**
@@ -12243,8 +11979,8 @@ export const mapAccumArray: {
12243
11979
  * // Output: [ 3, 10, 21 ]
12244
11980
  * ```
12245
11981
  *
12246
- * @category Mapping
12247
- * @since 2.0.0
11982
+ * @category mapping
11983
+ * @since 4.0.0
12248
11984
  */
12249
11985
  <S, A, B>(
12250
11986
  initial: LazyArg<S>,
@@ -12279,8 +12015,8 @@ export const mapAccumArray: {
12279
12015
  * // Output: [ 3, 10, 21 ]
12280
12016
  * ```
12281
12017
  *
12282
- * @category Mapping
12283
- * @since 2.0.0
12018
+ * @category mapping
12019
+ * @since 4.0.0
12284
12020
  */
12285
12021
  <A, E, R, S, B>(
12286
12022
  self: Stream<A, E, R>,
@@ -12346,7 +12082,7 @@ const emptyArr = Arr.empty<never>()
12346
12082
  * // Output: [ 1, 2, 3 ]
12347
12083
  * ```
12348
12084
  *
12349
- * @category Mapping
12085
+ * @category mapping
12350
12086
  * @since 2.0.0
12351
12087
  */
12352
12088
  export const mapAccumEffect: {
@@ -12378,7 +12114,7 @@ export const mapAccumEffect: {
12378
12114
  * // Output: [ 1, 2, 3 ]
12379
12115
  * ```
12380
12116
  *
12381
- * @category Mapping
12117
+ * @category mapping
12382
12118
  * @since 2.0.0
12383
12119
  */
12384
12120
  <S, A, B, E2, R2>(
@@ -12416,7 +12152,7 @@ export const mapAccumEffect: {
12416
12152
  * // Output: [ 1, 2, 3 ]
12417
12153
  * ```
12418
12154
  *
12419
- * @category Mapping
12155
+ * @category mapping
12420
12156
  * @since 2.0.0
12421
12157
  */
12422
12158
  <A, E, R, S, B, E2, R2>(
@@ -12472,7 +12208,7 @@ export const mapAccumEffect: {
12472
12208
  * // Output: [ 1, 2, 3 ]
12473
12209
  * ```
12474
12210
  *
12475
- * @category Mapping
12211
+ * @category mapping
12476
12212
  * @since 2.0.0
12477
12213
  */
12478
12214
  Arr.NonEmptyReadonlyArray<B>>()
@@ -12520,8 +12256,8 @@ export const mapAccumEffect: {
12520
12256
  * // Output: [ 3, 10 ]
12521
12257
  * ```
12522
12258
  *
12523
- * @category Mapping
12524
- * @since 2.0.0
12259
+ * @category mapping
12260
+ * @since 4.0.0
12525
12261
  */
12526
12262
  export const mapAccumArrayEffect: {
12527
12263
  /**
@@ -12554,8 +12290,8 @@ export const mapAccumArrayEffect: {
12554
12290
  * // Output: [ 3, 10 ]
12555
12291
  * ```
12556
12292
  *
12557
- * @category Mapping
12558
- * @since 2.0.0
12293
+ * @category mapping
12294
+ * @since 4.0.0
12559
12295
  */
12560
12296
  <S, A, B, E2, R2>(
12561
12297
  initial: LazyArg<S>,
@@ -12594,8 +12330,8 @@ export const mapAccumArrayEffect: {
12594
12330
  * // Output: [ 3, 10 ]
12595
12331
  * ```
12596
12332
  *
12597
- * @category Mapping
12598
- * @since 2.0.0
12333
+ * @category mapping
12334
+ * @since 4.0.0
12599
12335
  */
12600
12336
  <A, E, R, S, B, E2, R2>(
12601
12337
  self: Stream<A, E, R>,
@@ -14456,6 +14192,237 @@ export const aggregateWithin: {
14456
14192
  )
14457
14193
  }))))
14458
14194
 
14195
+ /**
14196
+ * Fan out the stream, producing a fixed-size tuple of streams that each emit
14197
+ * the same elements as the source stream.
14198
+ *
14199
+ * The source stream starts after all downstream streams have been subscribed.
14200
+ * With the default suspend strategy, the source can only advance `capacity`
14201
+ * chunks ahead of the slowest downstream stream. If a downstream stream is
14202
+ * interrupted, it unsubscribes from the broadcast so it no longer contributes
14203
+ * backpressure.
14204
+ *
14205
+ * **Example** (Broadcasting to two consumers)
14206
+ *
14207
+ * ```ts
14208
+ * import { Console, Effect, Stream } from "effect"
14209
+ *
14210
+ * const program = Effect.scoped(
14211
+ * Effect.gen(function*() {
14212
+ * const [left, right] = yield* Stream.make(1, 2, 3).pipe(
14213
+ * Stream.broadcastN({ n: 2, capacity: 8 })
14214
+ * )
14215
+ *
14216
+ * const values = yield* Effect.all([
14217
+ * Stream.runCollect(left),
14218
+ * Stream.runCollect(right)
14219
+ * ], { concurrency: "unbounded" })
14220
+ *
14221
+ * yield* Console.log(values)
14222
+ * })
14223
+ * )
14224
+ *
14225
+ * Effect.runPromise(program)
14226
+ * // Output: [[1, 2, 3], [1, 2, 3]]
14227
+ * ```
14228
+ *
14229
+ * @category Broadcast
14230
+ * @since 4.0.0
14231
+ */
14232
+ export const broadcastN: {
14233
+ /**
14234
+ * Fan out the stream, producing a fixed-size tuple of streams that each emit
14235
+ * the same elements as the source stream.
14236
+ *
14237
+ * The source stream starts after all downstream streams have been subscribed.
14238
+ * With the default suspend strategy, the source can only advance `capacity`
14239
+ * chunks ahead of the slowest downstream stream. If a downstream stream is
14240
+ * interrupted, it unsubscribes from the broadcast so it no longer contributes
14241
+ * backpressure.
14242
+ *
14243
+ * **Example** (Broadcasting to two consumers)
14244
+ *
14245
+ * ```ts
14246
+ * import { Console, Effect, Stream } from "effect"
14247
+ *
14248
+ * const program = Effect.scoped(
14249
+ * Effect.gen(function*() {
14250
+ * const [left, right] = yield* Stream.make(1, 2, 3).pipe(
14251
+ * Stream.broadcastN({ n: 2, capacity: 8 })
14252
+ * )
14253
+ *
14254
+ * const values = yield* Effect.all([
14255
+ * Stream.runCollect(left),
14256
+ * Stream.runCollect(right)
14257
+ * ], { concurrency: "unbounded" })
14258
+ *
14259
+ * yield* Console.log(values)
14260
+ * })
14261
+ * )
14262
+ *
14263
+ * Effect.runPromise(program)
14264
+ * // Output: [[1, 2, 3], [1, 2, 3]]
14265
+ * ```
14266
+ *
14267
+ * @category Broadcast
14268
+ * @since 4.0.0
14269
+ */
14270
+ <const N extends number>(
14271
+ options: {
14272
+ readonly n: N
14273
+ readonly capacity: "unbounded"
14274
+ readonly replay?: number | undefined
14275
+ } | {
14276
+ readonly n: N
14277
+ readonly capacity: number
14278
+ readonly strategy?: "sliding" | "dropping" | "suspend" | undefined
14279
+ readonly replay?: number | undefined
14280
+ }
14281
+ ): <A, E, R>(self: Stream<A, E, R>) => Effect.Effect<TupleOf<N, Stream<A, E>>, never, Scope.Scope | R>
14282
+ /**
14283
+ * Fan out the stream, producing a fixed-size tuple of streams that each emit
14284
+ * the same elements as the source stream.
14285
+ *
14286
+ * The source stream starts after all downstream streams have been subscribed.
14287
+ * With the default suspend strategy, the source can only advance `capacity`
14288
+ * chunks ahead of the slowest downstream stream. If a downstream stream is
14289
+ * interrupted, it unsubscribes from the broadcast so it no longer contributes
14290
+ * backpressure.
14291
+ *
14292
+ * **Example** (Broadcasting to two consumers)
14293
+ *
14294
+ * ```ts
14295
+ * import { Console, Effect, Stream } from "effect"
14296
+ *
14297
+ * const program = Effect.scoped(
14298
+ * Effect.gen(function*() {
14299
+ * const [left, right] = yield* Stream.make(1, 2, 3).pipe(
14300
+ * Stream.broadcastN({ n: 2, capacity: 8 })
14301
+ * )
14302
+ *
14303
+ * const values = yield* Effect.all([
14304
+ * Stream.runCollect(left),
14305
+ * Stream.runCollect(right)
14306
+ * ], { concurrency: "unbounded" })
14307
+ *
14308
+ * yield* Console.log(values)
14309
+ * })
14310
+ * )
14311
+ *
14312
+ * Effect.runPromise(program)
14313
+ * // Output: [[1, 2, 3], [1, 2, 3]]
14314
+ * ```
14315
+ *
14316
+ * @category Broadcast
14317
+ * @since 4.0.0
14318
+ */
14319
+ <A, E, R, const N extends number>(
14320
+ self: Stream<A, E, R>,
14321
+ options: {
14322
+ readonly n: N
14323
+ readonly capacity: "unbounded"
14324
+ readonly replay?: number | undefined
14325
+ } | {
14326
+ readonly capacity: number
14327
+ readonly n: N
14328
+ readonly strategy?: "sliding" | "dropping" | "suspend" | undefined
14329
+ readonly replay?: number | undefined
14330
+ }
14331
+ ): Effect.Effect<TupleOf<N, Stream<A, E>>, never, Scope.Scope | R>
14332
+ } = dual(
14333
+ 2,
14334
+ Effect.fnUntraced(function*<A, E, R, const N extends number>(
14335
+ self: Stream<A, E, R>,
14336
+ options: {
14337
+ readonly n: N
14338
+ readonly capacity: "unbounded"
14339
+ readonly replay?: number | undefined
14340
+ } | {
14341
+ readonly n: N
14342
+ readonly capacity: number
14343
+ readonly strategy?: "sliding" | "dropping" | "suspend" | undefined
14344
+ readonly replay?: number | undefined
14345
+ }
14346
+ ) {
14347
+ const pubsub = yield* makePubSub</**
14348
+ * Fan out the stream, producing a fixed-size tuple of streams that each emit
14349
+ * the same elements as the source stream.
14350
+ *
14351
+ * The source stream starts after all downstream streams have been subscribed.
14352
+ * With the default suspend strategy, the source can only advance `capacity`
14353
+ * chunks ahead of the slowest downstream stream. If a downstream stream is
14354
+ * interrupted, it unsubscribes from the broadcast so it no longer contributes
14355
+ * backpressure.
14356
+ *
14357
+ * **Example** (Broadcasting to two consumers)
14358
+ *
14359
+ * ```ts
14360
+ * import { Console, Effect, Stream } from "effect"
14361
+ *
14362
+ * const program = Effect.scoped(
14363
+ * Effect.gen(function*() {
14364
+ * const [left, right] = yield* Stream.make(1, 2, 3).pipe(
14365
+ * Stream.broadcastN({ n: 2, capacity: 8 })
14366
+ * )
14367
+ *
14368
+ * const values = yield* Effect.all([
14369
+ * Stream.runCollect(left),
14370
+ * Stream.runCollect(right)
14371
+ * ], { concurrency: "unbounded" })
14372
+ *
14373
+ * yield* Console.log(values)
14374
+ * })
14375
+ * )
14376
+ *
14377
+ * Effect.runPromise(program)
14378
+ * // Output: [[1, 2, 3], [1, 2, 3]]
14379
+ * ```
14380
+ *
14381
+ * @category Broadcast
14382
+ * @since 4.0.0
14383
+ */
14384
+ Take.Take<A, E>>(options)
14385
+ const streams = new Array(options.n)
14386
+ const parentScope = yield* Scope.Scope
14387
+ for (let i = 0; i < options.n; i++) {
14388
+ const scope = Scope.forkUnsafe(parentScope)
14389
+ const subscription = yield* PubSub.subscribe(pubsub).pipe(
14390
+ Effect.provideService(Scope.Scope, scope)
14391
+ )
14392
+ streams[i] = Channel.fromEffectTake(PubSub.take(subscription)).pipe(
14393
+ Channel.onExit((exit) => Scope.close(scope, exit)),
14394
+ fromChannel
14395
+ )
14396
+ }
14397
+ yield* Channel.runForEach(self.channel, (value) => PubSub.publish(pubsub, value)).pipe(
14398
+ Effect.onExit((exit) => PubSub.publish(pubsub, exit)),
14399
+ Effect.forkScoped
14400
+ )
14401
+ return streams as TupleOf<N, Stream<A, E>>
14402
+ })
14403
+ )
14404
+
14405
+ const makePubSub = <A>(
14406
+ options: {
14407
+ readonly capacity: "unbounded"
14408
+ readonly replay?: number | undefined
14409
+ } | {
14410
+ readonly capacity: number
14411
+ readonly strategy?: "dropping" | "sliding" | "suspend" | undefined
14412
+ readonly replay?: number | undefined
14413
+ }
14414
+ ) =>
14415
+ Effect.acquireRelease(
14416
+ options.capacity === "unbounded"
14417
+ ? PubSub.unbounded<A>(options)
14418
+ : options.strategy === "dropping"
14419
+ ? PubSub.dropping<A>(options)
14420
+ : options.strategy === "sliding"
14421
+ ? PubSub.sliding<A>(options)
14422
+ : PubSub.bounded<A>(options),
14423
+ PubSub.shutdown
14424
+ )
14425
+
14459
14426
  /**
14460
14427
  * Creates a PubSub-backed stream that multicasts the source to all subscribers.
14461
14428
  *
@@ -14619,7 +14586,7 @@ export const broadcast: {
14619
14586
  * ```
14620
14587
  *
14621
14588
  * @category Broadcast
14622
- * @since 2.0.0
14589
+ * @since 3.8.0
14623
14590
  */
14624
14591
  export const share: {
14625
14592
  /**
@@ -14652,7 +14619,7 @@ export const share: {
14652
14619
  * ```
14653
14620
  *
14654
14621
  * @category Broadcast
14655
- * @since 2.0.0
14622
+ * @since 3.8.0
14656
14623
  */
14657
14624
  (
14658
14625
  options: {
@@ -14696,7 +14663,7 @@ export const share: {
14696
14663
  * ```
14697
14664
  *
14698
14665
  * @category Broadcast
14699
- * @since 2.0.0
14666
+ * @since 3.8.0
14700
14667
  */
14701
14668
  <A, E, R>(
14702
14669
  self: Stream<A, E, R>,
@@ -15067,7 +15034,7 @@ export const pipeThrough: {
15067
15034
  * ```
15068
15035
  *
15069
15036
  * @category Accumulation
15070
- * @since 2.0.0
15037
+ * @since 4.0.0
15071
15038
  */
15072
15039
  export const collect = <A, E, R>(self: Stream<A, E, R>): Stream<Array<A>, E, R> => fromEffect(runCollect(self))
15073
15040
 
@@ -15371,7 +15338,7 @@ export const changesWithEffect: {
15371
15338
  * // ["Hello", " World"]
15372
15339
  * ```
15373
15340
  *
15374
- * @category Encoding
15341
+ * @category encoding
15375
15342
  * @since 2.0.0
15376
15343
  */
15377
15344
  export const decodeText: <
@@ -15417,7 +15384,7 @@ export const decodeText: <
15417
15384
  * // [[72, 101, 108, 108, 111], [32], [87, 111, 114, 108, 100]]
15418
15385
  * ```
15419
15386
  *
15420
- * @category Encoding
15387
+ * @category encoding
15421
15388
  * @since 2.0.0
15422
15389
  */
15423
15390
  export const encodeText = <E, R>(self: Stream<string, E, R>): Stream<Uint8Array, E, R> =>
@@ -15443,7 +15410,7 @@ export const encodeText = <E, R>(self: Stream<string, E, R>): Stream<Uint8Array,
15443
15410
  * // ["a", "b", "c"]
15444
15411
  * ```
15445
15412
  *
15446
- * @category Encoding
15413
+ * @category encoding
15447
15414
  * @since 2.0.0
15448
15415
  */
15449
15416
  export const splitLines = <E, R>(self: Stream<string, E, R>): Stream<string, E, R> =>
@@ -15470,7 +15437,7 @@ export const splitLines = <E, R>(self: Stream<string, E, R>): Stream<string, E,
15470
15437
  * // [1, 0, 2, 0, 3, 0, 4]
15471
15438
  * ```
15472
15439
  *
15473
- * @category Sequencing
15440
+ * @category sequencing
15474
15441
  * @since 2.0.0
15475
15442
  */
15476
15443
  export const intersperse: {
@@ -15492,7 +15459,7 @@ export const intersperse: {
15492
15459
  * // [1, 0, 2, 0, 3, 0, 4]
15493
15460
  * ```
15494
15461
  *
15495
- * @category Sequencing
15462
+ * @category sequencing
15496
15463
  * @since 2.0.0
15497
15464
  */
15498
15465
  <A2>(element: A2): <A, E, R>(self: Stream<A, E, R>) => Stream<A2 | A, E, R>
@@ -15514,7 +15481,7 @@ export const intersperse: {
15514
15481
  * // [1, 0, 2, 0, 3, 0, 4]
15515
15482
  * ```
15516
15483
  *
15517
- * @category Sequencing
15484
+ * @category sequencing
15518
15485
  * @since 2.0.0
15519
15486
  */
15520
15487
  <A, E, R, A2>(self: Stream<A, E, R>, element: A2): Stream<A | A2, E, R>
@@ -15555,7 +15522,7 @@ export const intersperse: {
15555
15522
  * // [ "[", "a", ",", "b", ",", "c", "]" ]
15556
15523
  * ```
15557
15524
  *
15558
- * @category Sequencing
15525
+ * @category sequencing
15559
15526
  * @since 2.0.0
15560
15527
  */
15561
15528
  export const intersperseAffixes: {
@@ -15582,7 +15549,7 @@ export const intersperseAffixes: {
15582
15549
  * // [ "[", "a", ",", "b", ",", "c", "]" ]
15583
15550
  * ```
15584
15551
  *
15585
- * @category Sequencing
15552
+ * @category sequencing
15586
15553
  * @since 2.0.0
15587
15554
  */
15588
15555
  <A2, A3, A4>(options: { readonly start: A2; readonly middle: A3; readonly end: A4 }): <A, E, R>(self: Stream<A, E, R>) => Stream<A2 | A3 | A4 | A, E, R>
@@ -15609,7 +15576,7 @@ export const intersperseAffixes: {
15609
15576
  * // [ "[", "a", ",", "b", ",", "c", "]" ]
15610
15577
  * ```
15611
15578
  *
15612
- * @category Sequencing
15579
+ * @category sequencing
15613
15580
  * @since 2.0.0
15614
15581
  */
15615
15582
  <A, E, R, A2, A3, A4>(
@@ -16238,7 +16205,7 @@ export const onExit: {
16238
16205
  * // Stream failed: boom
16239
16206
  * ```
16240
16207
  *
16241
- * @category Error Handling
16208
+ * @category error handling
16242
16209
  * @since 2.0.0
16243
16210
  */
16244
16211
  export const onError: {
@@ -16267,7 +16234,7 @@ export const onError: {
16267
16234
  * // Stream failed: boom
16268
16235
  * ```
16269
16236
  *
16270
- * @category Error Handling
16237
+ * @category error handling
16271
16238
  * @since 2.0.0
16272
16239
  */
16273
16240
  <E, X, R2>(cleanup: (cause: Cause.Cause<E>) => Effect.Effect<X, never, R2>): <A, R>(self: Stream<A, E, R>) => Stream<A, E, R2 | R>
@@ -16296,7 +16263,7 @@ export const onError: {
16296
16263
  * // Stream failed: boom
16297
16264
  * ```
16298
16265
  *
16299
- * @category Error Handling
16266
+ * @category error handling
16300
16267
  * @since 2.0.0
16301
16268
  */
16302
16269
  <A, E, R, X, R2>(
@@ -16331,8 +16298,8 @@ export const onError: {
16331
16298
  * // [1, 2, 3]
16332
16299
  * ```
16333
16300
  *
16334
- * @category Sequencing
16335
- * @since 4.0.0
16301
+ * @category sequencing
16302
+ * @since 3.6.0
16336
16303
  */
16337
16304
  export const onStart: {
16338
16305
  /**
@@ -16358,8 +16325,8 @@ export const onStart: {
16358
16325
  * // [1, 2, 3]
16359
16326
  * ```
16360
16327
  *
16361
- * @category Sequencing
16362
- * @since 4.0.0
16328
+ * @category sequencing
16329
+ * @since 3.6.0
16363
16330
  */
16364
16331
  <X, EX, RX>(onStart: Effect.Effect<X, EX, RX>): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E | EX, R | RX>
16365
16332
  /**
@@ -16385,8 +16352,8 @@ export const onStart: {
16385
16352
  * // [1, 2, 3]
16386
16353
  * ```
16387
16354
  *
16388
- * @category Sequencing
16389
- * @since 4.0.0
16355
+ * @category sequencing
16356
+ * @since 3.6.0
16390
16357
  */
16391
16358
  <A, E, R, X, EX, RX>(self: Stream<A, E, R>, onStart: Effect.Effect<X, EX, RX>): Stream<A, E | EX, R | RX>
16392
16359
  } = dual(2, <A, E, R, X, EX, RX>(
@@ -16411,7 +16378,7 @@ export const onStart: {
16411
16378
  * // Output: first=1
16412
16379
  * ```
16413
16380
  *
16414
- * @category Sequencing
16381
+ * @category sequencing
16415
16382
  * @since 4.0.0
16416
16383
  */
16417
16384
  export const onFirst: {
@@ -16432,7 +16399,7 @@ export const onFirst: {
16432
16399
  * // Output: first=1
16433
16400
  * ```
16434
16401
  *
16435
- * @category Sequencing
16402
+ * @category sequencing
16436
16403
  * @since 4.0.0
16437
16404
  */
16438
16405
  <A, X, EX, RX>(onFirst: (element: NoInfer<A>) => Effect.Effect<X, EX, RX>): <E, R>(self: Stream<A, E, R>) => Stream<A, E | EX, R | RX>
@@ -16453,7 +16420,7 @@ export const onFirst: {
16453
16420
  * // Output: first=1
16454
16421
  * ```
16455
16422
  *
16456
- * @category Sequencing
16423
+ * @category sequencing
16457
16424
  * @since 4.0.0
16458
16425
  */
16459
16426
  <A, E, R, X, EX, RX>(
@@ -16486,8 +16453,8 @@ export const onFirst: {
16486
16453
  * // [1, 2, 3]
16487
16454
  * ```
16488
16455
  *
16489
- * @category Sequencing
16490
- * @since 4.0.0
16456
+ * @category sequencing
16457
+ * @since 3.6.0
16491
16458
  */
16492
16459
  export const onEnd: {
16493
16460
  /**
@@ -16511,8 +16478,8 @@ export const onEnd: {
16511
16478
  * // [1, 2, 3]
16512
16479
  * ```
16513
16480
  *
16514
- * @category Sequencing
16515
- * @since 4.0.0
16481
+ * @category sequencing
16482
+ * @since 3.6.0
16516
16483
  */
16517
16484
  <X, EX, RX>(onEnd: Effect.Effect<X, EX, RX>): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E | EX, R | RX>
16518
16485
  /**
@@ -16536,8 +16503,8 @@ export const onEnd: {
16536
16503
  * // [1, 2, 3]
16537
16504
  * ```
16538
16505
  *
16539
- * @category Sequencing
16540
- * @since 4.0.0
16506
+ * @category sequencing
16507
+ * @since 3.6.0
16541
16508
  */
16542
16509
  <A, E, R, X, EX, RX>(self: Stream<A, E, R>, onEnd: Effect.Effect<X, EX, RX>): Stream<A, E | EX, R | RX>
16543
16510
  } = dual(2, <A, E, R, X, EX, RX>(
@@ -16568,7 +16535,7 @@ export const onEnd: {
16568
16535
  * ```
16569
16536
  *
16570
16537
  * @category Finalization
16571
- * @since 4.0.0
16538
+ * @since 2.0.0
16572
16539
  */
16573
16540
  export const ensuring: {
16574
16541
  /**
@@ -16594,7 +16561,7 @@ export const ensuring: {
16594
16561
  * ```
16595
16562
  *
16596
16563
  * @category Finalization
16597
- * @since 4.0.0
16564
+ * @since 2.0.0
16598
16565
  */
16599
16566
  <R2>(finalizer: Effect.Effect<unknown, never, R2>): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E, R | R2>
16600
16567
  /**
@@ -16620,7 +16587,7 @@ export const ensuring: {
16620
16587
  * ```
16621
16588
  *
16622
16589
  * @category Finalization
16623
- * @since 4.0.0
16590
+ * @since 2.0.0
16624
16591
  */
16625
16592
  <A, E, R, R2>(self: Stream<A, E, R>, finalizer: Effect.Effect<unknown, never, R2>): Stream<A, E, R | R2>
16626
16593
  } = dual(
@@ -16634,12 +16601,10 @@ export const ensuring: {
16634
16601
  * service requirements. Use `options.local` to build the layer every time; by
16635
16602
  * default, layers are shared between provide calls.
16636
16603
  *
16637
- * **Previously Known As:** `provideSomeLayer`, `provideSomeContext`.
16638
- *
16639
16604
  * **Example** (Providing stream requirements)
16640
16605
  *
16641
16606
  * ```ts
16642
- * import { Console, Effect, Layer, Context, Stream } from "effect"
16607
+ * import { Console, Context, Effect, Layer, Stream } from "effect"
16643
16608
  *
16644
16609
  * class Env extends Context.Service<Env, { readonly name: string }>()("Env") {}
16645
16610
  *
@@ -16663,7 +16628,7 @@ export const ensuring: {
16663
16628
  * // ["Hello, Ada"]
16664
16629
  * ```
16665
16630
  *
16666
- * @category Services
16631
+ * @category services
16667
16632
  * @since 4.0.0
16668
16633
  */
16669
16634
  export const provide: {
@@ -16672,12 +16637,10 @@ export const provide: {
16672
16637
  * service requirements. Use `options.local` to build the layer every time; by
16673
16638
  * default, layers are shared between provide calls.
16674
16639
  *
16675
- * **Previously Known As:** `provideSomeLayer`, `provideSomeContext`.
16676
- *
16677
16640
  * **Example** (Providing stream requirements)
16678
16641
  *
16679
16642
  * ```ts
16680
- * import { Console, Effect, Layer, Context, Stream } from "effect"
16643
+ * import { Console, Context, Effect, Layer, Stream } from "effect"
16681
16644
  *
16682
16645
  * class Env extends Context.Service<Env, { readonly name: string }>()("Env") {}
16683
16646
  *
@@ -16701,7 +16664,7 @@ export const provide: {
16701
16664
  * // ["Hello, Ada"]
16702
16665
  * ```
16703
16666
  *
16704
- * @category Services
16667
+ * @category services
16705
16668
  * @since 4.0.0
16706
16669
  */
16707
16670
  <AL, EL = never, RL = never>(
@@ -16717,12 +16680,10 @@ export const provide: {
16717
16680
  * service requirements. Use `options.local` to build the layer every time; by
16718
16681
  * default, layers are shared between provide calls.
16719
16682
  *
16720
- * **Previously Known As:** `provideSomeLayer`, `provideSomeContext`.
16721
- *
16722
16683
  * **Example** (Providing stream requirements)
16723
16684
  *
16724
16685
  * ```ts
16725
- * import { Console, Effect, Layer, Context, Stream } from "effect"
16686
+ * import { Console, Context, Effect, Layer, Stream } from "effect"
16726
16687
  *
16727
16688
  * class Env extends Context.Service<Env, { readonly name: string }>()("Env") {}
16728
16689
  *
@@ -16746,7 +16707,7 @@ export const provide: {
16746
16707
  * // ["Hello, Ada"]
16747
16708
  * ```
16748
16709
  *
16749
- * @category Services
16710
+ * @category services
16750
16711
  * @since 4.0.0
16751
16712
  */
16752
16713
  <A, E, R, AL, EL = never, RL = never>(
@@ -16770,7 +16731,7 @@ export const provide: {
16770
16731
  * **Example** (Providing multiple services to the stream using a context)
16771
16732
  *
16772
16733
  * ```ts
16773
- * import { Console, Effect, Context, Stream } from "effect"
16734
+ * import { Console, Context, Effect, Stream } from "effect"
16774
16735
  *
16775
16736
  * class Config extends Context.Service<Config, { readonly prefix: string }>()("Config") {}
16776
16737
  * class Greeter extends Context.Service<Greeter, { greet: (name: string) => string }>()("Greeter") {}
@@ -16796,8 +16757,8 @@ export const provide: {
16796
16757
  * // ["Hello!"]
16797
16758
  * ```
16798
16759
  *
16799
- * @category Services
16800
- * @since 4.0.0
16760
+ * @category services
16761
+ * @since 2.0.0
16801
16762
  */
16802
16763
  export const provideContext: {
16803
16764
  /**
@@ -16806,7 +16767,7 @@ export const provideContext: {
16806
16767
  * **Example** (Providing multiple services to the stream using a context)
16807
16768
  *
16808
16769
  * ```ts
16809
- * import { Console, Effect, Context, Stream } from "effect"
16770
+ * import { Console, Context, Effect, Stream } from "effect"
16810
16771
  *
16811
16772
  * class Config extends Context.Service<Config, { readonly prefix: string }>()("Config") {}
16812
16773
  * class Greeter extends Context.Service<Greeter, { greet: (name: string) => string }>()("Greeter") {}
@@ -16832,8 +16793,8 @@ export const provideContext: {
16832
16793
  * // ["Hello!"]
16833
16794
  * ```
16834
16795
  *
16835
- * @category Services
16836
- * @since 4.0.0
16796
+ * @category services
16797
+ * @since 2.0.0
16837
16798
  */
16838
16799
  <R2>(context: Context.Context<R2>): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E, Exclude<R, R2>>
16839
16800
  /**
@@ -16842,7 +16803,7 @@ export const provideContext: {
16842
16803
  * **Example** (Providing multiple services to the stream using a context)
16843
16804
  *
16844
16805
  * ```ts
16845
- * import { Console, Effect, Context, Stream } from "effect"
16806
+ * import { Console, Context, Effect, Stream } from "effect"
16846
16807
  *
16847
16808
  * class Config extends Context.Service<Config, { readonly prefix: string }>()("Config") {}
16848
16809
  * class Greeter extends Context.Service<Greeter, { greet: (name: string) => string }>()("Greeter") {}
@@ -16868,8 +16829,8 @@ export const provideContext: {
16868
16829
  * // ["Hello!"]
16869
16830
  * ```
16870
16831
  *
16871
- * @category Services
16872
- * @since 4.0.0
16832
+ * @category services
16833
+ * @since 2.0.0
16873
16834
  */
16874
16835
  <A, E, R, R2>(self: Stream<A, E, R>, context: Context.Context<R2>): Stream<A, E, Exclude<R, R2>>
16875
16836
  } = dual(
@@ -16885,7 +16846,7 @@ export const provideContext: {
16885
16846
  * **Example** (Providing a stream service)
16886
16847
  *
16887
16848
  * ```ts
16888
- * import { Console, Effect, Context, Stream } from "effect"
16849
+ * import { Console, Context, Effect, Stream } from "effect"
16889
16850
  *
16890
16851
  * class Greeter extends Context.Service<Greeter, {
16891
16852
  * greet: (name: string) => string
@@ -16912,8 +16873,8 @@ export const provideContext: {
16912
16873
  * //=> ["Hello, Ada"]
16913
16874
  * ```
16914
16875
  *
16915
- * @category Services
16916
- * @since 4.0.0
16876
+ * @category services
16877
+ * @since 2.0.0
16917
16878
  */
16918
16879
  export const provideService: {
16919
16880
  /**
@@ -16923,7 +16884,7 @@ export const provideService: {
16923
16884
  * **Example** (Providing a stream service)
16924
16885
  *
16925
16886
  * ```ts
16926
- * import { Console, Effect, Context, Stream } from "effect"
16887
+ * import { Console, Context, Effect, Stream } from "effect"
16927
16888
  *
16928
16889
  * class Greeter extends Context.Service<Greeter, {
16929
16890
  * greet: (name: string) => string
@@ -16950,8 +16911,8 @@ export const provideService: {
16950
16911
  * //=> ["Hello, Ada"]
16951
16912
  * ```
16952
16913
  *
16953
- * @category Services
16954
- * @since 4.0.0
16914
+ * @category services
16915
+ * @since 2.0.0
16955
16916
  */
16956
16917
  <I, S>(key: Context.Key<I, S>, service: NoInfer<S>): <A, E, R>(
16957
16918
  self: Stream<A, E, R>
@@ -16963,7 +16924,7 @@ export const provideService: {
16963
16924
  * **Example** (Providing a stream service)
16964
16925
  *
16965
16926
  * ```ts
16966
- * import { Console, Effect, Context, Stream } from "effect"
16927
+ * import { Console, Context, Effect, Stream } from "effect"
16967
16928
  *
16968
16929
  * class Greeter extends Context.Service<Greeter, {
16969
16930
  * greet: (name: string) => string
@@ -16990,8 +16951,8 @@ export const provideService: {
16990
16951
  * //=> ["Hello, Ada"]
16991
16952
  * ```
16992
16953
  *
16993
- * @category Services
16994
- * @since 4.0.0
16954
+ * @category services
16955
+ * @since 2.0.0
16995
16956
  */
16996
16957
  <A, E, R, I, S>(self: Stream<A, E, R>, key: Context.Key<I, S>, service: NoInfer<S>): Stream<A, E, Exclude<R, I>>
16997
16958
  } = dual(3, <A, E, R, I, S>(
@@ -17006,7 +16967,7 @@ export const provideService: {
17006
16967
  * **Example** (Providing a stream service effectfully)
17007
16968
  *
17008
16969
  * ```ts
17009
- * import { Console, Effect, Context, Stream } from "effect"
16970
+ * import { Console, Context, Effect, Stream } from "effect"
17010
16971
  *
17011
16972
  * class ApiConfig extends Context.Service<ApiConfig, { readonly baseUrl: string }>()("ApiConfig") {}
17012
16973
  *
@@ -17036,8 +16997,8 @@ export const provideService: {
17036
16997
  * // ["https://example.com"]
17037
16998
  * ```
17038
16999
  *
17039
- * @category Services
17040
- * @since 4.0.0
17000
+ * @category services
17001
+ * @since 2.0.0
17041
17002
  */
17042
17003
  export const provideServiceEffect: {
17043
17004
  /**
@@ -17046,7 +17007,7 @@ export const provideServiceEffect: {
17046
17007
  * **Example** (Providing a stream service effectfully)
17047
17008
  *
17048
17009
  * ```ts
17049
- * import { Console, Effect, Context, Stream } from "effect"
17010
+ * import { Console, Context, Effect, Stream } from "effect"
17050
17011
  *
17051
17012
  * class ApiConfig extends Context.Service<ApiConfig, { readonly baseUrl: string }>()("ApiConfig") {}
17052
17013
  *
@@ -17076,8 +17037,8 @@ export const provideServiceEffect: {
17076
17037
  * // ["https://example.com"]
17077
17038
  * ```
17078
17039
  *
17079
- * @category Services
17080
- * @since 4.0.0
17040
+ * @category services
17041
+ * @since 2.0.0
17081
17042
  */
17082
17043
  <I, S, ES, RS>(key: Context.Key<I, S>, service: Effect.Effect<NoInfer<S>, ES, RS>): <A, E, R>(
17083
17044
  self: Stream<A, E, R>
@@ -17088,7 +17049,7 @@ export const provideServiceEffect: {
17088
17049
  * **Example** (Providing a stream service effectfully)
17089
17050
  *
17090
17051
  * ```ts
17091
- * import { Console, Effect, Context, Stream } from "effect"
17052
+ * import { Console, Context, Effect, Stream } from "effect"
17092
17053
  *
17093
17054
  * class ApiConfig extends Context.Service<ApiConfig, { readonly baseUrl: string }>()("ApiConfig") {}
17094
17055
  *
@@ -17118,8 +17079,8 @@ export const provideServiceEffect: {
17118
17079
  * // ["https://example.com"]
17119
17080
  * ```
17120
17081
  *
17121
- * @category Services
17122
- * @since 4.0.0
17082
+ * @category services
17083
+ * @since 2.0.0
17123
17084
  */
17124
17085
  <A, E, R, I, S, ES, RS>(
17125
17086
  self: Stream<A, E, R>,
@@ -17139,7 +17100,7 @@ export const provideServiceEffect: {
17139
17100
  * **Example** (Updating the stream context)
17140
17101
  *
17141
17102
  * ```ts
17142
- * import { Console, Effect, Context, Stream } from "effect"
17103
+ * import { Console, Context, Effect, Stream } from "effect"
17143
17104
  *
17144
17105
  * class Logger extends Context.Service<Logger, { prefix: string }>()("Logger") {}
17145
17106
  * class Config extends Context.Service<Config, { name: string }>()("Config") {}
@@ -17169,8 +17130,8 @@ export const provideServiceEffect: {
17169
17130
  * //=> [ "Hello World" ]
17170
17131
  * ```
17171
17132
  *
17172
- * @category Services
17173
- * @since 2.0.0
17133
+ * @category services
17134
+ * @since 4.0.0
17174
17135
  */
17175
17136
  export const updateContext: {
17176
17137
  /**
@@ -17180,7 +17141,7 @@ export const updateContext: {
17180
17141
  * **Example** (Updating the stream context)
17181
17142
  *
17182
17143
  * ```ts
17183
- * import { Console, Effect, Context, Stream } from "effect"
17144
+ * import { Console, Context, Effect, Stream } from "effect"
17184
17145
  *
17185
17146
  * class Logger extends Context.Service<Logger, { prefix: string }>()("Logger") {}
17186
17147
  * class Config extends Context.Service<Config, { name: string }>()("Config") {}
@@ -17210,8 +17171,8 @@ export const updateContext: {
17210
17171
  * //=> [ "Hello World" ]
17211
17172
  * ```
17212
17173
  *
17213
- * @category Services
17214
- * @since 2.0.0
17174
+ * @category services
17175
+ * @since 4.0.0
17215
17176
  */
17216
17177
  <R, R2>(f: (context: Context.Context<R2>) => Context.Context<R>): <A, E>(
17217
17178
  self: Stream<A, E, R>
@@ -17223,7 +17184,7 @@ export const updateContext: {
17223
17184
  * **Example** (Updating the stream context)
17224
17185
  *
17225
17186
  * ```ts
17226
- * import { Console, Effect, Context, Stream } from "effect"
17187
+ * import { Console, Context, Effect, Stream } from "effect"
17227
17188
  *
17228
17189
  * class Logger extends Context.Service<Logger, { prefix: string }>()("Logger") {}
17229
17190
  * class Config extends Context.Service<Config, { name: string }>()("Config") {}
@@ -17253,8 +17214,8 @@ export const updateContext: {
17253
17214
  * //=> [ "Hello World" ]
17254
17215
  * ```
17255
17216
  *
17256
- * @category Services
17257
- * @since 2.0.0
17217
+ * @category services
17218
+ * @since 4.0.0
17258
17219
  */
17259
17220
  <A, E, R, R2>(
17260
17221
  self: Stream<A, E, R>,
@@ -17271,7 +17232,7 @@ export const updateContext: {
17271
17232
  * **Example** (Updating a stream service)
17272
17233
  *
17273
17234
  * ```ts
17274
- * import { Console, Effect, Context, Stream } from "effect"
17235
+ * import { Console, Context, Effect, Stream } from "effect"
17275
17236
  *
17276
17237
  * class Counter extends Context.Service<Counter, { count: number }>()("Counter") {}
17277
17238
  *
@@ -17288,7 +17249,7 @@ export const updateContext: {
17288
17249
  * // Output: Updated count: 1
17289
17250
  * ```
17290
17251
  *
17291
- * @category Services
17252
+ * @category services
17292
17253
  * @since 2.0.0
17293
17254
  */
17294
17255
  export const updateService: {
@@ -17298,7 +17259,7 @@ export const updateService: {
17298
17259
  * **Example** (Updating a stream service)
17299
17260
  *
17300
17261
  * ```ts
17301
- * import { Console, Effect, Context, Stream } from "effect"
17262
+ * import { Console, Context, Effect, Stream } from "effect"
17302
17263
  *
17303
17264
  * class Counter extends Context.Service<Counter, { count: number }>()("Counter") {}
17304
17265
  *
@@ -17315,7 +17276,7 @@ export const updateService: {
17315
17276
  * // Output: Updated count: 1
17316
17277
  * ```
17317
17278
  *
17318
- * @category Services
17279
+ * @category services
17319
17280
  * @since 2.0.0
17320
17281
  */
17321
17282
  <I, S>(key: Context.Key<I, S>, f: (service: NoInfer<S>) => S): <A, E, R>(
@@ -17327,7 +17288,7 @@ export const updateService: {
17327
17288
  * **Example** (Updating a stream service)
17328
17289
  *
17329
17290
  * ```ts
17330
- * import { Console, Effect, Context, Stream } from "effect"
17291
+ * import { Console, Context, Effect, Stream } from "effect"
17331
17292
  *
17332
17293
  * class Counter extends Context.Service<Counter, { count: number }>()("Counter") {}
17333
17294
  *
@@ -17344,7 +17305,7 @@ export const updateService: {
17344
17305
  * // Output: Updated count: 1
17345
17306
  * ```
17346
17307
  *
17347
- * @category Services
17308
+ * @category services
17348
17309
  * @since 2.0.0
17349
17310
  */
17350
17311
  <A, E, R, I, S>(
@@ -17383,8 +17344,8 @@ export const updateService: {
17383
17344
  * // [1, 2, 3]
17384
17345
  * ```
17385
17346
  *
17386
- * @category Tracing
17387
- * @since 4.0.0
17347
+ * @category tracing
17348
+ * @since 2.0.0
17388
17349
  */
17389
17350
  export const withSpan: {
17390
17351
  /**
@@ -17406,8 +17367,8 @@ export const withSpan: {
17406
17367
  * // [1, 2, 3]
17407
17368
  * ```
17408
17369
  *
17409
- * @category Tracing
17410
- * @since 4.0.0
17370
+ * @category tracing
17371
+ * @since 2.0.0
17411
17372
  */
17412
17373
  (name: string, options?: SpanOptions): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E, Exclude<R, ParentSpan>>
17413
17374
  /**
@@ -17429,8 +17390,8 @@ export const withSpan: {
17429
17390
  * // [1, 2, 3]
17430
17391
  * ```
17431
17392
  *
17432
- * @category Tracing
17433
- * @since 4.0.0
17393
+ * @category tracing
17394
+ * @since 2.0.0
17434
17395
  */
17435
17396
  <A, E, R>(self: Stream<A, E, R>, name: string, options?: SpanOptions): Stream<A, E, Exclude<R, ParentSpan>>
17436
17397
  } = function() {
@@ -17450,7 +17411,7 @@ export const withSpan: {
17450
17411
  * **Example** (Starting stream do notation)
17451
17412
  *
17452
17413
  * ```ts
17453
- * import { Console, Effect, Stream, pipe } from "effect"
17414
+ * import { Console, Effect, pipe, Stream } from "effect"
17454
17415
  *
17455
17416
  * const program = pipe(
17456
17417
  * Stream.Do,
@@ -17468,7 +17429,7 @@ export const withSpan: {
17468
17429
  * ```
17469
17430
  *
17470
17431
  * @category Do Notation
17471
- * @since 4.0.0
17432
+ * @since 2.0.0
17472
17433
  */
17473
17434
  export const Do: Stream<{}> = succeed({})
17474
17435
 
@@ -17512,7 +17473,7 @@ export {
17512
17473
  * ```
17513
17474
  *
17514
17475
  * @category Do Notation
17515
- * @since 4.0.0
17476
+ * @since 2.0.0
17516
17477
  */
17517
17478
  let_ as let
17518
17479
  }
@@ -17537,7 +17498,7 @@ export {
17537
17498
  * ```
17538
17499
  *
17539
17500
  * @category Do Notation
17540
- * @since 4.0.0
17501
+ * @since 2.0.0
17541
17502
  */
17542
17503
  export const bind: {
17543
17504
  /**
@@ -17560,7 +17521,7 @@ export const bind: {
17560
17521
  * ```
17561
17522
  *
17562
17523
  * @category Do Notation
17563
- * @since 4.0.0
17524
+ * @since 2.0.0
17564
17525
  */
17565
17526
  <N extends string, A, B, E2, R2>(
17566
17527
  tag: Exclude<N, keyof A>,
@@ -17590,7 +17551,7 @@ export const bind: {
17590
17551
  * ```
17591
17552
  *
17592
17553
  * @category Do Notation
17593
- * @since 4.0.0
17554
+ * @since 2.0.0
17594
17555
  */
17595
17556
  <A, E, R, N extends string, B, E2, R2>(
17596
17557
  self: Stream<A, E, R>,
@@ -17635,7 +17596,7 @@ export const bind: {
17635
17596
  * ```
17636
17597
  *
17637
17598
  * @category Do Notation
17638
- * @since 4.0.0
17599
+ * @since 2.0.0
17639
17600
  */
17640
17601
  export const bindEffect: {
17641
17602
  /**
@@ -17661,7 +17622,7 @@ export const bindEffect: {
17661
17622
  * ```
17662
17623
  *
17663
17624
  * @category Do Notation
17664
- * @since 4.0.0
17625
+ * @since 2.0.0
17665
17626
  */
17666
17627
  <N extends string, A, B, E2, R2>(
17667
17628
  tag: Exclude<N, keyof A>,
@@ -17695,7 +17656,7 @@ export const bindEffect: {
17695
17656
  * ```
17696
17657
  *
17697
17658
  * @category Do Notation
17698
- * @since 4.0.0
17659
+ * @since 2.0.0
17699
17660
  */
17700
17661
  <A, E, R, N extends string, B, E2, R2>(
17701
17662
  self: Stream<A, E, R>,
@@ -17736,7 +17697,7 @@ export const bindEffect: {
17736
17697
  * ```
17737
17698
  *
17738
17699
  * @category Do Notation
17739
- * @since 4.0.0
17700
+ * @since 2.0.0
17740
17701
  */
17741
17702
  export const bindTo: {
17742
17703
  /**
@@ -17756,7 +17717,7 @@ export const bindTo: {
17756
17717
  * ```
17757
17718
  *
17758
17719
  * @category Do Notation
17759
- * @since 4.0.0
17720
+ * @since 2.0.0
17760
17721
  */
17761
17722
  <N extends string>(name: N): <A, E, R>(self: Stream<A, E, R>) => Stream<{ [K in N]: A }, E, R>
17762
17723
  /**
@@ -17776,7 +17737,7 @@ export const bindTo: {
17776
17737
  * ```
17777
17738
  *
17778
17739
  * @category Do Notation
17779
- * @since 4.0.0
17740
+ * @since 2.0.0
17780
17741
  */
17781
17742
  <A, E, R, N extends string>(self: Stream<A, E, R>, name: N): Stream<{ [K in N]: A }, E, R>
17782
17743
  } = dual(2, <A, E, R, N extends string>(
@@ -17798,7 +17759,7 @@ export const bindTo: {
17798
17759
  * // 6
17799
17760
  * ```
17800
17761
  *
17801
- * @category Destructors
17762
+ * @category destructors
17802
17763
  * @since 2.0.0
17803
17764
  */
17804
17765
  export const run: {
@@ -17816,7 +17777,7 @@ export const run: {
17816
17777
  * // 6
17817
17778
  * ```
17818
17779
  *
17819
- * @category Destructors
17780
+ * @category destructors
17820
17781
  * @since 2.0.0
17821
17782
  */
17822
17783
  <A2, A, L, E2, R2>(sink: Sink.Sink<A2, A, L, E2, R2>): <E, R>(self: Stream<A, E, R>) => Effect.Effect<A2, E2 | E, R | R2>
@@ -17834,7 +17795,7 @@ export const run: {
17834
17795
  * // 6
17835
17796
  * ```
17836
17797
  *
17837
- * @category Destructors
17798
+ * @category destructors
17838
17799
  * @since 2.0.0
17839
17800
  */
17840
17801
  <A, E, R, L, A2, E2, R2>(self: Stream<A, E, R>, sink: Sink.Sink<A2, A, L, E2, R2>): Effect.Effect<A2, E | E2, R | R2>
@@ -17868,7 +17829,7 @@ export const run: {
17868
17829
  * // [1, 2, 3, 4, 5]
17869
17830
  * ```
17870
17831
  *
17871
- * @category Destructors
17832
+ * @category destructors
17872
17833
  * @since 2.0.0
17873
17834
  */
17874
17835
  export const runCollect = <A, E, R>(self: Stream<A, E, R>): Effect.Effect<Array<A>, E, R> =>
@@ -17902,7 +17863,7 @@ export const runCollect = <A, E, R>(self: Stream<A, E, R>): Effect.Effect<Array<
17902
17863
  * // 5
17903
17864
  * ```
17904
17865
  *
17905
- * @category Destructors
17866
+ * @category destructors
17906
17867
  * @since 2.0.0
17907
17868
  */
17908
17869
  export const runCount = <A, E, R>(self: Stream<A, E, R>): Effect.Effect<number, E, R> =>
@@ -17925,7 +17886,7 @@ export const runCount = <A, E, R>(self: Stream<A, E, R>): Effect.Effect<number,
17925
17886
  * // 6
17926
17887
  * ```
17927
17888
  *
17928
- * @category Destructors
17889
+ * @category destructors
17929
17890
  * @since 2.0.0
17930
17891
  */
17931
17892
  export const runSum = <E, R>(self: Stream<number, E, R>): Effect.Effect<number, E, R> =>
@@ -17957,7 +17918,7 @@ export const runSum = <E, R>(self: Stream<number, E, R>): Effect.Effect<number,
17957
17918
  * // 6
17958
17919
  * ```
17959
17920
  *
17960
- * @category Destructors
17921
+ * @category destructors
17961
17922
  * @since 2.0.0
17962
17923
  */
17963
17924
  export const runFold: {
@@ -17982,7 +17943,7 @@ export const runFold: {
17982
17943
  * // 6
17983
17944
  * ```
17984
17945
  *
17985
- * @category Destructors
17946
+ * @category destructors
17986
17947
  * @since 2.0.0
17987
17948
  */
17988
17949
  <Z, A>(initial: LazyArg<Z>, f: (acc: Z, a: A) => Z): <E, R>(
@@ -18009,7 +17970,7 @@ export const runFold: {
18009
17970
  * // 6
18010
17971
  * ```
18011
17972
  *
18012
- * @category Destructors
17973
+ * @category destructors
18013
17974
  * @since 2.0.0
18014
17975
  */
18015
17976
  <A, E, R, Z>(self: Stream<A, E, R>, initial: LazyArg<Z>, f: (acc: Z, a: A) => Z): Effect.Effect<Z, E, R>
@@ -18046,7 +18007,7 @@ export const runFold: {
18046
18007
  * // 6
18047
18008
  * ```
18048
18009
  *
18049
- * @category Destructors
18010
+ * @category destructors
18050
18011
  * @since 2.0.0
18051
18012
  */
18052
18013
  export const runFoldEffect: {
@@ -18071,7 +18032,7 @@ export const runFoldEffect: {
18071
18032
  * // 6
18072
18033
  * ```
18073
18034
  *
18074
- * @category Destructors
18035
+ * @category destructors
18075
18036
  * @since 2.0.0
18076
18037
  */
18077
18038
  <Z, A, EX, RX>(initial: LazyArg<Z>, f: (acc: Z, a: A) => Effect.Effect<Z, EX, RX>): <E, R>(
@@ -18098,7 +18059,7 @@ export const runFoldEffect: {
18098
18059
  * // 6
18099
18060
  * ```
18100
18061
  *
18101
- * @category Destructors
18062
+ * @category destructors
18102
18063
  * @since 2.0.0
18103
18064
  */
18104
18065
  <A, E, R, Z, EX, RX>(
@@ -18144,7 +18105,7 @@ export const runFoldEffect: {
18144
18105
  * // 1
18145
18106
  * ```
18146
18107
  *
18147
- * @category Destructors
18108
+ * @category destructors
18148
18109
  * @since 2.0.0
18149
18110
  */
18150
18111
  export const runHead = <A, E, R>(self: Stream<A, E, R>): Effect.Effect<Option.Option<A>, E, R> =>
@@ -18153,7 +18114,7 @@ export const runHead = <A, E, R>(self: Stream<A, E, R>): Effect.Effect<Option.Op
18153
18114
  /**
18154
18115
  * Runs the stream and returns the last element as an `Option`.
18155
18116
  *
18156
- * @category Destructors
18117
+ * @category destructors
18157
18118
  * @since 2.0.0
18158
18119
  */
18159
18120
  export const runLast = <A, E, R>(self: Stream<A, E, R>): Effect.Effect<Option.Option<A>, E, R> =>
@@ -18179,7 +18140,7 @@ export const runLast = <A, E, R>(self: Stream<A, E, R>): Effect.Effect<Option.Op
18179
18140
  * // Processing: 3
18180
18141
  * ```
18181
18142
  *
18182
- * @category Destructors
18143
+ * @category destructors
18183
18144
  * @since 2.0.0
18184
18145
  */
18185
18146
  export const runForEach: {
@@ -18203,7 +18164,7 @@ export const runForEach: {
18203
18164
  * // Processing: 3
18204
18165
  * ```
18205
18166
  *
18206
- * @category Destructors
18167
+ * @category destructors
18207
18168
  * @since 2.0.0
18208
18169
  */
18209
18170
  <A, X, E2, R2>(f: (a: A) => Effect.Effect<X, E2, R2>): <E, R>(self: Stream<A, E, R>) => Effect.Effect<void, E2 | E, R2 | R>
@@ -18227,7 +18188,7 @@ export const runForEach: {
18227
18188
  * // Processing: 3
18228
18189
  * ```
18229
18190
  *
18230
- * @category Destructors
18191
+ * @category destructors
18231
18192
  * @since 2.0.0
18232
18193
  */
18233
18194
  <A, E, R, X, E2, R2>(self: Stream<A, E, R>, f: (a: A) => Effect.Effect<X, E2, R2>): Effect.Effect<void, E | E2, R | R2>
@@ -18270,7 +18231,7 @@ export const runForEach: {
18270
18231
  * // Processing: 3
18271
18232
  * ```
18272
18233
  *
18273
- * @category Destructors
18234
+ * @category destructors
18274
18235
  * @since 2.0.0
18275
18236
  */
18276
18237
  export const runForEachWhile: {
@@ -18300,7 +18261,7 @@ export const runForEachWhile: {
18300
18261
  * // Processing: 3
18301
18262
  * ```
18302
18263
  *
18303
- * @category Destructors
18264
+ * @category destructors
18304
18265
  * @since 2.0.0
18305
18266
  */
18306
18267
  <A, E2, R2>(f: (a: A) => Effect.Effect<boolean, E2, R2>): <E, R>(self: Stream<A, E, R>) => Effect.Effect<void, E2 | E, R2 | R>
@@ -18330,7 +18291,7 @@ export const runForEachWhile: {
18330
18291
  * // Processing: 3
18331
18292
  * ```
18332
18293
  *
18333
- * @category Destructors
18294
+ * @category destructors
18334
18295
  * @since 2.0.0
18335
18296
  */
18336
18297
  <A, E, R, E2, R2>(self: Stream<A, E, R>, f: (a: A) => Effect.Effect<boolean, E2, R2>): Effect.Effect<void, E | E2, R | R2>
@@ -18374,8 +18335,8 @@ export const runForEachWhile: {
18374
18335
  * // Processing chunk: 1, 2, 3, 4, 5
18375
18336
  * ```
18376
18337
  *
18377
- * @category Destructors
18378
- * @since 2.0.0
18338
+ * @category destructors
18339
+ * @since 4.0.0
18379
18340
  */
18380
18341
  export const runForEachArray: {
18381
18342
  /**
@@ -18398,8 +18359,8 @@ export const runForEachArray: {
18398
18359
  * // Processing chunk: 1, 2, 3, 4, 5
18399
18360
  * ```
18400
18361
  *
18401
- * @category Destructors
18402
- * @since 2.0.0
18362
+ * @category destructors
18363
+ * @since 4.0.0
18403
18364
  */
18404
18365
  <A, X, E2, R2>(f: (a: Arr.NonEmptyReadonlyArray<A>) => Effect.Effect<X, E2, R2>): <E, R>(self: Stream<A, E, R>) => Effect.Effect<void, E2 | E, R2 | R>
18405
18366
  /**
@@ -18422,8 +18383,8 @@ export const runForEachArray: {
18422
18383
  * // Processing chunk: 1, 2, 3, 4, 5
18423
18384
  * ```
18424
18385
  *
18425
- * @category Destructors
18426
- * @since 2.0.0
18386
+ * @category destructors
18387
+ * @since 4.0.0
18427
18388
  */
18428
18389
  <A, E, R, X, E2, R2>(
18429
18390
  self: Stream<A, E, R>,
@@ -18456,7 +18417,7 @@ export const runForEachArray: {
18456
18417
  * // Processing: 3
18457
18418
  * ```
18458
18419
  *
18459
- * @category Destructors
18420
+ * @category destructors
18460
18421
  * @since 2.0.0
18461
18422
  */
18462
18423
  export const runDrain = <A, E, R>(self: Stream<A, E, R>): Effect.Effect<void, E, R> => Channel.runDrain(self.channel)
@@ -18486,7 +18447,7 @@ export const runDrain = <A, E, R>(self: Stream<A, E, R>): Effect.Effect<void, E,
18486
18447
  * // [1, 2, 3]
18487
18448
  * ```
18488
18449
  *
18489
- * @category Destructors
18450
+ * @category destructors
18490
18451
  * @since 2.0.0
18491
18452
  */
18492
18453
  export const toPull = <A, E, R>(
@@ -18511,7 +18472,7 @@ export const toPull = <A, E, R>(
18511
18472
  * // Hello World!
18512
18473
  * ```
18513
18474
  *
18514
- * @category Destructors
18475
+ * @category destructors
18515
18476
  * @since 2.0.0
18516
18477
  */
18517
18478
  export const mkString = <E, R>(self: Stream<string, E, R>): Effect.Effect<string, E, R> =>
@@ -18539,7 +18500,7 @@ export const mkString = <E, R>(self: Stream<string, E, R>): Effect.Effect<string
18539
18500
  * // [1, 2, 3, 4]
18540
18501
  * ```
18541
18502
  *
18542
- * @category Destructors
18503
+ * @category destructors
18543
18504
  * @since 4.0.0
18544
18505
  */
18545
18506
  export const mkUint8Array = <E, R>(self: Stream<Uint8Array, E, R>): Effect.Effect<Uint8Array, E, R> =>
@@ -18587,8 +18548,8 @@ export const mkUint8Array = <E, R>(self: Stream<Uint8Array, E, R>): Effect.Effec
18587
18548
  * const readableStream = Stream.toReadableStreamWith(stream, Context.empty())
18588
18549
  * ```
18589
18550
  *
18590
- * @category Destructors
18591
- * @since 2.0.0
18551
+ * @category destructors
18552
+ * @since 4.0.0
18592
18553
  */
18593
18554
  export const toReadableStreamWith = dual<
18594
18555
  /**
@@ -18605,8 +18566,8 @@ export const toReadableStreamWith = dual<
18605
18566
  * const readableStream = Stream.toReadableStreamWith(stream, Context.empty())
18606
18567
  * ```
18607
18568
  *
18608
- * @category Destructors
18609
- * @since 2.0.0
18569
+ * @category destructors
18570
+ * @since 4.0.0
18610
18571
  */
18611
18572
  <A, XR>(
18612
18573
  context: Context.Context<XR>,
@@ -18626,8 +18587,8 @@ export const toReadableStreamWith = dual<
18626
18587
  * const readableStream = Stream.toReadableStreamWith(stream, Context.empty())
18627
18588
  * ```
18628
18589
  *
18629
- * @category Destructors
18630
- * @since 2.0.0
18590
+ * @category destructors
18591
+ * @since 4.0.0
18631
18592
  */
18632
18593
  <A, E, XR, R extends XR>(
18633
18594
  self: Stream<A, E, R>,
@@ -18695,7 +18656,7 @@ export const toReadableStreamWith = dual<
18695
18656
  * const reader = readableStream.getReader()
18696
18657
  * ```
18697
18658
  *
18698
- * @category Destructors
18659
+ * @category destructors
18699
18660
  * @since 2.0.0
18700
18661
  */
18701
18662
  export const toReadableStream: {
@@ -18713,7 +18674,7 @@ export const toReadableStream: {
18713
18674
  * const reader = readableStream.getReader()
18714
18675
  * ```
18715
18676
  *
18716
- * @category Destructors
18677
+ * @category destructors
18717
18678
  * @since 2.0.0
18718
18679
  */
18719
18680
  <A>(options?: { readonly strategy?: QueuingStrategy<A> | undefined }): <E>(
@@ -18733,7 +18694,7 @@ export const toReadableStream: {
18733
18694
  * const reader = readableStream.getReader()
18734
18695
  * ```
18735
18696
  *
18736
- * @category Destructors
18697
+ * @category destructors
18737
18698
  * @since 2.0.0
18738
18699
  */
18739
18700
  <A, E>(
@@ -18768,7 +18729,7 @@ export const toReadableStream: {
18768
18729
  * Effect.runPromise(effect)
18769
18730
  * ```
18770
18731
  *
18771
- * @category Destructors
18732
+ * @category destructors
18772
18733
  * @since 2.0.0
18773
18734
  */
18774
18735
  export const toReadableStreamEffect: {
@@ -18792,7 +18753,7 @@ export const toReadableStreamEffect: {
18792
18753
  * Effect.runPromise(effect)
18793
18754
  * ```
18794
18755
  *
18795
- * @category Destructors
18756
+ * @category destructors
18796
18757
  * @since 2.0.0
18797
18758
  */
18798
18759
  <A>(options?: { readonly strategy?: QueuingStrategy<A> | undefined }): <E, R>(
@@ -18818,7 +18779,7 @@ export const toReadableStreamEffect: {
18818
18779
  * Effect.runPromise(effect)
18819
18780
  * ```
18820
18781
  *
18821
- * @category Destructors
18782
+ * @category destructors
18822
18783
  * @since 2.0.0
18823
18784
  */
18824
18785
  <A, E, R>(
@@ -18852,7 +18813,7 @@ export const toReadableStreamEffect: {
18852
18813
  * Effect.runPromise(effect)
18853
18814
  * ```
18854
18815
  *
18855
- * @category Destructors
18816
+ * @category destructors
18856
18817
  * @since 2.0.0
18857
18818
  */
18858
18819
  R>(),
@@ -18883,8 +18844,8 @@ export const toReadableStreamEffect: {
18883
18844
  * // [ 1, 2, 3 ]
18884
18845
  * ```
18885
18846
  *
18886
- * @category Destructors
18887
- * @since 2.0.0
18847
+ * @category destructors
18848
+ * @since 4.0.0
18888
18849
  */
18889
18850
  export const toAsyncIterableWith: {
18890
18851
  /**
@@ -18910,8 +18871,8 @@ export const toAsyncIterableWith: {
18910
18871
  * // [ 1, 2, 3 ]
18911
18872
  * ```
18912
18873
  *
18913
- * @category Destructors
18914
- * @since 2.0.0
18874
+ * @category destructors
18875
+ * @since 4.0.0
18915
18876
  */
18916
18877
  <XR>(context: Context.Context<XR>): <A, E, R extends XR>(self: Stream<A, E, R>) => AsyncIterable<A>
18917
18878
  /**
@@ -18937,8 +18898,8 @@ export const toAsyncIterableWith: {
18937
18898
  * // [ 1, 2, 3 ]
18938
18899
  * ```
18939
18900
  *
18940
- * @category Destructors
18941
- * @since 2.0.0
18901
+ * @category destructors
18902
+ * @since 4.0.0
18942
18903
  */
18943
18904
  <A, E, XR, R extends XR>(self: Stream<A, E, R>, context: Context.Context<XR>): AsyncIterable<A>
18944
18905
  } = dual(
@@ -19007,8 +18968,8 @@ export const toAsyncIterableWith: {
19007
18968
  * // [ 1, 2, 3 ]
19008
18969
  * ```
19009
18970
  *
19010
- * @category Destructors
19011
- * @since 2.0.0
18971
+ * @category destructors
18972
+ * @since 3.15.0
19012
18973
  */
19013
18974
  export const toAsyncIterableEffect = <A, E, R>(self: Stream<A, E, R>): Effect.Effect<AsyncIterable<A>, never, R> =>
19014
18975
  Effect.map(
@@ -19039,8 +19000,8 @@ export const toAsyncIterableEffect = <A, E, R>(self: Stream<A, E, R>): Effect.Ef
19039
19000
  * // [ 1, 2, 3 ]
19040
19001
  * ```
19041
19002
  *
19042
- * @category Destructors
19043
- * @since 2.0.0
19003
+ * @category destructors
19004
+ * @since 3.15.0
19044
19005
  */
19045
19006
  export const toAsyncIterable = <A, E>(self: Stream<A, E>): AsyncIterable<A> =>
19046
19007
  toAsyncIterableWith(self, Context.empty())
@@ -19074,7 +19035,7 @@ export const toAsyncIterable = <A, E>(self: Stream<A, E>): AsyncIterable<A> =>
19074
19035
  * //=> 2
19075
19036
  * ```
19076
19037
  *
19077
- * @category Destructors
19038
+ * @category destructors
19078
19039
  * @since 2.0.0
19079
19040
  */
19080
19041
  export const runIntoPubSub: {
@@ -19107,7 +19068,7 @@ export const runIntoPubSub: {
19107
19068
  * //=> 2
19108
19069
  * ```
19109
19070
  *
19110
- * @category Destructors
19071
+ * @category destructors
19111
19072
  * @since 2.0.0
19112
19073
  */
19113
19074
  <A>(
@@ -19145,7 +19106,7 @@ export const runIntoPubSub: {
19145
19106
  * //=> 2
19146
19107
  * ```
19147
19108
  *
19148
- * @category Destructors
19109
+ * @category destructors
19149
19110
  * @since 2.0.0
19150
19111
  */
19151
19112
  <A, E, R>(
@@ -19185,7 +19146,7 @@ export const runIntoPubSub: {
19185
19146
  * }))
19186
19147
  * ```
19187
19148
  *
19188
- * @category Destructors
19149
+ * @category destructors
19189
19150
  * @since 2.0.0
19190
19151
  */
19191
19152
  export const toPubSub: {
@@ -19211,7 +19172,7 @@ export const toPubSub: {
19211
19172
  * }))
19212
19173
  * ```
19213
19174
  *
19214
- * @category Destructors
19175
+ * @category destructors
19215
19176
  * @since 2.0.0
19216
19177
  */
19217
19178
  (
@@ -19248,7 +19209,7 @@ export const toPubSub: {
19248
19209
  * }))
19249
19210
  * ```
19250
19211
  *
19251
- * @category Destructors
19212
+ * @category destructors
19252
19213
  * @since 2.0.0
19253
19214
  */
19254
19215
  <A, E, R>(
@@ -19304,7 +19265,7 @@ export const toPubSub: {
19304
19265
  * })
19305
19266
  * ```
19306
19267
  *
19307
- * @category Destructors
19268
+ * @category destructors
19308
19269
  * @since 4.0.0
19309
19270
  */
19310
19271
  export const toPubSubTake: {
@@ -19331,7 +19292,7 @@ export const toPubSubTake: {
19331
19292
  * })
19332
19293
  * ```
19333
19294
  *
19334
- * @category Destructors
19295
+ * @category destructors
19335
19296
  * @since 4.0.0
19336
19297
  */
19337
19298
  (
@@ -19367,7 +19328,7 @@ export const toPubSubTake: {
19367
19328
  * })
19368
19329
  * ```
19369
19330
  *
19370
- * @category Destructors
19331
+ * @category destructors
19371
19332
  * @since 4.0.0
19372
19333
  */
19373
19334
  <A, E, R>(
@@ -19417,7 +19378,7 @@ export const toPubSubTake: {
19417
19378
  * })
19418
19379
  * ```
19419
19380
  *
19420
- * @category Destructors
19381
+ * @category destructors
19421
19382
  * @since 2.0.0
19422
19383
  */
19423
19384
  export const toQueue: {
@@ -19441,7 +19402,7 @@ export const toQueue: {
19441
19402
  * })
19442
19403
  * ```
19443
19404
  *
19444
- * @category Destructors
19405
+ * @category destructors
19445
19406
  * @since 2.0.0
19446
19407
  */
19447
19408
  (
@@ -19472,7 +19433,7 @@ export const toQueue: {
19472
19433
  * })
19473
19434
  * ```
19474
19435
  *
19475
- * @category Destructors
19436
+ * @category destructors
19476
19437
  * @since 2.0.0
19477
19438
  */
19478
19439
  <A, E, R>(
@@ -19525,7 +19486,7 @@ export const toQueue: {
19525
19486
  * })
19526
19487
  * ```
19527
19488
  *
19528
- * @category Destructors
19489
+ * @category destructors
19529
19490
  * @since 2.0.0
19530
19491
  */
19531
19492
  export const runIntoQueue: {
@@ -19556,7 +19517,7 @@ export const runIntoQueue: {
19556
19517
  * })
19557
19518
  * ```
19558
19519
  *
19559
- * @category Destructors
19520
+ * @category destructors
19560
19521
  * @since 2.0.0
19561
19522
  */
19562
19523
  <A, E>(queue: Queue.Queue<A, E | Cause.Done>): <R>(self: Stream<A, E, R>) => Effect.Effect<void, never, R>
@@ -19587,7 +19548,7 @@ export const runIntoQueue: {
19587
19548
  * })
19588
19549
  * ```
19589
19550
  *
19590
- * @category Destructors
19551
+ * @category destructors
19591
19552
  * @since 2.0.0
19592
19553
  */
19593
19554
  <A, E, R>(self: Stream<A, E, R>, queue: Queue.Queue<A, E | Cause.Done>): Effect.Effect<void, never, R>