Closed kevin-lee closed 1 week ago
Fix: Scala.js support is broken (#370)
To fix it, the following changes were made:
Added
scalajs-java-securerandom to use java.security.SecureRandom for java.util.UUID
scalajs-java-securerandom
java.security.SecureRandom
java.util.UUID
scala-java-time for java.time in Scala.js
scala-java-time
java.time
a custom URL implementation for Scala.js because there's no alternative to java.net.URL
java.net.URL
Made other necessary changes, including removing code unavailable in JavaScript.
Fixed the tests for JavaScript. There were issues with Long and BigInt values less than -9007199254740991L and greater than 9007199254740991L.
Long
BigInt
-9007199254740991L
9007199254740991L
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 100.00%. Comparing base (d0bdcfc) to head (8df85f7). Report is 1 commits behind head on main.
d0bdcfc
8df85f7
refined4s v1.0.0
1.0.0 - 2024-11-02
Breaking Change
Fix: Scala.js support is broken (#370)
To fix it, the following changes were made:
Added
scalajs-java-securerandom
to usejava.security.SecureRandom
forjava.util.UUID
scala-java-time
forjava.time
in Scala.jsa custom URL implementation for Scala.js because there's no alternative to
java.net.URL
Made other necessary changes, including removing code unavailable in JavaScript.
Fixed the tests for JavaScript. There were issues with
Long
andBigInt
values less than-9007199254740991L
and greater than9007199254740991L
.