effect 3.9.0 → 3.9.2

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 (197) hide show
  1. package/dist/cjs/BigDecimal.js +0 -3
  2. package/dist/cjs/BigDecimal.js.map +1 -1
  3. package/dist/cjs/Chunk.js +0 -3
  4. package/dist/cjs/Chunk.js.map +1 -1
  5. package/dist/cjs/Cron.js +0 -3
  6. package/dist/cjs/Cron.js.map +1 -1
  7. package/dist/cjs/DateTime.js +0 -6
  8. package/dist/cjs/DateTime.js.map +1 -1
  9. package/dist/cjs/Duration.js +0 -3
  10. package/dist/cjs/Duration.js.map +1 -1
  11. package/dist/cjs/FiberHandle.js +0 -3
  12. package/dist/cjs/FiberHandle.js.map +1 -1
  13. package/dist/cjs/FiberMap.js +0 -3
  14. package/dist/cjs/FiberMap.js.map +1 -1
  15. package/dist/cjs/FiberSet.js +0 -3
  16. package/dist/cjs/FiberSet.js.map +1 -1
  17. package/dist/cjs/Inspectable.js +1 -15
  18. package/dist/cjs/Inspectable.js.map +1 -1
  19. package/dist/cjs/List.js +0 -6
  20. package/dist/cjs/List.js.map +1 -1
  21. package/dist/cjs/Micro.js +0 -6
  22. package/dist/cjs/Micro.js.map +1 -1
  23. package/dist/cjs/MutableHashMap.js +0 -3
  24. package/dist/cjs/MutableHashMap.js.map +1 -1
  25. package/dist/cjs/MutableHashSet.js +0 -3
  26. package/dist/cjs/MutableHashSet.js.map +1 -1
  27. package/dist/cjs/MutableList.js +0 -3
  28. package/dist/cjs/MutableList.js.map +1 -1
  29. package/dist/cjs/MutableQueue.js +0 -3
  30. package/dist/cjs/MutableQueue.js.map +1 -1
  31. package/dist/cjs/MutableRef.js +0 -3
  32. package/dist/cjs/MutableRef.js.map +1 -1
  33. package/dist/cjs/SortedMap.js +0 -3
  34. package/dist/cjs/SortedMap.js.map +1 -1
  35. package/dist/cjs/SortedSet.js +0 -3
  36. package/dist/cjs/SortedSet.js.map +1 -1
  37. package/dist/cjs/Stream.js.map +1 -1
  38. package/dist/cjs/internal/cause.js +0 -3
  39. package/dist/cjs/internal/cause.js.map +1 -1
  40. package/dist/cjs/internal/context.js +0 -6
  41. package/dist/cjs/internal/context.js.map +1 -1
  42. package/dist/cjs/internal/core.js +0 -12
  43. package/dist/cjs/internal/core.js.map +1 -1
  44. package/dist/cjs/internal/doNotation.js.map +1 -1
  45. package/dist/cjs/internal/fiberId.js +0 -9
  46. package/dist/cjs/internal/fiberId.js.map +1 -1
  47. package/dist/cjs/internal/hashMap.js +0 -3
  48. package/dist/cjs/internal/hashMap.js.map +1 -1
  49. package/dist/cjs/internal/hashSet.js +0 -3
  50. package/dist/cjs/internal/hashSet.js.map +1 -1
  51. package/dist/cjs/internal/mailbox.js +0 -3
  52. package/dist/cjs/internal/mailbox.js.map +1 -1
  53. package/dist/cjs/internal/option.js +0 -3
  54. package/dist/cjs/internal/option.js.map +1 -1
  55. package/dist/cjs/internal/redBlackTree.js +0 -3
  56. package/dist/cjs/internal/redBlackTree.js.map +1 -1
  57. package/dist/cjs/internal/runtime.js +0 -3
  58. package/dist/cjs/internal/runtime.js.map +1 -1
  59. package/dist/cjs/internal/trie.js +0 -3
  60. package/dist/cjs/internal/trie.js.map +1 -1
  61. package/dist/cjs/internal/version.js +1 -1
  62. package/dist/dts/Array.d.ts +4 -4
  63. package/dist/dts/Array.d.ts.map +1 -1
  64. package/dist/dts/BigDecimal.d.ts.map +1 -1
  65. package/dist/dts/Chunk.d.ts.map +1 -1
  66. package/dist/dts/Cron.d.ts.map +1 -1
  67. package/dist/dts/DateTime.d.ts.map +1 -1
  68. package/dist/dts/Duration.d.ts.map +1 -1
  69. package/dist/dts/Effect.d.ts +6 -6
  70. package/dist/dts/Effect.d.ts.map +1 -1
  71. package/dist/dts/Either.d.ts +4 -4
  72. package/dist/dts/Either.d.ts.map +1 -1
  73. package/dist/dts/FiberHandle.d.ts.map +1 -1
  74. package/dist/dts/FiberMap.d.ts.map +1 -1
  75. package/dist/dts/FiberSet.d.ts.map +1 -1
  76. package/dist/dts/Inspectable.d.ts +0 -15
  77. package/dist/dts/Inspectable.d.ts.map +1 -1
  78. package/dist/dts/List.d.ts.map +1 -1
  79. package/dist/dts/Micro.d.ts +4 -4
  80. package/dist/dts/Micro.d.ts.map +1 -1
  81. package/dist/dts/MutableHashMap.d.ts.map +1 -1
  82. package/dist/dts/MutableHashSet.d.ts.map +1 -1
  83. package/dist/dts/MutableList.d.ts.map +1 -1
  84. package/dist/dts/MutableQueue.d.ts.map +1 -1
  85. package/dist/dts/MutableRef.d.ts.map +1 -1
  86. package/dist/dts/Option.d.ts +4 -4
  87. package/dist/dts/Option.d.ts.map +1 -1
  88. package/dist/dts/STM.d.ts +4 -4
  89. package/dist/dts/STM.d.ts.map +1 -1
  90. package/dist/dts/SortedMap.d.ts.map +1 -1
  91. package/dist/dts/SortedSet.d.ts.map +1 -1
  92. package/dist/dts/Stream.d.ts +11 -11
  93. package/dist/dts/Stream.d.ts.map +1 -1
  94. package/dist/dts/internal/core.d.ts.map +1 -1
  95. package/dist/dts/internal/hashMap.d.ts.map +1 -1
  96. package/dist/esm/BigDecimal.js +1 -4
  97. package/dist/esm/BigDecimal.js.map +1 -1
  98. package/dist/esm/Chunk.js +1 -4
  99. package/dist/esm/Chunk.js.map +1 -1
  100. package/dist/esm/Cron.js +1 -4
  101. package/dist/esm/Cron.js.map +1 -1
  102. package/dist/esm/DateTime.js +0 -6
  103. package/dist/esm/DateTime.js.map +1 -1
  104. package/dist/esm/Duration.js +1 -4
  105. package/dist/esm/Duration.js.map +1 -1
  106. package/dist/esm/FiberHandle.js +0 -3
  107. package/dist/esm/FiberHandle.js.map +1 -1
  108. package/dist/esm/FiberMap.js +0 -3
  109. package/dist/esm/FiberMap.js.map +1 -1
  110. package/dist/esm/FiberSet.js +0 -3
  111. package/dist/esm/FiberSet.js.map +1 -1
  112. package/dist/esm/Inspectable.js +0 -14
  113. package/dist/esm/Inspectable.js.map +1 -1
  114. package/dist/esm/List.js +1 -7
  115. package/dist/esm/List.js.map +1 -1
  116. package/dist/esm/Micro.js +1 -7
  117. package/dist/esm/Micro.js.map +1 -1
  118. package/dist/esm/MutableHashMap.js +1 -4
  119. package/dist/esm/MutableHashMap.js.map +1 -1
  120. package/dist/esm/MutableHashSet.js +1 -4
  121. package/dist/esm/MutableHashSet.js.map +1 -1
  122. package/dist/esm/MutableList.js +1 -4
  123. package/dist/esm/MutableList.js.map +1 -1
  124. package/dist/esm/MutableQueue.js +1 -4
  125. package/dist/esm/MutableQueue.js.map +1 -1
  126. package/dist/esm/MutableRef.js +1 -4
  127. package/dist/esm/MutableRef.js.map +1 -1
  128. package/dist/esm/SortedMap.js +1 -4
  129. package/dist/esm/SortedMap.js.map +1 -1
  130. package/dist/esm/SortedSet.js +1 -4
  131. package/dist/esm/SortedSet.js.map +1 -1
  132. package/dist/esm/Stream.js.map +1 -1
  133. package/dist/esm/internal/cause.js +1 -4
  134. package/dist/esm/internal/cause.js.map +1 -1
  135. package/dist/esm/internal/context.js +1 -7
  136. package/dist/esm/internal/context.js.map +1 -1
  137. package/dist/esm/internal/core.js +1 -13
  138. package/dist/esm/internal/core.js.map +1 -1
  139. package/dist/esm/internal/doNotation.js.map +1 -1
  140. package/dist/esm/internal/fiberId.js +1 -10
  141. package/dist/esm/internal/fiberId.js.map +1 -1
  142. package/dist/esm/internal/hashMap.js +1 -4
  143. package/dist/esm/internal/hashMap.js.map +1 -1
  144. package/dist/esm/internal/hashSet.js +1 -4
  145. package/dist/esm/internal/hashSet.js.map +1 -1
  146. package/dist/esm/internal/mailbox.js +0 -3
  147. package/dist/esm/internal/mailbox.js.map +1 -1
  148. package/dist/esm/internal/option.js +1 -4
  149. package/dist/esm/internal/option.js.map +1 -1
  150. package/dist/esm/internal/redBlackTree.js +1 -4
  151. package/dist/esm/internal/redBlackTree.js.map +1 -1
  152. package/dist/esm/internal/runtime.js +0 -3
  153. package/dist/esm/internal/runtime.js.map +1 -1
  154. package/dist/esm/internal/trie.js +1 -4
  155. package/dist/esm/internal/trie.js.map +1 -1
  156. package/dist/esm/internal/version.js +1 -1
  157. package/package.json +1 -1
  158. package/src/Array.ts +4 -4
  159. package/src/BigDecimal.ts +1 -4
  160. package/src/Chunk.ts +1 -4
  161. package/src/Cron.ts +1 -4
  162. package/src/DateTime.ts +0 -6
  163. package/src/Duration.ts +1 -4
  164. package/src/Effect.ts +6 -6
  165. package/src/Either.ts +4 -4
  166. package/src/FiberHandle.ts +0 -3
  167. package/src/FiberMap.ts +0 -3
  168. package/src/FiberSet.ts +0 -3
  169. package/src/Inspectable.ts +0 -22
  170. package/src/List.ts +1 -7
  171. package/src/Micro.ts +5 -11
  172. package/src/MutableHashMap.ts +1 -4
  173. package/src/MutableHashSet.ts +1 -4
  174. package/src/MutableList.ts +1 -4
  175. package/src/MutableQueue.ts +1 -4
  176. package/src/MutableRef.ts +1 -4
  177. package/src/Option.ts +4 -4
  178. package/src/STM.ts +4 -4
  179. package/src/SortedMap.ts +1 -4
  180. package/src/SortedSet.ts +1 -4
  181. package/src/Stream.ts +10 -14
  182. package/src/internal/cause.ts +1 -4
  183. package/src/internal/context.ts +1 -7
  184. package/src/internal/core-effect.ts +4 -4
  185. package/src/internal/core.ts +1 -13
  186. package/src/internal/doNotation.ts +7 -6
  187. package/src/internal/fiberId.ts +1 -10
  188. package/src/internal/groupBy.ts +2 -2
  189. package/src/internal/hashMap.ts +1 -4
  190. package/src/internal/hashSet.ts +1 -4
  191. package/src/internal/mailbox.ts +0 -3
  192. package/src/internal/option.ts +1 -4
  193. package/src/internal/redBlackTree.ts +1 -4
  194. package/src/internal/runtime.ts +0 -3
  195. package/src/internal/stream.ts +4 -4
  196. package/src/internal/trie.ts +1 -4
  197. package/src/internal/version.ts +1 -1
