Skip to content

Commit

Permalink
0.13.0
Browse files Browse the repository at this point in the history
.

.
  • Loading branch information
lihaoyi committed Apr 15, 2024
1 parent 679d3fd commit 556a3fb
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 10 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import mill.scalalib.api.ZincWorkerUtil.isScala3

val dottyVersions = sys.props.get("dottyVersion").toList

val scalaVersions = List("2.12.17", "2.13.10", "3.3.1") ++ dottyVersions
val scalaVersions = List("2.12.18", "2.13.13", "3.3.1") ++ dottyVersions

trait ScalatagsPublishModule extends CrossScalaModule with PublishModule with PlatformScalaModule with Mima{
def ivyDeps = Agg(
Expand Down Expand Up @@ -93,7 +93,7 @@ object scalatags extends Module {

object test extends ScalaJSTests with CommonTestModule{
def ivyDeps = super.ivyDeps() ++ Agg(ivy"org.scala-js::scalajs-env-jsdom-nodejs:1.1.0").map(_.withDottyCompat(crossScalaVersion))
def jsEnvConfig = mill.scalajslib.api.JsEnvConfig.JsDom()
override def jsEnvConfig = mill.scalajslib.api.JsEnvConfig.JsDom()
}
}

Expand Down
2 changes: 1 addition & 1 deletion project/Constants.scala
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package scalatags
object Constants{
val version = "0.9.4"
val version = "0.13.0"
}
14 changes: 13 additions & 1 deletion readme/Readme.scalatex
Original file line number Diff line number Diff line change
Expand Up @@ -1103,14 +1103,26 @@

@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
@li
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
Expand Down
5 changes: 2 additions & 3 deletions scalatags/test/src/scalatags/generic/BasicTests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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"){
Expand Down

0 comments on commit 556a3fb

Please sign in to comment.