mdoc v2.2.23
Crash blocks now support multiple statements
Previously, every statement within an mdoc:crash
code fence would be wrapped in individual try/catch meaning that you couldn't reference variables between statements. For example, the code fence below would fail to compile because x
from the statement 100 / x
was undefined.
```scala mdoc:crash
val x = 0
100 / x
```
Now, thanks to #551 by @keynmol the entire code fence gets wrapped in a single try/catch so that you reference variables between statements.
What’s Changed
- Fix crash block capturing expressions (#551) @keynmol
- Don't call toString on null values (#550) @tgodzik
- Update munit to 0.7.28 (#547) @scala-steward
- Update undertow-core to 2.2.10.Final (#546) @scala-steward
- Update scalafmt-core to 3.0.0 (#548) @scala-steward
- Update scalameta, testkit to 4.4.27 (#549) @scala-steward
- Just use 17 (no need for zulu etc.) (#542) @sideeffffect
- Enable running on Java 17 (#541) @sideeffffect
- Update scalameta, testkit to 4.4.24 (#534) @scala-steward
- Update undertow-core to 2.2.9.Final (#531) @scala-steward
- Update sbt, scripted-plugin to 1.5.5 (#532) @scala-steward
- Update slf4j-api to 1.7.32 (#535) @scala-steward
- Update munit to 0.7.27 (#533) @scala-steward
- Drop Scala 3 RC versions and bump newest to 3.0.1 (#530) @tgodzik
- Fix issues (probably) with website generation (#529) @tgodzik
- Print git diff on job failure (#528) @tgodzik
- [Scala 3] Skip end markers when evaluating code (#526) @tgodzik
- Bump olafurpg/setup-scala from 11 to 12 (#524) @dependabot
- Update scala-compiler, scala-library, ... to 2.12.14 (#520) @scala-steward
- Update undertow-core to 2.2.8.Final (#519) @scala-steward
- Update slf4j-api to 1.7.31 (#523) @scala-steward
- Update scalameta, testkit to 4.4.22 (#522) @scala-steward
- Update sbt, scripted-plugin to 1.5.4 (#521) @scala-steward
- Update sbt-assembly to 1.0.0 (#518) @scala-steward
- Don't use
.stripMargin
for live-reload server (#516) @olafurpg - Make sure Scala 3 dialect is used when printing instrumented code (#514) @tgodzik
- Fetch repository fully when publishing website (#515) @tgodzik
- Allow usage of empty package (#505) @tgodzik
- Add tests on Windows CI (#512) @tgodzik
- Bump olafurpg/setup-scala from 10 to 11 (#510) @dependabot
- Update scala-compiler, scala-library, ... to 2.13.6 (#507) @scala-steward
- Update scalacheck to 1.15.4 (#508) @scala-steward
- Update scalameta, testkit to 4.4.18 (#509) @scala-steward
- Update interface to 1.0.4 (#506) @scala-steward
- Scala 3 JS modifier (#504) @keynmol
- Test JS modifier on all Scala 2 versions (#503) @keynmol
- Update test-release to work with current versions. (#502) @tgodzik