You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _posts/news/2022-04-04-announcing-scalajs-1.10.0.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,7 @@ This means that code that was previously calling `java.util.UUID.randomUUID()` w
61
61
To preserve binary compatibility, we introduce two variants of a library that provides `java.security.SecureRandom`:
62
62
63
63
*[`scalajs-java-securerandom`](https://github.com/scala-js/scala-js-java-securerandom) provides a *correct*, cryptographically secure implementation of `java.security.SecureRandom`, but relies on the Node.js `crypto` module or the Web Crypto API `crypto.getRandomValues` to be available (e.g., in browsers).
64
-
*[`scalajs-fake-insecure-securerandom`](https://github.com/scala-js/scala-js-fake-insecure-securerandom) is a fake, *insecure* implementation that works in any ECMAScript environment. The only reason this exists is to unblock migration from Scala.js 1.9.x and earlier, in situations that require `randomUUID()` and can accept that they will be insecure.
64
+
*[`scalajs-fake-insecure-java-securerandom`](https://github.com/scala-js/scala-js-fake-insecure-java-securerandom) is a fake, *insecure* implementation that works in any ECMAScript environment. The only reason this exists is to unblock migration from Scala.js 1.9.x and earlier, in situations that require `randomUUID()` and can accept that they will be insecure.
65
65
66
66
Due to the changes in the core library, you may encounter linking errors when upgrading to Scala.js 1.10.0, such as:
67
67
@@ -92,7 +92,7 @@ Find out if your environment provides a source of cryptographically secure pseud
92
92
If it does, you may want to use it to shim `crypto.getRandomValues`, and/or send a pull request to [`scalajs-java-securerandom`](https://github.com/scala-js/scala-js-java-securerandom).
93
93
Otherwise, replace calls to `randomUUID()` with another implementation, in a way that corresponds to your requirements in terms of security and collision likelihood.
94
94
95
-
If you have **no other choice**, depend on `scalajs-fake-insecure-securerandom` instead.
95
+
If you have **no other choice**, depend on `scalajs-fake-insecure-java-securerandom` instead.
96
96
As its name implies, this is an *insecure* implementation, and you should get rid of this dependency as soon as possible.
97
97
98
98
## New module split style: `SmallModulesFor(packages)`
0 commit comments