package/src/Array.ts CHANGED
@@ -5643,7 +5643,7 @@ export const bind: {
5643
5643
  * @category do notation
5644
5644
  * @since 3.2.0
5645
5645
  */
5646
- <A extends object, N extends string, B>(tag: Exclude<N, keyof A>, f: (a: A) => ReadonlyArray<B>): (
5646
+ <A extends object, N extends string, B>(tag: Exclude<N, keyof A>, f: (a: NoInfer<A>) => ReadonlyArray<B>): (
5647
5647
  self: ReadonlyArray<A>
5648
5648
  ) => Array<{ [K in N | keyof A]: K extends keyof A ? A[K] : B }>
5649
5649
  /**
@@ -5692,7 +5692,7 @@ export const bind: {
5692
5692
  <A extends object, N extends string, B>(
5693
5693
  self: ReadonlyArray<A>,
5694
5694
  tag: Exclude<N, keyof A>,
5695
- f: (a: A) => ReadonlyArray<B>
5695
+ f: (a: NoInfer<A>) => ReadonlyArray<B>
5696
5696
  ): Array<{ [K in N | keyof A]: K extends keyof A ? A[K] : B }>
5697
5697
  } = doNotation.bind<ReadonlyArrayTypeLambda>(map, flatMap) as any
5698
5698
 
@@ -5833,12 +5833,12 @@ export const bindTo: {
5833
5833
  const let_: {
5834
5834
  <N extends string, B, A extends object>(
5835
5835
  tag: Exclude<N, keyof A>,
5836
- f: (a: A) => B
5836
+ f: (a: NoInfer<A>) => B
5837
5837
  ): (self: ReadonlyArray<A>) => Array<{ [K in N | keyof A]: K extends keyof A ? A[K] : B }>
5838
5838
  <N extends string, A extends object, B>(
5839
5839
  self: ReadonlyArray<A>,
5840
5840
  tag: Exclude<N, keyof A>,
5841
- f: (a: A) => B
5841
+ f: (a: NoInfer<A>) => B
5842
5842
  ): Array<{ [K in N | keyof A]: K extends keyof A ? A[K] : B }>
5843
5843
  } = doNotation.let_<ReadonlyArrayTypeLambda>(map) as any
5844
5844
 
package/src/BigDecimal.ts CHANGED
@@ -18,7 +18,7 @@ import * as Equal from "./Equal.js"
18
18
  import * as equivalence from "./Equivalence.js"
19
19
  import { dual, pipe } from "./Function.js"
20
20
  import * as Hash from "./Hash.js"
21
- import { DenoInspectSymbol, type Inspectable, NodeInspectSymbol } from "./Inspectable.js"
21
+ import { type Inspectable, NodeInspectSymbol } from "./Inspectable.js"
22
22
  import * as Option from "./Option.js"
23
23
  import * as order from "./Order.js"
24
24
  import type { Ordering } from "./Ordering.js"
@@ -74,9 +74,6 @@ const BigDecimalProto: Omit<BigDecimal, "value" | "scale" | "normalized"> = {
74
74
  scale: this.scale
75
75
  }
76
76
  },
77
- [DenoInspectSymbol](this: BigDecimal) {
78
- return this.toJSON()
79
- },
80
77
  [NodeInspectSymbol](this: BigDecimal) {
81
78
  return this.toJSON()
82
79
  },
package/src/Chunk.ts CHANGED
@@ -9,7 +9,7 @@ import * as Equivalence from "./Equivalence.js"
9
9
  import { dual, identity, pipe } from "./Function.js"
10
10
  import * as Hash from "./Hash.js"
11
11
  import type { TypeLambda } from "./HKT.js"
12
- import { DenoInspectSymbol, format, type Inspectable, NodeInspectSymbol, toJSON } from "./Inspectable.js"
12
+ import { format, type Inspectable, NodeInspectSymbol, toJSON } from "./Inspectable.js"
13
13
  import type { NonEmptyIterable } from "./NonEmptyIterable.js"
14
14
  import type { Option } from "./Option.js"
15
15
  import * as O from "./Option.js"
@@ -135,9 +135,6 @@ const ChunkProto: Omit<Chunk<unknown>, "backing" | "depth" | "left" | "length" |
135
135
  values: toReadonlyArray(this).map(toJSON)
136
136
  }
137
137
  },
138
- [DenoInspectSymbol]<A>(this: Chunk<A>) {
139
- return this.toJSON()
140
- },
141
138
  [NodeInspectSymbol]<A>(this: Chunk<A>) {
142
139
  return this.toJSON()
143
140
  },
package/src/Cron.ts CHANGED
@@ -7,7 +7,7 @@ import * as Equal from "./Equal.js"
7
7
  import * as equivalence from "./Equivalence.js"
8
8
  import { dual, pipe } from "./Function.js"
9
9
  import * as Hash from "./Hash.js"
10
- import { DenoInspectSymbol, format, type Inspectable, NodeInspectSymbol } from "./Inspectable.js"
10
+ import { format, type Inspectable, NodeInspectSymbol } from "./Inspectable.js"
11
11
  import * as N from "./Number.js"
12
12
  import { type Pipeable, pipeArguments } from "./Pipeable.js"
13
13
  import { hasProperty } from "./Predicate.js"
@@ -67,9 +67,6 @@ const CronProto: Omit<Cron, "minutes" | "hours" | "days" | "months" | "weekdays"
67
67
  weekdays: Arr.fromIterable(this.weekdays)
68
68
  }
69
69
  },
70
- [DenoInspectSymbol](this: Cron) {
71
- return this.toJSON()
72
- },
73
70
  [NodeInspectSymbol](this: Cron) {
74
71
  return this.toJSON()
75
72
  },
package/src/DateTime.ts CHANGED
@@ -230,9 +230,6 @@ const Proto = {
230
230
  pipe() {
231
231
  return pipeArguments(this, arguments)
232
232
  },
233
- [Inspectable.DenoInspectSymbol](this: DateTime) {
234
- return this.toString()
235
- },
236
233
  [Inspectable.NodeInspectSymbol](this: DateTime) {
237
234
  return this.toString()
238
235
  },
@@ -276,9 +273,6 @@ const ProtoZoned = {
276
273
 
277
274
  const ProtoTimeZone = {
278
275
  [TimeZoneTypeId]: TimeZoneTypeId,
279
- [Inspectable.DenoInspectSymbol](this: TimeZone) {
280
- return this.toString()
281
- },
282
276
  [Inspectable.NodeInspectSymbol](this: TimeZone) {
283
277
  return this.toString()
284
278
  }
package/src/Duration.ts CHANGED
@@ -6,7 +6,7 @@ import type * as equivalence from "./Equivalence.js"
6
6
  import { dual } from "./Function.js"
7
7
  import * as Hash from "./Hash.js"
8
8
  import type { Inspectable } from "./Inspectable.js"
9
- import { DenoInspectSymbol, NodeInspectSymbol } from "./Inspectable.js"
9
+ import { NodeInspectSymbol } from "./Inspectable.js"
10
10
  import * as Option from "./Option.js"
11
11
  import * as order from "./Order.js"
12
12
  import type { Pipeable } from "./Pipeable.js"
@@ -160,9 +160,6 @@ const DurationProto: Omit<Duration, "value"> = {
160
160
  return { _id: "Duration", _tag: "Infinity" }
161
161
  }
162
162
  },
163
- [DenoInspectSymbol]() {
164
- return this.toJSON()
165
- },
166
163
  [NodeInspectSymbol]() {
167
164
  return this.toJSON()
168
165
  },
package/src/Effect.ts CHANGED
@@ -5307,7 +5307,7 @@ export const bind: {
5307
5307
  */
5308
5308
  <N extends string, A extends object, B, E2, R2>(
5309
5309
  name: Exclude<N, keyof A>,
5310
- f: (a: A) => Effect<B, E2, R2>
5310
+ f: (a: NoInfer<A>) => Effect<B, E2, R2>
5311
5311
  ): <E1, R1>(self: Effect<A, E1, R1>) => Effect<{ [K in N | keyof A]: K extends keyof A ? A[K] : B }, E2 | E1, R2 | R1>
5312
5312
  /**
5313
5313
  * The "do simulation" in Effect allows you to write code in a more declarative style, similar to the "do notation" in other programming languages. It provides a way to define variables and perform operations on them using functions like `bind` and `let`.
@@ -5340,7 +5340,7 @@ export const bind: {
5340
5340
  <A extends object, N extends string, E1, R1, B, E2, R2>(
5341
5341
  self: Effect<A, E1, R1>,
5342
5342
  name: Exclude<N, keyof A>,
5343
- f: (a: A) => Effect<B, E2, R2>
5343
+ f: (a: NoInfer<A>) => Effect<B, E2, R2>
5344
5344
  ): Effect<{ [K in N | keyof A]: K extends keyof A ? A[K] : B }, E1 | E2, R1 | R2>
5345
5345
  } = effect.bind
5346
5346
 
@@ -5397,7 +5397,7 @@ export const bindAll: {
5397
5397
  readonly concurrentFinalizers?: boolean | undefined
5398
5398
  }
5399
5399
  >(
5400
- f: (a: A) => [Extract<keyof X, keyof A>] extends [never] ? X : `Duplicate keys`,
5400
+ f: (a: NoInfer<A>) => [Extract<keyof X, keyof A>] extends [never] ? X : `Duplicate keys`,
5401
5401
  options?: undefined | O
5402
5402
  ): <E1, R1>(
5403
5403
  self: Effect<A, E1, R1>
@@ -5442,7 +5442,7 @@ export const bindAll: {
5442
5442
  R1
5443
5443
  >(
5444
5444
  self: Effect<A, E1, R1>,
5445
- f: (a: A) => [Extract<keyof X, keyof A>] extends [never] ? X : `Duplicate keys`,
5445
+ f: (a: NoInfer<A>) => [Extract<keyof X, keyof A>] extends [never] ? X : `Duplicate keys`,
5446
5446
  options?: undefined | {
5447
5447
  readonly concurrency?: Concurrency | undefined
5448
5448
  readonly batching?: boolean | "inherit" | undefined
@@ -5550,12 +5550,12 @@ export const bindTo: {
5550
5550
  const let_: {
5551
5551
  <N extends string, A extends object, B>(
5552
5552
  name: Exclude<N, keyof A>,
5553
- f: (a: A) => B
5553
+ f: (a: NoInfer<A>) => B
5554
5554
  ): <E, R>(self: Effect<A, E, R>) => Effect<{ [K in N | keyof A]: K extends keyof A ? A[K] : B }, E, R>
5555
5555
  <A extends object, N extends string, E, R, B>(
5556
5556
  self: Effect<A, E, R>,
5557
5557
  name: Exclude<N, keyof A>,
5558
- f: (a: A) => B
5558
+ f: (a: NoInfer<A>) => B
5559
5559
  ): Effect<{ [K in N | keyof A]: K extends keyof A ? A[K] : B }, E, R>
5560
5560
  } = effect.let_
5561
5561
 
package/src/Either.ts CHANGED
@@ -1383,7 +1383,7 @@ export const bind: {
1383
1383
  */
1384
1384
  <N extends string, A extends object, B, L2>(
1385
1385
  name: Exclude<N, keyof A>,
1386
- f: (a: A) => Either<B, L2>
1386
+ f: (a: NoInfer<A>) => Either<B, L2>
1387
1387
  ): <L1>(self: Either<A, L1>) => Either<{ [K in N | keyof A]: K extends keyof A ? A[K] : B }, L1 | L2>
1388
1388
  /**
1389
1389
  * The "do simulation" in Effect allows you to write code in a more declarative style, similar to the "do notation" in other programming languages. It provides a way to define variables and perform operations on them using functions like `bind` and `let`.
@@ -1416,7 +1416,7 @@ export const bind: {
1416
1416
  <A extends object, L1, N extends string, B, L2>(
1417
1417
  self: Either<A, L1>,
1418
1418
  name: Exclude<N, keyof A>,
1419
- f: (a: A) => Either<B, L2>
1419
+ f: (a: NoInfer<A>) => Either<B, L2>
1420
1420
  ): Either<{ [K in N | keyof A]: K extends keyof A ? A[K] : B }, L1 | L2>
1421
1421
  } = doNotation.bind<EitherTypeLambda>(map, flatMap)
1422
1422
 
@@ -1512,12 +1512,12 @@ export const bindTo: {
1512
1512
  const let_: {
1513
1513
  <N extends string, R extends object, B>(
1514
1514
  name: Exclude<N, keyof R>,
1515
- f: (r: R) => B
1515
+ f: (r: NoInfer<R>) => B
1516
1516
  ): <L>(self: Either<R, L>) => Either<{ [K in N | keyof R]: K extends keyof R ? R[K] : B }, L>
1517
1517
  <R extends object, L, N extends string, B>(
1518
1518
  self: Either<R, L>,
1519
1519
  name: Exclude<N, keyof R>,
1520
- f: (r: R) => B
1520
+ f: (r: NoInfer<R>) => B
1521
1521
  ): Either<{ [K in N | keyof R]: K extends keyof R ? R[K] : B }, L>
1522
1522
  } = doNotation.let_<EitherTypeLambda>(map)
1523
1523
 
@@ -64,9 +64,6 @@ const Proto = {
64
64
  state: this.state
65
65
  }
66
66
  },
67
- [Inspectable.DenoInspectSymbol](this: FiberHandle) {
68
- return this.toJSON()
69
- },
70
67
  [Inspectable.NodeInspectSymbol](this: FiberHandle) {
71
68
  return this.toJSON()
72
69
  },
package/src/FiberMap.ts CHANGED
@@ -74,9 +74,6 @@ const Proto = {
74
74
  state: this.state
75
75
  }
76
76
  },
77
- [Inspectable.DenoInspectSymbol](this: FiberMap<unknown>) {
78
- return this.toJSON()
79
- },
80
77
  [Inspectable.NodeInspectSymbol](this: FiberMap<unknown>) {
81
78
  return this.toJSON()
82
79
  },
package/src/FiberSet.ts CHANGED
@@ -72,9 +72,6 @@ const Proto = {
72
72
  state: this.state
73
73
  }
74
74
  },
75
- [Inspectable.DenoInspectSymbol](this: FiberSet<unknown, unknown>) {
76
- return this.toJSON()
77
- },
78
75
  [Inspectable.NodeInspectSymbol](this: FiberSet<unknown, unknown>) {
79
76
  return this.toJSON()
80
77
  },
@@ -16,18 +16,6 @@ export const NodeInspectSymbol = Symbol.for("nodejs.util.inspect.custom")
16
16
  */
17
17
  export type NodeInspectSymbol = typeof NodeInspectSymbol
18
18
 
19
- /**
20
- * @since 3.9.0
21
- * @category symbols
22
- */
23
- export const DenoInspectSymbol = Symbol.for("Deno.customInspect")
24
-
25
- /**
26
- * @since 3.9.0
27
- * @category symbols
28
- */
29
- export type DenoInspectSymbol = typeof DenoInspectSymbol
30
-
31
19
  /**
32
20
  * @since 2.0.0
33
21
  * @category models
@@ -36,7 +24,6 @@ export interface Inspectable {
36
24
  toString(): string
37
25
  toJSON(): unknown
38
26
  [NodeInspectSymbol](): unknown
39
- [DenoInspectSymbol](): unknown
40
27
  }
41
28
 
42
29
  /**
@@ -69,9 +56,6 @@ export const BaseProto: Inspectable = {
69
56
  [NodeInspectSymbol]() {
70
57
  return this.toJSON()
71
58
  },
72
- [DenoInspectSymbol]() {
73
- return this.toJSON()
74
- },
75
59
  toString() {
76
60
  return format(this.toJSON())
77
61
  }
@@ -91,12 +75,6 @@ export abstract class Class {
91
75
  [NodeInspectSymbol]() {
92
76
  return this.toJSON()
93
77
  }
94
- /**
95
- * @since 3.9.0
96
- */
97
- [DenoInspectSymbol]() {
98
- return this.toJSON()
99
- }
100
78
  /**
101
79
  * @since 2.0.0
102
80
  */
package/src/List.ts CHANGED
@@ -28,7 +28,7 @@ import * as Equal from "./Equal.js"
28
28
  import * as Equivalence from "./Equivalence.js"
29
29
  import { dual, identity, unsafeCoerce } from "./Function.js"
30
30
  import * as Hash from "./Hash.js"
31
- import { DenoInspectSymbol, format, type Inspectable, NodeInspectSymbol, toJSON } from "./Inspectable.js"
31
+ import { format, type Inspectable, NodeInspectSymbol, toJSON } from "./Inspectable.js"
32
32
  import type { nonEmpty, NonEmptyIterable } from "./NonEmptyIterable.js"
33
33
  import * as Option from "./Option.js"
34
34
  import type { Pipeable } from "./Pipeable.js"
@@ -110,9 +110,6 @@ const ConsProto: Omit<Cons<unknown>, "head" | "tail" | typeof nonEmpty> = {
110
110
  values: toArray(this).map(toJSON)
111
111
  }
112
112
  },
113
- [DenoInspectSymbol]() {
114
- return this.toJSON()
115
- },
116
113
  [NodeInspectSymbol]() {
117
114
  return this.toJSON()
118
115
  },
@@ -179,9 +176,6 @@ const NilProto: Nil<unknown> = {
179
176
  _tag: "Nil"
180
177
  }
181
178
  },
