effect 4.0.0-beta.71 → 4.0.0-beta.73

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 (999) hide show
  1. package/dist/Array.d.ts +65 -111
  2. package/dist/Array.d.ts.map +1 -1
  3. package/dist/Array.js +28 -44
  4. package/dist/Array.js.map +1 -1
  5. package/dist/BigDecimal.d.ts +66 -58
  6. package/dist/BigDecimal.d.ts.map +1 -1
  7. package/dist/BigDecimal.js +30 -26
  8. package/dist/BigDecimal.js.map +1 -1
  9. package/dist/BigInt.d.ts +21 -19
  10. package/dist/BigInt.d.ts.map +1 -1
  11. package/dist/BigInt.js +17 -15
  12. package/dist/BigInt.js.map +1 -1
  13. package/dist/Boolean.d.ts +15 -17
  14. package/dist/Boolean.d.ts.map +1 -1
  15. package/dist/Boolean.js +13 -13
  16. package/dist/Boolean.js.map +1 -1
  17. package/dist/Brand.d.ts +2 -3
  18. package/dist/Brand.d.ts.map +1 -1
  19. package/dist/Brand.js +2 -3
  20. package/dist/Brand.js.map +1 -1
  21. package/dist/Cache.d.ts +9 -9
  22. package/dist/Cache.js +3 -3
  23. package/dist/Cause.d.ts +35 -39
  24. package/dist/Cause.d.ts.map +1 -1
  25. package/dist/Cause.js +31 -33
  26. package/dist/Cause.js.map +1 -1
  27. package/dist/Channel.d.ts +141 -99
  28. package/dist/Channel.d.ts.map +1 -1
  29. package/dist/Channel.js +56 -42
  30. package/dist/Channel.js.map +1 -1
  31. package/dist/ChannelSchema.d.ts +3 -3
  32. package/dist/ChannelSchema.js +1 -1
  33. package/dist/Chunk.d.ts +67 -54
  34. package/dist/Chunk.d.ts.map +1 -1
  35. package/dist/Chunk.js +33 -22
  36. package/dist/Chunk.js.map +1 -1
  37. package/dist/Clock.d.ts +3 -3
  38. package/dist/Clock.js +1 -1
  39. package/dist/Combiner.d.ts +6 -10
  40. package/dist/Combiner.d.ts.map +1 -1
  41. package/dist/Combiner.js +6 -10
  42. package/dist/Combiner.js.map +1 -1
  43. package/dist/Config.d.ts +9 -10
  44. package/dist/Config.d.ts.map +1 -1
  45. package/dist/Config.js +7 -8
  46. package/dist/Config.js.map +1 -1
  47. package/dist/ConfigProvider.d.ts +4 -4
  48. package/dist/ConfigProvider.js +4 -4
  49. package/dist/Console.d.ts +11 -7
  50. package/dist/Console.d.ts.map +1 -1
  51. package/dist/Console.js +11 -7
  52. package/dist/Console.js.map +1 -1
  53. package/dist/Context.d.ts +35 -35
  54. package/dist/Context.js +13 -13
  55. package/dist/Cron.d.ts +7 -6
  56. package/dist/Cron.d.ts.map +1 -1
  57. package/dist/Cron.js +7 -6
  58. package/dist/Cron.js.map +1 -1
  59. package/dist/Crypto.d.ts +1 -1
  60. package/dist/Crypto.js +1 -1
  61. package/dist/Data.d.ts +26 -32
  62. package/dist/Data.d.ts.map +1 -1
  63. package/dist/Data.js +9 -8
  64. package/dist/Data.js.map +1 -1
  65. package/dist/DateTime.d.ts +164 -122
  66. package/dist/DateTime.d.ts.map +1 -1
  67. package/dist/DateTime.js +86 -66
  68. package/dist/DateTime.js.map +1 -1
  69. package/dist/Deferred.d.ts +6 -6
  70. package/dist/Deferred.js +4 -4
  71. package/dist/Duration.d.ts +39 -39
  72. package/dist/Duration.js +21 -21
  73. package/dist/Effect.d.ts +220 -309
  74. package/dist/Effect.d.ts.map +1 -1
  75. package/dist/Effect.js +115 -140
  76. package/dist/Effect.js.map +1 -1
  77. package/dist/Effectable.d.ts +2 -2
  78. package/dist/Effectable.js +2 -2
  79. package/dist/Encoding.d.ts +13 -10
  80. package/dist/Encoding.d.ts.map +1 -1
  81. package/dist/Encoding.js +12 -9
  82. package/dist/Encoding.js.map +1 -1
  83. package/dist/Equal.d.ts +3 -4
  84. package/dist/Equal.d.ts.map +1 -1
  85. package/dist/Equal.js +2 -3
  86. package/dist/Equal.js.map +1 -1
  87. package/dist/Equivalence.d.ts +5 -19
  88. package/dist/Equivalence.d.ts.map +1 -1
  89. package/dist/Equivalence.js +5 -14
  90. package/dist/Equivalence.js.map +1 -1
  91. package/dist/ErrorReporter.d.ts +14 -13
  92. package/dist/ErrorReporter.d.ts.map +1 -1
  93. package/dist/ErrorReporter.js +10 -9
  94. package/dist/ErrorReporter.js.map +1 -1
  95. package/dist/ExecutionPlan.d.ts +7 -2
  96. package/dist/ExecutionPlan.d.ts.map +1 -1
  97. package/dist/ExecutionPlan.js +7 -2
  98. package/dist/ExecutionPlan.js.map +1 -1
  99. package/dist/Exit.d.ts +25 -23
  100. package/dist/Exit.d.ts.map +1 -1
  101. package/dist/Exit.js +13 -13
  102. package/dist/Exit.js.map +1 -1
  103. package/dist/Fiber.d.ts +4 -4
  104. package/dist/Fiber.js +2 -2
  105. package/dist/FiberHandle.d.ts +6 -6
  106. package/dist/FiberHandle.js +4 -4
  107. package/dist/FiberMap.d.ts +18 -18
  108. package/dist/FiberMap.js +8 -8
  109. package/dist/FiberSet.d.ts +21 -13
  110. package/dist/FiberSet.d.ts.map +1 -1
  111. package/dist/FiberSet.js +17 -9
  112. package/dist/FiberSet.js.map +1 -1
  113. package/dist/FileSystem.d.ts +13 -9
  114. package/dist/FileSystem.d.ts.map +1 -1
  115. package/dist/FileSystem.js +11 -7
  116. package/dist/FileSystem.js.map +1 -1
  117. package/dist/Filter.d.ts +2 -2
  118. package/dist/Filter.js +2 -2
  119. package/dist/Formatter.d.ts +1 -3
  120. package/dist/Formatter.d.ts.map +1 -1
  121. package/dist/Formatter.js +1 -3
  122. package/dist/Formatter.js.map +1 -1
  123. package/dist/Function.d.ts +12 -12
  124. package/dist/Function.js +12 -12
  125. package/dist/Graph.d.ts +22 -22
  126. package/dist/Graph.js +12 -12
  127. package/dist/HKT.d.ts +5 -4
  128. package/dist/HKT.d.ts.map +1 -1
  129. package/dist/Hash.d.ts +3 -3
  130. package/dist/Hash.js +3 -3
  131. package/dist/HashMap.d.ts +33 -35
  132. package/dist/HashMap.d.ts.map +1 -1
  133. package/dist/HashMap.js +11 -13
  134. package/dist/HashMap.js.map +1 -1
  135. package/dist/HashRing.d.ts +7 -9
  136. package/dist/HashRing.d.ts.map +1 -1
  137. package/dist/HashRing.js +3 -5
  138. package/dist/HashRing.js.map +1 -1
  139. package/dist/HashSet.d.ts +16 -16
  140. package/dist/HashSet.js +6 -6
  141. package/dist/Inspectable.d.ts +4 -4
  142. package/dist/Inspectable.js +4 -4
  143. package/dist/Iterable.d.ts +82 -56
  144. package/dist/Iterable.d.ts.map +1 -1
  145. package/dist/Iterable.js +28 -20
  146. package/dist/Iterable.js.map +1 -1
  147. package/dist/JsonPatch.d.ts +1 -1
  148. package/dist/JsonPatch.js +1 -1
  149. package/dist/JsonPointer.d.ts +3 -3
  150. package/dist/JsonPointer.js +3 -3
  151. package/dist/JsonSchema.d.ts +13 -23
  152. package/dist/JsonSchema.d.ts.map +1 -1
  153. package/dist/JsonSchema.js +13 -23
  154. package/dist/JsonSchema.js.map +1 -1
  155. package/dist/Latch.d.ts +2 -2
  156. package/dist/Latch.js +2 -2
  157. package/dist/Layer.d.ts +47 -27
  158. package/dist/Layer.d.ts.map +1 -1
  159. package/dist/Layer.js +23 -15
  160. package/dist/Layer.js.map +1 -1
  161. package/dist/LayerMap.d.ts +1 -2
  162. package/dist/LayerMap.d.ts.map +1 -1
  163. package/dist/LayerMap.js +1 -2
  164. package/dist/LayerMap.js.map +1 -1
  165. package/dist/LogLevel.d.ts +3 -3
  166. package/dist/LogLevel.js +3 -3
  167. package/dist/Logger.d.ts +2 -2
  168. package/dist/Logger.js +2 -2
  169. package/dist/ManagedRuntime.d.ts +1 -1
  170. package/dist/ManagedRuntime.js +1 -1
  171. package/dist/Match.d.ts +32 -37
  172. package/dist/Match.d.ts.map +1 -1
  173. package/dist/Match.js +32 -37
  174. package/dist/Match.js.map +1 -1
  175. package/dist/Metric.d.ts +35 -21
  176. package/dist/Metric.d.ts.map +1 -1
  177. package/dist/Metric.js +34 -20
  178. package/dist/Metric.js.map +1 -1
  179. package/dist/MutableHashMap.d.ts +13 -19
  180. package/dist/MutableHashMap.d.ts.map +1 -1
  181. package/dist/MutableHashMap.js +5 -7
  182. package/dist/MutableHashMap.js.map +1 -1
  183. package/dist/MutableHashSet.d.ts +4 -4
  184. package/dist/MutableHashSet.js +2 -2
  185. package/dist/MutableList.d.ts +16 -6
  186. package/dist/MutableList.d.ts.map +1 -1
  187. package/dist/MutableList.js +15 -5
  188. package/dist/MutableList.js.map +1 -1
  189. package/dist/MutableRef.d.ts +5 -4
  190. package/dist/MutableRef.d.ts.map +1 -1
  191. package/dist/MutableRef.js +3 -2
  192. package/dist/MutableRef.js.map +1 -1
  193. package/dist/NonEmptyIterable.d.ts +3 -3
  194. package/dist/NonEmptyIterable.js +1 -1
  195. package/dist/Number.d.ts +20 -18
  196. package/dist/Number.d.ts.map +1 -1
  197. package/dist/Number.js +16 -14
  198. package/dist/Number.js.map +1 -1
  199. package/dist/Optic.d.ts +11 -18
  200. package/dist/Optic.d.ts.map +1 -1
  201. package/dist/Optic.js +7 -14
  202. package/dist/Optic.js.map +1 -1
  203. package/dist/Option.d.ts +21 -24
  204. package/dist/Option.d.ts.map +1 -1
  205. package/dist/Option.js +9 -10
  206. package/dist/Option.js.map +1 -1
  207. package/dist/Order.d.ts +11 -38
  208. package/dist/Order.d.ts.map +1 -1
  209. package/dist/Order.js +11 -33
  210. package/dist/Order.js.map +1 -1
  211. package/dist/Ordering.d.ts +5 -5
  212. package/dist/Ordering.js +3 -3
  213. package/dist/PartitionedSemaphore.d.ts +4 -8
  214. package/dist/PartitionedSemaphore.d.ts.map +1 -1
  215. package/dist/PartitionedSemaphore.js +3 -7
  216. package/dist/PartitionedSemaphore.js.map +1 -1
  217. package/dist/Path.d.ts +4 -7
  218. package/dist/Path.d.ts.map +1 -1
  219. package/dist/Path.js +3 -6
  220. package/dist/Path.js.map +1 -1
  221. package/dist/Pipeable.d.ts +2 -2
  222. package/dist/Pipeable.js +2 -2
  223. package/dist/PlatformError.d.ts +1 -1
  224. package/dist/PlatformError.js +1 -1
  225. package/dist/Predicate.d.ts +2 -81
  226. package/dist/Predicate.d.ts.map +1 -1
  227. package/dist/Predicate.js +2 -47
  228. package/dist/Predicate.js.map +1 -1
  229. package/dist/PrimaryKey.d.ts +3 -3
  230. package/dist/PrimaryKey.js +1 -1
  231. package/dist/PubSub.d.ts +147 -46
  232. package/dist/PubSub.d.ts.map +1 -1
  233. package/dist/PubSub.js +93 -32
  234. package/dist/PubSub.js.map +1 -1
  235. package/dist/Pull.d.ts +1 -1
  236. package/dist/Pull.js +1 -1
  237. package/dist/Queue.d.ts +40 -24
  238. package/dist/Queue.d.ts.map +1 -1
  239. package/dist/Queue.js +36 -20
  240. package/dist/Queue.js.map +1 -1
  241. package/dist/RcMap.d.ts +3 -3
  242. package/dist/RcMap.js +1 -1
  243. package/dist/Record.d.ts +79 -52
  244. package/dist/Record.d.ts.map +1 -1
  245. package/dist/Record.js +33 -22
  246. package/dist/Record.js.map +1 -1
  247. package/dist/Redactable.d.ts +7 -7
  248. package/dist/Redactable.js +7 -7
  249. package/dist/Reducer.d.ts +0 -2
  250. package/dist/Reducer.d.ts.map +1 -1
  251. package/dist/Reducer.js +0 -2
  252. package/dist/Reducer.js.map +1 -1
  253. package/dist/Ref.d.ts +12 -12
  254. package/dist/Ref.js +10 -10
  255. package/dist/References.d.ts +20 -20
  256. package/dist/References.js +20 -20
  257. package/dist/RegExp.d.ts +2 -2
  258. package/dist/RegExp.js +2 -2
  259. package/dist/Request.d.ts +3 -3
  260. package/dist/Request.js +3 -3
  261. package/dist/RequestResolver.d.ts +11 -14
  262. package/dist/RequestResolver.d.ts.map +1 -1
  263. package/dist/RequestResolver.js +5 -6
  264. package/dist/RequestResolver.js.map +1 -1
  265. package/dist/Result.d.ts +52 -34
  266. package/dist/Result.d.ts.map +1 -1
  267. package/dist/Result.js +44 -20
  268. package/dist/Result.js.map +1 -1
  269. package/dist/Runtime.d.ts +1 -1
  270. package/dist/Runtime.js +1 -1
  271. package/dist/Schedule.d.ts +20 -24
  272. package/dist/Schedule.d.ts.map +1 -1
  273. package/dist/Schedule.js +12 -12
  274. package/dist/Schedule.js.map +1 -1
  275. package/dist/Scheduler.d.ts +3 -3
  276. package/dist/Scheduler.js +3 -3
  277. package/dist/Schema.d.ts +480 -210
  278. package/dist/Schema.d.ts.map +1 -1
  279. package/dist/Schema.js +410 -172
  280. package/dist/Schema.js.map +1 -1
  281. package/dist/SchemaAST.d.ts +40 -32
  282. package/dist/SchemaAST.d.ts.map +1 -1
  283. package/dist/SchemaAST.js +40 -32
  284. package/dist/SchemaAST.js.map +1 -1
  285. package/dist/SchemaGetter.d.ts +4 -6
  286. package/dist/SchemaGetter.d.ts.map +1 -1
  287. package/dist/SchemaGetter.js +4 -6
  288. package/dist/SchemaGetter.js.map +1 -1
  289. package/dist/SchemaIssue.d.ts +35 -47
  290. package/dist/SchemaIssue.d.ts.map +1 -1
  291. package/dist/SchemaIssue.js +31 -42
  292. package/dist/SchemaIssue.js.map +1 -1
  293. package/dist/SchemaParser.d.ts +16 -12
  294. package/dist/SchemaParser.d.ts.map +1 -1
  295. package/dist/SchemaParser.js +16 -12
  296. package/dist/SchemaParser.js.map +1 -1
  297. package/dist/SchemaRepresentation.d.ts +47 -62
  298. package/dist/SchemaRepresentation.d.ts.map +1 -1
  299. package/dist/SchemaRepresentation.js +44 -58
  300. package/dist/SchemaRepresentation.js.map +1 -1
  301. package/dist/SchemaTransformation.d.ts +16 -18
  302. package/dist/SchemaTransformation.d.ts.map +1 -1
  303. package/dist/SchemaTransformation.js +13 -15
  304. package/dist/SchemaTransformation.js.map +1 -1
  305. package/dist/Scope.d.ts +51 -14
  306. package/dist/Scope.d.ts.map +1 -1
  307. package/dist/Scope.js +29 -8
  308. package/dist/Scope.js.map +1 -1
  309. package/dist/ScopedCache.d.ts +12 -12
  310. package/dist/ScopedCache.js +4 -4
  311. package/dist/ScopedRef.d.ts +2 -2
  312. package/dist/ScopedRef.js +2 -2
  313. package/dist/Semaphore.d.ts +1 -1
  314. package/dist/Semaphore.js +1 -1
  315. package/dist/Sink.d.ts +36 -41
  316. package/dist/Sink.d.ts.map +1 -1
  317. package/dist/Sink.js +21 -24
  318. package/dist/Sink.js.map +1 -1
  319. package/dist/Stdio.d.ts +5 -4
  320. package/dist/Stdio.d.ts.map +1 -1
  321. package/dist/Stdio.js +4 -3
  322. package/dist/Stdio.js.map +1 -1
  323. package/dist/Stream.d.ts +264 -165
  324. package/dist/Stream.d.ts.map +1 -1
  325. package/dist/Stream.js +103 -62
  326. package/dist/Stream.js.map +1 -1
  327. package/dist/String.d.ts +48 -47
  328. package/dist/String.d.ts.map +1 -1
  329. package/dist/String.js +32 -29
  330. package/dist/String.js.map +1 -1
  331. package/dist/Struct.d.ts +35 -100
  332. package/dist/Struct.d.ts.map +1 -1
  333. package/dist/Struct.js +13 -38
  334. package/dist/Struct.js.map +1 -1
  335. package/dist/SubscriptionRef.d.ts +268 -91
  336. package/dist/SubscriptionRef.d.ts.map +1 -1
  337. package/dist/SubscriptionRef.js +90 -31
  338. package/dist/SubscriptionRef.js.map +1 -1
  339. package/dist/Symbol.d.ts +1 -1
  340. package/dist/Symbol.js +1 -1
  341. package/dist/SynchronizedRef.d.ts +27 -27
  342. package/dist/SynchronizedRef.js +9 -9
  343. package/dist/Terminal.d.ts +8 -3
  344. package/dist/Terminal.d.ts.map +1 -1
  345. package/dist/Terminal.js +8 -3
  346. package/dist/Terminal.js.map +1 -1
  347. package/dist/Tracer.d.ts +25 -7
  348. package/dist/Tracer.d.ts.map +1 -1
  349. package/dist/Tracer.js +25 -7
  350. package/dist/Tracer.js.map +1 -1
  351. package/dist/Trie.d.ts +21 -23
  352. package/dist/Trie.d.ts.map +1 -1
  353. package/dist/Trie.js +7 -7
  354. package/dist/Trie.js.map +1 -1
  355. package/dist/Tuple.d.ts +26 -73
  356. package/dist/Tuple.d.ts.map +1 -1
  357. package/dist/Tuple.js +10 -31
  358. package/dist/Tuple.js.map +1 -1
  359. package/dist/TxChunk.d.ts +2 -2
  360. package/dist/TxChunk.js +2 -2
  361. package/dist/TxHashMap.d.ts +20 -20
  362. package/dist/TxHashMap.js +8 -8
  363. package/dist/TxHashSet.d.ts +14 -14
  364. package/dist/TxHashSet.js +6 -6
  365. package/dist/TxPriorityQueue.d.ts +14 -6
  366. package/dist/TxPriorityQueue.d.ts.map +1 -1
  367. package/dist/TxPriorityQueue.js +12 -4
  368. package/dist/TxPriorityQueue.js.map +1 -1
  369. package/dist/TxPubSub.d.ts +4 -4
  370. package/dist/TxPubSub.js +4 -4
  371. package/dist/TxQueue.d.ts +10 -10
  372. package/dist/TxQueue.js +10 -10
  373. package/dist/TxReentrantLock.d.ts +48 -12
  374. package/dist/TxReentrantLock.d.ts.map +1 -1
  375. package/dist/TxReentrantLock.js +38 -10
  376. package/dist/TxReentrantLock.js.map +1 -1
  377. package/dist/TxRef.d.ts +1 -1
  378. package/dist/TxRef.js +1 -1
  379. package/dist/TxSubscriptionRef.d.ts +1 -1
  380. package/dist/TxSubscriptionRef.js +1 -1
  381. package/dist/Types.d.ts +8 -7
  382. package/dist/Types.d.ts.map +1 -1
  383. package/dist/Unify.d.ts +19 -19
  384. package/dist/Utils.d.ts +1 -2
  385. package/dist/Utils.d.ts.map +1 -1
  386. package/dist/Utils.js +1 -2
  387. package/dist/Utils.js.map +1 -1
  388. package/dist/testing/TestSchema.d.ts +3 -11
  389. package/dist/testing/TestSchema.d.ts.map +1 -1
  390. package/dist/testing/TestSchema.js +3 -11
  391. package/dist/testing/TestSchema.js.map +1 -1
  392. package/dist/unstable/ai/AiError.d.ts +10 -5
  393. package/dist/unstable/ai/AiError.d.ts.map +1 -1
  394. package/dist/unstable/ai/AiError.js +10 -5
  395. package/dist/unstable/ai/AiError.js.map +1 -1
  396. package/dist/unstable/ai/Chat.d.ts +20 -5
  397. package/dist/unstable/ai/Chat.d.ts.map +1 -1
  398. package/dist/unstable/ai/Chat.js +20 -5
  399. package/dist/unstable/ai/Chat.js.map +1 -1
  400. package/dist/unstable/ai/EmbeddingModel.d.ts +5 -4
  401. package/dist/unstable/ai/EmbeddingModel.d.ts.map +1 -1
  402. package/dist/unstable/ai/EmbeddingModel.js +4 -3
  403. package/dist/unstable/ai/EmbeddingModel.js.map +1 -1
  404. package/dist/unstable/ai/IdGenerator.d.ts +7 -2
  405. package/dist/unstable/ai/IdGenerator.d.ts.map +1 -1
  406. package/dist/unstable/ai/IdGenerator.js +7 -2
  407. package/dist/unstable/ai/IdGenerator.js.map +1 -1
  408. package/dist/unstable/ai/LanguageModel.d.ts +10 -5
  409. package/dist/unstable/ai/LanguageModel.d.ts.map +1 -1
  410. package/dist/unstable/ai/LanguageModel.js +10 -5
  411. package/dist/unstable/ai/LanguageModel.js.map +1 -1
  412. package/dist/unstable/ai/McpSchema.d.ts +291 -169
  413. package/dist/unstable/ai/McpSchema.d.ts.map +1 -1
  414. package/dist/unstable/ai/McpSchema.js +270 -147
  415. package/dist/unstable/ai/McpSchema.js.map +1 -1
  416. package/dist/unstable/ai/McpServer.d.ts +49 -13
  417. package/dist/unstable/ai/McpServer.d.ts.map +1 -1
  418. package/dist/unstable/ai/McpServer.js +21 -9
  419. package/dist/unstable/ai/McpServer.js.map +1 -1
  420. package/dist/unstable/ai/Prompt.d.ts +1 -1
  421. package/dist/unstable/ai/Prompt.js +1 -1
  422. package/dist/unstable/ai/Response.d.ts +1 -1
  423. package/dist/unstable/ai/Response.js +1 -1
  424. package/dist/unstable/ai/Tokenizer.d.ts +7 -2
  425. package/dist/unstable/ai/Tokenizer.d.ts.map +1 -1
  426. package/dist/unstable/ai/Tokenizer.js +7 -2
  427. package/dist/unstable/ai/Tokenizer.js.map +1 -1
  428. package/dist/unstable/ai/Tool.d.ts +3 -3
  429. package/dist/unstable/ai/Tool.js +3 -3
  430. package/dist/unstable/cli/CliError.d.ts +3 -3
  431. package/dist/unstable/cli/CliError.js +3 -3
  432. package/dist/unstable/cli/CliOutput.d.ts +1 -1
  433. package/dist/unstable/cli/Command.d.ts +3 -3
  434. package/dist/unstable/cli/Command.js +1 -1
  435. package/dist/unstable/cli/Flag.d.ts +9 -9
  436. package/dist/unstable/cli/Flag.js +3 -3
  437. package/dist/unstable/cli/GlobalFlag.d.ts +13 -6
  438. package/dist/unstable/cli/GlobalFlag.d.ts.map +1 -1
  439. package/dist/unstable/cli/GlobalFlag.js +13 -6
  440. package/dist/unstable/cli/GlobalFlag.js.map +1 -1
  441. package/dist/unstable/cli/Param.d.ts +2 -2
  442. package/dist/unstable/cli/Param.js +2 -2
  443. package/dist/unstable/cli/Primitive.d.ts +1 -1
  444. package/dist/unstable/cli/Primitive.js +1 -1
  445. package/dist/unstable/cli/Prompt.d.ts +11 -6
  446. package/dist/unstable/cli/Prompt.d.ts.map +1 -1
  447. package/dist/unstable/cli/Prompt.js +26 -9
  448. package/dist/unstable/cli/Prompt.js.map +1 -1
  449. package/dist/unstable/cli/internal/parser.js +1 -1
  450. package/dist/unstable/cluster/ClusterMetrics.d.ts +5 -5
  451. package/dist/unstable/cluster/ClusterMetrics.js +5 -5
  452. package/dist/unstable/cluster/ClusterSchema.d.ts +11 -2
  453. package/dist/unstable/cluster/ClusterSchema.d.ts.map +1 -1
  454. package/dist/unstable/cluster/ClusterSchema.js +11 -2
  455. package/dist/unstable/cluster/ClusterSchema.js.map +1 -1
  456. package/dist/unstable/cluster/ClusterWorkflowEngine.d.ts.map +1 -1
  457. package/dist/unstable/cluster/ClusterWorkflowEngine.js +49 -10
  458. package/dist/unstable/cluster/ClusterWorkflowEngine.js.map +1 -1
  459. package/dist/unstable/cluster/DeliverAt.d.ts +6 -1
  460. package/dist/unstable/cluster/DeliverAt.d.ts.map +1 -1
  461. package/dist/unstable/cluster/DeliverAt.js +6 -1
  462. package/dist/unstable/cluster/DeliverAt.js.map +1 -1
  463. package/dist/unstable/cluster/Entity.d.ts +15 -5
  464. package/dist/unstable/cluster/Entity.d.ts.map +1 -1
  465. package/dist/unstable/cluster/Entity.js +15 -5
  466. package/dist/unstable/cluster/Entity.js.map +1 -1
  467. package/dist/unstable/cluster/EntityResource.d.ts +6 -6
  468. package/dist/unstable/cluster/EntityResource.d.ts.map +1 -1
  469. package/dist/unstable/cluster/EntityResource.js +9 -8
  470. package/dist/unstable/cluster/EntityResource.js.map +1 -1
  471. package/dist/unstable/cluster/Envelope.d.ts +11 -11
  472. package/dist/unstable/cluster/Envelope.d.ts.map +1 -1
  473. package/dist/unstable/cluster/Envelope.js +11 -11
  474. package/dist/unstable/cluster/Envelope.js.map +1 -1
  475. package/dist/unstable/cluster/HttpRunner.d.ts +16 -8
  476. package/dist/unstable/cluster/HttpRunner.d.ts.map +1 -1
  477. package/dist/unstable/cluster/HttpRunner.js +16 -8
  478. package/dist/unstable/cluster/HttpRunner.js.map +1 -1
  479. package/dist/unstable/cluster/Message.d.ts +10 -10
  480. package/dist/unstable/cluster/Message.js +10 -10
  481. package/dist/unstable/cluster/MessageStorage.d.ts +7 -7
  482. package/dist/unstable/cluster/MessageStorage.js +6 -6
  483. package/dist/unstable/cluster/Reply.d.ts +18 -8
  484. package/dist/unstable/cluster/Reply.d.ts.map +1 -1
  485. package/dist/unstable/cluster/Reply.js +18 -8
  486. package/dist/unstable/cluster/Reply.js.map +1 -1
  487. package/dist/unstable/cluster/Runner.d.ts +1 -1
  488. package/dist/unstable/cluster/Runner.js +1 -1
  489. package/dist/unstable/cluster/RunnerAddress.d.ts +7 -1
  490. package/dist/unstable/cluster/RunnerAddress.d.ts.map +1 -1
  491. package/dist/unstable/cluster/RunnerAddress.js +7 -1
  492. package/dist/unstable/cluster/RunnerAddress.js.map +1 -1
  493. package/dist/unstable/cluster/RunnerHealth.d.ts +4 -4
  494. package/dist/unstable/cluster/RunnerHealth.js +4 -4
  495. package/dist/unstable/cluster/RunnerServer.d.ts +4 -3
  496. package/dist/unstable/cluster/RunnerServer.d.ts.map +1 -1
  497. package/dist/unstable/cluster/RunnerServer.js +4 -3
  498. package/dist/unstable/cluster/RunnerServer.js.map +1 -1
  499. package/dist/unstable/cluster/Runners.d.ts +1 -1
  500. package/dist/unstable/cluster/ShardId.d.ts +2 -2
  501. package/dist/unstable/cluster/ShardId.js +2 -2
  502. package/dist/unstable/cluster/Sharding.d.ts +8 -3
  503. package/dist/unstable/cluster/Sharding.d.ts.map +1 -1
  504. package/dist/unstable/cluster/Sharding.js +8 -3
  505. package/dist/unstable/cluster/Sharding.js.map +1 -1
  506. package/dist/unstable/cluster/ShardingConfig.d.ts +3 -3
  507. package/dist/unstable/cluster/ShardingConfig.js +3 -3
  508. package/dist/unstable/cluster/ShardingRegistrationEvent.d.ts +1 -2
  509. package/dist/unstable/cluster/ShardingRegistrationEvent.d.ts.map +1 -1
  510. package/dist/unstable/cluster/ShardingRegistrationEvent.js +1 -2
  511. package/dist/unstable/cluster/ShardingRegistrationEvent.js.map +1 -1
  512. package/dist/unstable/cluster/SingleRunner.d.ts +1 -1
  513. package/dist/unstable/cluster/SingleRunner.js +1 -1
  514. package/dist/unstable/cluster/Snowflake.d.ts +6 -5
  515. package/dist/unstable/cluster/Snowflake.d.ts.map +1 -1
  516. package/dist/unstable/cluster/Snowflake.js +6 -5
  517. package/dist/unstable/cluster/Snowflake.js.map +1 -1
  518. package/dist/unstable/cluster/SocketRunner.d.ts +6 -1
  519. package/dist/unstable/cluster/SocketRunner.d.ts.map +1 -1
  520. package/dist/unstable/cluster/SocketRunner.js +6 -1
  521. package/dist/unstable/cluster/SocketRunner.js.map +1 -1
  522. package/dist/unstable/cluster/TestRunner.d.ts +1 -1
  523. package/dist/unstable/cluster/TestRunner.js +1 -1
  524. package/dist/unstable/encoding/Msgpack.d.ts +2 -1
  525. package/dist/unstable/encoding/Msgpack.d.ts.map +1 -1
  526. package/dist/unstable/encoding/Msgpack.js +2 -1
  527. package/dist/unstable/encoding/Msgpack.js.map +1 -1
  528. package/dist/unstable/encoding/Sse.d.ts +3 -3
  529. package/dist/unstable/encoding/Sse.js +3 -3
  530. package/dist/unstable/eventlog/EventGroup.d.ts +1 -1
  531. package/dist/unstable/eventlog/EventGroup.js +1 -1
  532. package/dist/unstable/eventlog/EventJournal.d.ts +7 -7
  533. package/dist/unstable/eventlog/EventJournal.js +5 -5
  534. package/dist/unstable/eventlog/EventLog.d.ts +11 -10
  535. package/dist/unstable/eventlog/EventLog.d.ts.map +1 -1
  536. package/dist/unstable/eventlog/EventLog.js +9 -8
  537. package/dist/unstable/eventlog/EventLog.js.map +1 -1
  538. package/dist/unstable/eventlog/EventLogEncryption.d.ts +8 -3
  539. package/dist/unstable/eventlog/EventLogEncryption.d.ts.map +1 -1
  540. package/dist/unstable/eventlog/EventLogEncryption.js +8 -3
  541. package/dist/unstable/eventlog/EventLogEncryption.js.map +1 -1
  542. package/dist/unstable/eventlog/EventLogMessage.d.ts +28 -28
  543. package/dist/unstable/eventlog/EventLogMessage.d.ts.map +1 -1
  544. package/dist/unstable/eventlog/EventLogMessage.js +27 -27
  545. package/dist/unstable/eventlog/EventLogMessage.js.map +1 -1
  546. package/dist/unstable/eventlog/EventLogRemote.d.ts +14 -4
  547. package/dist/unstable/eventlog/EventLogRemote.d.ts.map +1 -1
  548. package/dist/unstable/eventlog/EventLogRemote.js +14 -4
  549. package/dist/unstable/eventlog/EventLogRemote.js.map +1 -1
  550. package/dist/unstable/eventlog/EventLogServer.d.ts +7 -2
  551. package/dist/unstable/eventlog/EventLogServer.d.ts.map +1 -1
  552. package/dist/unstable/eventlog/EventLogServer.js +7 -2
  553. package/dist/unstable/eventlog/EventLogServer.js.map +1 -1
  554. package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts +7 -2
  555. package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts.map +1 -1
  556. package/dist/unstable/eventlog/EventLogServerEncrypted.js +7 -2
  557. package/dist/unstable/eventlog/EventLogServerEncrypted.js.map +1 -1
  558. package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts +37 -7
  559. package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts.map +1 -1
  560. package/dist/unstable/eventlog/EventLogServerUnencrypted.js +37 -7
  561. package/dist/unstable/eventlog/EventLogServerUnencrypted.js.map +1 -1
  562. package/dist/unstable/eventlog/EventLogSessionAuth.d.ts +33 -7
  563. package/dist/unstable/eventlog/EventLogSessionAuth.d.ts.map +1 -1
  564. package/dist/unstable/eventlog/EventLogSessionAuth.js +33 -7
  565. package/dist/unstable/eventlog/EventLogSessionAuth.js.map +1 -1
  566. package/dist/unstable/http/Cookies.d.ts +40 -39
  567. package/dist/unstable/http/Cookies.d.ts.map +1 -1
  568. package/dist/unstable/http/Cookies.js +18 -17
  569. package/dist/unstable/http/Cookies.js.map +1 -1
  570. package/dist/unstable/http/FetchHttpClient.d.ts +6 -1
  571. package/dist/unstable/http/FetchHttpClient.d.ts.map +1 -1
  572. package/dist/unstable/http/FetchHttpClient.js +6 -1
  573. package/dist/unstable/http/FetchHttpClient.js.map +1 -1
  574. package/dist/unstable/http/Headers.d.ts +8 -7
  575. package/dist/unstable/http/Headers.d.ts.map +1 -1
  576. package/dist/unstable/http/Headers.js +6 -5
  577. package/dist/unstable/http/Headers.js.map +1 -1
  578. package/dist/unstable/http/HttpBody.d.ts +6 -2
  579. package/dist/unstable/http/HttpBody.d.ts.map +1 -1
  580. package/dist/unstable/http/HttpBody.js +6 -2
  581. package/dist/unstable/http/HttpBody.js.map +1 -1
  582. package/dist/unstable/http/HttpClient.d.ts +29 -9
  583. package/dist/unstable/http/HttpClient.d.ts.map +1 -1
  584. package/dist/unstable/http/HttpClient.js +15 -5
  585. package/dist/unstable/http/HttpClient.js.map +1 -1
  586. package/dist/unstable/http/HttpClientError.d.ts +15 -14
  587. package/dist/unstable/http/HttpClientError.d.ts.map +1 -1
  588. package/dist/unstable/http/HttpClientError.js +12 -11
  589. package/dist/unstable/http/HttpClientError.js.map +1 -1
  590. package/dist/unstable/http/HttpClientRequest.d.ts +1 -1
  591. package/dist/unstable/http/HttpClientRequest.js +1 -1
  592. package/dist/unstable/http/HttpEffect.d.ts +3 -3
  593. package/dist/unstable/http/HttpEffect.js +3 -3
  594. package/dist/unstable/http/HttpMethod.d.ts +16 -5
  595. package/dist/unstable/http/HttpMethod.d.ts.map +1 -1
  596. package/dist/unstable/http/HttpMethod.js +16 -5
  597. package/dist/unstable/http/HttpMethod.js.map +1 -1
  598. package/dist/unstable/http/HttpRouter.d.ts +18 -13
  599. package/dist/unstable/http/HttpRouter.d.ts.map +1 -1
  600. package/dist/unstable/http/HttpRouter.js +14 -9
  601. package/dist/unstable/http/HttpRouter.js.map +1 -1
  602. package/dist/unstable/http/HttpServer.d.ts +4 -4
  603. package/dist/unstable/http/HttpServer.js +4 -4
  604. package/dist/unstable/http/HttpServerError.d.ts +9 -9
  605. package/dist/unstable/http/HttpServerError.js +7 -7
  606. package/dist/unstable/http/HttpServerRequest.d.ts +20 -5
  607. package/dist/unstable/http/HttpServerRequest.d.ts.map +1 -1
  608. package/dist/unstable/http/HttpServerRequest.js +20 -5
  609. package/dist/unstable/http/HttpServerRequest.js.map +1 -1
  610. package/dist/unstable/http/HttpServerResponse.d.ts +24 -24
  611. package/dist/unstable/http/HttpServerResponse.js +8 -8
  612. package/dist/unstable/http/HttpTraceContext.d.ts +4 -4
  613. package/dist/unstable/http/HttpTraceContext.js +4 -4
  614. package/dist/unstable/http/Multipart.d.ts +2 -2
  615. package/dist/unstable/http/Multipart.js +2 -2
  616. package/dist/unstable/http/Url.d.ts +14 -17
  617. package/dist/unstable/http/Url.d.ts.map +1 -1
  618. package/dist/unstable/http/Url.js +5 -6
  619. package/dist/unstable/http/Url.js.map +1 -1
  620. package/dist/unstable/http/UrlParams.d.ts +10 -10
  621. package/dist/unstable/http/UrlParams.js +6 -6
  622. package/dist/unstable/httpapi/HttpApi.d.ts +2 -2
  623. package/dist/unstable/httpapi/HttpApi.js +2 -2
  624. package/dist/unstable/httpapi/HttpApiBuilder.d.ts +3 -3
  625. package/dist/unstable/httpapi/HttpApiBuilder.js +4 -5
  626. package/dist/unstable/httpapi/HttpApiBuilder.js.map +1 -1
  627. package/dist/unstable/httpapi/HttpApiError.d.ts +2 -2
  628. package/dist/unstable/httpapi/HttpApiError.js +1 -1
  629. package/dist/unstable/httpapi/HttpApiSchema.d.ts +4 -7
  630. package/dist/unstable/httpapi/HttpApiSchema.d.ts.map +1 -1
  631. package/dist/unstable/httpapi/HttpApiSchema.js +3 -6
  632. package/dist/unstable/httpapi/HttpApiSchema.js.map +1 -1
  633. package/dist/unstable/httpapi/HttpApiSecurity.d.ts +27 -5
  634. package/dist/unstable/httpapi/HttpApiSecurity.d.ts.map +1 -1
  635. package/dist/unstable/httpapi/HttpApiSecurity.js +26 -3
  636. package/dist/unstable/httpapi/HttpApiSecurity.js.map +1 -1
  637. package/dist/unstable/httpapi/HttpApiTest.d.ts +1 -1
  638. package/dist/unstable/httpapi/HttpApiTest.js +1 -1
  639. package/dist/unstable/httpapi/OpenApi.d.ts +7 -1
  640. package/dist/unstable/httpapi/OpenApi.d.ts.map +1 -1
  641. package/dist/unstable/httpapi/OpenApi.js +9 -3
  642. package/dist/unstable/httpapi/OpenApi.js.map +1 -1
  643. package/dist/unstable/observability/OtlpLogger.d.ts +1 -1
  644. package/dist/unstable/observability/OtlpLogger.js +1 -1
  645. package/dist/unstable/observability/PrometheusMetrics.d.ts +2 -2
  646. package/dist/unstable/observability/PrometheusMetrics.js +2 -2
  647. package/dist/unstable/persistence/KeyValueStore.d.ts +8 -3
  648. package/dist/unstable/persistence/KeyValueStore.d.ts.map +1 -1
  649. package/dist/unstable/persistence/KeyValueStore.js +6 -1
  650. package/dist/unstable/persistence/KeyValueStore.js.map +1 -1
  651. package/dist/unstable/persistence/Persistable.d.ts +8 -3
  652. package/dist/unstable/persistence/Persistable.d.ts.map +1 -1
  653. package/dist/unstable/persistence/Persistable.js +8 -3
  654. package/dist/unstable/persistence/Persistable.js.map +1 -1
  655. package/dist/unstable/persistence/PersistedQueue.d.ts +10 -5
  656. package/dist/unstable/persistence/PersistedQueue.d.ts.map +1 -1
  657. package/dist/unstable/persistence/PersistedQueue.js +9 -4
  658. package/dist/unstable/persistence/PersistedQueue.js.map +1 -1
  659. package/dist/unstable/persistence/RateLimiter.d.ts +20 -10
  660. package/dist/unstable/persistence/RateLimiter.d.ts.map +1 -1
  661. package/dist/unstable/persistence/RateLimiter.js +19 -9
  662. package/dist/unstable/persistence/RateLimiter.js.map +1 -1
  663. package/dist/unstable/process/ChildProcess.d.ts +14 -14
  664. package/dist/unstable/process/ChildProcess.js +7 -7
  665. package/dist/unstable/process/ChildProcessSpawner.d.ts +2 -2
  666. package/dist/unstable/process/ChildProcessSpawner.js +2 -2
  667. package/dist/unstable/reactivity/AsyncResult.d.ts +36 -5
  668. package/dist/unstable/reactivity/AsyncResult.d.ts.map +1 -1
  669. package/dist/unstable/reactivity/AsyncResult.js +14 -3
  670. package/dist/unstable/reactivity/AsyncResult.js.map +1 -1
  671. package/dist/unstable/reactivity/Atom.d.ts +45 -13
  672. package/dist/unstable/reactivity/Atom.d.ts.map +1 -1
  673. package/dist/unstable/reactivity/Atom.js +34 -10
  674. package/dist/unstable/reactivity/Atom.js.map +1 -1
  675. package/dist/unstable/reactivity/AtomRegistry.d.ts +7 -2
  676. package/dist/unstable/reactivity/AtomRegistry.d.ts.map +1 -1
  677. package/dist/unstable/reactivity/AtomRegistry.js +7 -2
  678. package/dist/unstable/reactivity/AtomRegistry.js.map +1 -1
  679. package/dist/unstable/reactivity/Hydration.d.ts +6 -1
  680. package/dist/unstable/reactivity/Hydration.d.ts.map +1 -1
  681. package/dist/unstable/reactivity/Hydration.js +6 -1
  682. package/dist/unstable/reactivity/Hydration.js.map +1 -1
  683. package/dist/unstable/reactivity/Reactivity.d.ts +6 -1
  684. package/dist/unstable/reactivity/Reactivity.d.ts.map +1 -1
  685. package/dist/unstable/reactivity/Reactivity.js +6 -1
  686. package/dist/unstable/reactivity/Reactivity.js.map +1 -1
  687. package/dist/unstable/rpc/Rpc.d.ts +18 -14
  688. package/dist/unstable/rpc/Rpc.d.ts.map +1 -1
  689. package/dist/unstable/rpc/Rpc.js +15 -11
  690. package/dist/unstable/rpc/Rpc.js.map +1 -1
  691. package/dist/unstable/rpc/RpcClient.d.ts +27 -12
  692. package/dist/unstable/rpc/RpcClient.d.ts.map +1 -1
  693. package/dist/unstable/rpc/RpcClient.js +27 -12
  694. package/dist/unstable/rpc/RpcClient.js.map +1 -1
  695. package/dist/unstable/rpc/RpcClientError.d.ts +2 -2
  696. package/dist/unstable/rpc/RpcClientError.js +2 -2
  697. package/dist/unstable/rpc/RpcMessage.d.ts +5 -5
  698. package/dist/unstable/rpc/RpcMessage.js +4 -4
  699. package/dist/unstable/rpc/RpcSchema.d.ts +1 -1
  700. package/dist/unstable/rpc/RpcSchema.js +1 -1
  701. package/dist/unstable/rpc/RpcSerialization.d.ts +19 -12
  702. package/dist/unstable/rpc/RpcSerialization.d.ts.map +1 -1
  703. package/dist/unstable/rpc/RpcSerialization.js +19 -12
  704. package/dist/unstable/rpc/RpcSerialization.js.map +1 -1
  705. package/dist/unstable/rpc/RpcServer.d.ts +22 -17
  706. package/dist/unstable/rpc/RpcServer.d.ts.map +1 -1
  707. package/dist/unstable/rpc/RpcServer.js +22 -17
  708. package/dist/unstable/rpc/RpcServer.js.map +1 -1
  709. package/dist/unstable/schema/Model.d.ts +32 -33
  710. package/dist/unstable/schema/Model.d.ts.map +1 -1
  711. package/dist/unstable/schema/Model.js +25 -26
  712. package/dist/unstable/schema/Model.js.map +1 -1
  713. package/dist/unstable/schema/VariantSchema.d.ts +1 -1
  714. package/dist/unstable/schema/VariantSchema.js +1 -1
  715. package/dist/unstable/socket/Socket.d.ts +8 -2
  716. package/dist/unstable/socket/Socket.d.ts.map +1 -1
  717. package/dist/unstable/socket/Socket.js +8 -2
  718. package/dist/unstable/socket/Socket.js.map +1 -1
  719. package/dist/unstable/socket/SocketServer.d.ts +2 -2
  720. package/dist/unstable/socket/SocketServer.js +1 -1
  721. package/dist/unstable/sql/SqlClient.d.ts +7 -2
  722. package/dist/unstable/sql/SqlClient.d.ts.map +1 -1
  723. package/dist/unstable/sql/SqlClient.js +7 -2
  724. package/dist/unstable/sql/SqlClient.js.map +1 -1
  725. package/dist/unstable/sql/SqlConnection.d.ts +1 -1
  726. package/dist/unstable/sql/SqlConnection.js +1 -1
  727. package/dist/unstable/sql/SqlError.d.ts +2 -2
  728. package/dist/unstable/sql/SqlError.js +2 -2
  729. package/dist/unstable/sql/SqlResolver.d.ts +3 -3
  730. package/dist/unstable/sql/SqlResolver.js +1 -1
  731. package/dist/unstable/sql/SqlSchema.d.ts +19 -4
  732. package/dist/unstable/sql/SqlSchema.d.ts.map +1 -1
  733. package/dist/unstable/sql/SqlSchema.js +19 -4
  734. package/dist/unstable/sql/SqlSchema.js.map +1 -1
  735. package/dist/unstable/workers/Transferable.d.ts +3 -6
  736. package/dist/unstable/workers/Transferable.d.ts.map +1 -1
  737. package/dist/unstable/workers/Transferable.js +3 -6
  738. package/dist/unstable/workers/Transferable.js.map +1 -1
  739. package/dist/unstable/workers/Worker.d.ts +1 -1
  740. package/dist/unstable/workers/Worker.js +1 -1
  741. package/dist/unstable/workers/WorkerError.d.ts +1 -1
  742. package/dist/unstable/workflow/DurableClock.d.ts +2 -2
  743. package/dist/unstable/workflow/DurableClock.js +2 -2
  744. package/dist/unstable/workflow/DurableDeferred.d.ts +12 -12
  745. package/dist/unstable/workflow/DurableDeferred.js +7 -7
  746. package/dist/unstable/workflow/DurableQueue.d.ts +3 -3
  747. package/dist/unstable/workflow/DurableQueue.js +3 -3
  748. package/dist/unstable/workflow/Workflow.d.ts +22 -23
  749. package/dist/unstable/workflow/Workflow.d.ts.map +1 -1
  750. package/dist/unstable/workflow/Workflow.js +17 -18
  751. package/dist/unstable/workflow/Workflow.js.map +1 -1
  752. package/dist/unstable/workflow/WorkflowEngine.d.ts +26 -8
  753. package/dist/unstable/workflow/WorkflowEngine.d.ts.map +1 -1
  754. package/dist/unstable/workflow/WorkflowEngine.js +25 -7
  755. package/dist/unstable/workflow/WorkflowEngine.js.map +1 -1
  756. package/package.json +1 -1
  757. package/src/Array.ts +65 -113
  758. package/src/BigDecimal.ts +66 -58
  759. package/src/BigInt.ts +21 -19
  760. package/src/Boolean.ts +15 -17
  761. package/src/Brand.ts +2 -3
  762. package/src/Cache.ts +9 -9
  763. package/src/Cause.ts +35 -39
  764. package/src/Channel.ts +149 -107
  765. package/src/ChannelSchema.ts +3 -3
  766. package/src/Chunk.ts +67 -54
  767. package/src/Clock.ts +3 -3
  768. package/src/Combiner.ts +6 -10
  769. package/src/Config.ts +9 -10
  770. package/src/ConfigProvider.ts +4 -4
  771. package/src/Console.ts +11 -7
  772. package/src/Context.ts +36 -36
  773. package/src/Cron.ts +7 -6
  774. package/src/Crypto.ts +1 -1
  775. package/src/Data.ts +26 -32
  776. package/src/DateTime.ts +164 -122
  777. package/src/Deferred.ts +6 -6
  778. package/src/Duration.ts +39 -39
  779. package/src/Effect.ts +220 -309
  780. package/src/Effectable.ts +2 -2
  781. package/src/Encoding.ts +13 -10
  782. package/src/Equal.ts +3 -4
  783. package/src/Equivalence.ts +5 -19
  784. package/src/ErrorReporter.ts +14 -13
  785. package/src/ExecutionPlan.ts +7 -2
  786. package/src/Exit.ts +25 -23
  787. package/src/Fiber.ts +4 -4
  788. package/src/FiberHandle.ts +6 -6
  789. package/src/FiberMap.ts +20 -20
  790. package/src/FiberSet.ts +21 -13
  791. package/src/FileSystem.ts +13 -9
  792. package/src/Filter.ts +2 -2
  793. package/src/Formatter.ts +1 -3
  794. package/src/Function.ts +12 -12
  795. package/src/Graph.ts +22 -22
  796. package/src/HKT.ts +5 -4
  797. package/src/Hash.ts +3 -3
  798. package/src/HashMap.ts +33 -35
  799. package/src/HashRing.ts +7 -9
  800. package/src/HashSet.ts +16 -16
  801. package/src/Inspectable.ts +4 -4
  802. package/src/Iterable.ts +82 -56
  803. package/src/JsonPatch.ts +1 -1
  804. package/src/JsonPointer.ts +3 -3
  805. package/src/JsonSchema.ts +13 -23
  806. package/src/Latch.ts +2 -2
  807. package/src/Layer.ts +47 -27
  808. package/src/LayerMap.ts +1 -2
  809. package/src/LogLevel.ts +3 -3
  810. package/src/Logger.ts +6 -6
  811. package/src/ManagedRuntime.ts +1 -1
  812. package/src/Match.ts +32 -37
  813. package/src/Metric.ts +35 -21
  814. package/src/MutableHashMap.ts +21 -31
  815. package/src/MutableHashSet.ts +4 -4
  816. package/src/MutableList.ts +16 -6
  817. package/src/MutableRef.ts +5 -4
  818. package/src/NonEmptyIterable.ts +3 -3
  819. package/src/Number.ts +20 -18
  820. package/src/Optic.ts +11 -18
  821. package/src/Option.ts +21 -24
  822. package/src/Order.ts +11 -38
  823. package/src/Ordering.ts +5 -5
  824. package/src/PartitionedSemaphore.ts +4 -8
  825. package/src/Path.ts +4 -7
  826. package/src/Pipeable.ts +2 -2
  827. package/src/PlatformError.ts +1 -1
  828. package/src/Predicate.ts +2 -81
  829. package/src/PrimaryKey.ts +3 -3
  830. package/src/PubSub.ts +147 -46
  831. package/src/Pull.ts +1 -1
  832. package/src/Queue.ts +40 -24
  833. package/src/RcMap.ts +3 -3
  834. package/src/Record.ts +79 -52
  835. package/src/Redactable.ts +7 -7
  836. package/src/Reducer.ts +0 -2
  837. package/src/Ref.ts +32 -32
  838. package/src/References.ts +20 -20
  839. package/src/RegExp.ts +2 -2
  840. package/src/Request.ts +3 -3
  841. package/src/RequestResolver.ts +11 -14
  842. package/src/Result.ts +52 -34
  843. package/src/Runtime.ts +1 -1
  844. package/src/Schedule.ts +28 -36
  845. package/src/Scheduler.ts +3 -3
  846. package/src/Schema.ts +480 -210
  847. package/src/SchemaAST.ts +40 -32
  848. package/src/SchemaGetter.ts +4 -6
  849. package/src/SchemaIssue.ts +35 -47
  850. package/src/SchemaParser.ts +16 -12
  851. package/src/SchemaRepresentation.ts +47 -62
  852. package/src/SchemaTransformation.ts +16 -18
  853. package/src/Scope.ts +51 -14
  854. package/src/ScopedCache.ts +14 -14
  855. package/src/ScopedRef.ts +2 -2
  856. package/src/Semaphore.ts +1 -1
  857. package/src/Sink.ts +36 -41
  858. package/src/Stdio.ts +5 -4
  859. package/src/Stream.ts +275 -176
  860. package/src/String.ts +50 -49
  861. package/src/Struct.ts +35 -100
  862. package/src/SubscriptionRef.ts +268 -91
  863. package/src/Symbol.ts +1 -1
  864. package/src/SynchronizedRef.ts +27 -27
  865. package/src/Terminal.ts +8 -3
  866. package/src/Tracer.ts +25 -7
  867. package/src/Trie.ts +21 -23
  868. package/src/Tuple.ts +26 -73
  869. package/src/TxChunk.ts +2 -2
  870. package/src/TxHashMap.ts +22 -22
  871. package/src/TxHashSet.ts +22 -22
  872. package/src/TxPriorityQueue.ts +14 -6
  873. package/src/TxPubSub.ts +4 -4
  874. package/src/TxQueue.ts +10 -10
  875. package/src/TxReentrantLock.ts +48 -12
  876. package/src/TxRef.ts +1 -1
  877. package/src/TxSubscriptionRef.ts +1 -1
  878. package/src/Types.ts +8 -7
  879. package/src/Unify.ts +19 -19
  880. package/src/Utils.ts +1 -2
  881. package/src/testing/TestSchema.ts +3 -11
  882. package/src/unstable/ai/AiError.ts +10 -5
  883. package/src/unstable/ai/Chat.ts +20 -5
  884. package/src/unstable/ai/EmbeddingModel.ts +5 -4
  885. package/src/unstable/ai/IdGenerator.ts +7 -2
  886. package/src/unstable/ai/LanguageModel.ts +10 -5
  887. package/src/unstable/ai/McpSchema.ts +291 -169
  888. package/src/unstable/ai/McpServer.ts +49 -13
  889. package/src/unstable/ai/Prompt.ts +1 -1
  890. package/src/unstable/ai/Response.ts +1 -1
  891. package/src/unstable/ai/Tokenizer.ts +7 -2
  892. package/src/unstable/ai/Tool.ts +3 -3
  893. package/src/unstable/cli/CliError.ts +3 -3
  894. package/src/unstable/cli/CliOutput.ts +1 -1
  895. package/src/unstable/cli/Command.ts +3 -3
  896. package/src/unstable/cli/Flag.ts +9 -9
  897. package/src/unstable/cli/GlobalFlag.ts +13 -6
  898. package/src/unstable/cli/Param.ts +2 -2
  899. package/src/unstable/cli/Primitive.ts +1 -1
  900. package/src/unstable/cli/Prompt.ts +37 -13
  901. package/src/unstable/cli/internal/parser.ts +1 -1
  902. package/src/unstable/cluster/ClusterMetrics.ts +5 -5
  903. package/src/unstable/cluster/ClusterSchema.ts +11 -2
  904. package/src/unstable/cluster/ClusterWorkflowEngine.ts +63 -11
  905. package/src/unstable/cluster/DeliverAt.ts +6 -1
  906. package/src/unstable/cluster/Entity.ts +15 -5
  907. package/src/unstable/cluster/EntityResource.ts +13 -10
  908. package/src/unstable/cluster/Envelope.ts +11 -11
  909. package/src/unstable/cluster/HttpRunner.ts +16 -8
  910. package/src/unstable/cluster/Message.ts +10 -10
  911. package/src/unstable/cluster/MessageStorage.ts +7 -7
  912. package/src/unstable/cluster/Reply.ts +18 -8
  913. package/src/unstable/cluster/Runner.ts +1 -1
  914. package/src/unstable/cluster/RunnerAddress.ts +7 -1
  915. package/src/unstable/cluster/RunnerHealth.ts +4 -4
  916. package/src/unstable/cluster/RunnerServer.ts +4 -3
  917. package/src/unstable/cluster/Runners.ts +1 -1
  918. package/src/unstable/cluster/ShardId.ts +2 -2
  919. package/src/unstable/cluster/Sharding.ts +8 -3
  920. package/src/unstable/cluster/ShardingConfig.ts +3 -3
  921. package/src/unstable/cluster/ShardingRegistrationEvent.ts +1 -2
  922. package/src/unstable/cluster/SingleRunner.ts +1 -1
  923. package/src/unstable/cluster/Snowflake.ts +6 -5
  924. package/src/unstable/cluster/SocketRunner.ts +6 -1
  925. package/src/unstable/cluster/TestRunner.ts +1 -1
  926. package/src/unstable/encoding/Msgpack.ts +2 -1
  927. package/src/unstable/encoding/Sse.ts +3 -3
  928. package/src/unstable/eventlog/EventGroup.ts +1 -1
  929. package/src/unstable/eventlog/EventJournal.ts +7 -7
  930. package/src/unstable/eventlog/EventLog.ts +11 -10
  931. package/src/unstable/eventlog/EventLogEncryption.ts +8 -3
  932. package/src/unstable/eventlog/EventLogMessage.ts +28 -28
  933. package/src/unstable/eventlog/EventLogRemote.ts +14 -4
  934. package/src/unstable/eventlog/EventLogServer.ts +7 -2
  935. package/src/unstable/eventlog/EventLogServerEncrypted.ts +7 -2
  936. package/src/unstable/eventlog/EventLogServerUnencrypted.ts +37 -7
  937. package/src/unstable/eventlog/EventLogSessionAuth.ts +33 -7
  938. package/src/unstable/http/Cookies.ts +40 -39
  939. package/src/unstable/http/FetchHttpClient.ts +6 -1
  940. package/src/unstable/http/Headers.ts +10 -9
  941. package/src/unstable/http/HttpBody.ts +6 -2
  942. package/src/unstable/http/HttpClient.ts +29 -9
  943. package/src/unstable/http/HttpClientError.ts +15 -14
  944. package/src/unstable/http/HttpClientRequest.ts +1 -1
  945. package/src/unstable/http/HttpEffect.ts +3 -3
  946. package/src/unstable/http/HttpMethod.ts +16 -5
  947. package/src/unstable/http/HttpRouter.ts +18 -13
  948. package/src/unstable/http/HttpServer.ts +4 -4
  949. package/src/unstable/http/HttpServerError.ts +9 -9
  950. package/src/unstable/http/HttpServerRequest.ts +20 -5
  951. package/src/unstable/http/HttpServerResponse.ts +24 -24
  952. package/src/unstable/http/HttpTraceContext.ts +4 -4
  953. package/src/unstable/http/Multipart.ts +2 -2
  954. package/src/unstable/http/Url.ts +14 -17
  955. package/src/unstable/http/UrlParams.ts +10 -10
  956. package/src/unstable/httpapi/HttpApi.ts +2 -2
  957. package/src/unstable/httpapi/HttpApiBuilder.ts +5 -6
  958. package/src/unstable/httpapi/HttpApiError.ts +2 -2
  959. package/src/unstable/httpapi/HttpApiSchema.ts +4 -7
  960. package/src/unstable/httpapi/HttpApiSecurity.ts +36 -8
  961. package/src/unstable/httpapi/HttpApiTest.ts +1 -1
  962. package/src/unstable/httpapi/OpenApi.ts +9 -3
  963. package/src/unstable/observability/OtlpLogger.ts +1 -1
  964. package/src/unstable/observability/PrometheusMetrics.ts +2 -2
  965. package/src/unstable/persistence/KeyValueStore.ts +8 -3
  966. package/src/unstable/persistence/Persistable.ts +8 -3
  967. package/src/unstable/persistence/PersistedQueue.ts +10 -5
  968. package/src/unstable/persistence/RateLimiter.ts +20 -10
  969. package/src/unstable/process/ChildProcess.ts +14 -14
  970. package/src/unstable/process/ChildProcessSpawner.ts +2 -2
  971. package/src/unstable/reactivity/AsyncResult.ts +58 -7
  972. package/src/unstable/reactivity/Atom.ts +53 -13
  973. package/src/unstable/reactivity/AtomRegistry.ts +7 -2
  974. package/src/unstable/reactivity/Hydration.ts +6 -1
  975. package/src/unstable/reactivity/Reactivity.ts +6 -1
  976. package/src/unstable/rpc/Rpc.ts +18 -14
  977. package/src/unstable/rpc/RpcClient.ts +27 -12
  978. package/src/unstable/rpc/RpcClientError.ts +2 -2
  979. package/src/unstable/rpc/RpcMessage.ts +5 -5
  980. package/src/unstable/rpc/RpcSchema.ts +1 -1
  981. package/src/unstable/rpc/RpcSerialization.ts +19 -12
  982. package/src/unstable/rpc/RpcServer.ts +22 -17
  983. package/src/unstable/schema/Model.ts +32 -33
  984. package/src/unstable/schema/VariantSchema.ts +1 -1
  985. package/src/unstable/socket/Socket.ts +8 -2
  986. package/src/unstable/socket/SocketServer.ts +2 -2
  987. package/src/unstable/sql/SqlClient.ts +7 -2
  988. package/src/unstable/sql/SqlConnection.ts +1 -1
  989. package/src/unstable/sql/SqlError.ts +2 -2
  990. package/src/unstable/sql/SqlResolver.ts +3 -3
  991. package/src/unstable/sql/SqlSchema.ts +19 -4
  992. package/src/unstable/workers/Transferable.ts +3 -6
  993. package/src/unstable/workers/Worker.ts +1 -1
  994. package/src/unstable/workers/WorkerError.ts +1 -1
  995. package/src/unstable/workflow/DurableClock.ts +2 -2
  996. package/src/unstable/workflow/DurableDeferred.ts +12 -12
  997. package/src/unstable/workflow/DurableQueue.ts +3 -3
  998. package/src/unstable/workflow/Workflow.ts +22 -23
  999. package/src/unstable/workflow/WorkflowEngine.ts +26 -8
