effect 4.0.0-beta.73 → 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 (345) 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/HttpRunner.d.ts +2 -2
  137. package/dist/unstable/cluster/HttpRunner.js +2 -2
  138. package/dist/unstable/cluster/K8sHttpClient.d.ts +1 -1
  139. package/dist/unstable/cluster/K8sHttpClient.js +1 -1
  140. package/dist/unstable/cluster/Runners.d.ts +1 -1
  141. package/dist/unstable/cluster/Runners.js +1 -1
  142. package/dist/unstable/cluster/Sharding.d.ts +1 -1
  143. package/dist/unstable/cluster/Sharding.js +1 -1
  144. package/dist/unstable/cluster/SingletonAddress.d.ts +1 -1
  145. package/dist/unstable/cluster/SingletonAddress.js +1 -1
  146. package/dist/unstable/cluster/Snowflake.d.ts +5 -5
  147. package/dist/unstable/cluster/Snowflake.js +5 -5
  148. package/dist/unstable/devtools/DevToolsClient.d.ts +1 -1
  149. package/dist/unstable/devtools/DevToolsClient.js +1 -1
  150. package/dist/unstable/eventlog/EventLog.d.ts +1 -1
  151. package/dist/unstable/eventlog/EventLog.js +1 -1
  152. package/dist/unstable/eventlog/EventLogEncryption.d.ts +1 -1
  153. package/dist/unstable/eventlog/EventLogEncryption.js +1 -1
  154. package/dist/unstable/eventlog/EventLogRemote.d.ts +1 -1
  155. package/dist/unstable/eventlog/EventLogRemote.js +1 -1
  156. package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts +3 -3
  157. package/dist/unstable/eventlog/EventLogServerUnencrypted.js +3 -3
  158. package/dist/unstable/http/Cookies.d.ts +1 -1
  159. package/dist/unstable/http/Etag.d.ts +1 -1
  160. package/dist/unstable/http/Etag.js +1 -1
  161. package/dist/unstable/http/FetchHttpClient.d.ts +2 -2
  162. package/dist/unstable/http/FetchHttpClient.js +2 -2
  163. package/dist/unstable/http/HttpClient.d.ts +1 -1
  164. package/dist/unstable/http/HttpClient.js +1 -1
  165. package/dist/unstable/http/HttpClientRequest.d.ts +2 -2
  166. package/dist/unstable/http/HttpMiddleware.d.ts +1 -1
  167. package/dist/unstable/http/HttpMiddleware.js +1 -1
  168. package/dist/unstable/http/HttpPlatform.d.ts +1 -1
  169. package/dist/unstable/http/HttpPlatform.js +1 -1
  170. package/dist/unstable/http/HttpRouter.d.ts +4 -4
  171. package/dist/unstable/http/HttpRouter.js +4 -4
  172. package/dist/unstable/http/HttpServerResponse.d.ts +3 -3
  173. package/dist/unstable/http/Url.d.ts +33 -33
  174. package/dist/unstable/http/Url.js +11 -11
  175. package/dist/unstable/httpapi/HttpApi.d.ts +1 -1
  176. package/dist/unstable/httpapi/HttpApi.js +1 -1
  177. package/dist/unstable/httpapi/HttpApiError.d.ts +13 -13
  178. package/dist/unstable/httpapi/HttpApiError.js +13 -13
  179. package/dist/unstable/observability/PrometheusMetrics.d.ts +4 -4
  180. package/dist/unstable/observability/PrometheusMetrics.js +2 -2
  181. package/dist/unstable/persistence/KeyValueStore.d.ts +3 -3
  182. package/dist/unstable/persistence/KeyValueStore.js +1 -1
  183. package/dist/unstable/persistence/Persistable.d.ts +2 -2
  184. package/dist/unstable/persistence/Persistable.js +2 -2
  185. package/dist/unstable/persistence/PersistedQueue.d.ts +8 -8
  186. package/dist/unstable/persistence/PersistedQueue.js +8 -8
  187. package/dist/unstable/persistence/RateLimiter.d.ts +1 -1
  188. package/dist/unstable/persistence/RateLimiter.js +1 -1
  189. package/dist/unstable/process/ChildProcess.d.ts +5 -5
  190. package/dist/unstable/process/ChildProcess.js +2 -2
  191. package/dist/unstable/reactivity/AsyncResult.d.ts +4 -4
  192. package/dist/unstable/reactivity/AsyncResult.js +1 -1
  193. package/dist/unstable/reactivity/Atom.d.ts +1 -1
  194. package/dist/unstable/reactivity/Atom.js +1 -1
  195. package/dist/unstable/reactivity/AtomRegistry.d.ts +1 -1
  196. package/dist/unstable/reactivity/AtomRegistry.js +1 -1
  197. package/dist/unstable/reactivity/Reactivity.d.ts +1 -1
  198. package/dist/unstable/reactivity/Reactivity.js +1 -1
  199. package/dist/unstable/rpc/Rpc.d.ts +5 -5
  200. package/dist/unstable/rpc/Rpc.js +1 -1
  201. package/dist/unstable/rpc/RpcMiddleware.d.ts +1 -1
  202. package/dist/unstable/rpc/RpcMiddleware.js +1 -1
  203. package/dist/unstable/rpc/RpcSchema.d.ts +3 -3
  204. package/dist/unstable/rpc/RpcSchema.js +2 -2
  205. package/dist/unstable/schema/Model.d.ts +2 -2
  206. package/dist/unstable/schema/Model.js +1 -1
  207. package/dist/unstable/socket/Socket.d.ts +3 -3
  208. package/dist/unstable/socket/Socket.js +3 -3
  209. package/dist/unstable/socket/SocketServer.d.ts +1 -1
  210. package/dist/unstable/socket/SocketServer.js +1 -1
  211. package/dist/unstable/sql/Migrator.d.ts +1 -1
  212. package/dist/unstable/sql/SqlClient.d.ts +3 -3
  213. package/dist/unstable/sql/SqlClient.js +2 -2
  214. package/dist/unstable/sql/SqlConnection.d.ts +1 -1
  215. package/dist/unstable/sql/SqlConnection.js +1 -1
  216. package/dist/unstable/sql/Statement.d.ts +2 -2
  217. package/dist/unstable/sql/Statement.js +2 -2
  218. package/dist/unstable/workers/Transferable.d.ts +1 -1
  219. package/dist/unstable/workers/Transferable.js +1 -1
  220. package/dist/unstable/workers/Worker.d.ts +1 -1
  221. package/dist/unstable/workers/Worker.js +1 -1
  222. package/dist/unstable/workflow/Activity.d.ts +1 -1
  223. package/dist/unstable/workflow/Activity.js +1 -1
  224. package/dist/unstable/workflow/DurableDeferred.d.ts +1 -1
  225. package/dist/unstable/workflow/DurableDeferred.js +1 -1
  226. package/package.json +1 -1
  227. package/src/Array.ts +16 -16
  228. package/src/Boolean.ts +2 -2
  229. package/src/Channel.ts +67 -67
  230. package/src/Chunk.ts +18 -18
  231. package/src/Context.ts +4 -4
  232. package/src/Cron.ts +4 -4
  233. package/src/Deferred.ts +37 -37
  234. package/src/Duration.ts +6 -6
  235. package/src/Effect.ts +58 -58
  236. package/src/Equal.ts +2 -2
  237. package/src/Equivalence.ts +1 -1
  238. package/src/ExecutionPlan.ts +2 -2
  239. package/src/FileSystem.ts +6 -6
  240. package/src/Function.ts +5 -5
  241. package/src/Graph.ts +11 -11
  242. package/src/HKT.ts +1 -1
  243. package/src/HashMap.ts +3 -3
  244. package/src/HashSet.ts +1 -1
  245. package/src/Iterable.ts +15 -15
  246. package/src/Layer.ts +16 -16
  247. package/src/Logger.ts +7 -7
  248. package/src/ManagedRuntime.ts +2 -2
  249. package/src/Match.ts +20 -20
  250. package/src/Metric.ts +20 -20
  251. package/src/Option.ts +36 -36
  252. package/src/Order.ts +1 -1
  253. package/src/Path.ts +1 -1
  254. package/src/Pipeable.ts +1 -1
  255. package/src/Predicate.ts +5 -5
  256. package/src/PubSub.ts +9 -9
  257. package/src/Queue.ts +24 -24
  258. package/src/Record.ts +15 -15
  259. package/src/Redacted.ts +2 -2
  260. package/src/Ref.ts +18 -18
  261. package/src/RegExp.ts +1 -1
  262. package/src/Request.ts +4 -4
  263. package/src/RequestResolver.ts +8 -8
  264. package/src/Resource.ts +1 -1
  265. package/src/Result.ts +18 -18
  266. package/src/Schedule.ts +45 -45
  267. package/src/Schema.ts +177 -459
  268. package/src/SchemaAST.ts +1 -1
  269. package/src/SchemaGetter.ts +13 -13
  270. package/src/SchemaParser.ts +3 -3
  271. package/src/Scope.ts +1 -1
  272. package/src/Sink.ts +5 -5
  273. package/src/Stream.ts +57 -57
  274. package/src/String.ts +5 -5
  275. package/src/Struct.ts +8 -8
  276. package/src/SynchronizedRef.ts +57 -57
  277. package/src/Terminal.ts +1 -1
  278. package/src/Tracer.ts +5 -5
  279. package/src/Tuple.ts +14 -14
  280. package/src/TxHashMap.ts +3 -3
  281. package/src/TxHashSet.ts +1 -1
  282. package/src/Unify.ts +7 -7
  283. package/src/testing/TestClock.ts +5 -5
  284. package/src/testing/TestConsole.ts +3 -3
  285. package/src/unstable/ai/Chat.ts +2 -2
  286. package/src/unstable/ai/EmbeddingModel.ts +1 -1
  287. package/src/unstable/ai/IdGenerator.ts +2 -2
  288. package/src/unstable/ai/LanguageModel.ts +4 -4
  289. package/src/unstable/ai/Prompt.ts +15 -15
  290. package/src/unstable/ai/Telemetry.ts +5 -5
  291. package/src/unstable/ai/Tokenizer.ts +1 -1
  292. package/src/unstable/ai/Tool.ts +6 -6
  293. package/src/unstable/cli/Command.ts +5 -1
  294. package/src/unstable/cli/Param.ts +1 -1
  295. package/src/unstable/cli/Primitive.ts +3 -3
  296. package/src/unstable/cli/Prompt.ts +11 -11
  297. package/src/unstable/cli/internal/parser.ts +204 -10
  298. package/src/unstable/cluster/Entity.ts +1 -1
  299. package/src/unstable/cluster/HttpRunner.ts +2 -2
  300. package/src/unstable/cluster/K8sHttpClient.ts +1 -1
  301. package/src/unstable/cluster/Runners.ts +1 -1
  302. package/src/unstable/cluster/Sharding.ts +1 -1
  303. package/src/unstable/cluster/SingletonAddress.ts +1 -1
  304. package/src/unstable/cluster/Snowflake.ts +5 -5
  305. package/src/unstable/devtools/DevToolsClient.ts +1 -1
  306. package/src/unstable/eventlog/EventLog.ts +1 -1
  307. package/src/unstable/eventlog/EventLogEncryption.ts +1 -1
  308. package/src/unstable/eventlog/EventLogRemote.ts +1 -1
  309. package/src/unstable/eventlog/EventLogServerUnencrypted.ts +3 -3
  310. package/src/unstable/http/Cookies.ts +1 -1
  311. package/src/unstable/http/Etag.ts +1 -1
  312. package/src/unstable/http/FetchHttpClient.ts +2 -2
  313. package/src/unstable/http/HttpClient.ts +1 -1
  314. package/src/unstable/http/HttpClientRequest.ts +2 -2
  315. package/src/unstable/http/HttpMiddleware.ts +1 -1
  316. package/src/unstable/http/HttpPlatform.ts +1 -1
  317. package/src/unstable/http/HttpRouter.ts +4 -4
  318. package/src/unstable/http/HttpServerResponse.ts +3 -3
  319. package/src/unstable/http/Url.ts +33 -33
  320. package/src/unstable/httpapi/HttpApi.ts +1 -1
  321. package/src/unstable/httpapi/HttpApiError.ts +13 -13
  322. package/src/unstable/observability/PrometheusMetrics.ts +4 -4
  323. package/src/unstable/persistence/KeyValueStore.ts +3 -3
  324. package/src/unstable/persistence/Persistable.ts +2 -2
  325. package/src/unstable/persistence/PersistedQueue.ts +8 -8
  326. package/src/unstable/persistence/RateLimiter.ts +1 -1
  327. package/src/unstable/process/ChildProcess.ts +5 -5
  328. package/src/unstable/reactivity/AsyncResult.ts +4 -4
  329. package/src/unstable/reactivity/Atom.ts +1 -1
  330. package/src/unstable/reactivity/AtomRegistry.ts +1 -1
  331. package/src/unstable/reactivity/Reactivity.ts +1 -1
  332. package/src/unstable/rpc/Rpc.ts +5 -5
  333. package/src/unstable/rpc/RpcMiddleware.ts +1 -1
  334. package/src/unstable/rpc/RpcSchema.ts +3 -3
  335. package/src/unstable/schema/Model.ts +2 -2
  336. package/src/unstable/socket/Socket.ts +3 -3
  337. package/src/unstable/socket/SocketServer.ts +1 -1
  338. package/src/unstable/sql/Migrator.ts +1 -1
  339. package/src/unstable/sql/SqlClient.ts +3 -3
  340. package/src/unstable/sql/SqlConnection.ts +1 -1
  341. package/src/unstable/sql/Statement.ts +2 -2
  342. package/src/unstable/workers/Transferable.ts +1 -1
  343. package/src/unstable/workers/Worker.ts +1 -1
  344. package/src/unstable/workflow/Activity.ts +1 -1
  345. package/src/unstable/workflow/DurableDeferred.ts +1 -1