182
- [DenoInspectSymbol]() {
183
- return this.toJSON()
184
- },
185
179
  [NodeInspectSymbol]() {
186
180
  return this.toJSON()
187
181
  },
package/src/Micro.ts CHANGED
@@ -13,7 +13,7 @@ import { constTrue, constVoid, dual, identity, type LazyArg } from "./Function.j
13
13
  import { globalValue } from "./GlobalValue.js"
14
14
  import type { TypeLambda } from "./HKT.js"
15
15
  import type { Inspectable } from "./Inspectable.js"
16
- import { DenoInspectSymbol, NodeInspectSymbol, toStringUnknown } from "./Inspectable.js"
16
+ import { NodeInspectSymbol, toStringUnknown } from "./Inspectable.js"
17
17
  import * as doNotation from "./internal/doNotation.js"
18
18
  import { StructuralPrototype } from "./internal/effectable.js"
19
19
  import { SingleShotGen } from "./internal/singleShotGen.js"
@@ -323,9 +323,6 @@ abstract class MicroCauseImpl<Tag extends string, E> extends globalThis.Error im
323
323
  toString() {
324
324
  return this.stack
325
325
  }
326
- [DenoInspectSymbol]() {
327
- return this.stack
328
- }
329
326
  [NodeInspectSymbol]() {
330
327
  return this.stack
331
328
  }