package/src/DateTime.ts CHANGED
@@ -457,7 +457,7 @@ export type Disambiguation = "compatible" | "earlier" | "later" | "reject"
457
457
  export const isDateTime: (u: unknown) => u is DateTime = Internal.isDateTime
458
458
 
459
459
  /**
460
- * Checks if a value is a `TimeZone`.
460
+ * Checks whether a value is a `TimeZone`.
461
461
  *
462
462
  * **When to use**
463
463
  *
@@ -473,7 +473,7 @@ export const isDateTime: (u: unknown) => u is DateTime = Internal.isDateTime
473
473
  export const isTimeZone: (u: unknown) => u is TimeZone = Internal.isTimeZone
474
474
 
475
475
  /**
476
- * Checks if a value is an offset-based `TimeZone`.
476
+ * Checks whether a value is an offset-based `TimeZone`.
477
477
  *
478
478
  * **When to use**
479
479
  *
@@ -489,7 +489,7 @@ export const isTimeZone: (u: unknown) => u is TimeZone = Internal.isTimeZone
489
489
  export const isTimeZoneOffset: (u: unknown) => u is TimeZone.Offset = Internal.isTimeZoneOffset
490
490
 
491
491
  /**
492
- * Checks if a value is a named `TimeZone` (IANA time zone).
492
+ * Checks whether a value is a named `TimeZone` (IANA time zone).
493
493
  *
494
494
  * **When to use**
495
495
  *
@@ -505,7 +505,7 @@ export const isTimeZoneOffset: (u: unknown) => u is TimeZone.Offset = Internal.i
505
505
  export const isTimeZoneNamed: (u: unknown) => u is TimeZone.Named = Internal.isTimeZoneNamed
506
506
 
507
507
  /**
508
- * Checks if a `DateTime` is a UTC `DateTime` (no time zone information).
508
+ * Checks whether a `DateTime` is a UTC `DateTime` (no time zone information).
509
509
  *
510
510
  * **When to use**
511
511
  *
@@ -521,7 +521,7 @@ export const isTimeZoneNamed: (u: unknown) => u is TimeZone.Named = Internal.isT
521
521
  export const isUtc: (self: DateTime) => self is Utc = Internal.isUtc
522
522
 
523
523
  /**
524
- * Checks if a `DateTime` is a zoned `DateTime` (has time zone information).
524
+ * Checks whether a `DateTime` is a zoned `DateTime` (has time zone information).
525
525
  *
526
526
  * **When to use**
527
527
  *
@@ -541,7 +541,7 @@ export const isZoned: (self: DateTime) => self is Zoned = Internal.isZoned
541
541
  // =============================================================================
542
542
 
543
543
  /**
544
- * An `Equivalence` for comparing two `DateTime` values for equality.
544
+ * Provides an `Equivalence` for comparing two `DateTime` values for equality.
545
545
  *
546
546
  * **Details**
547
547
  *
@@ -567,7 +567,7 @@ export const isZoned: (self: DateTime) => self is Zoned = Internal.isZoned
567
567
  export const Equivalence: Equ.Equivalence<DateTime> = Internal.Equivalence
568
568
 
569
569
  /**
570
- * An `Order` for comparing and sorting `DateTime` values.
570
+ * Provides an `Order` for comparing and sorting `DateTime` values.
571
571
  *
572
572
  * **Details**
573
573
  *
@@ -595,7 +595,7 @@ export const Equivalence: Equ.Equivalence<DateTime> = Internal.Equivalence
595
595
  export const Order: order.Order<DateTime> = Internal.Order
596
596
 
597
597
  /**
598
- * Clamp a `DateTime` between a minimum and maximum value.
598
+ * Returns a `DateTime` constrained between a minimum and maximum value.
599
599
  *
600
600
  * **Details**
601
601
  *
@@ -616,12 +616,12 @@ export const Order: order.Order<DateTime> = Internal.Order
616
616
  * // clamped equals max (2024-12-31)
617
617
  * ```
618
618
  *
619
- * @category instances
619
+ * @category ordering
620
620
  * @since 3.6.0
621
621
  */
