From 8259ebe945ff8b75d17a96352fec33d8dee8b495 Mon Sep 17 00:00:00 2001 From: Li Haoyi Date: Mon, 15 Apr 2024 09:02:39 +0800 Subject: [PATCH 1/2] 0.13.0 --- .github/workflows/actions.yml | 2 +- project/Constants.scala | 2 +- readme/Readme.scalatex | 14 +++++++++++++- .../test/src/scalatags/generic/BasicTests.scala | 5 ++--- 4 files changed, 17 insertions(+), 6 deletions(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 5812d2e6..2a5729b0 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -29,7 +29,7 @@ jobs: - name: Run tests run: | ./mill -i --disable-ticker __.resolvedIvyDeps - ./mill -i --disable-ticker -j 0 __.publishArtifacts __.test + ./mill -i --disable-ticker -j 0 __.publishArtifacts + __.test check-binary-compatibility: runs-on: ubuntu-latest diff --git a/project/Constants.scala b/project/Constants.scala index 356eb267..835aee50 100644 --- a/project/Constants.scala +++ b/project/Constants.scala @@ -1,4 +1,4 @@ package scalatags object Constants{ - val version = "0.9.4" + val version = "0.13.0" } diff --git a/readme/Readme.scalatex b/readme/Readme.scalatex index 53663896..0106e526 100644 --- a/readme/Readme.scalatex +++ b/readme/Readme.scalatex @@ -1103,7 +1103,7 @@ @def pr(s: Int) = a(s, href:="https://github.com/lihaoyi/scalatags/pull/"+s) @sect{Changelog} - @sect{0.10.0} + @sect{0.13.0} @ul @li Support for Scala Native 0.5.0 @@ -1111,6 +1111,18 @@ Dropped Scala 2.11.x support @li Minimum version of Scala 3 increased to 3.3.1 + @sect{0.11.0} + @ul + @li + Fix issue with refining of text tags + @sect{0.11.0} + @ul + @li + Support for Scala 3.x + @sect{0.10.0} + @ul + @li + Fix typo @hl.scala{lazy val mask = attr("mak")} @sect{0.9.3} @ul @li diff --git a/scalatags/test/src/scalatags/generic/BasicTests.scala b/scalatags/test/src/scalatags/generic/BasicTests.scala index bfe61b26..0ce9aacd 100644 --- a/scalatags/test/src/scalatags/generic/BasicTests.scala +++ b/scalatags/test/src/scalatags/generic/BasicTests.scala @@ -140,14 +140,13 @@ class BasicTests[Builder, Output <: FragT, FragT](omg: Bundle[Builder, Output, F ) } test("compileErrors"){ - def writeType(tpe: String) = if(BuildInfo.scalaMajorVersion == "3") s"($tpe)" else tpe test("niceErrorsForAttributes"){ val msg = compileError("""a(onclick := {() => "lol"})""").msg - assert(msg.contains(s"scalatags does not know how to use ${writeType("() => String")} as an attribute")) + assert(msg.contains(s"scalatags does not know how to use () => String as an attribute")) } test("niceErrorsForStyles"){ val msg = compileError("""a(opacity:= {() => "lol"})""").msg - assert(msg.contains(s"scalatags does not know how to use ${writeType("() => String")} as an style")) + assert(msg.contains(s"scalatags does not know how to use () => String as an style")) } } test("nulls"){ From 3a6b80c93990c7b01af8fd01860ee516c8ab5d3d Mon Sep 17 00:00:00 2001 From: Li Haoyi Date: Mon, 15 Apr 2024 09:14:34 +0800 Subject: [PATCH 2/2] . --- .github/workflows/actions.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 2a5729b0..d28d15d1 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -27,9 +27,7 @@ jobs: run: npm install - name: Run tests - run: | - ./mill -i --disable-ticker __.resolvedIvyDeps - ./mill -i --disable-ticker -j 0 __.publishArtifacts + __.test + run: ./mill -i __.publishArtifacts + __.test check-binary-compatibility: runs-on: ubuntu-latest