@@ -4794,7 +4791,7 @@ export const bind: {
4794
4791
  */
4795
4792
  <N extends string, A extends Record<string, any>, B, E2, R2>(
4796
4793
  name: N,
4797
- f: (a: A) => Micro<B, E2, R2>
4794
+ f: (a: NoInfer<A>) => Micro<B, E2, R2>
4798
4795
  ): <E, R>(self: Micro<A, E, R>) => Micro<Simplify<Omit<A, N> & { [K in N]: B }>, E | E2, R | R2>
4799
4796
  /**
4800
4797
  * Bind the success value of this `Micro` effect to the provided name.
@@ -4806,19 +4803,19 @@ export const bind: {
4806
4803
  <A extends Record<string, any>, E, R, B, E2, R2, N extends string>(
4807
4804
  self: Micro<A, E, R>,
4808
4805
  name: N,
4809
- f: (a: A) => Micro<B, E2, R2>
4806
+ f: (a: NoInfer<A>) => Micro<B, E2, R2>
4810
4807
  ): Micro<Simplify<Omit<A, N> & { [K in N]: B }>, E | E2, R | R2>
4811
4808
  } = doNotation.bind<MicroTypeLambda>(map, flatMap)
4812
4809
 
4813
4810
  const let_: {
4814
4811
  <N extends string, A extends Record<string, any>, B>(
4815
4812
  name: N,
4816
- f: (a: A) => B
4813
+ f: (a: NoInfer<A>) => B
4817
4814
  ): <E, R>(self: Micro<A, E, R>) => Micro<Simplify<Omit<A, N> & { [K in N]: B }>, E, R>
4818
4815
  <A extends Record<string, any>, E, R, B, N extends string>(
4819
4816
  self: Micro<A, E, R>,
4820
4817
  name: N,
4821
- f: (a: A) => B
4818
+ f: (a: NoInfer<A>) => B
4822
4819
  ): Micro<Simplify<Omit<A, N> & { [K in N]: B }>, E, R>
4823
4820
  } = doNotation.let_<MicroTypeLambda>(map)
4824
4821
 
@@ -5256,9 +5253,6 @@ const YieldableError: new(message?: string) => YieldableError = (function() {
5256
5253
  toJSON() {
5257
5254
  return { ...this }
5258
5255
  }
5259
- [DenoInspectSymbol](): string {
5260
- return this[NodeInspectSymbol]()
5261
- }
5262
5256
  [NodeInspectSymbol](): string {
5263
5257
  const stack = this.stack
5264
5258
  if (stack) {
@@ -5,7 +5,7 @@ import type { NonEmptyArray } from "./Array.js"
5
5
  import * as Equal from "./Equal.js"
6
6
  import { dual } from "./Function.js"
7
7
  import * as Hash from "./Hash.js"
8
- import { DenoInspectSymbol, format, type Inspectable, NodeInspectSymbol, toJSON } from "./Inspectable.js"
8
+ import { format, type Inspectable, NodeInspectSymbol, toJSON } from "./Inspectable.js"
9
9
  import * as Option from "./Option.js"
10
10
  import type { Pipeable } from "./Pipeable.js"
11
11
  import { pipeArguments } from "./Pipeable.js"
@@ -46,9 +46,6 @@ const MutableHashMapProto: Omit<MutableHashMap<unknown, unknown>, "referential"
46
46
  values: Array.from(this).map(toJSON)
47
47
  }
48
48
  },
49
- [DenoInspectSymbol]() {
50
- return this.toJSON()
51
- },
52
49
  [NodeInspectSymbol]() {
53
50
  return this.toJSON()
54
51
  },
@@ -2,7 +2,7 @@
2
2
  * @since 2.0.0
3
3
  */
4
4
  import * as Dual from "./Function.js"
5
- import { DenoInspectSymbol, format, type Inspectable, NodeInspectSymbol, toJSON } from "./Inspectable.js"
5
+ import { format, type Inspectable, NodeInspectSymbol, toJSON } from "./Inspectable.js"
6
6
  import * as MutableHashMap from "./MutableHashMap.js"
7
7
  import type { Pipeable } from "./Pipeable.js"
8
8
  import { pipeArguments } from "./Pipeable.js"
@@ -40,9 +40,6 @@ const MutableHashSetProto: Omit<MutableHashSet<unknown>, "keyMap"> = {
40
40
  values: Array.from(this).map(toJSON)
41
41
  }
42
42
  },
