Skip to content

Commit

Permalink
Update sbt-scalajs, scalajs-compiler, ... to 1.18.2 (#1462)
Browse files Browse the repository at this point in the history
* Update sbt-scalajs, scalajs-compiler, ... to 1.18.2

* Give a try to the solution provided by @ghik here: scala-js/scala-js#5127 (comment)

---------

Co-authored-by: zio-scala-steward[bot] <145262613+zio-scala-steward[bot]@users.noreply.github.com>
Co-authored-by: Jules Ivanic <[email protected]>
  • Loading branch information
zio-scala-steward[bot] and guizmaii authored Feb 7, 2025
1 parent 586acba commit 655bd4a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package zio.prelude
object NewtypeSpecTypes212 {

object Palindrome extends Newtype[String] {
override def assertion = assertCustom { str =>
override def assertion = assertCustom { (str: String) =>
if (str.reverse == str) Right(()) else Left(AssertionError.Failure("isPalindrome"))
}
}
Expand Down
4 changes: 2 additions & 2 deletions macros/shared/src/main/scala-2/zio/prelude/Macros.scala
Original file line number Diff line number Diff line change
Expand Up @@ -198,12 +198,12 @@ new _root_.zio.prelude.QuotedAssertion[${c.weakTypeOf[A]}] {
val (_, _, codeString) = text(f)
q"""
new _root_.zio.prelude.QuotedAssertion[${c.weakTypeOf[A]}] {
@_root_.zio.prelude.assertionLambdaQuote($f)
@_root_.zio.prelude.assertionLambdaQuote(${c.untypecheck(f)})
@_root_.zio.prelude.assertionString($codeString)
def magic = 42

def run(value: ${c.weakTypeOf[A]}): _root_.scala.util.Either[_root_.zio.prelude.AssertionError, _root_.scala.Unit] =
$f(value)
${c.untypecheck(f)}(value)
}
"""
}
Expand Down
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ addSbtPlugin("com.typesafe" % "sbt-mima-plugin"
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.10.0")
addSbtPlugin("org.portable-scala" % "sbt-scala-native-crossproject" % "1.3.2")
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.3.2")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.17.0")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.18.2")
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.5.6")
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.6.3")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.4")
Expand Down

0 comments on commit 655bd4a

Please sign in to comment.