effect 3.19.7 → 3.19.9

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.
@@ -1,4 +1,4 @@
1
- let moduleVersion = "3.19.7";
1
+ let moduleVersion = "3.19.9";
2
2
  export const getCurrentVersion = () => moduleVersion;
3
3
  export const setCurrentVersion = version => {
4
4
  moduleVersion = version;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "effect",
3
- "version": "3.19.7",
3
+ "version": "3.19.9",
4
4
  "description": "The missing standard library for TypeScript, for writing production-grade software.",
5
5
  "license": "MIT",
6
6
  "repository": {
package/src/Array.ts CHANGED
@@ -4683,7 +4683,10 @@ export const intersectionWith = <A>(isEquivalent: (self: A, that: A) => boolean)
4683
4683
  const has = containsWith(isEquivalent)
4684
4684
  return dual(
4685
4685
  2,
4686
- (self: Iterable<A>, that: Iterable<A>): Array<A> => fromIterable(self).filter((a) => has(that, a))
4686
+ (self: Iterable<A>, that: Iterable<A>): Array<A> => {
4687
+ const bs = fromIterable(that)
4688
+ return fromIterable(self).filter((a) => has(bs, a))
4689
+ }
4687
4690
  )
4688
4691
  }
4689
4692
 
@@ -4761,7 +4764,10 @@ export const differenceWith = <A>(isEquivalent: (self: A, that: A) => boolean):
4761
4764
  const has = containsWith(isEquivalent)
4762
4765
  return dual(
4763
4766
  2,
4764
- (self: Iterable<A>, that: Iterable<A>): Array<A> => fromIterable(self).filter((a) => !has(that, a))
4767
+ (self: Iterable<A>, that: Iterable<A>): Array<A> => {
4768
+ const bs = fromIterable(that)
4769
+ return fromIterable(self).filter((a) => !has(bs, a))
4770
+ }
4765
4771
  )
4766
4772
  }
4767
4773
 
package/src/Schema.ts CHANGED
@@ -8369,7 +8369,7 @@ const bigDecimalPretty = (): pretty_.Pretty<bigDecimal_.BigDecimal> => (val) =>
8369
8369
  `BigDecimal(${bigDecimal_.format(bigDecimal_.normalize(val))})`
8370
8370
 
8371
8371
  const bigDecimalArbitrary = (): LazyArbitrary<bigDecimal_.BigDecimal> => (fc) =>
8372
- fc.tuple(fc.bigInt(), fc.integer({ min: 0, max: 18 }))
8372
+ fc.tuple(fc.bigInt(), fc.integer({ min: -18, max: 18 }))
8373
8373
  .map(([value, scale]) => bigDecimal_.make(value, scale))
8374
8374
 
8375
8375
  /**
@@ -1,4 +1,4 @@
1
- let moduleVersion = "3.19.7"
1
+ let moduleVersion = "3.19.9"
2
2
 
3
3
  export const getCurrentVersion = () => moduleVersion
4
4