43
- [DenoInspectSymbol]() {
44
- return this.toJSON()
45
- },
46
43
  [NodeInspectSymbol]() {
47
44
  return this.toJSON()
48
45
  },
@@ -2,7 +2,7 @@
2
2
  * @since 2.0.0
3
3
  */
4
4
  import * as Dual from "./Function.js"
5
- import { DenoInspectSymbol, format, NodeInspectSymbol, toJSON } from "./Inspectable.js"
5
+ import { format, NodeInspectSymbol, toJSON } from "./Inspectable.js"
6
6
  import type { Inspectable } from "./Inspectable.js"
7
7
  import type { Pipeable } from "./Pipeable.js"
8
8
  import { pipeArguments } from "./Pipeable.js"
@@ -63,9 +63,6 @@ const MutableListProto: Omit<MutableList<unknown>, "head" | "tail"> = {
63
63
  values: Array.from(this).map(toJSON)
64
64
  }
65
65
  },
66
- [DenoInspectSymbol]() {
67
- return this.toJSON()
68
- },
69
66
  [NodeInspectSymbol]() {
70
67
  return this.toJSON()
71
68
  },
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import * as Chunk from "./Chunk.js"
5
5
  import * as Dual from "./Function.js"
6
- import { DenoInspectSymbol, format, type Inspectable, NodeInspectSymbol, toJSON } from "./Inspectable.js"
6
+ import { format, type Inspectable, NodeInspectSymbol, toJSON } from "./Inspectable.js"
7
7
  import * as MutableList from "./MutableList.js"
