Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.2] Scala-JS UUID Fix #2118

Merged
merged 2 commits into from
Apr 16, 2022
Merged

Conversation

cheeseng
Copy link
Contributor

@cheeseng cheeseng commented Apr 7, 2022

This PR cherry-picked commits from #2117

which drop the use of UUID as it is an issue in the new scala-js 1.10 release. The alternative looks good and worked in test, binary compat wise should be fine as TestSortingReporter is a internal class that is not intended for third-party use.

Note after this is merged into 3.2.x-new branch we'll pull changes in 3.2 into main, which should automatically merge and close @sjrd 's PR #2117 .

Thanks.

sjrd added 2 commits April 6, 2022 22:37
`TestSortingReporter` itself is `private[scalatest]`, so we can
make that change. It makes it clear that they are not used
elsewhere in `scalatest`, and that we can therefore change them.
…tingReporter.

The UUIDs are only used as an in-memory identifier for `Slot`s.
It is more efficient and more reliable to use an object identity
instead, for that purpose.

This removes the dependency on `UUID.randomUUID()`, which unblocks
using ScalaTest with Scala.js >= 1.10.0. See
GHSA-j2f9-w8wh-9ww4
and
scala-js/scala-js#4657
for the reason why `randomUUID()` fails to link by default in
recent Scala.js.
@cla-bot cla-bot bot added the cla-signed label Apr 7, 2022
@bvenners bvenners merged commit b60d7bd into scalatest:3.2.x-new Apr 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants