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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (361) hide show
  1. package/dist/Array.d.ts +16 -16
  2. package/dist/Array.js +4 -4
  3. package/dist/Boolean.d.ts +2 -2
  4. package/dist/Boolean.js +2 -2
  5. package/dist/Channel.d.ts +63 -63
  6. package/dist/Channel.js +25 -25
  7. package/dist/Chunk.d.ts +17 -17
  8. package/dist/Chunk.js +5 -5
  9. package/dist/Context.d.ts +3 -3
  10. package/dist/Context.js +1 -1
  11. package/dist/Cron.d.ts +4 -4
  12. package/dist/Cron.js +4 -4
  13. package/dist/Deferred.d.ts +37 -37
  14. package/dist/Deferred.js +13 -13
  15. package/dist/Duration.d.ts +6 -6
  16. package/dist/Duration.js +2 -2
  17. package/dist/Effect.d.ts +58 -58
  18. package/dist/Effect.js +39 -39
  19. package/dist/Equal.d.ts +2 -2
  20. package/dist/Equal.js +2 -2
  21. package/dist/Equivalence.d.ts +1 -1
  22. package/dist/Equivalence.js +1 -1
  23. package/dist/ExecutionPlan.d.ts +2 -2
  24. package/dist/ExecutionPlan.js +1 -1
  25. package/dist/FileSystem.d.ts +6 -6
  26. package/dist/FileSystem.js +2 -2
  27. package/dist/Function.d.ts +5 -5
  28. package/dist/Function.js +5 -5
  29. package/dist/Graph.d.ts +11 -11
  30. package/dist/Graph.js +5 -5
  31. package/dist/HKT.d.ts +1 -1
  32. package/dist/HashMap.d.ts +3 -3
  33. package/dist/HashSet.d.ts +1 -1
  34. package/dist/Iterable.d.ts +15 -15
  35. package/dist/Iterable.js +5 -5
  36. package/dist/Layer.d.ts +16 -16
  37. package/dist/Layer.js +5 -5
  38. package/dist/Logger.d.ts +5 -5
  39. package/dist/Logger.js +4 -4
  40. package/dist/ManagedRuntime.d.ts +2 -2
  41. package/dist/Match.d.ts +20 -20
  42. package/dist/Match.js +16 -16
  43. package/dist/Metric.d.ts +16 -16
  44. package/dist/Metric.js +3 -3
  45. package/dist/Option.d.ts +36 -36
  46. package/dist/Option.js +17 -17
  47. package/dist/Order.d.ts +1 -1
  48. package/dist/Order.js +1 -1
  49. package/dist/Path.d.ts +1 -1
  50. package/dist/Path.js +1 -1
  51. package/dist/Pipeable.d.ts +1 -1
  52. package/dist/Pipeable.js +1 -1
  53. package/dist/Predicate.d.ts +5 -5
  54. package/dist/PubSub.d.ts +9 -9
  55. package/dist/PubSub.js +5 -5
  56. package/dist/Queue.d.ts +24 -24
  57. package/dist/Queue.js +20 -20
  58. package/dist/Record.d.ts +15 -15
  59. package/dist/Record.js +5 -5
  60. package/dist/Redacted.d.ts +2 -2
  61. package/dist/Redacted.js +1 -1
  62. package/dist/Ref.d.ts +6 -6
  63. package/dist/Ref.js +6 -6
  64. package/dist/RegExp.d.ts +1 -1
  65. package/dist/RegExp.js +1 -1
  66. package/dist/Request.d.ts +4 -4
  67. package/dist/RequestResolver.d.ts +6 -6
  68. package/dist/RequestResolver.js +2 -2
  69. package/dist/Resource.d.ts +1 -1
  70. package/dist/Resource.js +1 -1
  71. package/dist/Result.d.ts +18 -18
  72. package/dist/Result.js +11 -11
  73. package/dist/Schedule.d.ts +44 -44
  74. package/dist/Schedule.js +18 -18
  75. package/dist/Schema.d.ts +177 -459
  76. package/dist/Schema.d.ts.map +1 -1
  77. package/dist/Schema.js +25 -25
  78. package/dist/Schema.js.map +1 -1
  79. package/dist/SchemaAST.d.ts +1 -1
  80. package/dist/SchemaGetter.d.ts +13 -13
  81. package/dist/SchemaGetter.js +12 -12
  82. package/dist/SchemaParser.d.ts +3 -3
  83. package/dist/SchemaParser.js +3 -3
  84. package/dist/Scope.d.ts +1 -1
  85. package/dist/Scope.js +1 -1
  86. package/dist/Sink.d.ts +5 -5
  87. package/dist/Sink.js +3 -3
  88. package/dist/Stream.d.ts +55 -55
  89. package/dist/Stream.js +21 -21
  90. package/dist/String.d.ts +5 -5
  91. package/dist/String.js +3 -3
  92. package/dist/Struct.d.ts +8 -8
  93. package/dist/Struct.js +3 -3
  94. package/dist/SynchronizedRef.d.ts +57 -57
  95. package/dist/SynchronizedRef.js +19 -19
  96. package/dist/Terminal.d.ts +1 -1
  97. package/dist/Terminal.js +1 -1
  98. package/dist/Tracer.d.ts +5 -5
  99. package/dist/Tracer.js +2 -2
  100. package/dist/Tuple.d.ts +14 -14
  101. package/dist/Tuple.js +6 -6
  102. package/dist/TxHashMap.d.ts +3 -3
  103. package/dist/TxHashSet.d.ts +1 -1
  104. package/dist/Unify.d.ts +7 -7
  105. package/dist/Unify.js +1 -1
  106. package/dist/testing/TestClock.d.ts +5 -5
  107. package/dist/testing/TestClock.js +4 -4
  108. package/dist/testing/TestConsole.d.ts +3 -3
  109. package/dist/testing/TestConsole.js +3 -3
  110. package/dist/unstable/ai/Chat.d.ts +2 -2
  111. package/dist/unstable/ai/Chat.js +2 -2
  112. package/dist/unstable/ai/EmbeddingModel.d.ts +1 -1
  113. package/dist/unstable/ai/IdGenerator.d.ts +2 -2
  114. package/dist/unstable/ai/IdGenerator.js +1 -1
  115. package/dist/unstable/ai/LanguageModel.d.ts +4 -4
  116. package/dist/unstable/ai/LanguageModel.js +1 -1
  117. package/dist/unstable/ai/Prompt.d.ts +15 -15
  118. package/dist/unstable/ai/Prompt.js +1 -1
  119. package/dist/unstable/ai/Telemetry.d.ts +5 -5
  120. package/dist/unstable/ai/Telemetry.js +2 -2
  121. package/dist/unstable/ai/Tokenizer.d.ts +1 -1
  122. package/dist/unstable/ai/Tokenizer.js +1 -1
  123. package/dist/unstable/ai/Tool.d.ts +6 -6
  124. package/dist/unstable/ai/Tool.js +6 -6
  125. package/dist/unstable/cli/Command.d.ts.map +1 -1
  126. package/dist/unstable/cli/Command.js +1 -1
  127. package/dist/unstable/cli/Command.js.map +1 -1
  128. package/dist/unstable/cli/Param.d.ts +1 -1
  129. package/dist/unstable/cli/Primitive.d.ts +3 -3
  130. package/dist/unstable/cli/Primitive.js +1 -1
  131. package/dist/unstable/cli/Prompt.d.ts +11 -11
  132. package/dist/unstable/cli/internal/parser.js +145 -10
  133. package/dist/unstable/cli/internal/parser.js.map +1 -1
  134. package/dist/unstable/cluster/Entity.d.ts +1 -1
  135. package/dist/unstable/cluster/Entity.js +1 -1
  136. package/dist/unstable/cluster/EntityResource.d.ts +1 -0
  137. package/dist/unstable/cluster/EntityResource.d.ts.map +1 -1
  138. package/dist/unstable/cluster/EntityResource.js +5 -3
  139. package/dist/unstable/cluster/EntityResource.js.map +1 -1
  140. package/dist/unstable/cluster/HttpRunner.d.ts +2 -2
  141. package/dist/unstable/cluster/HttpRunner.js +2 -2
  142. package/dist/unstable/cluster/K8sHttpClient.d.ts +1 -1
  143. package/dist/unstable/cluster/K8sHttpClient.js +1 -1
  144. package/dist/unstable/cluster/Runners.d.ts +1 -1
  145. package/dist/unstable/cluster/Runners.js +1 -1
  146. package/dist/unstable/cluster/Sharding.d.ts +1 -1
  147. package/dist/unstable/cluster/Sharding.js +1 -1
  148. package/dist/unstable/cluster/SingletonAddress.d.ts +1 -1
  149. package/dist/unstable/cluster/SingletonAddress.js +1 -1
  150. package/dist/unstable/cluster/Snowflake.d.ts +5 -5
  151. package/dist/unstable/cluster/Snowflake.js +5 -5
  152. package/dist/unstable/devtools/DevToolsClient.d.ts +1 -1
  153. package/dist/unstable/devtools/DevToolsClient.js +1 -1
  154. package/dist/unstable/eventlog/EventLog.d.ts +1 -1
  155. package/dist/unstable/eventlog/EventLog.js +1 -1
  156. package/dist/unstable/eventlog/EventLogEncryption.d.ts +1 -1
  157. package/dist/unstable/eventlog/EventLogEncryption.js +1 -1
  158. package/dist/unstable/eventlog/EventLogRemote.d.ts +1 -1
  159. package/dist/unstable/eventlog/EventLogRemote.js +1 -1
  160. package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts +3 -3
  161. package/dist/unstable/eventlog/EventLogServerUnencrypted.js +3 -3
  162. package/dist/unstable/http/Cookies.d.ts +1 -1
  163. package/dist/unstable/http/Etag.d.ts +1 -1
  164. package/dist/unstable/http/Etag.js +1 -1
  165. package/dist/unstable/http/FetchHttpClient.d.ts +2 -2
  166. package/dist/unstable/http/FetchHttpClient.js +2 -2
  167. package/dist/unstable/http/HttpClient.d.ts +1 -1
  168. package/dist/unstable/http/HttpClient.js +1 -1
  169. package/dist/unstable/http/HttpClientRequest.d.ts +2 -2
  170. package/dist/unstable/http/HttpMiddleware.d.ts +1 -1
  171. package/dist/unstable/http/HttpMiddleware.js +1 -1
  172. package/dist/unstable/http/HttpPlatform.d.ts +1 -1
  173. package/dist/unstable/http/HttpPlatform.js +1 -1
  174. package/dist/unstable/http/HttpRouter.d.ts +4 -4
  175. package/dist/unstable/http/HttpRouter.js +4 -4
  176. package/dist/unstable/http/HttpServerResponse.d.ts +3 -3
  177. package/dist/unstable/http/Url.d.ts +33 -33
  178. package/dist/unstable/http/Url.js +11 -11
  179. package/dist/unstable/httpapi/HttpApi.d.ts +1 -1
  180. package/dist/unstable/httpapi/HttpApi.js +1 -1
  181. package/dist/unstable/httpapi/HttpApiBuilder.js +2 -3
  182. package/dist/unstable/httpapi/HttpApiBuilder.js.map +1 -1
  183. package/dist/unstable/httpapi/HttpApiError.d.ts +13 -13
  184. package/dist/unstable/httpapi/HttpApiError.js +13 -13
  185. package/dist/unstable/httpapi/HttpApiSecurity.d.ts +27 -5
  186. package/dist/unstable/httpapi/HttpApiSecurity.d.ts.map +1 -1
  187. package/dist/unstable/httpapi/HttpApiSecurity.js +26 -3
  188. package/dist/unstable/httpapi/HttpApiSecurity.js.map +1 -1
  189. package/dist/unstable/httpapi/OpenApi.js +2 -2
  190. package/dist/unstable/httpapi/OpenApi.js.map +1 -1
  191. package/dist/unstable/observability/PrometheusMetrics.d.ts +4 -4
  192. package/dist/unstable/observability/PrometheusMetrics.js +2 -2
  193. package/dist/unstable/persistence/KeyValueStore.d.ts +3 -3
  194. package/dist/unstable/persistence/KeyValueStore.js +1 -1
  195. package/dist/unstable/persistence/Persistable.d.ts +2 -2
  196. package/dist/unstable/persistence/Persistable.js +2 -2
  197. package/dist/unstable/persistence/PersistedQueue.d.ts +8 -8
  198. package/dist/unstable/persistence/PersistedQueue.js +8 -8
  199. package/dist/unstable/persistence/RateLimiter.d.ts +1 -1
  200. package/dist/unstable/persistence/RateLimiter.js +1 -1
  201. package/dist/unstable/process/ChildProcess.d.ts +5 -5
  202. package/dist/unstable/process/ChildProcess.js +2 -2
  203. package/dist/unstable/reactivity/AsyncResult.d.ts +4 -4
  204. package/dist/unstable/reactivity/AsyncResult.js +1 -1
  205. package/dist/unstable/reactivity/Atom.d.ts +1 -1
  206. package/dist/unstable/reactivity/Atom.js +1 -1
  207. package/dist/unstable/reactivity/AtomRegistry.d.ts +1 -1
  208. package/dist/unstable/reactivity/AtomRegistry.js +1 -1
  209. package/dist/unstable/reactivity/Reactivity.d.ts +1 -1
  210. package/dist/unstable/reactivity/Reactivity.js +1 -1
  211. package/dist/unstable/rpc/Rpc.d.ts +5 -5
  212. package/dist/unstable/rpc/Rpc.js +1 -1
  213. package/dist/unstable/rpc/RpcMiddleware.d.ts +1 -1
  214. package/dist/unstable/rpc/RpcMiddleware.js +1 -1
  215. package/dist/unstable/rpc/RpcSchema.d.ts +3 -3
  216. package/dist/unstable/rpc/RpcSchema.js +2 -2
  217. package/dist/unstable/schema/Model.d.ts +2 -2
  218. package/dist/unstable/schema/Model.js +1 -1
  219. package/dist/unstable/socket/Socket.d.ts +3 -3
  220. package/dist/unstable/socket/Socket.js +3 -3
  221. package/dist/unstable/socket/SocketServer.d.ts +1 -1
  222. package/dist/unstable/socket/SocketServer.js +1 -1
  223. package/dist/unstable/sql/Migrator.d.ts +1 -1
  224. package/dist/unstable/sql/SqlClient.d.ts +3 -3
  225. package/dist/unstable/sql/SqlClient.js +2 -2
  226. package/dist/unstable/sql/SqlConnection.d.ts +1 -1
  227. package/dist/unstable/sql/SqlConnection.js +1 -1
  228. package/dist/unstable/sql/Statement.d.ts +2 -2
  229. package/dist/unstable/sql/Statement.js +2 -2
  230. package/dist/unstable/workers/Transferable.d.ts +1 -1
  231. package/dist/unstable/workers/Transferable.js +1 -1
  232. package/dist/unstable/workers/Worker.d.ts +1 -1
  233. package/dist/unstable/workers/Worker.js +1 -1
  234. package/dist/unstable/workflow/Activity.d.ts +1 -1
  235. package/dist/unstable/workflow/Activity.js +1 -1
  236. package/dist/unstable/workflow/DurableDeferred.d.ts +1 -1
  237. package/dist/unstable/workflow/DurableDeferred.js +1 -1
  238. package/package.json +1 -1
  239. package/src/Array.ts +16 -16
  240. package/src/Boolean.ts +2 -2
  241. package/src/Channel.ts +67 -67
  242. package/src/Chunk.ts +18 -18
  243. package/src/Context.ts +4 -4
  244. package/src/Cron.ts +4 -4
  245. package/src/Deferred.ts +37 -37
  246. package/src/Duration.ts +6 -6
  247. package/src/Effect.ts +58 -58
  248. package/src/Equal.ts +2 -2
  249. package/src/Equivalence.ts +1 -1
  250. package/src/ExecutionPlan.ts +2 -2
  251. package/src/FileSystem.ts +6 -6
  252. package/src/Function.ts +5 -5
  253. package/src/Graph.ts +11 -11
  254. package/src/HKT.ts +1 -1
  255. package/src/HashMap.ts +3 -3
  256. package/src/HashSet.ts +1 -1
  257. package/src/Iterable.ts +15 -15
  258. package/src/Layer.ts +16 -16
  259. package/src/Logger.ts +7 -7
  260. package/src/ManagedRuntime.ts +2 -2
  261. package/src/Match.ts +20 -20
  262. package/src/Metric.ts +20 -20
  263. package/src/Option.ts +36 -36
  264. package/src/Order.ts +1 -1
  265. package/src/Path.ts +1 -1
  266. package/src/Pipeable.ts +1 -1
  267. package/src/Predicate.ts +5 -5
  268. package/src/PubSub.ts +9 -9
  269. package/src/Queue.ts +24 -24
  270. package/src/Record.ts +15 -15
  271. package/src/Redacted.ts +2 -2
  272. package/src/Ref.ts +18 -18
  273. package/src/RegExp.ts +1 -1
  274. package/src/Request.ts +4 -4
  275. package/src/RequestResolver.ts +8 -8
  276. package/src/Resource.ts +1 -1
  277. package/src/Result.ts +18 -18
  278. package/src/Schedule.ts +45 -45
  279. package/src/Schema.ts +177 -459
  280. package/src/SchemaAST.ts +1 -1
  281. package/src/SchemaGetter.ts +13 -13
  282. package/src/SchemaParser.ts +3 -3
  283. package/src/Scope.ts +1 -1
  284. package/src/Sink.ts +5 -5
  285. package/src/Stream.ts +57 -57
  286. package/src/String.ts +5 -5
  287. package/src/Struct.ts +8 -8
  288. package/src/SynchronizedRef.ts +57 -57
  289. package/src/Terminal.ts +1 -1
  290. package/src/Tracer.ts +5 -5
  291. package/src/Tuple.ts +14 -14
  292. package/src/TxHashMap.ts +3 -3
  293. package/src/TxHashSet.ts +1 -1
  294. package/src/Unify.ts +7 -7
  295. package/src/testing/TestClock.ts +5 -5
  296. package/src/testing/TestConsole.ts +3 -3
  297. package/src/unstable/ai/Chat.ts +2 -2
  298. package/src/unstable/ai/EmbeddingModel.ts +1 -1
  299. package/src/unstable/ai/IdGenerator.ts +2 -2
  300. package/src/unstable/ai/LanguageModel.ts +4 -4
  301. package/src/unstable/ai/Prompt.ts +15 -15
  302. package/src/unstable/ai/Telemetry.ts +5 -5
  303. package/src/unstable/ai/Tokenizer.ts +1 -1
  304. package/src/unstable/ai/Tool.ts +6 -6
  305. package/src/unstable/cli/Command.ts +5 -1
  306. package/src/unstable/cli/Param.ts +1 -1
  307. package/src/unstable/cli/Primitive.ts +3 -3
  308. package/src/unstable/cli/Prompt.ts +11 -11
  309. package/src/unstable/cli/internal/parser.ts +204 -10
  310. package/src/unstable/cluster/Entity.ts +1 -1
  311. package/src/unstable/cluster/EntityResource.ts +8 -4
  312. package/src/unstable/cluster/HttpRunner.ts +2 -2
  313. package/src/unstable/cluster/K8sHttpClient.ts +1 -1
  314. package/src/unstable/cluster/Runners.ts +1 -1
  315. package/src/unstable/cluster/Sharding.ts +1 -1
  316. package/src/unstable/cluster/SingletonAddress.ts +1 -1
  317. package/src/unstable/cluster/Snowflake.ts +5 -5
  318. package/src/unstable/devtools/DevToolsClient.ts +1 -1
  319. package/src/unstable/eventlog/EventLog.ts +1 -1
  320. package/src/unstable/eventlog/EventLogEncryption.ts +1 -1
  321. package/src/unstable/eventlog/EventLogRemote.ts +1 -1
  322. package/src/unstable/eventlog/EventLogServerUnencrypted.ts +3 -3
  323. package/src/unstable/http/Cookies.ts +1 -1
  324. package/src/unstable/http/Etag.ts +1 -1
  325. package/src/unstable/http/FetchHttpClient.ts +2 -2
  326. package/src/unstable/http/HttpClient.ts +1 -1
  327. package/src/unstable/http/HttpClientRequest.ts +2 -2
  328. package/src/unstable/http/HttpMiddleware.ts +1 -1
  329. package/src/unstable/http/HttpPlatform.ts +1 -1
  330. package/src/unstable/http/HttpRouter.ts +4 -4
  331. package/src/unstable/http/HttpServerResponse.ts +3 -3
  332. package/src/unstable/http/Url.ts +33 -33
  333. package/src/unstable/httpapi/HttpApi.ts +1 -1
  334. package/src/unstable/httpapi/HttpApiBuilder.ts +2 -3
  335. package/src/unstable/httpapi/HttpApiError.ts +13 -13
  336. package/src/unstable/httpapi/HttpApiSecurity.ts +36 -8
  337. package/src/unstable/httpapi/OpenApi.ts +2 -2
  338. package/src/unstable/observability/PrometheusMetrics.ts +4 -4
  339. package/src/unstable/persistence/KeyValueStore.ts +3 -3
  340. package/src/unstable/persistence/Persistable.ts +2 -2
  341. package/src/unstable/persistence/PersistedQueue.ts +8 -8
  342. package/src/unstable/persistence/RateLimiter.ts +1 -1
  343. package/src/unstable/process/ChildProcess.ts +5 -5
  344. package/src/unstable/reactivity/AsyncResult.ts +4 -4
  345. package/src/unstable/reactivity/Atom.ts +1 -1
  346. package/src/unstable/reactivity/AtomRegistry.ts +1 -1
  347. package/src/unstable/reactivity/Reactivity.ts +1 -1
  348. package/src/unstable/rpc/Rpc.ts +5 -5
  349. package/src/unstable/rpc/RpcMiddleware.ts +1 -1
  350. package/src/unstable/rpc/RpcSchema.ts +3 -3
  351. package/src/unstable/schema/Model.ts +2 -2
  352. package/src/unstable/socket/Socket.ts +3 -3
  353. package/src/unstable/socket/SocketServer.ts +1 -1
  354. package/src/unstable/sql/Migrator.ts +1 -1
  355. package/src/unstable/sql/SqlClient.ts +3 -3
  356. package/src/unstable/sql/SqlConnection.ts +1 -1
  357. package/src/unstable/sql/Statement.ts +2 -2
  358. package/src/unstable/workers/Transferable.ts +1 -1
  359. package/src/unstable/workers/Worker.ts +1 -1
  360. package/src/unstable/workflow/Activity.ts +1 -1
  361. package/src/unstable/workflow/DurableDeferred.ts +1 -1