8
8
  import type { Pipeable } from "./Pipeable.js"
9
9
  import { pipeArguments } from "./Pipeable.js"
@@ -59,9 +59,6 @@ const MutableQueueProto: Omit<MutableQueue<unknown>, "queue" | "capacity"> = {
59
59
  values: Array.from(this).map(toJSON)
60
60
  }
61
61
  },
62
- [DenoInspectSymbol]() {
63
- return this.toJSON()
64
- },
65
62
  [NodeInspectSymbol]() {
66
63
  return this.toJSON()
67
64
  },
package/src/MutableRef.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import * as Equal from "./Equal.js"
5
5
  import * as Dual from "./Function.js"
6
- import { DenoInspectSymbol, format, type Inspectable, NodeInspectSymbol, toJSON } from "./Inspectable.js"
6
+ import { format, type Inspectable, NodeInspectSymbol, toJSON } from "./Inspectable.js"
7
7
  import type { Pipeable } from "./Pipeable.js"
8
8
  import { pipeArguments } from "./Pipeable.js"
9
9
 
@@ -37,9 +37,6 @@ const MutableRefProto: Omit<MutableRef<unknown>, "current"> = {
37
37
  current: toJSON(this.current)
38
38
  }
39
39
  },
40
- [DenoInspectSymbol]() {
41
- return this.toJSON()
42
- },
43
40
  [NodeInspectSymbol]() {
44
41
  return this.toJSON()
45
42
  },
