-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #370 - Scala.js support is broken
Add - `scalajs-java-securerandom` to use `java.security.SecureRandom` for `java.util.UUID` - `scala-java-time` for `java.time` for Scala.js - a custom URL for Scala.js because there's no alternative to `java.net.URL` Also make some necessary changes including removing the code that won't be available in JavaScript. Fix the tests for JavaScript. There are some issues with `Long` and `BigInt` less than -9007199254740991L and greater than 9007199254740991L.
- Loading branch information
Showing
13 changed files
with
970 additions
and
476 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
...-circe/js/src/test/scala/refined4s/modules/circe/derivation/types/NumericTestValues.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package refined4s.modules.circe.derivation.types | ||
|
||
/** @author Kevin Lee | ||
* @since 2024-10-28 | ||
*/ | ||
trait NumericTestValues { | ||
|
||
/** From JavaScript's Number.MIN_SAFE_INTEGER | ||
*/ | ||
val MinLongValue: Long = -9007199254740991L | ||
|
||
/** From JavaScript's Number.MAX_SAFE_INTEGER | ||
*/ | ||
val MaxLongValue: Long = 9007199254740991L | ||
} |
9 changes: 9 additions & 0 deletions
9
...circe/jvm/src/test/scala/refined4s/modules/circe/derivation/types/NumericTestValues.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package refined4s.modules.circe.derivation.types | ||
|
||
/** @author Kevin Lee | ||
* @since 2024-10-28 | ||
*/ | ||
trait NumericTestValues { | ||
val MinLongValue: Long = Long.MinValue | ||
val MaxLongValue: Long = Long.MaxValue | ||
} |
Oops, something went wrong.