package/dist/Ref.js CHANGED
@@ -216,7 +216,7 @@ export const set = /*#__PURE__*/dual(2, (self, value) => Effect.sync(() => Mutab
216
216
  * @see {@link set} for setting without returning the previous value
217
217
  * @see {@link getAndUpdate} for deriving the new value from the previous value
218
218
  *
219
- * @category utils
219
+ * @category mutations
220
220
  * @since 2.0.0
221
221
  */
222
222
  export const getAndSet = /*#__PURE__*/dual(2, (self, value) => Effect.sync(() => {
@@ -251,7 +251,7 @@ export const getAndSet = /*#__PURE__*/dual(2, (self, value) => Effect.sync(() =>
251
251
  * @see {@link update} for updating without returning the previous value
252
252
  * @see {@link updateAndGet} for returning the new value instead
253
253
  *
254
- * @category utils
254
+ * @category mutations
255
255
  * @since 2.0.0
256
256
  */
257
257
  export const getAndUpdate = /*#__PURE__*/dual(2, (self, f) => Effect.sync(() => {
@@ -305,7 +305,7 @@ export const getAndUpdate = /*#__PURE__*/dual(2, (self, f) => Effect.sync(() =>
305
305
  * @see {@link getAndUpdate} for always applying an update
306
306
  * @see {@link updateSome} for conditional updates without returning the previous value
307
307
  *
308
- * @category utils
308
+ * @category mutations
309
309
  * @since 2.0.0
310
310
  */
311
311
  export const getAndUpdateSome = /*#__PURE__*/dual(2, (self, pf) => Effect.sync(() => {
@@ -350,7 +350,7 @@ export const getAndUpdateSome = /*#__PURE__*/dual(2, (self, pf) => Effect.sync((
350
350
  * })
351
351
  * ```
352
352
  *
353
- * @category utils
353
+ * @category mutations
354
354
  * @since 2.0.0
355
355
  */
356
356
  export const setAndGet = /*#__PURE__*/dual(2, (self, value) => Effect.sync(() => self.ref.current = value));
@@ -542,7 +542,7 @@ export const update = /*#__PURE__*/dual(2, (self, f) => Effect.sync(() => {
542
542
  * @see {@link update} for updating without returning the new value
543
543
  * @see {@link getAndUpdate} for returning the previous value instead
544
544
  *
545
- * @category utils
545
+ * @category mutations
546
546
  * @since 2.0.0
547
547
  */
548
548
  export const updateAndGet = /*#__PURE__*/dual(2, (self, f) => Effect.sync(() => self.ref.current = f(self.ref.current)));
@@ -639,7 +639,7 @@ export const updateSome = /*#__PURE__*/dual(2, (self, f) => Effect.sync(() => {
639
639
  * @see {@link updateSome} for conditional updates without returning a value
640
640
  * @see {@link updateAndGet} for always updating and returning the new value
641
641
  *
642
- * @category utils
642
+ * @category mutations
643
643
  * @since 2.0.0
644
644
  */
645
645
  export const updateSomeAndGet = /*#__PURE__*/dual(2, (self, pf) => Effect.sync(() => {
package/dist/RegExp.d.ts CHANGED
@@ -60,7 +60,7 @@ export declare const isRegExp: (input: unknown) => input is RegExp;
60
60
  * assert.deepStrictEqual(RegExp.escape("a*b"), "a\\*b")
61
61
  * ```
62
62
  *
63
- * @category utils
63
+ * @category RegExp
64
64
  * @since 2.0.0
65
65
  */
66
66
  export declare const escape: (string: string) => string;
package/dist/RegExp.js CHANGED
@@ -99,7 +99,7 @@ export const isRegExp = predicate.isRegExp;
99
99
  * assert.deepStrictEqual(RegExp.escape("a*b"), "a\\*b")
100
100
  * ```
101
101
  *
102
- * @category utils
102
+ * @category RegExp
103
103
  * @since 2.0.0
104
104
  */
105
105
  export const escape = string => string.replace(/[/\\^$*+?.()|[\]{}]/g, "\\$&");
package/dist/Request.d.ts CHANGED
@@ -159,7 +159,7 @@ export interface Constructor<R extends Request<any, any, any>, T extends keyof R
159
159
  * type UserError = Request.Error<GetUser> // Error
160
160
  * ```
161
161
  *
162
- * @category type-level
162
+ * @category utility types
163
163
  * @since 2.0.0
164
164
  */
165
165
  export type Error<T extends Request<any, any, any>> = [T] extends [Request<infer _A, infer _E, infer _R>] ? _E : never;
@@ -180,14 +180,14 @@ export type Error<T extends Request<any, any, any>> = [T] extends [Request<infer
180
180
  * type UserSuccess = Request.Success<GetUser> // string
181
181
  * ```
182
182
  *
183
- * @category type-level
183
+ * @category utility types
184
184
  * @since 2.0.0
185
185
  */
186
186
  export type Success<T extends Request<any, any, any>> = [T] extends [Request<infer _A, infer _E, infer _R>] ? _A : never;
187
187
  /**
188
188
  * A utility type to extract the requirements type from a `Request`.
189
189
  *
190
- * @category type-level
190
+ * @category utility types
191
191
  * @since 4.0.0
192
192
  */
193
193
  export type Services<T extends Request<any, any, any>> = [T] extends [Request<infer _A, infer _E, infer _R>] ? _R : never;
@@ -208,7 +208,7 @@ export type Services<T extends Request<any, any, any>> = [T] extends [Request<in
208
208
  * type UserResult = Request.Result<GetUser> // Exit.Exit<string, Error>
209
209
  * ```
210
210
  *
211
- * @category type-level
211
+ * @category utility types
212
212
  * @since 2.0.0
213
213
  */
214
214
  export type Result<T extends Request<any, any, any>> = T extends Request<infer A, infer E, infer _R> ? Exit.Exit<A, E> : never;
@@ -1345,7 +1345,7 @@ export declare const withSpan: {
1345
1345
  * @see {@link persisted} for storing persistable request results outside process memory
1346
1346
  * @see {@link Cache.Cache} for operations available on the returned cache
1347
1347
  *
1348
- * @category Caching
1348
+ * @category caching
1349
1349
  * @since 4.0.0
1350
1350
  */
1351
1351
  export declare const asCache: {
@@ -1373,7 +1373,7 @@ export declare const asCache: {
1373
1373
  * @see {@link persisted} for storing persistable request results outside process memory
1374
1374
  * @see {@link Cache.Cache} for operations available on the returned cache
1375
1375
  *
1376
- * @category Caching
1376
+ * @category caching
1377
1377
  * @since 4.0.0
1378
1378
  */
1379
1379
  <A extends Request.Any, ServiceMode extends "lookup" | "construction" = never>(options: {
@@ -1405,7 +1405,7 @@ export declare const asCache: {
1405
1405
  * @see {@link persisted} for storing persistable request results outside process memory
1406
1406
  * @see {@link Cache.Cache} for operations available on the returned cache
1407
1407
  *
1408
- * @category Caching
1408
+ * @category caching
1409
1409
  * @since 4.0.0
1410
1410
  */
1411
1411
  <A extends Request.Any, ServiceMode extends "lookup" | "construction" = never>(self: RequestResolver<A>, options: {
@@ -1437,7 +1437,7 @@ export declare const asCache: {
1437
1437
  * @see {@link asCache} for exposing the resolver as a `Cache` with time-to-live and service lookup controls
1438
1438
  * @see {@link persisted} for backing persistable requests with the configured persistence store
1439
1439
  *
1440
- * @category Caching
1440
+ * @category caching
1441
1441
  * @since 4.0.0
1442
1442
  */
1443
1443
  export declare const withCache: {
@@ -1464,7 +1464,7 @@ export declare const withCache: {
1464
1464
  * @see {@link asCache} for exposing the resolver as a `Cache` with time-to-live and service lookup controls
1465
1465
  * @see {@link persisted} for backing persistable requests with the configured persistence store
1466
1466
  *
1467
- * @category Caching
1467
+ * @category caching
1468
1468
  * @since 4.0.0
1469
1469
  */
1470
1470
  <A extends Request.Any>(options: {
@@ -1494,7 +1494,7 @@ export declare const withCache: {
1494
1494
  * @see {@link asCache} for exposing the resolver as a `Cache` with time-to-live and service lookup controls
1495
1495
  * @see {@link persisted} for backing persistable requests with the configured persistence store
1496
1496
  *
1497
- * @category Caching
1497
+ * @category caching
1498
1498
  * @since 4.0.0
1499
1499
  */
1500
1500
  <A extends Request.Any>(self: RequestResolver<A>, options: {
@@ -740,7 +740,7 @@ export const withSpan = /*#__PURE__*/dual(args => isRequestResolver(args[0]), (s
740
740
  * @see {@link persisted} for storing persistable request results outside process memory
741
741
  * @see {@link Cache.Cache} for operations available on the returned cache
742
742
  *
743
- * @category Caching
743
+ * @category caching
744
744
  * @since 4.0.0
745
745
  */
746
746
  export const asCache = /*#__PURE__*/dual(2, (self, options) => Cache.makeWith(req => internal.request(req, self), {
@@ -771,7 +771,7 @@ export const asCache = /*#__PURE__*/dual(2, (self, options) => Cache.makeWith(re
771
771
  * @see {@link asCache} for exposing the resolver as a `Cache` with time-to-live and service lookup controls
772
772
  * @see {@link persisted} for backing persistable requests with the configured persistence store
773
773
  *
774
- * @category Caching
774
+ * @category caching
775
775
  * @since 4.0.0
776
776
  */
777
777
  export const withCache = /*#__PURE__*/dual(2, (self, options) => Effect.sync(() => {
@@ -114,7 +114,7 @@ export declare const get: <A, E>(self: Resource<A, E>) => Effect.Effect<A, E>;
114
114
  * @see {@link manual} for resources refreshed only by caller action
115
115
  * @see {@link auto} for schedule-driven automatic refreshes
116
116
  *
117
- * @category utils
117
+ * @category resource management
118
118
  * @since 2.0.0
119
119
  */
120
120
  export declare const refresh: <A, E>(self: Resource<A, E>) => Effect.Effect<void, E>;
package/dist/Resource.js CHANGED
@@ -146,7 +146,7 @@ export const get = self => Effect.flatMap(ScopedRef.get(self.scopedRef), identit
146
146
  * @see {@link manual} for resources refreshed only by caller action
147
147
  * @see {@link auto} for schedule-driven automatic refreshes
148
148
  *
149
- * @category utils
149
+ * @category resource management
150
150
  * @since 2.0.0
151
151
  */
152
152
  export const refresh = self => ScopedRef.set(self.scopedRef, Effect.map(self.acquire, Exit.succeed));
package/dist/Result.d.ts CHANGED
@@ -252,7 +252,7 @@ export interface ResultUnifyIgnore {
252
252
  * (e.g., `map`, `flatMap` abstractions). You typically do not need to
253
253
  * reference this directly.
254
254
  *
255
- * @category Type Lambdas
255
+ * @category type lambdas
256
256
  * @since 4.0.0
257
257
  */
258
258
  export interface ResultTypeLambda extends TypeLambda {
@@ -695,7 +695,7 @@ try_ as try };
695
695
  *
696
696
  * @see {@link isSuccess} / {@link isFailure} to narrow to a specific variant
697
697
  *
698
- * @category Type Guards
698
+ * @category guards
699
699
  * @since 4.0.0
700
700
  */
701
701
  export declare const isResult: (input: unknown) => input is Result<unknown, unknown>;
@@ -727,7 +727,7 @@ export declare const isResult: (input: unknown) => input is Result<unknown, unkn
727
727
  * @see {@link isSuccess} for the opposite check
728
728
  * @see {@link isResult} to check if a value is any Result
729
729
  *
730
- * @category Type Guards
730
+ * @category guards
731
731
  * @since 4.0.0
732
732
  */
733
733
  export declare const isFailure: <A, E>(self: Result<A, E>) => self is Failure<A, E>;
@@ -759,7 +759,7 @@ export declare const isFailure: <A, E>(self: Result<A, E>) => self is Failure<A,
759
759
  * @see {@link isFailure} for the opposite check
760
760
  * @see {@link isResult} to check if a value is any Result
761
761
  *
762
- * @category Type Guards
762
+ * @category guards
763
763
  * @since 4.0.0
764
764
  */
765
765
  export declare const isSuccess: <A, E>(self: Result<A, E>) => self is Success<A, E>;
@@ -851,7 +851,7 @@ export declare const getFailure: <A, E>(self: Result<A, E>) => Option<E>;
851
851
  * // Output: false
852
852
  * ```
853
853
  *
854
- * @category Equivalence
854
+ * @category instances
855
855
  * @since 4.0.0
856
856
  */
857
857
  export declare const makeEquivalence: <A, E>(success: Equivalence.Equivalence<A>, failure: Equivalence.Equivalence<E>) => Equivalence.Equivalence<Result<A, E>>;
@@ -1206,7 +1206,7 @@ export declare const map: {
1206
1206
  * @see {@link merge} to extract `A | E` without mapping
1207
1207
  * @see {@link getOrElse} to unwrap only the success with a fallback
1208
1208
  *
1209
- * @category Pattern Matching
1209
+ * @category pattern matching
1210
1210
  * @since 2.0.0
1211
1211
  */
1212
1212
  export declare const match: {
@@ -1240,7 +1240,7 @@ export declare const match: {
1240
1240
  * @see {@link merge} to extract `A | E` without mapping
1241
1241
  * @see {@link getOrElse} to unwrap only the success with a fallback
1242
1242
  *
1243
- * @category Pattern Matching
1243
+ * @category pattern matching
1244
1244
  * @since 2.0.0
1245
1245
  */
1246
1246
  <E, B, A, C = B>(options: {
@@ -1277,7 +1277,7 @@ export declare const match: {
1277
1277
  * @see {@link merge} to extract `A | E` without mapping
1278
1278
  * @see {@link getOrElse} to unwrap only the success with a fallback
1279
1279
  *
1280
- * @category Pattern Matching
1280
+ * @category pattern matching
1281
1281
  * @since 2.0.0
1282
1282
  */
1283
1283
  <A, E, B, C = B>(self: Result<A, E>, options: {
@@ -2727,7 +2727,7 @@ export declare const all: <const I extends Iterable<Result<any, any>> | Record<s
2727
2727
  *
2728
2728
  * @see {@link mapError} to transform the error without swapping
2729
2729
  *
2730
- * @category utils
2730
+ * @category transforming
2731
2731
  * @since 2.0.0
2732
2732
  */
2733
2733
  export declare const flip: <A, E>(self: Result<A, E>) => Result<E, A>;
@@ -2764,7 +2764,7 @@ export declare const flip: <A, E>(self: Result<A, E>) => Result<E, A>;
2764
2764
  * @see {@link flatMap} for point-free sequential composition
2765
2765
  * @see {@link all} to collect multiple independent Results
2766
2766
  *
2767
- * @category Generators
2767
+ * @category generators
2768
2768
  * @since 2.0.0
2769
2769
  */
2770
2770
  export declare const gen: Gen.Gen<ResultTypeLambda>;
@@ -2803,7 +2803,7 @@ export declare const gen: Gen.Gen<ResultTypeLambda>;
2803
2803
  * @see {@link gen} for an alternative generator-based syntax
2804
2804
  * @see {@link bindTo} for starting a do-notation chain from an existing Result
2805
2805
  *
2806
- * @category Do Notation
2806
+ * @category do notation
2807
2807
  * @since 2.0.0
2808
2808
  */
2809
2809
  export declare const Do: Result<{}>;
@@ -2840,7 +2840,7 @@ export declare const Do: Result<{}>;
2840
2840
  * @see {@link let_ let} for pure computed fields
2841
2841
  * @see {@link bindTo} to wrap an initial Result into a named field
2842
2842
  *
2843
- * @category Do Notation
2843
+ * @category do notation
2844
2844
  * @since 2.0.0
2845
2845
  */
2846
2846
  export declare const bind: {
@@ -2877,7 +2877,7 @@ export declare const bind: {
2877
2877
  * @see {@link let_ let} for pure computed fields
2878
2878
  * @see {@link bindTo} to wrap an initial Result into a named field
2879
2879
  *
2880
- * @category Do Notation
2880
+ * @category do notation
2881
2881
  * @since 2.0.0
2882
2882
  */
2883
2883
  <N extends string, A extends object, B, L2>(name: Exclude<N, keyof A>, f: (a: NoInfer<A>) => Result<B, L2>): <L1>(self: Result<A, L1>) => Result<{
@@ -2916,7 +2916,7 @@ export declare const bind: {
2916
2916
  * @see {@link let_ let} for pure computed fields
2917
2917
  * @see {@link bindTo} to wrap an initial Result into a named field
2918
2918
  *
2919
- * @category Do Notation
2919
+ * @category do notation
2920
2920
  * @since 2.0.0
2921
2921
  */
2922
2922
  <A extends object, L1, N extends string, B, L2>(self: Result<A, L1>, name: Exclude<N, keyof A>, f: (a: NoInfer<A>) => Result<B, L2>): Result<{
@@ -2953,7 +2953,7 @@ export declare const bind: {
2953
2953
  * @see {@link Do} to start from an empty object
2954
2954
  * @see {@link bind} to add more fields
2955
2955
  *
2956
- * @category Do Notation
2956
+ * @category do notation
2957
2957
  * @since 2.0.0
2958
2958
  */
2959
2959
  export declare const bindTo: {
@@ -2987,7 +2987,7 @@ export declare const bindTo: {
2987
2987
  * @see {@link Do} to start from an empty object
2988
2988
  * @see {@link bind} to add more fields
2989
2989
  *
2990
- * @category Do Notation
2990
+ * @category do notation
2991
2991
  * @since 2.0.0
2992
2992
  */
2993
2993
  <N extends string>(name: N): <R, L>(self: Result<R, L>) => Result<Record<N, R>, L>;
@@ -3021,7 +3021,7 @@ export declare const bindTo: {
3021
3021
  * @see {@link Do} to start from an empty object
3022
3022
  * @see {@link bind} to add more fields
3023
3023
  *
3024
- * @category Do Notation
3024
+ * @category do notation
3025
3025
  * @since 2.0.0
3026
3026
  */
3027
3027
  <R, L, N extends string>(self: Result<R, L>, name: N): Result<Record<N, R>, L>;
@@ -3066,7 +3066,7 @@ export {
3066
3066
  * @see {@link Do} to start the do-notation chain
3067
3067
  * @see {@link bind} for Result-producing fields
3068
3068
  *
3069
- * @category Do Notation
3069
+ * @category do notation
3070
3070
  * @since 2.0.0
3071
3071
  */
3072
3072
  let_ as let };
package/dist/Result.js CHANGED
@@ -339,7 +339,7 @@ try_ as try };
339
339
  *
340
340
  * @see {@link isSuccess} / {@link isFailure} to narrow to a specific variant
341
341
  *
342
- * @category Type Guards
342
+ * @category guards
343
343
  * @since 4.0.0
344
344
  */
345
345
  export const isResult = result.isResult;
@@ -371,7 +371,7 @@ export const isResult = result.isResult;
371
371
  * @see {@link isSuccess} for the opposite check
372
372
  * @see {@link isResult} to check if a value is any Result
373
373
  *
374
- * @category Type Guards
374
+ * @category guards
375
375
  * @since 4.0.0
376
376
  */
377
377
  export const isFailure = result.isFailure;
@@ -403,7 +403,7 @@ export const isFailure = result.isFailure;
403
403
  * @see {@link isFailure} for the opposite check
404
404
  * @see {@link isResult} to check if a value is any Result
405
405
  *
406
- * @category Type Guards
406
+ * @category guards
407
407
  * @since 4.0.0
408
408
  */
409
409
  export const isSuccess = result.isSuccess;
@@ -495,7 +495,7 @@ export const getFailure = result.getFailure;
495
495
  * // Output: false
496
496
  * ```
497
497
  *
498
- * @category Equivalence
498
+ * @category instances
499
499
  * @since 4.0.0
500
500
  */
501
501
  export const makeEquivalence = (success, failure) => Equivalence.make((x, y) => isFailure(x) ? isFailure(y) && failure(x.failure, y.failure) : isSuccess(y) && success(x.success, y.success));
@@ -636,7 +636,7 @@ export const map = /*#__PURE__*/dual(2, (self, f) => isSuccess(self) ? succeed(f
636
636
  * @see {@link merge} to extract `A | E` without mapping
637
637
  * @see {@link getOrElse} to unwrap only the success with a fallback
638
638
  *
639
- * @category Pattern Matching
639
+ * @category pattern matching
640
640
  * @since 2.0.0
641
641
  */
642
642
  export const match = /*#__PURE__*/dual(2, (self, {
@@ -1132,7 +1132,7 @@ export const all = input => {
1132
1132
  *
1133
1133
  * @see {@link mapError} to transform the error without swapping
1134
1134
  *
1135
- * @category utils
1135
+ * @category transforming
1136
1136
  * @since 2.0.0
1137
1137
  */
1138
1138
  export const flip = self => isFailure(self) ? succeed(self.failure) : fail(self.success);
@@ -1169,7 +1169,7 @@ export const flip = self => isFailure(self) ? succeed(self.failure) : fail(self.
1169
1169
  * @see {@link flatMap} for point-free sequential composition
1170
1170
  * @see {@link all} to collect multiple independent Results
1171
1171
  *
1172
- * @category Generators
1172
+ * @category generators
1173
1173
  * @since 2.0.0
1174
1174
  */
1175
1175
  export const gen = (...args) => {
@@ -1223,7 +1223,7 @@ export const gen = (...args) => {
1223
1223
  * @see {@link gen} for an alternative generator-based syntax
1224
1224
  * @see {@link bindTo} for starting a do-notation chain from an existing Result
1225
1225
  *
1226
- * @category Do Notation
1226
+ * @category do notation
1227
1227
  * @since 2.0.0
1228
1228
  */
1229
1229
  export const Do = /*#__PURE__*/succeed({});
@@ -1260,7 +1260,7 @@ export const Do = /*#__PURE__*/succeed({});
1260
1260
  * @see {@link let_ let} for pure computed fields
1261
1261
  * @see {@link bindTo} to wrap an initial Result into a named field
1262
1262
  *
1263
- * @category Do Notation
1263
+ * @category do notation
1264
1264
  * @since 2.0.0
1265
1265
  */
1266
1266
  export const bind = /*#__PURE__*/doNotation.bind(map, flatMap);
@@ -1294,7 +1294,7 @@ export const bind = /*#__PURE__*/doNotation.bind(map, flatMap);
1294
1294
  * @see {@link Do} to start from an empty object
1295
1295
  * @see {@link bind} to add more fields
1296
1296
  *
1297
- * @category Do Notation
1297
+ * @category do notation
1298
1298
  * @since 2.0.0
1299
1299
  */
1300
1300
  export const bindTo = /*#__PURE__*/doNotation.bindTo(map);
@@ -1331,7 +1331,7 @@ export {
1331
1331
  * @see {@link Do} to start the do-notation chain
1332
1332
  * @see {@link bind} for Result-producing fields
1333
1333
  *
1334
- * @category Do Notation
1334
+ * @category do notation
1335
1335
  * @since 2.0.0
1336
1336
  */
1337
1337
  let_ as let };