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

Testing 0.13.0 #276

Merged
merged 2 commits into from
Apr 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Loading