package/dist/Match.d.ts CHANGED
@@ -250,7 +250,7 @@ export interface Not {
250
250
  *
251
251
  * @see {@link value} for creating a matcher from a specific value.
252
252
  *
253
- * @category Creating a matcher
253
+ * @category constructors
254
254
  * @since 4.0.0
255
255
  */
256
256
  export declare const type: <I>() => Matcher<I, Types.Without<never>, I, never, never>;
@@ -295,7 +295,7 @@ export declare const type: <I>() => Matcher<I, Types.Without<never>, I, never, n
295
295
  *
296
296
  * @see {@link type} for creating a matcher from a specific type.
297
297
  *
298
- * @category Creating a matcher
298
+ * @category constructors
299
299
  * @since 4.0.0
300
300
  */
301
301
  export declare const value: <const I>(i: I) => Matcher<I, Types.Without<never>, I, never, I>;
@@ -325,7 +325,7 @@ export declare const value: <const I>(i: I) => Matcher<I, Types.Without<never>,
325
325
  * console.log(message) // "Success: Hello"
326
326
  * ```
327
327
  *
328
- * @category Creating a matcher
328
+ * @category constructors
329
329
  * @since 4.0.0
330
330
  */
331
331
  export declare const valueTags: {
@@ -355,7 +355,7 @@ export declare const valueTags: {
355
355
  * console.log(message) // "Success: Hello"
356
356
  * ```
357
357
  *
358
- * @category Creating a matcher
358
+ * @category constructors
359
359
  * @since 4.0.0
360
360
  */
361
361
  <const I, P extends {
@@ -391,7 +391,7 @@ export declare const valueTags: {
391
391
  * console.log(message) // "Success: Hello"
392
392
  * ```
393
393
  *
394
- * @category Creating a matcher
394
+ * @category constructors
395
395
  * @since 4.0.0
396
396
  */
397
397
  <const I, P extends {
@@ -445,7 +445,7 @@ export declare const valueTags: {
445
445
  * // Output: { type: "pending" }
446
446
  * ```
447
447
  *
448
- * @category Creating a matcher
448
+ * @category constructors
449
449
  * @since 4.0.0
450
450
  */
451
451
  export declare const typeTags: {
@@ -492,7 +492,7 @@ export declare const typeTags: {
492
492
  * // Output: { type: "pending" }
493
493
  * ```
494
494
  *
495
- * @category Creating a matcher
495
+ * @category constructors
496
496
  * @since 4.0.0
497
497
  */
498
498
  <I, Ret>(): <P extends {
@@ -545,7 +545,7 @@ export declare const typeTags: {
545
545
  * // Output: { type: "pending" }
546
546
  * ```
547
547
  *
548
- * @category Creating a matcher
548
+ * @category constructors
549
549
  * @since 4.0.0
550
550
  */
551
551
  <I>(): <P extends {
@@ -585,7 +585,7 @@ export declare const typeTags: {
585
585
  * )
586
586
  * ```
587
587
  *
588
- * @category utils
588
+ * @category utility types
589
589
  * @since 4.0.0
590
590
  */
591
591
  export declare const withReturnType: <Ret>() => <I, F, R, A, Pr, _>(self: Matcher<I, F, R, A, Pr, _>) => [Ret] extends [[A] extends [never] ? any : A] ? Matcher<I, F, R, A, Pr, Ret> : "withReturnType constraint does not extend Result type";
@@ -1129,7 +1129,7 @@ export declare const not: <R, const P extends Types.PatternPrimitive<R> | Types.
1129
1129
  *
1130
1130
  * @see {@link string} for matching any string
1131
1131
  *
1132
- * @category Predicates
1132
+ * @category predicates
1133
1133
  * @since 4.0.0
1134
1134
  */
1135
1135
  export declare const nonEmptyString: SafeRefinement<string, never>;
@@ -1174,7 +1174,7 @@ export declare const nonEmptyString: SafeRefinement<string, never>;
1174
1174
  * // Output: "Unknown status: pending"
1175
1175
  * ```
1176
1176
  *
1177
- * @category Predicates
1177
+ * @category predicates
1178
1178
  * @since 4.0.0
1179
1179
  */
1180
1180
  export declare const is: <Literals extends ReadonlyArray<string | number | bigint | boolean | null>>(...literals: Literals) => SafeRefinement<Literals[number]>;
@@ -1295,7 +1295,7 @@ export declare const number: Predicate.Refinement<unknown, number>;
1295
1295
  * @see {@link defined} for matching only non-nullish values
1296
1296
  * @see {@link orElse} for providing a fallback after earlier cases
1297
1297
  *
1298
- * @category Predicates
1298
+ * @category predicates
1299
1299
  * @since 4.0.0
1300
1300
  */
1301
1301
  export declare const any: SafeRefinement<unknown, any>;
@@ -1343,7 +1343,7 @@ export declare const any: SafeRefinement<unknown, any>;
1343
1343
  *
1344
1344
  * @see {@link any} for matching every value without excluding nullish inputs
1345
1345
  *
1346
- * @category Predicates
1346
+ * @category predicates
1347
1347
  * @since 4.0.0
1348
1348
  */
1349
1349
  export declare const defined: <A>(u: A) => u is A & {};
@@ -1404,7 +1404,7 @@ export {
1404
1404
  * @see {@link defined} for matching non-nullish values
1405
1405
  * @see {@link is} for matching literal values
1406
1406
  *
1407
- * @category Predicates
1407
+ * @category predicates
1408
1408
  * @since 4.0.0
1409
1409
  */
1410
1410
  _undefined as undefined };
@@ -1425,7 +1425,7 @@ export {
1425
1425
  * @see {@link defined} for matching non-nullish values
1426
1426
  * @see {@link is} for matching literal values
1427
1427
  *
1428
- * @category Predicates
1428
+ * @category predicates
1429
1429
  * @since 4.0.0
1430
1430
  */
1431
1431
  _null as null };
@@ -1647,7 +1647,7 @@ export declare const record: Predicate.Refinement<unknown, {
1647
1647
  * @see {@link instanceOfUnsafe} for constructor matching without the same type-safety guarantee
1648
1648
  * @see {@link record} for matching broad non-null, non-array objects
1649
1649
  *
1650
- * @category Predicates
1650
+ * @category predicates
1651
1651
  * @since 4.0.0
1652
1652
  */
1653
1653
  export declare const instanceOf: <A extends abstract new (...args: any) => any>(constructor: A) => SafeRefinement<InstanceType<A>, never>;
@@ -1730,7 +1730,7 @@ export declare const instanceOfUnsafe: <A extends abstract new (...args: any) =>
1730
1730
  * @see {@link result} for returning unmatched input as a `Result` failure
1731
1731
  * @see {@link orElseAbsurd} for finalizing when unmatched input should be impossible
1732
1732
  *
1733
- * @category Completion
1733
+ * @category completion
1734
1734
  * @since 4.0.0
1735
1735
  */
1736
1736
  export declare const orElse: <RA, Ret, F extends (_: RA) => Ret>(f: F) => <I, R, A, Pr>(self: Matcher<I, R, RA, A, Pr, Ret>) => [Pr] extends [never] ? (input: I) => Unify<ReturnType<F> | A> : Unify<ReturnType<F> | A>;
@@ -1814,7 +1814,7 @@ export declare const orElseAbsurd: <I, R, RA, A, Pr, Ret>(self: Matcher<I, R, RA
1814
1814
  * // Output: { _id: 'Result', _tag: 'Err', err: { role: 'viewer' } }
1815
1815
  * ```
1816
1816
  *
1817
- * @category Completion
1817
+ * @category completion
1818
1818
  * @since 4.0.0
1819
1819
  */
1820
1820
  export declare const result: <I, F, R, A, Pr, Ret>(self: Matcher<I, F, R, A, Pr, Ret>) => [Pr] extends [never] ? (input: I) => Result.Result<Unify<A>, R> : Result.Result<Unify<A>, R>;
@@ -1860,7 +1860,7 @@ export declare const result: <I, F, R, A, Pr, Ret>(self: Matcher<I, F, R, A, Pr,
1860
1860
  * @see {@link result} for preserving unmatched input as a `Result` failure
1861
1861
  * @see {@link orElse} for replacing unmatched input with a fallback value
1862
1862
  *
1863
- * @category Completion
1863
+ * @category completion
1864
1864
  * @since 4.0.0
1865
1865
  */
1866
1866
  export declare const option: <I, F, R, A, Pr, Ret>(self: Matcher<I, F, R, A, Pr, Ret>) => [Pr] extends [never] ? (input: I) => Option.Option<Unify<A>> : Option.Option<Unify<A>>;
@@ -1893,7 +1893,7 @@ export declare const option: <I, F, R, A, Pr, Ret>(self: Matcher<I, F, R, A, Pr,
1893
1893
  * )
1894
1894
  * ```
1895
1895
  *
1896
- * @category Completion
1896
+ * @category completion
1897
1897
  * @since 4.0.0
1898
1898
  */
1899
1899
  export declare const exhaustive: <I, F, A, Pr, Ret>(self: Matcher<I, F, never, A, Pr, Ret>) => [Pr] extends [never] ? (u: I) => Unify<A> : Unify<A>;
package/dist/Match.js CHANGED
@@ -88,7 +88,7 @@ const TypeId = internal.TypeId;
88
88
  *
89
89
  * @see {@link value} for creating a matcher from a specific value.
90
90
  *
91
- * @category Creating a matcher
91
+ * @category constructors
92
92
  * @since 4.0.0
93
93
  */
94
94
  export const type = internal.type;
@@ -133,7 +133,7 @@ export const type = internal.type;
133
133
  *
134
134
  * @see {@link type} for creating a matcher from a specific type.
135
135
  *
136
- * @category Creating a matcher
136
+ * @category constructors
137
137
  * @since 4.0.0
138
138
  */
139
139
  export const value = internal.value;
@@ -163,7 +163,7 @@ export const value = internal.value;
163
163
  * console.log(message) // "Success: Hello"
164
164
  * ```
165
165
  *
166
- * @category Creating a matcher
166
+ * @category constructors
167
167
  * @since 4.0.0
168
168
  */
169
169
  export const valueTags = internal.valueTags;
@@ -210,7 +210,7 @@ export const valueTags = internal.valueTags;
210
210
  * // Output: { type: "pending" }
211
211
  * ```
212
212
  *
213
- * @category Creating a matcher
213
+ * @category constructors
214
214
  * @since 4.0.0
215
215
  */
216
216
  export const typeTags = internal.typeTags;
@@ -243,7 +243,7 @@ export const typeTags = internal.typeTags;
243
243
  * )
244
244
  * ```
245
245
  *
246
- * @category utils
246
+ * @category utility types
247
247
  * @since 4.0.0
248
248
  */
249
249
  export const withReturnType = internal.withReturnType;
@@ -771,7 +771,7 @@ export const not = internal.not;
771
771
  *
772
772
  * @see {@link string} for matching any string
773
773
  *
774
- * @category Predicates
774
+ * @category predicates
775
775
  * @since 4.0.0
776
776
  */
777
777
  export const nonEmptyString = internal.nonEmptyString;
@@ -816,7 +816,7 @@ export const nonEmptyString = internal.nonEmptyString;
816
816
  * // Output: "Unknown status: pending"
817
817
  * ```
818
818
  *
819
- * @category Predicates
819
+ * @category predicates
820
820
  * @since 4.0.0
821
821
  */
822
822
  export const is = internal.is;
@@ -937,7 +937,7 @@ export const number = Predicate.isNumber;
937
937
  * @see {@link defined} for matching only non-nullish values
938
938
  * @see {@link orElse} for providing a fallback after earlier cases
939
939
  *
940
- * @category Predicates
940
+ * @category predicates
941
941
  * @since 4.0.0
942
942
  */
943
943
  export const any = internal.any;
@@ -985,7 +985,7 @@ export const any = internal.any;
985
985
  *
986
986
  * @see {@link any} for matching every value without excluding nullish inputs
987
987
  *
988
- * @category Predicates
988
+ * @category predicates
989
989
  * @since 4.0.0
990
990
  */
991
991
  export const defined = internal.defined;
@@ -1046,7 +1046,7 @@ export {
1046
1046
  * @see {@link defined} for matching non-nullish values
1047
1047
  * @see {@link is} for matching literal values
1048
1048
  *
1049
- * @category Predicates
1049
+ * @category predicates
1050
1050
  * @since 4.0.0
1051
1051
  */
1052
1052
  _undefined as undefined };
@@ -1067,7 +1067,7 @@ export {
1067
1067
  * @see {@link defined} for matching non-nullish values
1068
1068
  * @see {@link is} for matching literal values
1069
1069
  *
1070
- * @category Predicates
1070
+ * @category predicates
1071
1071
  * @since 4.0.0
1072
1072
  */
1073
1073
  _null as null };
@@ -1287,7 +1287,7 @@ export const record = Predicate.isObject;
1287
1287
  * @see {@link instanceOfUnsafe} for constructor matching without the same type-safety guarantee
1288
1288
  * @see {@link record} for matching broad non-null, non-array objects
1289
1289
  *
1290
- * @category Predicates
1290
+ * @category predicates
1291
1291
  * @since 4.0.0
1292
1292
  */
1293
1293
  export const instanceOf = internal.instanceOf;
@@ -1370,7 +1370,7 @@ export const instanceOfUnsafe = internal.instanceOf;
1370
1370
  * @see {@link result} for returning unmatched input as a `Result` failure
1371
1371
  * @see {@link orElseAbsurd} for finalizing when unmatched input should be impossible
1372
1372
  *
1373
- * @category Completion
1373
+ * @category completion
1374
1374
  * @since 4.0.0
1375
1375
  */
1376
1376
  export const orElse = internal.orElse;
@@ -1455,7 +1455,7 @@ export const orElseAbsurd = internal.orElseAbsurd;
1455
1455
  * // Output: { _id: 'Result', _tag: 'Err', err: { role: 'viewer' } }
1456
1456
  * ```
1457
1457
  *
1458
- * @category Completion
1458
+ * @category completion
1459
1459
  * @since 4.0.0
1460
1460
  */
1461
1461
  export const result = internal.result;
@@ -1501,7 +1501,7 @@ export const result = internal.result;
1501
1501
  * @see {@link result} for preserving unmatched input as a `Result` failure
1502
1502
  * @see {@link orElse} for replacing unmatched input with a fallback value
1503
1503
  *
1504
- * @category Completion
1504
+ * @category completion
1505
1505
  * @since 4.0.0
1506
1506
  */
1507
1507
  export const option = internal.option;
@@ -1534,7 +1534,7 @@ export const option = internal.option;
1534
1534
  * )
1535
1535
  * ```
1536
1536
  *
1537
- * @category Completion
1537
+ * @category completion
1538
1538
  * @since 4.0.0
1539
1539
  */
1540
1540
  export const exhaustive = internal.exhaustive;
package/dist/Metric.d.ts CHANGED
@@ -242,7 +242,7 @@ export interface Metric<in Input, out State> extends Pipeable {
242
242
  * })
243
243
  * ```
244
244
  *
245
- * @category Metrics
245
+ * @category metrics
246
246
  * @since 2.0.0
247
247
  */
248
248
  export interface Counter<in Input extends number | bigint> extends Metric<Input, CounterState<Input>> {
@@ -391,7 +391,7 @@ export interface CounterState<in Input extends number | bigint> {
391
391
  * })
392
392
  * ```
393
393
  *
394
- * @category Metrics
394
+ * @category metrics
395
395
  * @since 2.0.0
396
396
  */
397
397
  export interface Frequency extends Metric<string, FrequencyState> {
@@ -476,7 +476,7 @@ export interface Frequency extends Metric<string, FrequencyState> {
476
476
  * })
477
477
  * ```
478
478
  *
479
- * @category Metrics
479
+ * @category metrics
480
480
  * @since 4.0.0
481
481
  */
482
482
  export interface FrequencyState {
@@ -538,7 +538,7 @@ export interface FrequencyState {
538
538
  * })
539
539
  * ```
540
540
  *
541
- * @category Metrics
541
+ * @category metrics
542
542
  * @since 2.0.0
543
543
  */
544
544
  export interface Gauge<in Input extends number | bigint> extends Metric<Input, GaugeState<Input>> {
@@ -607,7 +607,7 @@ export interface Gauge<in Input extends number | bigint> extends Metric<Input, G
607
607
  * })
608
608
  * ```
609
609
  *
610
- * @category Metrics
610
+ * @category metrics
611
611
  * @since 4.0.0
612
612
  */
613
613
  export interface GaugeState<in Input extends number | bigint> {
@@ -697,7 +697,7 @@ export interface GaugeState<in Input extends number | bigint> {
697
697
  * })
698
698
  * ```
699
699
  *
700
- * @category Metrics
700
+ * @category metrics
701
701
  * @since 2.0.0
702
702
  */
703
703
  export interface Histogram<Input> extends Metric<Input, HistogramState> {
@@ -784,7 +784,7 @@ export interface Histogram<Input> extends Metric<Input, HistogramState> {
784
784
  * })
785
785
  * ```
786
786
  *
787
- * @category Metrics
787
+ * @category metrics
788
788
  * @since 4.0.0
789
789
  */
790
790
  export interface HistogramState {
@@ -889,7 +889,7 @@ export interface HistogramState {
889
889
  * })
890
890
  * ```
891
891
  *
892
- * @category Metrics
892
+ * @category metrics
893
893
  * @since 2.0.0
894
894
  */
895
895
  export interface Summary<Input> extends Metric<Input, SummaryState> {
@@ -971,7 +971,7 @@ export interface Summary<Input> extends Metric<Input, SummaryState> {
971
971
  * })
972
972
  * ```
973
973
  *
974
- * @category Metrics
974
+ * @category metrics
975
975
  * @since 4.0.0
976
976
  */
977
977
  export interface SummaryState {
@@ -2567,7 +2567,7 @@ export declare const timer: (name: string, options?: {
2567
2567
  * })
2568
2568
  * ```
2569
2569
  *
2570
- * @category utils
2570
+ * @category getters
2571
2571
  * @since 2.0.0
2572
2572
  */
2573
2573
  export declare const value: <Input, State>(self: Metric<Input, State>) => Effect<State>;
@@ -2612,7 +2612,7 @@ export declare const value: <Input, State>(self: Metric<Input, State>) => Effect
2612
2612
  * })
2613
2613
  * ```
2614
2614
  *
2615
- * @category utils
2615
+ * @category mutations
2616
2616
  * @since 3.6.5
2617
2617
  */
2618
2618
  export declare const modify: {
@@ -2657,7 +2657,7 @@ export declare const modify: {
2657
2657
  * })
2658
2658
  * ```
2659
2659
  *
2660
- * @category utils
2660
+ * @category mutations
2661
2661
  * @since 3.6.5
2662
2662
  */
2663
2663
  <Input>(input: Input): <State>(self: Metric<Input, State>) => Effect<void>;
@@ -2702,7 +2702,7 @@ export declare const modify: {
2702
2702
  * })
2703
2703
  * ```
2704
2704
  *
2705
- * @category utils
2705
+ * @category mutations
2706
2706
  * @since 3.6.5
2707
2707
  */
2708
2708
  <Input, State>(self: Metric<Input, State>, input: Input): Effect<void>;
@@ -2757,7 +2757,7 @@ export declare const modify: {
2757
2757
  * })
2758
2758
  * ```
2759
2759
  *
2760
- * @category utils
2760
+ * @category mutations
2761
2761
  * @since 2.0.0
2762
2762
  */
2763
2763
  export declare const update: {
@@ -2811,7 +2811,7 @@ export declare const update: {
2811
2811
  * })
2812
2812
  * ```
2813
2813
  *
2814
- * @category utils
2814
+ * @category mutations
2815
2815
  * @since 2.0.0
2816
2816
  */
2817
2817
  <Input>(input: Input): <State>(self: Metric<Input, State>) => Effect<void>;
@@ -2865,7 +2865,7 @@ export declare const update: {
2865
2865
  * })
2866
2866
  * ```
2867
2867
  *
2868
- * @category utils
2868
+ * @category mutations
2869
2869
  * @since 2.0.0
2870
2870
  */
2871
2871
  <Input, State>(self: Metric<Input, State>, input: Input): Effect<void>;
package/dist/Metric.js CHANGED
@@ -1057,7 +1057,7 @@ export const timer = (name, options) => {
1057
1057
  * })
1058
1058
  * ```
1059
1059
  *
1060
- * @category utils
1060
+ * @category getters
1061
1061
  * @since 2.0.0
1062
1062
  */
1063
1063
  export const value = self => InternalEffect.flatMap(InternalEffect.context(), context => InternalEffect.sync(() => self.valueUnsafe(context)));
@@ -1102,7 +1102,7 @@ export const value = self => InternalEffect.flatMap(InternalEffect.context(), co
1102
1102
  * })
1103
1103
  * ```
1104
1104
  *
1105
- * @category utils
1105
+ * @category mutations
1106
1106
  * @since 3.6.5
1107
1107
  */
1108
1108
  export const modify = /*#__PURE__*/dual(2, (self, input) => InternalEffect.flatMap(InternalEffect.context(), context => InternalEffect.sync(() => self.modifyUnsafe(input, context))));
@@ -1156,7 +1156,7 @@ export const modify = /*#__PURE__*/dual(2, (self, input) => InternalEffect.flatM
1156
1156
  * })
1157
1157
  * ```
1158
1158
  *
1159
- * @category utils
1159
+ * @category mutations
1160
1160
  * @since 2.0.0
1161
1161
  */
1162
1162
  export const update = /*#__PURE__*/dual(2, (self, input) => InternalEffect.contextWith(services => InternalEffect.sync(() => self.updateUnsafe(input, services))));