From 2d260999b2490fbd8177f1275725d4b3deaa027f Mon Sep 17 00:00:00 2001 From: Lukas Rytz Date: Mon, 24 Nov 2025 15:55:00 +0100 Subject: [PATCH] Scala 2.13.18 --- _config.yml | 2 +- _overviews/FAQ/index.md | 4 ++-- _overviews/contribute/bug-reporting-guide.md | 2 +- .../core/binary-compatibility-of-scala-releases.md | 4 ++-- .../scala3-migration/tooling-scala2-xsource3.md | 2 +- api/all.md | 12 ++++++++---- scripts/run-mdoc.sh | 4 ++-- 7 files changed, 17 insertions(+), 13 deletions(-) diff --git a/_config.yml b/_config.yml index b6319f112..c774d59e1 100644 --- a/_config.yml +++ b/_config.yml @@ -15,7 +15,7 @@ keywords: - Document - Guide -scala-version: 2.13.17 +scala-version: 2.13.18 scala-212-version: 2.12.20 scala-3-version: 3.7.4 diff --git a/_overviews/FAQ/index.md b/_overviews/FAQ/index.md index 1316dbdda..fbb4fe418 100644 --- a/_overviews/FAQ/index.md +++ b/_overviews/FAQ/index.md @@ -362,14 +362,14 @@ setting in a multi-project build. For example, if you add this to your `build.sbt`: - scalaVersion := "2.13.17" + scalaVersion := "2.13.18" that's a "bare" setting, and you might expect it to apply build-wide. But it doesn't. _It only applies to the root project._ In many cases one should instead write: - ThisBuild / scalaVersion := "2.13.17" + ThisBuild / scalaVersion := "2.13.18" Other possibilities include: diff --git a/_overviews/contribute/bug-reporting-guide.md b/_overviews/contribute/bug-reporting-guide.md index 485a2994e..5ccecd213 100644 --- a/_overviews/contribute/bug-reporting-guide.md +++ b/_overviews/contribute/bug-reporting-guide.md @@ -65,7 +65,7 @@ If you cannot find your issue in the issue tracker, create a new bug. The detail Please make sure to fill in as many fields as possible. Make sure you've indicated the following: - 1. **Exact Scala version** that you are using. For example, `2.13.17` or `3.3.4`. If the bug happens in multiple versions indicate all of them. + 1. **Exact Scala version** that you are using. For example, `2.13.18` or `3.3.4`. If the bug happens in multiple versions indicate all of them. 2. **The component** that is affected by the bug. For example, the Standard Library, Scaladoc, etc. 3. **Labels** related to your issue. For example, if you think your issue is related to the typechecker, and if you have successfully minimized your issue, label your bug as "typechecker" and "minimized". Issue tracker will suggest names for existing labels as you type them so try not to create duplicates. 4. **Running environment**. Are you running on Linux? Windows? What JVM version are you using? diff --git a/_overviews/core/binary-compatibility-of-scala-releases.md b/_overviews/core/binary-compatibility-of-scala-releases.md index ba58a3482..fb4de2be1 100644 --- a/_overviews/core/binary-compatibility-of-scala-releases.md +++ b/_overviews/core/binary-compatibility-of-scala-releases.md @@ -20,10 +20,10 @@ We distinguish forward and backward compatibility (think of these as properties Thus, backward compatibility precludes the removal of (non-private) methods, as older versions could call them, not knowing they would be removed, whereas forward compatibility disallows adding new (non-private) methods, because newer programs may come to depend on them, which would prevent them from running on older versions (private methods are exempted here as well, as their definition and call sites must be in the same source file). #### Guarantees and Versioning -For Scala 2, the *minor* version is the *third* number in a version, e.g., 17 in v2.13.17. +For Scala 2, the *minor* version is the *third* number in a version, e.g., 18 in v2.13.18. The major version is the second number, which is 13 in our example. -Scala 2 up to 2.13.17 guarantees both backward and forward compatibility across *minor* releases within a single major release. +Scala 2 up to 2.13.18 guarantees both backward and forward compatibility across *minor* releases within a single major release. This is about to change now that [SIP-51 has been accepted](https://docs.scala-lang.org/sips/drop-stdlib-forwards-bin-compat.html), future Scala 2.13 releases may be backward compatible only. For Scala 3, the minor version is the *second* number in a version, e.g., 2 in v3.2.1. diff --git a/_overviews/scala3-migration/tooling-scala2-xsource3.md b/_overviews/scala3-migration/tooling-scala2-xsource3.md index ca2320302..e48b4c120 100644 --- a/_overviews/scala3-migration/tooling-scala2-xsource3.md +++ b/_overviews/scala3-migration/tooling-scala2-xsource3.md @@ -125,7 +125,7 @@ class C(x: Int) { ### Changes affecting binary encoding -As of Scala 2.13.17, there are 3 changes in `-Xsource-features` that affect binary encoding of classfiles: +As of Scala 2.13.18, there are 3 changes in `-Xsource-features` that affect binary encoding of classfiles: 1. `case-apply-copy-access`: the constructor modifiers of case classes (`case class C private[p] (x: Int)`) are copied to the synthetic `apply` and `copy` methods. 1. `case-companion-function`: the synthetic companion objects of case classes no longer extend `FunctionN`. diff --git a/api/all.md b/api/all.md index 1df572a82..a655d74c1 100644 --- a/api/all.md +++ b/api/all.md @@ -12,10 +12,10 @@ redirect_from: * [Library API](https://www.scala-lang.org/api/{{site.scala-3-version}}/) * Scala 3.3.7 LTS * [Library API](https://www.scala-lang.org/api/3.3.7/) -* Scala 2.13.17 - * [Library API](https://www.scala-lang.org/api/2.13.17/) - * [Compiler API](https://www.scala-lang.org/api/2.13.17/scala-compiler/scala/) - * [Reflection API](https://www.scala-lang.org/api/2.13.17/scala-reflect/scala/reflect/) +* Scala 2.13.18 + * [Library API](https://www.scala-lang.org/api/2.13.18/) + * [Compiler API](https://www.scala-lang.org/api/2.13.18/scala-compiler/scala/) + * [Reflection API](https://www.scala-lang.org/api/2.13.18/scala-reflect/scala/reflect/) * Scala 2.12.20 * [Library API](https://www.scala-lang.org/api/2.12.20/) * [Compiler API](https://www.scala-lang.org/api/2.12.20/scala-compiler/scala/) @@ -124,6 +124,10 @@ https://scala-ci.typesafe.com/artifactory/scala-integration/org/scala-lang/ * [Library API](https://www.scala-lang.org/api/3.0.1/) * Scala 3.0.0 * [Library API](https://www.scala-lang.org/api/3.0.0/) +* Scala 2.13.17 + * [Library API](https://www.scala-lang.org/api/2.13.17/) + * [Compiler API](https://www.scala-lang.org/api/2.13.17/scala-compiler/scala/) + * [Reflection API](https://www.scala-lang.org/api/2.13.17/scala-reflect/scala/reflect/) * Scala 2.13.16 * [Library API](https://www.scala-lang.org/api/2.13.16/) * [Compiler API](https://www.scala-lang.org/api/2.13.16/scala-compiler/scala/) diff --git a/scripts/run-mdoc.sh b/scripts/run-mdoc.sh index 6eba63be0..11228c4ea 100755 --- a/scripts/run-mdoc.sh +++ b/scripts/run-mdoc.sh @@ -1,11 +1,11 @@ #!/bin/bash set -eux -cs launch --scala-version 2.13.17 org.scalameta::mdoc:2.3.3 -- \ +cs launch --scala-version 2.13.18 org.scalameta::mdoc:2.3.3 -- \ --in . \ --out /tmp/mdoc-out/ \ --classpath \ - $(cs fetch --scala-version 2.13.17 -p \ + $(cs fetch --scala-version 2.13.18 -p \ com.chuusai::shapeless:2.3.10 \ org.scala-lang::toolkit:0.7.0 \ org.scala-lang::toolkit-test:0.7.0 \