effect 4.0.0-beta.87 → 4.0.0-beta.89

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 (41) hide show
  1. package/dist/Effect.d.ts +5 -2
  2. package/dist/Effect.d.ts.map +1 -1
  3. package/dist/Effect.js +4 -1
  4. package/dist/Effect.js.map +1 -1
  5. package/dist/Latch.d.ts +19 -0
  6. package/dist/Latch.d.ts.map +1 -1
  7. package/dist/Latch.js +11 -0
  8. package/dist/Latch.js.map +1 -1
  9. package/dist/Schema.d.ts +14 -1
  10. package/dist/Schema.d.ts.map +1 -1
  11. package/dist/Schema.js +14 -1
  12. package/dist/Schema.js.map +1 -1
  13. package/dist/SchemaAST.d.ts +17 -5
  14. package/dist/SchemaAST.d.ts.map +1 -1
  15. package/dist/SchemaAST.js +22 -7
  16. package/dist/SchemaAST.js.map +1 -1
  17. package/dist/internal/effect.js +17 -15
  18. package/dist/internal/effect.js.map +1 -1
  19. package/dist/unstable/http/HttpClient.d.ts +4 -0
  20. package/dist/unstable/http/HttpClient.d.ts.map +1 -1
  21. package/dist/unstable/http/HttpClient.js +56 -20
  22. package/dist/unstable/http/HttpClient.js.map +1 -1
  23. package/dist/unstable/observability/OtlpTracer.d.ts.map +1 -1
  24. package/dist/unstable/observability/OtlpTracer.js +2 -1
  25. package/dist/unstable/observability/OtlpTracer.js.map +1 -1
  26. package/dist/unstable/persistence/RateLimiter.d.ts +106 -3
  27. package/dist/unstable/persistence/RateLimiter.d.ts.map +1 -1
  28. package/dist/unstable/persistence/RateLimiter.js +397 -5
  29. package/dist/unstable/persistence/RateLimiter.js.map +1 -1
  30. package/dist/unstable/rpc/RpcServer.js +4 -4
  31. package/dist/unstable/rpc/RpcServer.js.map +1 -1
  32. package/package.json +1 -1
  33. package/src/Effect.ts +10 -4
  34. package/src/Latch.ts +21 -0
  35. package/src/Schema.ts +14 -1
  36. package/src/SchemaAST.ts +23 -7
  37. package/src/internal/effect.ts +30 -18
  38. package/src/unstable/http/HttpClient.ts +115 -24
  39. package/src/unstable/observability/OtlpTracer.ts +2 -1
  40. package/src/unstable/persistence/RateLimiter.ts +599 -5
  41. package/src/unstable/rpc/RpcServer.ts +4 -4
package/dist/Schema.js CHANGED
@@ -1791,8 +1791,21 @@ export const Symbol = /*#__PURE__*/make(SchemaAST.symbol);
1791
1791
  */
1792
1792
  export const BigInt = /*#__PURE__*/make(SchemaAST.bigInt);
1793
1793
  /**
1794
- * Schema for the `void` type. Accepts `undefined` as the encoded value.
1794
+ * Schema for a TypeScript `void` return value.
1795
1795
  *
1796
+ * **When to use**
1797
+ *
1798
+ * Use when you need to model the return value of a function, RPC, or endpoint
1799
+ * whose result is intentionally ignored.
1800
+ *
1801
+ * **Details**
1802
+ *
1803
+ * Runtime parsing accepts any present value and discards it, producing
1804
+ * `undefined`. The public decoded and encoded TypeScript representation remains
1805
+ * `void`, so typed construction, decoding, and encoding APIs are still modeled
1806
+ * as `void`.
1807
+ *
1808
+ * @see {@link Undefined} for a schema that matches only the exact `undefined` value.
1796
1809
  * @category schemas
1797
1810
  * @since 3.10.0
1798
1811
  */