package/src/Option.ts CHANGED
@@ -2199,12 +2199,12 @@ export const bindTo: {
2199
2199
  const let_: {
2200
2200
  <N extends string, A extends object, B>(
2201
2201
  name: Exclude<N, keyof A>,
2202
- f: (a: A) => B
2202
+ f: (a: NoInfer<A>) => B
2203
2203
  ): (self: Option<A>) => Option<{ [K in N | keyof A]: K extends keyof A ? A[K] : B }>
2204
2204
  <A extends object, N extends string, B>(
2205
2205
  self: Option<A>,
2206
2206
  name: Exclude<N, keyof A>,
2207
- f: (a: A) => B
2207
+ f: (a: NoInfer<A>) => B
2208
2208
  ): Option<{ [K in N | keyof A]: K extends keyof A ? A[K] : B }>
2209
2209
  } = doNotation.let_<OptionTypeLambda>(map)
2210
2210
 
@@ -2305,7 +2305,7 @@ export const bind: {
2305
2305
  */
2306
2306
  <N extends string, A extends object, B>(
2307
2307
  name: Exclude<N, keyof A>,
2308
- f: (a: A) => Option<B>
2308
+ f: (a: NoInfer<A>) => Option<B>
2309
2309
  ): (self: Option<A>) => Option<{ [K in N | keyof A]: K extends keyof A ? A[K] : B }>
2310
2310
  /**
2311
2311
  * The "do simulation" in Effect allows you to write code in a more declarative style, similar to the "do notation" in other programming languages. It provides a way to define variables and perform operations on them using functions like `bind` and `let`.
@@ -2340,7 +2340,7 @@ export const bind: {
2340
2340
  <A extends object, N extends string, B>(
2341
2341
  self: Option<A>,
2342
2342
  name: Exclude<N, keyof A>,
2343
- f: (a: A) => Option<B>
2343
+ f: (a: NoInfer<A>) => Option<B>
2344
2344
  ): Option<{ [K in N | keyof A]: K extends keyof A ? A[K] : B }>
2345
2345
  } = doNotation.bind<OptionTypeLambda>(map, flatMap)
2346
2346
 
package/src/STM.ts CHANGED
@@ -3094,7 +3094,7 @@ export const bind: {
3094
3094
  */
3095
3095
  <N extends string, K, A, E2, R2>(
3096
3096
  tag: Exclude<N, keyof K>,
3097
- f: (_: K) => STM<A, E2, R2>
3097
+ f: (_: NoInfer<K>) => STM<A, E2, R2>
3098
3098
  ): <E, R>(self: STM<K, E, R>) => STM<MergeRecord<K, { [k in N]: A }>, E2 | E, R2 | R>
3099
3099
  /**
3100
3100
  * @category do notation
@@ -3103,19 +3103,19 @@ export const bind: {
3103
3103
  <K, E, R, N extends string, A, E2, R2>(
3104
3104
  self: STM<K, E, R>,
3105
3105
  tag: Exclude<N, keyof K>,
3106
- f: (_: K) => STM<A, E2, R2>
3106
+ f: (_: NoInfer<K>) => STM<A, E2, R2>
3107
3107
  ): STM<MergeRecord<K, { [k in N]: A }>, E | E2, R | R2>
3108
3108
  } = stm.bind
3109
3109
 
3110
3110
  const let_: {
3111
3111
  <N extends string, K, A>(
3112
3112
  tag: Exclude<N, keyof K>,
3113
- f: (_: K) => A
3113
+ f: (_: NoInfer<K>) => A
3114
3114
  ): <E, R>(self: STM<K, E, R>) => STM<MergeRecord<K, { [k in N]: A }>, E, R>
3115
3115
  <K, E, R, N extends string, A>(
3116
3116
  self: STM<K, E, R>,
3117
3117
  tag: Exclude<N, keyof K>,
3118
- f: (_: K) => A
3118
+ f: (_: NoInfer<K>) => A
3119
3119
  ): STM<MergeRecord<K, { [k in N]: A }>, E, R>
3120
3120
  } = stm.let_
3121
3121
 
package/src/SortedMap.ts CHANGED
@@ -5,7 +5,7 @@ import * as Equal from "./Equal.js"
5
5
  import * as Dual from "./Function.js"
6
6
  import { pipe } from "./Function.js"
7
7
  import * as Hash from "./Hash.js"
8
- import { DenoInspectSymbol, format, type Inspectable, NodeInspectSymbol, toJSON } from "./Inspectable.js"
8
+ import { format, type Inspectable, NodeInspectSymbol, toJSON } from "./Inspectable.js"
9
9
  import * as Option from "./Option.js"
10
10
  import type { Order } from "./Order.js"
11
11
  import type { Pipeable } from "./Pipeable.js"
@@ -62,9 +62,6 @@ const SortedMapProto: Omit<SortedMap<unknown, unknown>, "tree"> = {
62
62
  values: Array.from(this).map(toJSON)
63
63
  }
64
64
  },
65
- [DenoInspectSymbol]() {
66
- return this.toJSON()
67
- },
68
65
  [NodeInspectSymbol]() {
69
66
  return this.toJSON()
70
67
  },
package/src/SortedSet.ts CHANGED
@@ -7,7 +7,7 @@ import * as Dual from "./Function.js"
7
7
  import { pipe } from "./Function.js"
8
8
  import * as Hash from "./Hash.js"
9
9
  import type { Inspectable } from "./Inspectable.js"
10
- import { DenoInspectSymbol, format, NodeInspectSymbol, toJSON } from "./Inspectable.js"
10
+ import { format, NodeInspectSymbol, toJSON } from "./Inspectable.js"
11
11
  import type { Order } from "./Order.js"
12
12
  import type { Pipeable } from "./Pipeable.js"
13
13
  import { pipeArguments } from "./Pipeable.js"
@@ -62,9 +62,6 @@ const SortedSetProto: Omit<SortedSet<unknown>, "keyTree"> = {
62
62
  values: Array.from(this).map(toJSON)
63
63
  }
64
64
  },
65
- [DenoInspectSymbol]() {
66
- return this.toJSON()
67
- },
68
65
  [NodeInspectSymbol]() {
69
66
  return this.toJSON()
70
67
  },
package/src/Stream.ts CHANGED
@@ -10819,7 +10819,7 @@ export const bind: {
10819
10819
  */
10820
10820
  <N extends string, A, B, E2, R2>(
10821
10821
  tag: Exclude<N, keyof A>,
10822
- f: (_: A) => Stream<B, E2, R2>,
10822
+ f: (_: NoInfer<A>) => Stream<B, E2, R2>,
10823
10823
  options?:
10824
10824
  | { readonly concurrency?: number | "unbounded" | undefined; readonly bufferSize?: number | undefined }
10825
10825
  | undefined
@@ -10856,7 +10856,7 @@ export const bind: {
10856
10856
  <A, E, R, N extends string, B, E2, R2>(
10857
10857
  self: Stream<A, E, R>,
10858
10858
  tag: Exclude<N, keyof A>,
10859
- f: (_: A) => Stream<B, E2, R2>,
10859
+ f: (_: NoInfer<A>) => Stream<B, E2, R2>,
10860
10860
  options?:
10861
10861
  | { readonly concurrency?: number | "unbounded" | undefined; readonly bufferSize?: number | undefined }
10862
10862
  | undefined
@@ -10888,11 +10888,9 @@ export const bindEffect: {
10888
10888
  */
10889
10889
  <N extends string, A, B, E2, R2>(
10890
10890
  tag: Exclude<N, keyof A>,
10891
- f: (_: A) => Effect.Effect<B, E2, R2>,
10892
- options?:
10893
- | { readonly concurrency?: number | "unbounded" | undefined; readonly bufferSize?: number | undefined }
10894
- | undefined
10895
- ): <E, R>(self: Stream<A, E, R>) => Stream<{ [K in N | keyof A]: K extends keyof A ? A[K] : B }, E2 | E, R2 | R>
10891
+ f: (_: NoInfer<A>) => Effect.Effect<B, E2, R2>,
10892
+ options?: { readonly concurrency?: number | "unbounded" | undefined; readonly bufferSize?: number | undefined }
10893
+ ): <E, R>(self: Stream<A, E, R>) => Stream<{ [K in keyof A | N]: K extends keyof A ? A[K] : B }, E | E2, R | R2>
10896
10894
  /**
10897
10895
  * Binds an effectful value in a `do` scope
10898
10896
  *
@@ -10907,11 +10905,9 @@ export const bindEffect: {
10907
10905
  <A, E, R, N extends string, B, E2, R2>(
10908
10906
  self: Stream<A, E, R>,
10909
10907
  tag: Exclude<N, keyof A>,
10910
- f: (_: A) => Effect.Effect<B, E2, R2>,
10911
- options?:
10912
- | { readonly concurrency?: number | "unbounded" | undefined; readonly unordered?: boolean | undefined }
10913
- | undefined
10914
- ): Stream<{ [K in N | keyof A]: K extends keyof A ? A[K] : B }, E | E2, R | R2>
10908
+ f: (_: NoInfer<A>) => Effect.Effect<B, E2, R2>,
10909
+ options?: { readonly concurrency?: number | "unbounded" | undefined; readonly unordered?: boolean | undefined }
10910
+ ): Stream<{ [K in keyof A | N]: K extends keyof A ? A[K] : B }, E | E2, R | R2>
10915
10911
  } = _groupBy.bindEffect
10916
10912
 
10917
10913
  /**
@@ -11009,12 +11005,12 @@ export const bindTo: {
11009
11005
  const let_: {
11010
11006
  <N extends string, A extends object, B>(
11011
11007
  name: Exclude<N, keyof A>,
11012
- f: (a: A) => B
11008
+ f: (a: NoInfer<A>) => B
11013
11009
  ): <E, R>(self: Stream<A, E, R>) => Stream<{ [K in N | keyof A]: K extends keyof A ? A[K] : B }, E, R>
11014
11010
  <A extends object, E, R, N extends string, B>(
11015
11011
  self: Stream<A, E, R>,
11016
11012
  name: Exclude<N, keyof A>,
11017
- f: (a: A) => B
11013
+ f: (a: NoInfer<A>) => B
11018
11014
  ): Stream<{ [K in N | keyof A]: K extends keyof A ? A[K] : B }, E, R>
11019
11015
  } = internal.let_
11020
11016