622
622
  export const clamp: {
623
623
  /**
624
- * Clamp a `DateTime` between a minimum and maximum value.
624
+ * Returns a `DateTime` constrained between a minimum and maximum value.
625
625
  *
626
626
  * **Details**
627
627
  *
@@ -642,12 +642,12 @@ export const clamp: {
642
642
  * // clamped equals max (2024-12-31)
643
643
  * ```
644
644
  *
645
- * @category instances
645
+ * @category ordering
646
646
  * @since 3.6.0
647
647
  */
648
648
  <Min extends DateTime, Max extends DateTime>(options: { readonly minimum: Min; readonly maximum: Max }): <A extends DateTime>(self: A) => A | Min | Max
649
649
  /**
650
- * Clamp a `DateTime` between a minimum and maximum value.
650
+ * Returns a `DateTime` constrained between a minimum and maximum value.
651
651
  *
652
652
  * **Details**
653
653
  *
@@ -668,7 +668,7 @@ export const clamp: {
668
668
  * // clamped equals max (2024-12-31)
669
669
  * ```
670
670
  *
671
- * @category instances
671
+ * @category ordering
672
672
  * @since 3.6.0
673
673
  */
674
674
  <A extends DateTime, Min extends DateTime, Max extends DateTime>(self: A, options: { readonly minimum: Min; readonly maximum: Max }): A | Min | Max
@@ -773,7 +773,7 @@ export const makeZonedUnsafe: (input: DateTime.Input, options?: {
773
773
  }) => Zoned = Internal.makeZonedUnsafe
774
774
 
775
775
  /**
776
- * Creates a `DateTime.Zoned` from an input and a time zone.
776
+ * Creates a `DateTime.Zoned` safely from an input and a time zone.
777
777
  *
778
778
  * **Details**
779
779
  *
@@ -821,7 +821,7 @@ export const makeZoned: (
821
821
  ) => Option.Option<Zoned> = Internal.makeZoned
822
822
 
823
823
  /**
824
- * Creates a `DateTime` from supported input values.
824
+ * Creates a `DateTime` safely from supported input values.
825
825
  *
826
826
  * **Details**
827
827
  *
@@ -862,7 +862,7 @@ export const makeZoned: (
862
862
  export const make: <A extends DateTime.Input>(input: A) => Option.Option<DateTime.PreserveZone<A>> = Internal.make
863
863
 
864
864
  /**
865
- * Parses an ISO zoned date-time string into a `DateTime.Zoned`.
865
+ * Parses an ISO zoned date-time string into a `DateTime.Zoned` safely.
866
866
  *
867
867
  * **Details**
868
868
  *
@@ -894,7 +894,7 @@ export const make: <A extends DateTime.Input>(input: A) => Option.Option<DateTim
894
894
  export const makeZonedFromString: (input: string) => Option.Option<Zoned> = Internal.makeZonedFromString
895
895
 
896
896
  /**
897
- * Get the current time using the `Clock` service and convert it to a `DateTime`.
897
+ * Gets the current time using the `Clock` service and convert it to a `DateTime`.
898
898
  *
899
899
  * **Example** (Getting the current DateTime)
900
900
  *
@@ -932,7 +932,7 @@ export const now: Effect.Effect<Utc> = Internal.now
932
932
  export const nowAsDate: Effect.Effect<Date> = Internal.nowAsDate
933
933
 
934
934
  /**
935
- * Get the current time using `Date.now`.
935
+ * Gets the current time using `Date.now`.
936
936
  *
937
937
  * **Details**
938
938
  *
@@ -958,7 +958,16 @@ export const nowUnsafe: LazyArg<Utc> = Internal.nowUnsafe
958
958
  // =============================================================================
959
959
 
960
960
  /**
961
- * For a `DateTime` returns a new `DateTime.Utc`.
961
+ * Converts a `DateTime` to a UTC `DateTime`.
962
+ *
963
+ * **When to use**
964
+ *
965
+ * Use to represent the same instant in UTC instead of its current time zone.
966
+ *
967
+ * **Details**
968
+ *
969
+ * The returned value keeps the same epoch milliseconds and changes only the
970
+ * `DateTime` representation to UTC.
962
971
  *
963
972
  * **Example** (Converting DateTime values to UTC)
964
973
  *
@@ -979,7 +988,7 @@ export const nowUnsafe: LazyArg<Utc> = Internal.nowUnsafe
979
988
  export const toUtc: (self: DateTime) => Utc = Internal.toUtc
980
989
 
981
990
  /**
982
- * Set the time zone of a `DateTime`, returning a new `DateTime.Zoned`.
991
+ * Sets the time zone of a `DateTime`, returning a new `DateTime.Zoned`.
983
992
  *
984
993
  * **Example** (Setting time zones)
985
994
  *
@@ -1000,7 +1009,7 @@ export const toUtc: (self: DateTime) => Utc = Internal.toUtc
1000
1009
  */
1001
1010
  export const setZone: {
1002
1011
  /**
1003
- * Set the time zone of a `DateTime`, returning a new `DateTime.Zoned`.
1012
+ * Sets the time zone of a `DateTime`, returning a new `DateTime.Zoned`.
1004
1013
  *
1005
1014
  * **Example** (Setting time zones)
1006
1015
  *
@@ -1027,7 +1036,7 @@ export const setZone: {
1027
1036
  }
1028
1037
  ): (self: DateTime) => Zoned
1029
1038
  /**
1030
- * Set the time zone of a `DateTime`, returning a new `DateTime.Zoned`.
1039
+ * Sets the time zone of a `DateTime`, returning a new `DateTime.Zoned`.
1031
1040
  *
1032
1041
  * **Example** (Setting time zones)
1033
1042
  *
@@ -1057,7 +1066,7 @@ export const setZone: {
1057
1066
  } = Internal.setZone
1058
1067
 
1059
1068
  /**
1060
- * Add a fixed offset time zone to a `DateTime`.
1069
+ * Adds a fixed offset time zone to a `DateTime`.
1061
1070
  *
1062
1071
  * **Details**
1063
1072
  *
@@ -1081,7 +1090,7 @@ export const setZone: {
1081
1090
  */
1082
1091
  export const setZoneOffset: {
1083
1092
  /**
1084
- * Add a fixed offset time zone to a `DateTime`.
1093
+ * Adds a fixed offset time zone to a `DateTime`.
1085
1094
  *
1086
1095
  * **Details**
1087
1096
  *
@@ -1111,7 +1120,7 @@ export const setZoneOffset: {
1111
1120
  }
1112
1121
  ): (self: DateTime) => Zoned
1113
1122
  /**
1114
- * Add a fixed offset time zone to a `DateTime`.
1123
+ * Adds a fixed offset time zone to a `DateTime`.
1115
1124
  *
1116
1125
  * **Details**
1117
1126
  *
@@ -1144,7 +1153,7 @@ export const setZoneOffset: {
1144
1153
  } = Internal.setZoneOffset
1145
1154
 
1146
1155
  /**
1147
- * Attempt to create a named time zone from a IANA time zone identifier.
1156
+ * Attempts to create a named time zone from an IANA time zone identifier.
1148
1157
  *
1149
1158
  * **Details**
1150
1159
  *
@@ -1197,7 +1206,7 @@ export const zoneMakeNamedUnsafe: (zoneId: string) => TimeZone.Named = Internal.
1197
1206
  export const zoneMakeOffset: (offset: number) => TimeZone.Offset = Internal.zoneMakeOffset
1198
1207
 
1199
1208
  /**
1200
- * Create a named time zone from a IANA time zone identifier.
1209
+ * Creates a named time zone safely from an IANA time zone identifier.
1201
1210
  *
1202
1211
  * **Details**
1203
1212
  *
@@ -1221,7 +1230,7 @@ export const zoneMakeOffset: (offset: number) => TimeZone.Offset = Internal.zone
1221
1230
  export const zoneMakeNamed: (zoneId: string) => Option.Option<TimeZone.Named> = Internal.zoneMakeNamed
1222
1231
 
1223
1232
  /**
1224
- * Create a named time zone from a IANA time zone identifier.
1233
+ * Creates a named time zone effectfully from an IANA time zone identifier.
1225
1234
  *
1226
1235
  * **Details**
1227
1236
  *
@@ -1268,7 +1277,7 @@ export const zoneMakeNamedEffect: (zoneId: string) => Effect.Effect<TimeZone.Nam
1268
1277
  export const zoneMakeLocal: () => TimeZone.Named = Internal.zoneMakeLocal
1269
1278
 
1270
1279
  /**
1271
- * Try to parse a `TimeZone` from a string.
1280
+ * Tries to parse a `TimeZone` from a string safely.
1272
1281
  *
1273
1282
  * **Details**
1274
1283
  *
@@ -1294,7 +1303,7 @@ export const zoneMakeLocal: () => TimeZone.Named = Internal.zoneMakeLocal
1294
1303
  export const zoneFromString: (zone: string) => Option.Option<TimeZone> = Internal.zoneFromString
1295
1304
 
1296
1305
  /**
1297
- * Format a `TimeZone` as a string.
1306
+ * Formats a `TimeZone` as a string.
1298
1307
  *
1299
1308
  * **Example** (Formatting time zones)
1300
1309
  *
@@ -1314,7 +1323,7 @@ export const zoneFromString: (zone: string) => Option.Option<TimeZone> = Interna
1314
1323
  export const zoneToString: (self: TimeZone) => string = Internal.zoneToString
1315
1324
 
1316
1325
  /**
1317
- * Set the time zone of a `DateTime` from an IANA time zone identifier. If the
1326
+ * Sets the time zone of a `DateTime` safely from an IANA time zone identifier. If the
1318
1327
  * time zone is invalid, `None` will be returned.
1319
1328
  *
1320
1329
  * **Example** (Setting named time zones safely)
@@ -1334,7 +1343,7 @@ export const zoneToString: (self: TimeZone) => string = Internal.zoneToString
1334
1343
  */
1335
1344
  export const setZoneNamed: {
1336
1345
  /**
1337
- * Set the time zone of a `DateTime` from an IANA time zone identifier. If the
1346
+ * Sets the time zone of a `DateTime` safely from an IANA time zone identifier. If the
1338
1347
  * time zone is invalid, `None` will be returned.
1339
1348
  *
1340
1349
  * **Example** (Setting named time zones safely)
@@ -1360,7 +1369,7 @@ export const setZoneNamed: {
1360
1369
  }
1361
1370
  ): (self: DateTime) => Option.Option<Zoned>
1362
1371
  /**
1363
- * Set the time zone of a `DateTime` from an IANA time zone identifier. If the
1372
+ * Sets the time zone of a `DateTime` safely from an IANA time zone identifier. If the
1364
1373
  * time zone is invalid, `None` will be returned.
1365
1374
  *
1366
1375
  * **Example** (Setting named time zones safely)
@@ -1389,7 +1398,7 @@ export const setZoneNamed: {
1389
1398
  } = Internal.setZoneNamed
1390
1399
 
1391
1400
  /**
1392
- * Set the time zone of a `DateTime` from an IANA time zone identifier. If the
1401
+ * Sets the time zone of a `DateTime` from an IANA time zone identifier. If the
1393
1402
  * time zone is invalid, an `IllegalArgumentError` will be thrown.
1394
1403
  *
1395
1404
  * **Example** (Setting named time zones unsafely)
@@ -1409,7 +1418,7 @@ export const setZoneNamed: {
1409
1418
  */
1410
1419
  export const setZoneNamedUnsafe: {
1411
1420
  /**
1412
- * Set the time zone of a `DateTime` from an IANA time zone identifier. If the
1421
+ * Sets the time zone of a `DateTime` from an IANA time zone identifier. If the
1413
1422
  * time zone is invalid, an `IllegalArgumentError` will be thrown.
1414
1423
  *
1415
1424
  * **Example** (Setting named time zones unsafely)
@@ -1435,7 +1444,7 @@ export const setZoneNamedUnsafe: {
1435
1444
  }
1436
1445
  ): (self: DateTime) => Zoned
1437
1446
  /**
1438
- * Set the time zone of a `DateTime` from an IANA time zone identifier. If the
1447
+ * Sets the time zone of a `DateTime` from an IANA time zone identifier. If the
1439
1448
  * time zone is invalid, an `IllegalArgumentError` will be thrown.
1440
1449
  *
1441
1450
  * **Example** (Setting named time zones unsafely)
@@ -1468,7 +1477,7 @@ export const setZoneNamedUnsafe: {
1468
1477
  // =============================================================================
1469
1478
 
1470
1479
  /**
1471
- * Calulate the difference between two `DateTime` values, returning a
1480
+ * Computes the difference between two `DateTime` values, returning a
1472
1481
  * `Duration` representing the amount of time between them.
1473
1482
  *
1474
1483
  * **Details**
@@ -1500,7 +1509,7 @@ export const distance: {
1500
1509
  // =============================================================================
1501
1510
 
1502
1511
  /**
1503
- * Calulate the difference between two `DateTime` values, returning a
1512
+ * Computes the difference between two `DateTime` values, returning a
1504
1513
  * `Duration` representing the amount of time between them.
1505
1514
  *
1506
1515
  * **Details**
@@ -1532,7 +1541,7 @@ export const distance: {
1532
1541
  // =============================================================================
1533
1542
 
1534
1543
  /**
1535
- * Calulate the difference between two `DateTime` values, returning a
1544
+ * Computes the difference between two `DateTime` values, returning a
1536
1545
  * `Duration` representing the amount of time between them.
1537
1546
  *
1538
1547
  * **Details**
@@ -1680,7 +1689,7 @@ export const max: {
1680
1689
  } = Internal.max
1681
1690
 
1682
1691
  /**
1683
- * Checks if the first `DateTime` is after the second `DateTime`.
1692
+ * Checks whether the first `DateTime` is after the second `DateTime`.
1684
1693
  *
1685
1694
  * **Example** (Checking whether a DateTime is later)
1686
1695
  *
@@ -1699,7 +1708,7 @@ export const max: {
1699
1708
  */
1700
1709
  export const isGreaterThan: {
1701
1710
  /**
1702
- * Checks if the first `DateTime` is after the second `DateTime`.
1711
+ * Checks whether the first `DateTime` is after the second `DateTime`.
1703
1712
  *
1704
1713
  * **Example** (Checking whether a DateTime is later)
1705
1714
  *
@@ -1718,7 +1727,7 @@ export const isGreaterThan: {
1718
1727
  */
1719
1728
  (that: DateTime): (self: DateTime) => boolean
1720
1729
  /**
1721
- * Checks if the first `DateTime` is after the second `DateTime`.
1730
+ * Checks whether the first `DateTime` is after the second `DateTime`.
1722
1731
  *
1723
1732
  * **Example** (Checking whether a DateTime is later)
1724
1733
  *
@@ -1739,7 +1748,7 @@ export const isGreaterThan: {
1739
1748
  } = Internal.isGreaterThan
1740
1749
 
1741
1750
  /**
1742
- * Checks if the first `DateTime` is after or equal to the second `DateTime`.
1751
+ * Checks whether the first `DateTime` is after or equal to the second `DateTime`.
1743
1752
  *
1744
1753
  * **Example** (Checking whether a DateTime is later or equal)
1745
1754
  *
@@ -1760,7 +1769,7 @@ export const isGreaterThan: {
1760
1769
  */
1761
1770
  export const isGreaterThanOrEqualTo: {
1762
1771
  /**
1763
- * Checks if the first `DateTime` is after or equal to the second `DateTime`.
1772
+ * Checks whether the first `DateTime` is after or equal to the second `DateTime`.
1764
1773
  *
1765
1774
  * **Example** (Checking whether a DateTime is later or equal)
1766
1775
  *
@@ -1781,7 +1790,7 @@ export const isGreaterThanOrEqualTo: {
1781
1790
  */
1782
1791
  (that: DateTime): (self: DateTime) => boolean
1783
1792
  /**
1784
- * Checks if the first `DateTime` is after or equal to the second `DateTime`.
1793
+ * Checks whether the first `DateTime` is after or equal to the second `DateTime`.
1785
1794
  *
1786
1795
  * **Example** (Checking whether a DateTime is later or equal)
1787
1796
  *
@@ -1804,7 +1813,7 @@ export const isGreaterThanOrEqualTo: {
1804
1813
  } = Internal.isGreaterThanOrEqualTo
1805
1814
 
1806
1815
  /**
1807
- * Checks if the first `DateTime` is before the second `DateTime`.
1816
+ * Checks whether the first `DateTime` is before the second `DateTime`.
1808
1817
  *
1809
1818
  * **Example** (Checking whether a DateTime is earlier)
1810
1819
  *
@@ -1823,7 +1832,7 @@ export const isGreaterThanOrEqualTo: {
1823
1832
  */
1824
1833
  export const isLessThan: {
1825
1834
  /**
1826
- * Checks if the first `DateTime` is before the second `DateTime`.
1835
+ * Checks whether the first `DateTime` is before the second `DateTime`.
1827
1836
  *
1828
1837
  * **Example** (Checking whether a DateTime is earlier)
1829
1838
  *
@@ -1842,7 +1851,7 @@ export const isLessThan: {
1842
1851
  */
1843
1852
  (that: DateTime): (self: DateTime) => boolean
1844
1853
  /**
1845
- * Checks if the first `DateTime` is before the second `DateTime`.
1854
+ * Checks whether the first `DateTime` is before the second `DateTime`.
1846
1855
  *
1847
1856
  * **Example** (Checking whether a DateTime is earlier)
1848
1857
  *
@@ -1863,7 +1872,7 @@ export const isLessThan: {
1863
1872
  } = Internal.isLessThan
1864
1873
 
1865
1874
  /**
1866
- * Checks if the first `DateTime` is before or equal to the second `DateTime`.
1875
+ * Checks whether the first `DateTime` is before or equal to the second `DateTime`.
1867
1876
  *
1868
1877
  * **Example** (Checking whether a DateTime is earlier or equal)
1869
1878
  *
@@ -1884,7 +1893,7 @@ export const isLessThan: {
1884
1893
  */
1885
1894
  export const isLessThanOrEqualTo: {
1886
1895
  /**
1887
- * Checks if the first `DateTime` is before or equal to the second `DateTime`.
1896
+ * Checks whether the first `DateTime` is before or equal to the second `DateTime`.
1888
1897
  *
1889
1898
  * **Example** (Checking whether a DateTime is earlier or equal)
1890
1899
  *
@@ -1905,7 +1914,7 @@ export const isLessThanOrEqualTo: {
1905
1914
  */
1906
1915
  (that: DateTime): (self: DateTime) => boolean
1907
1916
  /**
1908
- * Checks if the first `DateTime` is before or equal to the second `DateTime`.
1917
+ * Checks whether the first `DateTime` is before or equal to the second `DateTime`.
1909
1918
  *
1910
1919
  * **Example** (Checking whether a DateTime is earlier or equal)
1911
1920
  *
@@ -1928,7 +1937,7 @@ export const isLessThanOrEqualTo: {
1928
1937
  } = Internal.isLessThanOrEqualTo
1929
1938
 
1930
1939
  /**
1931
- * Checks if a `DateTime` is between two other `DateTime` values (inclusive).
1940
+ * Checks whether a `DateTime` is between two other `DateTime` values (inclusive).
1932
1941
  *
1933
1942
  * **Example** (Checking whether a DateTime is within bounds)
1934
1943
  *
@@ -1947,7 +1956,7 @@ export const isLessThanOrEqualTo: {
1947
1956
  */
1948
1957
  export const between: {
1949
1958
  /**
1950
- * Checks if a `DateTime` is between two other `DateTime` values (inclusive).
1959
+ * Checks whether a `DateTime` is between two other `DateTime` values (inclusive).
1951
1960
  *
1952
1961
  * **Example** (Checking whether a DateTime is within bounds)
1953
1962
  *
@@ -1966,7 +1975,7 @@ export const between: {
1966
1975
  */
1967
1976
  (options: { minimum: DateTime; maximum: DateTime }): (self: DateTime) => boolean
1968
1977
  /**
1969
- * Checks if a `DateTime` is between two other `DateTime` values (inclusive).
1978
+ * Checks whether a `DateTime` is between two other `DateTime` values (inclusive).
1970
1979
  *
1971
1980
  * **Example** (Checking whether a DateTime is within bounds)
1972
1981
  *
@@ -1987,7 +1996,7 @@ export const between: {
1987
1996
  } = Internal.between
1988
1997
 
1989
1998
  /**
1990
- * Checks if a `DateTime` is in the future compared to the current time.
1999
+ * Checks effectfully if a `DateTime` is in the future compared to the current time.
1991
2000
  *
1992
2001
  * **Details**
1993
2002
  *
@@ -2011,7 +2020,7 @@ export const between: {
2011
2020
  export const isFuture: (self: DateTime) => Effect.Effect<boolean> = Internal.isFuture
2012
2021
 
2013
2022
  /**
2014
- * Checks if a `DateTime` is in the future compared to the current time.
2023
+ * Checks synchronously if a `DateTime` is in the future compared to the current time.
2015
2024
  *
2016
2025
  * **Details**
2017
2026
  *
@@ -2035,7 +2044,7 @@ export const isFuture: (self: DateTime) => Effect.Effect<boolean> = Internal.isF
2035
2044
  export const isFutureUnsafe: (self: DateTime) => boolean = Internal.isFutureUnsafe
2036
2045
 
2037
2046
  /**
2038
- * Checks if a `DateTime` is in the past compared to the current time.
2047
+ * Checks effectfully if a `DateTime` is in the past compared to the current time.
2039
2048
  *
2040
2049
  * **Details**
2041
2050
  *
@@ -2059,7 +2068,7 @@ export const isFutureUnsafe: (self: DateTime) => boolean = Internal.isFutureUnsa
2059
2068
  export const isPast: (self: DateTime) => Effect.Effect<boolean> = Internal.isPast
2060
2069
 
2061
2070
  /**
2062
- * Checks if a `DateTime` is in the past compared to the current time.
2071
+ * Checks synchronously if a `DateTime` is in the past compared to the current time.
2063
2072
  *
2064
2073
  * **Details**
2065
2074
  *
@@ -2087,7 +2096,7 @@ export const isPastUnsafe: (self: DateTime) => boolean = Internal.isPastUnsafe
2087
2096
  // =============================================================================
2088
2097
 
2089
2098
  /**
2090
- * Get the UTC `Date` of a `DateTime`.
2099
+ * Gets the UTC `Date` of a `DateTime`.
2091
2100
  *
2092
2101
  * **Details**
2093
2102
  *
@@ -2112,7 +2121,7 @@ export const isPastUnsafe: (self: DateTime) => boolean = Internal.isPastUnsafe
2112
2121
  export const toDateUtc: (self: DateTime) => Date = Internal.toDateUtc
2113
2122
 
2114
2123
  /**
2115
- * Convert a `DateTime` to a `Date`, applying the time zone first.
2124
+ * Converts a `DateTime` to a `Date`, applying the time zone first.
2116
2125
  *
2117
2126
  * **Details**
2118
2127
  *
@@ -2139,7 +2148,7 @@ export const toDateUtc: (self: DateTime) => Date = Internal.toDateUtc
2139
2148
  export const toDate: (self: DateTime) => Date = Internal.toDate
2140
2149
 
2141
2150
  /**
2142
- * Calculate the time zone offset of a `DateTime.Zoned` in milliseconds.
2151
+ * Computes the time zone offset of a `DateTime.Zoned` in milliseconds.
2143
2152
  *
2144
2153
  * **Details**
2145
2154
  *
@@ -2165,7 +2174,7 @@ export const toDate: (self: DateTime) => Date = Internal.toDate
2165
2174
  export const zonedOffset: (self: Zoned) => number = Internal.zonedOffset
2166
2175
 
2167
2176
  /**
2168
- * Format the time zone offset of a `DateTime.Zoned` as an ISO string.
2177
+ * Formats the time zone offset of a `DateTime.Zoned` as an ISO string.
2169
2178
  *
2170
2179
  * **Details**
2171
2180
  *
@@ -2190,7 +2199,7 @@ export const zonedOffset: (self: Zoned) => number = Internal.zonedOffset
2190
2199
  export const zonedOffsetIso: (self: Zoned) => string = Internal.zonedOffsetIso
2191
2200
 
2192
2201
  /**
2193
- * Get the milliseconds since the Unix epoch of a `DateTime`.
2202
+ * Gets the milliseconds since the Unix epoch of a `DateTime`.
2194
2203
  *
2195
2204
  * **Details**
2196
2205
  *
@@ -2213,7 +2222,7 @@ export const zonedOffsetIso: (self: Zoned) => string = Internal.zonedOffsetIso
2213
2222
  export const toEpochMillis: (self: DateTime) => number = Internal.toEpochMillis
2214
2223
 
2215
2224
  /**
2216
- * Remove the time aspect of a `DateTime`, first adjusting for the time
2225
+ * Removes the time aspect of a `DateTime`, first adjusting for the time
2217
2226
  * zone. It will return a `DateTime.Utc` only containing the date.
2218
2227
  *
2219
2228
  * **Example** (Removing time components)
@@ -2241,7 +2250,7 @@ export const removeTime: (self: DateTime) => Utc = Internal.removeTime
2241
2250
  // =============================================================================
2242
2251
 
2243
2252
  /**
2244
- * Get the different parts of a `DateTime` as an object.
2253
+ * Gets the time-zone-adjusted parts of a `DateTime` as an object.
2245
2254
  *
2246
2255
  * **Details**
2247
2256
  *
@@ -2274,7 +2283,7 @@ export const removeTime: (self: DateTime) => Utc = Internal.removeTime
2274
2283
  export const toParts: (self: DateTime) => DateTime.PartsWithWeekday = Internal.toParts
2275
2284
 
2276
2285
  /**
2277
- * Get the different parts of a `DateTime` as an object.
2286
+ * Gets the UTC parts of a `DateTime` as an object.
2278
2287
  *
2279
2288
  * **Details**
2280
2289
  *
@@ -2300,7 +2309,7 @@ export const toParts: (self: DateTime) => DateTime.PartsWithWeekday = Internal.t
2300
2309
  export const toPartsUtc: (self: DateTime) => DateTime.PartsWithWeekday = Internal.toPartsUtc
2301
2310
 
2302
2311
  /**
2303
- * Get a part of a `DateTime` as a number.
2312
+ * Gets one UTC part of a `DateTime` as a number.
2304
2313
  *
2305
2314
  * **Details**
2306
2315
  *
@@ -2321,7 +2330,7 @@ export const toPartsUtc: (self: DateTime) => DateTime.PartsWithWeekday = Interna
2321
2330
  */
2322
2331
  export const getPartUtc: {
2323
2332
  /**
2324
- * Get a part of a `DateTime` as a number.
2333
+ * Gets one UTC part of a `DateTime` as a number.
2325
2334
  *
2326
2335
  * **Details**
2327
2336
  *
@@ -2342,7 +2351,7 @@ export const getPartUtc: {
2342
2351
  */
2343
2352
  (part: keyof DateTime.PartsWithWeekday): (self: DateTime) => number
2344
2353
  /**
2345
- * Get a part of a `DateTime` as a number.
2354
+ * Gets one UTC part of a `DateTime` as a number.
2346
2355
  *
2347
2356
  * **Details**
2348
2357
  *
@@ -2365,7 +2374,7 @@ export const getPartUtc: {
2365
2374
  } = Internal.getPartUtc
2366
2375
 
2367
2376
  /**
2368
- * Get a part of a `DateTime` as a number.
2377
+ * Gets one time-zone-adjusted part of a `DateTime` as a number.
2369
2378
  *
2370
2379
  * **Details**
2371
2380
  *
@@ -2388,7 +2397,7 @@ export const getPartUtc: {
2388
2397
  */
2389
2398
  export const getPart: {
2390
2399
  /**
2391
- * Get a part of a `DateTime` as a number.
2400
+ * Gets one time-zone-adjusted part of a `DateTime` as a number.
2392
2401
  *
2393
2402
  * **Details**
2394
2403
  *
@@ -2411,7 +2420,7 @@ export const getPart: {
2411
2420
  */
2412
2421
  (part: keyof DateTime.PartsWithWeekday): (self: DateTime) => number
2413
2422
  /**
2414
- * Get a part of a `DateTime` as a number.
2423
+ * Gets one time-zone-adjusted part of a `DateTime` as a number.
2415
2424
  *
2416
2425
  * **Details**
2417
2426
  *
@@ -2436,7 +2445,7 @@ export const getPart: {
2436
2445
  } = Internal.getPart
2437
2446
 
2438
2447
  /**
2439
- * Set the different parts of a `DateTime` as an object.
2448
+ * Sets time-zone-adjusted parts on a `DateTime`.
2440
2449
  *
2441
2450
  * **Details**
2442
2451
  *
@@ -2462,7 +2471,7 @@ export const getPart: {
2462
2471
  */
2463
2472
  export const setParts: {
2464
2473
  /**
2465
- * Set the different parts of a `DateTime` as an object.
2474
+ * Sets time-zone-adjusted parts on a `DateTime`.
2466
2475
  *
2467
2476
  * **Details**
2468
2477
  *
@@ -2488,7 +2497,7 @@ export const setParts: {
2488
2497
  */
2489
2498
  (parts: Partial<DateTime.PartsWithWeekday>): <A extends DateTime>(self: A) => A
2490
2499
  /**
2491
- * Set the different parts of a `DateTime` as an object.
2500
+ * Sets time-zone-adjusted parts on a `DateTime`.
2492
2501
  *
2493
2502
  * **Details**
2494
2503
  *
@@ -2516,7 +2525,7 @@ export const setParts: {
2516
2525
  } = Internal.setParts
2517
2526
 
2518
2527
  /**
2519
- * Set the different parts of a `DateTime` as an object.
2528
+ * Sets UTC parts on a `DateTime`.
2520
2529
  *
2521
2530
  * **Details**
2522
2531
  *
@@ -2541,7 +2550,7 @@ export const setParts: {
2541
2550
  */
2542
2551
  export const setPartsUtc: {
2543
2552
  /**
2544
- * Set the different parts of a `DateTime` as an object.
2553
+ * Sets UTC parts on a `DateTime`.
2545
2554
  *
2546
2555
  * **Details**
2547
2556
  *
@@ -2566,7 +2575,7 @@ export const setPartsUtc: {
2566
2575
  */
2567
2576
  (parts: Partial<DateTime.PartsWithWeekday>): <A extends DateTime>(self: A) => A
2568
2577
  /**
2569
- * Set the different parts of a `DateTime` as an object.
2578
+ * Sets UTC parts on a `DateTime`.
2570
2579
  *
2571
2580
  * **Details**
2572
2581
  *
@@ -2630,7 +2639,7 @@ export class CurrentTimeZone extends Context.Service<CurrentTimeZone, TimeZone>(
2630
2639
  ) {}
2631
2640
 
2632
2641
  /**
2633
- * Set the time zone of a `DateTime` to the current time zone, which is
2642
+ * Sets the time zone of a `DateTime` to the current time zone, which is
2634
2643
  * determined by the `CurrentTimeZone` service.
2635
2644
  *
2636
2645
  * **Example** (Setting the current time zone)
@@ -2653,7 +2662,7 @@ export const setZoneCurrent = (self: DateTime): Effect.Effect<Zoned, never, Curr
2653
2662
  Effect.map(CurrentTimeZone, (zone) => setZone(self, zone))
2654
2663
 
2655
2664
  /**
2656
- * Provide the `CurrentTimeZone` to an effect.
2665
+ * Provides the `CurrentTimeZone` to an effect.
2657
2666
  *
2658
2667
  * **Example** (Providing the current time zone)
2659
2668
  *
@@ -2672,7 +2681,7 @@ export const setZoneCurrent = (self: DateTime): Effect.Effect<Zoned, never, Curr
2672
2681
  */
2673
2682
  export const withCurrentZone: {
2674
2683
  /**
2675
- * Provide the `CurrentTimeZone` to an effect.
2684
+ * Provides the `CurrentTimeZone` to an effect.
2676
2685
  *
2677
2686
  * **Example** (Providing the current time zone)
2678
2687
  *
@@ -2691,7 +2700,7 @@ export const withCurrentZone: {
2691
2700
  */
2692
2701
  (value: TimeZone): <A, E, R>(self: Effect.Effect<A, E, R>) => Effect.Effect<A, E, Exclude<R, CurrentTimeZone>>
2693
2702
  /**
2694
- * Provide the `CurrentTimeZone` to an effect.
2703
+ * Provides the `CurrentTimeZone` to an effect.
2695
2704
  *
2696
2705
  * **Example** (Providing the current time zone)
2697
2706
  *
@@ -2712,7 +2721,7 @@ export const withCurrentZone: {
2712
2721
  } = provideService(CurrentTimeZone)
2713
2722
 
2714
2723
  /**
2715
- * Provide the `CurrentTimeZone` to an effect, using the system's local time
2724
+ * Provides the `CurrentTimeZone` to an effect, using the system's local time
2716
2725
  * zone.
2717
2726
  *
2718
2727
  * **Example** (Providing the local time zone)
@@ -2735,7 +2744,7 @@ export const withCurrentZoneLocal = <A, E, R>(
2735
2744
  Effect.provideServiceEffect(effect, CurrentTimeZone, Effect.sync(zoneMakeLocal))
2736
2745
 
2737
2746
  /**
2738
- * Provide the `CurrentTimeZone` to an effect, using a offset.
2747
+ * Provides the `CurrentTimeZone` to an effect, using an offset.
2739
2748
  *
2740
2749
  * **Example** (Providing a fixed-offset time zone)
2741
2750
  *
@@ -2753,7 +2762,7 @@ export const withCurrentZoneLocal = <A, E, R>(
2753
2762
  */
2754
2763
  export const withCurrentZoneOffset: {
2755
2764
  /**
2756
- * Provide the `CurrentTimeZone` to an effect, using a offset.
2765
+ * Provides the `CurrentTimeZone` to an effect, using an offset.
2757
2766
  *
2758
2767
  * **Example** (Providing a fixed-offset time zone)
2759
2768
  *
@@ -2773,7 +2782,7 @@ export const withCurrentZoneOffset: {
2773
2782
  effect: Effect.Effect<A, E, R>
2774
2783
  ) => Effect.Effect<A, E, Exclude<R, CurrentTimeZone>>
2775
2784
  /**
2776
- * Provide the `CurrentTimeZone` to an effect, using a offset.
2785
+ * Provides the `CurrentTimeZone` to an effect, using an offset.
2777
2786
  *
2778
2787
  * **Example** (Providing a fixed-offset time zone)
2779
2788
  *
@@ -2797,7 +2806,7 @@ export const withCurrentZoneOffset: {
2797
2806
  )
2798
2807
 
2799
2808
  /**
2800
- * Provide the `CurrentTimeZone` to an effect using an IANA time zone
2809
+ * Provides the `CurrentTimeZone` to an effect using an IANA time zone
2801
2810
  * identifier.
2802
2811
  *
2803
2812
  * **Details**
@@ -2820,7 +2829,7 @@ export const withCurrentZoneOffset: {
2820
2829
  */
2821
2830
  export const withCurrentZoneNamed: {
2822
2831
  /**
2823
- * Provide the `CurrentTimeZone` to an effect using an IANA time zone
2832
+ * Provides the `CurrentTimeZone` to an effect using an IANA time zone
2824
2833
  * identifier.
2825
2834
  *
2826
2835
  * **Details**
@@ -2845,7 +2854,7 @@ export const withCurrentZoneNamed: {
2845
2854
  effect: Effect.Effect<A, E, R>
2846
2855
  ) => Effect.Effect<A, E | IllegalArgumentError, Exclude<R, CurrentTimeZone>>
2847
2856
  /**
2848
- * Provide the `CurrentTimeZone` to an effect using an IANA time zone
2857
+ * Provides the `CurrentTimeZone` to an effect using an IANA time zone
2849
2858
  * identifier.
2850
2859
  *
2851
2860
  * **Details**
@@ -2877,7 +2886,7 @@ export const withCurrentZoneNamed: {
2877
2886
  )
2878
2887
 
2879
2888
  /**
2880
- * Get the current time as a `DateTime.Zoned`, using the `CurrentTimeZone`.
2889
+ * Gets the current time as a `DateTime.Zoned`, using the `CurrentTimeZone`.
2881
2890
  *
2882
2891
  * **Example** (Getting the current time in the current zone)
2883
2892
  *
@@ -2900,7 +2909,12 @@ export const nowInCurrentZone: Effect.Effect<Zoned, never, CurrentTimeZone> = Ef
2900
2909
  // =============================================================================
2901
2910
 
2902
2911
  /**
2903
- * Modify a `DateTime` by applying a function to a cloned `Date` instance.
2912
+ * Modifies a `DateTime` with a mutable local `Date` copy.
2913
+ *
2914
+ * **When to use**
2915
+ *
2916
+ * Use to adjust calendar fields in the `DateTime`'s own time zone with an
2917
+ * existing `Date` mutation API.
2904
2918
  *
2905
2919
  * **Details**
2906
2920
  *
@@ -2933,7 +2947,12 @@ export const mutate: {
2933
2947
  // =============================================================================
2934
2948
 
2935
2949
  /**
2936
- * Modify a `DateTime` by applying a function to a cloned `Date` instance.
2950
+ * Modifies a `DateTime` with a mutable local `Date` copy.
2951
+ *
2952
+ * **When to use**
2953
+ *
2954
+ * Use to adjust calendar fields in the `DateTime`'s own time zone with an
2955
+ * existing `Date` mutation API.
2937
2956
  *
2938
2957
  * **Details**
2939
2958
  *
@@ -2971,7 +2990,12 @@ export const mutate: {
2971
2990
  // =============================================================================
2972
2991
 
2973
2992
  /**
2974
- * Modify a `DateTime` by applying a function to a cloned `Date` instance.
2993
+ * Modifies a `DateTime` with a mutable local `Date` copy.
2994
+ *
2995
+ * **When to use**
2996
+ *
2997
+ * Use to adjust calendar fields in the `DateTime`'s own time zone with an
2998
+ * existing `Date` mutation API.
2975
2999
  *
2976
3000
  * **Details**
2977
3001
  *
@@ -3008,7 +3032,12 @@ export const mutate: {
3008
3032
  } = Internal.mutate
3009
3033
 
3010
3034
  /**
3011
- * Modify a `DateTime` by applying a function to a cloned UTC `Date` instance.
3035
+ * Modifies a `DateTime` with a mutable UTC `Date` copy.
3036
+ *
3037
+ * **When to use**
3038
+ *
3039
+ * Use to adjust the instant with an existing `Date` mutation API that works on
3040
+ * UTC calendar fields.
3012
3041
  *
3013
3042
  * **Example** (Mutating DateTime values with UTC Dates)
3014
3043
  *
@@ -3031,7 +3060,12 @@ export const mutate: {
3031
3060
  */
3032
3061
  export const mutateUtc: {
3033
3062
  /**
3034
- * Modify a `DateTime` by applying a function to a cloned UTC `Date` instance.
3063
+ * Modifies a `DateTime` with a mutable UTC `Date` copy.
3064
+ *
3065
+ * **When to use**
3066
+ *
3067
+ * Use to adjust the instant with an existing `Date` mutation API that works on
3068
+ * UTC calendar fields.
3035
3069
  *
3036
3070
  * **Example** (Mutating DateTime values with UTC Dates)
3037
3071
  *
@@ -3054,7 +3088,12 @@ export const mutateUtc: {
3054
3088
  */
3055
3089
  (f: (date: Date) => void): <A extends DateTime>(self: A) => A
3056
3090
  /**
3057
- * Modify a `DateTime` by applying a function to a cloned UTC `Date` instance.
3091
+ * Modifies a `DateTime` with a mutable UTC `Date` copy.
3092
+ *
3093
+ * **When to use**
3094
+ *
3095
+ * Use to adjust the instant with an existing `Date` mutation API that works on
3096
+ * UTC calendar fields.
3058
3097
  *
3059
3098
  * **Example** (Mutating DateTime values with UTC Dates)
3060
3099
  *
@@ -3079,7 +3118,7 @@ export const mutateUtc: {
3079
3118
  } = Internal.mutateUtc
3080
3119
 
3081
3120
  /**
3082
- * Transform a `DateTime` by applying a function to the number of milliseconds
3121
+ * Transforms a `DateTime` by applying a function to the number of milliseconds
3083
3122
  * since the Unix epoch.
3084
3123
  *
3085
3124
  * **Example** (Mapping epoch milliseconds)
@@ -3098,7 +3137,7 @@ export const mutateUtc: {
3098
3137
  */
3099
3138
  export const mapEpochMillis: {
3100
3139
  /**
3101
- * Transform a `DateTime` by applying a function to the number of milliseconds
3140
+ * Transforms a `DateTime` by applying a function to the number of milliseconds
3102
3141
  * since the Unix epoch.
3103
3142
  *
3104
3143
  * **Example** (Mapping epoch milliseconds)
@@ -3117,7 +3156,7 @@ export const mapEpochMillis: {
3117
3156
  */
3118
3157
  (f: (millis: number) => number): <A extends DateTime>(self: A) => A
3119
3158
  /**
3120
- * Transform a `DateTime` by applying a function to the number of milliseconds
3159
+ * Transforms a `DateTime` by applying a function to the number of milliseconds
3121
3160
  * since the Unix epoch.
3122
3161
  *
3123
3162
  * **Example** (Mapping epoch milliseconds)
@@ -3399,7 +3438,7 @@ export const match: {
3399
3438
  // =============================================================================
3400
3439
 
3401
3440
  /**
3402
- * Add the given `Duration` to a `DateTime`.
3441
+ * Adds the given `Duration` to a `DateTime`.
3403
3442
  *
3404
3443
  * **When to use**
3405
3444
  *
@@ -3440,7 +3479,7 @@ export const addDuration: {
3440
3479
  // =============================================================================
3441
3480
 
3442
3481
  /**
3443
- * Add the given `Duration` to a `DateTime`.
3482
+ * Adds the given `Duration` to a `DateTime`.
3444
3483
  *
3445
3484
  * **When to use**
3446
3485
  *
@@ -3481,7 +3520,7 @@ export const addDuration: {
3481
3520
  // =============================================================================
3482
3521
 
3483
3522
  /**
3484
- * Add the given `Duration` to a `DateTime`.
3523
+ * Adds the given `Duration` to a `DateTime`.
3485
3524
  *
3486
3525
  * **When to use**
3487
3526
  *
@@ -3520,7 +3559,7 @@ export const addDuration: {
3520
3559
  } = Internal.addDuration
3521
3560
 
3522
3561
  /**
3523
- * Subtract the given `Duration` from a `DateTime`.
3562
+ * Subtracts the given `Duration` from a `DateTime`.
3524
3563
  *
3525
3564
  * **Example** (Subtracting durations)
3526
3565
  *
@@ -3538,7 +3577,7 @@ export const addDuration: {
3538
3577
  */
3539
3578
  export const subtractDuration: {
3540
3579
  /**
3541
- * Subtract the given `Duration` from a `DateTime`.
3580
+ * Subtracts the given `Duration` from a `DateTime`.
3542
3581
  *
3543
3582
  * **Example** (Subtracting durations)
3544
3583
  *
@@ -3556,7 +3595,7 @@ export const subtractDuration: {
3556
3595
  */
3557
3596
  (duration: Duration.Input): <A extends DateTime>(self: A) => A
3558
3597
  /**
3559
- * Subtract the given `Duration` from a `DateTime`.
3598
+ * Subtracts the given `Duration` from a `DateTime`.
3560
3599
  *
3561
3600
  * **Example** (Subtracting durations)
3562
3601
  *
@@ -3576,7 +3615,7 @@ export const subtractDuration: {
3576
3615
  } = Internal.subtractDuration
3577
3616
 
3578
3617
  /**
3579
- * Add the given `amount` of `unit`'s to a `DateTime`.
3618
+ * Adds the given `amount` of `unit` to a `DateTime`.
3580
3619
  *
3581
3620
  * **Details**
3582
3621
  *
@@ -3599,7 +3638,7 @@ export const subtractDuration: {
3599
3638
  */
3600
3639
  export const add: {
3601
3640
  /**
3602
- * Add the given `amount` of `unit`'s to a `DateTime`.
3641
+ * Adds the given `amount` of `unit` to a `DateTime`.
3603
3642
  *
3604
3643
  * **Details**
3605
3644
  *
@@ -3622,7 +3661,7 @@ export const add: {
3622
3661
  */
3623
3662
  (parts: Partial<DateTime.PartsForMath>): <A extends DateTime>(self: A) => A
3624
3663
  /**
3625
- * Add the given `amount` of `unit`'s to a `DateTime`.
3664
+ * Adds the given `amount` of `unit` to a `DateTime`.
3626
3665
  *
3627
3666
  * **Details**
3628
3667
  *
@@ -3647,7 +3686,7 @@ export const add: {
3647
3686
  } = Internal.add
3648
3687
 
3649
3688
  /**
3650
- * Subtract the given `amount` of `unit`'s from a `DateTime`.
3689
+ * Subtracts the given `amount` of `unit` from a `DateTime`.
3651
3690
  *
3652
3691
  * **Example** (Subtracting date and time parts)
3653
3692
  *
@@ -3665,7 +3704,7 @@ export const add: {
3665
3704
  */
3666
3705
  export const subtract: {
3667
3706
  /**
3668
- * Subtract the given `amount` of `unit`'s from a `DateTime`.
3707
+ * Subtracts the given `amount` of `unit` from a `DateTime`.
3669
3708
  *
3670
3709
  * **Example** (Subtracting date and time parts)
3671
3710
  *
@@ -3683,7 +3722,7 @@ export const subtract: {
3683
3722
  */
3684
3723
  (parts: Partial<DateTime.PartsForMath>): <A extends DateTime>(self: A) => A
3685
3724
  /**
3686
- * Subtract the given `amount` of `unit`'s from a `DateTime`.
3725
+ * Subtracts the given `amount` of `unit` from a `DateTime`.
3687
3726
  *
3688
3727
  * **Example** (Subtracting date and time parts)
3689
3728
  *
@@ -4075,7 +4114,8 @@ export const format: {
4075
4114
  } = Internal.format
4076
4115
 
4077
4116
  /**
4078
- * Format a `DateTime` as a string using the `DateTimeFormat` API.
4117
+ * Formats a `DateTime` with `Intl.DateTimeFormat` using the system local time
4118
+ * zone and locale.
4079
4119
  *
4080
4120
  * **Details**
4081
4121
  *
@@ -4105,7 +4145,8 @@ export const format: {
4105
4145
  */
4106
4146
  export const formatLocal: {
4107
4147
  /**
4108
- * Format a `DateTime` as a string using the `DateTimeFormat` API.
4148
+ * Formats a `DateTime` with `Intl.DateTimeFormat` using the system local time
4149
+ * zone and locale.
4109
4150
  *
4110
4151
  * **Details**
4111
4152
  *
@@ -4141,7 +4182,8 @@ export const formatLocal: {
4141
4182
  | undefined
4142
4183
  ): (self: DateTime) => string
4143
4184
  /**
4144
- * Format a `DateTime` as a string using the `DateTimeFormat` API.
4185
+ * Formats a `DateTime` with `Intl.DateTimeFormat` using the system local time
4186
+ * zone and locale.
4145
4187
  *
4146
4188
  * **Details**
4147
4189
  *
@@ -4180,7 +4222,7 @@ export const formatLocal: {
4180
4222
  } = Internal.formatLocal
4181
4223
 
4182
4224
  /**
4183
- * Format a `DateTime` as a string using the `DateTimeFormat` API.
4225
+ * Formats a `DateTime` with `Intl.DateTimeFormat` using the UTC time zone.
4184
4226
  *
4185
4227
  * **Details**
4186
4228
  *
@@ -4213,7 +4255,7 @@ export const formatLocal: {
4213
4255
  */
4214
4256
  export const formatUtc: {
4215
4257
  /**
4216
- * Format a `DateTime` as a string using the `DateTimeFormat` API.
4258
+ * Formats a `DateTime` with `Intl.DateTimeFormat` using the UTC time zone.
4217
4259
  *
4218
4260
  * **Details**
4219
4261
  *
@@ -4252,7 +4294,7 @@ export const formatUtc: {
4252
4294
  | undefined
4253
4295
  ): (self: DateTime) => string
4254
4296
  /**
4255
- * Format a `DateTime` as a string using the `DateTimeFormat` API.
4297
+ * Formats a `DateTime` with `Intl.DateTimeFormat` using the UTC time zone.
4256
4298
  *
4257
4299
  * **Details**
4258
4300
  *
@@ -4419,7 +4461,7 @@ export const formatIntl: {
4419
4461
  } = Internal.formatIntl
4420
4462
 
4421
4463
  /**
4422
- * Format a `DateTime` as a UTC ISO string.
4464
+ * Formats a `DateTime` as a UTC ISO string.
4423
4465
  *
4424
4466
  * **Details**
4425
4467
  *
@@ -4445,7 +4487,7 @@ export const formatIntl: {
4445
4487
  export const formatIso: (self: DateTime) => string = Internal.formatIso
4446
4488
 
4447
4489
  /**
4448
- * Format a `DateTime` as a time zone adjusted ISO date string.
4490
+ * Formats a `DateTime` as a time zone adjusted ISO date string.
4449
4491
  *
4450
4492
  * **Details**
4451
4493
  *
@@ -4471,7 +4513,7 @@ export const formatIso: (self: DateTime) => string = Internal.formatIso
4471
4513
  export const formatIsoDate: (self: DateTime) => string = Internal.formatIsoDate
4472
4514
 
4473
4515
  /**
4474
- * Format a `DateTime` as a UTC ISO date string.
4516
+ * Formats a `DateTime` as a UTC ISO date string.
4475
4517
  *
4476
4518
  * **Details**
4477
4519
  *
@@ -4497,7 +4539,7 @@ export const formatIsoDate: (self: DateTime) => string = Internal.formatIsoDate
4497
4539
  export const formatIsoDateUtc: (self: DateTime) => string = Internal.formatIsoDateUtc
4498
4540
 
4499
4541
  /**
4500
- * Format a `DateTime.Zoned` as an ISO string with an offset.
4542
+ * Formats a `DateTime.Zoned` as an ISO string with an offset.
4501
4543
  *
4502
4544
  * **Details**
4503
4545
  *
@@ -4524,7 +4566,7 @@ export const formatIsoDateUtc: (self: DateTime) => string = Internal.formatIsoDa
4524
4566
  export const formatIsoOffset: (self: DateTime) => string = Internal.formatIsoOffset
4525
4567
 
4526
4568
  /**
4527
- * Format a `DateTime.Zoned` as a string.
4569
+ * Formats a `DateTime.Zoned` as a string.
4528
4570
  *
4529
4571
  * **Details**
4530
4572
  *