From 52d9b82b0fd6299688f69ffb609e48bd90512e83 Mon Sep 17 00:00:00 2001 From: Seth Tisue Date: Thu, 19 Dec 2024 10:49:13 -0800 Subject: [PATCH 1/7] Scala 2.13.16 release notes (DRAFT) --- 2.13.16.md | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 2.13.16.md diff --git a/2.13.16.md b/2.13.16.md new file mode 100644 index 0000000000..7d8f84a2f5 --- /dev/null +++ b/2.13.16.md @@ -0,0 +1,48 @@ +# Scala 2.13.16 (DRAFT) + +The Scala team at Lightbend is pleased to announce Scala 2.13.16. + +The following changes are highlights of this release: + +### Breaking changes + +### Compatibility + +### Features + +### Align with Scala 3 + +### Errors and warnings + +### More changes + +For the complete 2.13.16 change lists, see [all merged PRs](https://github.com/scala/scala/pulls?q=is%3Amerged%20milestone%3A2.13.16) and [all closed bugs](https://github.com/scala/bug/issues?utf8=%E2%9C%93&q=is%3Aclosed+milestone%3A2.13.16). + +## Compatibility + +As usual for our minor releases, Scala 2.13.16 is [binary-compatible](https://docs.scala-lang.org/overviews/core/binary-compatibility-of-scala-releases.html) with the whole Scala 2.13 series. + +Upgrading from 2.12? Enable `-Xmigration` while upgrading to request migration advice from the compiler. + +## Contributors + +A big thank you to everyone who's helped improve Scala by reporting bugs, improving our documentation, spreading kindness in discussions around Scala, and submitting and reviewing pull requests! You are all magnificent. + +We especially acknowledge and thank A. P. Marki, also known as Som Snytt, who is responsible for many of the improvements in this release. + +This release was brought to you by 18 contributors, according to `git shortlog -sn --no-merges @ ^v2.13.15 ^2.12.x`. Thank you A. P. Marki, Seth Tisue, Scala Steward, Lukas Rytz, Friendseeker, Ondra Pelech, Philippus Baalman, Benjamin Maurer, Eric Seidel2, Hamza Remmal, Jamie Thompson, João Costa, Kenji Yoshida, Mathias Kools, Rikito Taniguchi, Yuming Wang, rochala, sh0hei. + +Thanks to [Lightbend](https://www.lightbend.com/scala) for their continued sponsorship of the Scala 2 team’s efforts. Lightbend offers [commercial support](https://www.lightbend.com/lightbend-platform-subscription) for Scala. + +## Scala 2.13 notes + +The [release notes for Scala 2.13.0](https://github.com/scala/scala/releases/v2.13.0) have important information applicable to the whole 2.13 series. + +## Obtaining Scala + +Scala releases are available through a variety of channels, including (but not limited to): + +* Bump the `using scala` setting in your Scala-CLI project +* Bump the `scalaVersion` setting in your sbt or Mill project +* Download a distribution from [scala-lang.org](https://scala-lang.org/download/2.13.16.html) +* Obtain JARs via [Maven Central](https://search.maven.org/search?q=g:org.scala-lang%20AND%20v:2.13.16) From ec00116c00c402973932bc7c946cf0d23fdcce70 Mon Sep 17 00:00:00 2001 From: Seth Tisue Date: Thu, 19 Dec 2024 11:00:19 -0800 Subject: [PATCH 2/7] wip --- 2.13.16.md | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/2.13.16.md b/2.13.16.md index 7d8f84a2f5..3e1b083c50 100644 --- a/2.13.16.md +++ b/2.13.16.md @@ -4,16 +4,36 @@ The Scala team at Lightbend is pleased to announce Scala 2.13.16. The following changes are highlights of this release: -### Breaking changes +### Breaking change + +This is a bugfix, but we're calling special attention to it since it seems especially plausible that existing code might (perhaps inadvertently) be relying on the old behavior: + +* On the empty string, `.tail` and `.init` now throw (instead of returning the empty string) ([#10851](https://github.com/scala/scala/pull/10851) by [@sh0hei](https://github.com/sh0hei)) ### Compatibility -### Features +* Support Scala 3.6 in TASTy reader ([#10893](https://github.com/scala/scala/pull/10893)) +* Support JDK 24 in optimizer (via ASM upgrade) ([#10888](https://github.com/scala/scala/pull/10888) by [@Philippus](https://github.com/Philippus)) + +### REPL + +* REPL: JLine 3.27.1 (was .0) ([#10899](https://github.com/scala/scala/pull/10899)) +* REPL: JLine: stop using deprecated JNA ([#10898](https://github.com/scala/scala/pull/10898)) +* REPL: JLine 3.27.0 (was 3.26.3) ([#10882](https://github.com/scala/scala/pull/10882)) ### Align with Scala 3 +* Under `-Xsource:3`, deprecate infix named args ([#10857](https://github.com/scala/scala/pull/10857) by [@som-snytt](https://github.com/som-snytt)) + ### Errors and warnings +* Fix 2.13.15-only false positives with `-Wunused:patvars` ([#10870](https://github.com/scala/scala/pull/10870) by [@som-snytt](https://github.com/som-snytt)) + +### Collections + +* Do not use `rangeHash` when `rangeDiff` is 0 ([#10912](https://github.com/scala/scala/pull/10912) by [@Friendseeker](https://github.com/Friendseeker)) +* Deprecate mutable.AnyRefMap ([#10862](https://github.com/scala/scala/pull/10862) by [@wangyum](https://github.com/wangyum)) + ### More changes For the complete 2.13.16 change lists, see [all merged PRs](https://github.com/scala/scala/pulls?q=is%3Amerged%20milestone%3A2.13.16) and [all closed bugs](https://github.com/scala/bug/issues?utf8=%E2%9C%93&q=is%3Aclosed+milestone%3A2.13.16). From 863079760bb02b61d9540f703725399acaf59930 Mon Sep 17 00:00:00 2001 From: Seth Tisue Date: Thu, 19 Dec 2024 11:09:11 -0800 Subject: [PATCH 3/7] wip --- 2.13.16.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/2.13.16.md b/2.13.16.md index 3e1b083c50..5652742e8e 100644 --- a/2.13.16.md +++ b/2.13.16.md @@ -6,7 +6,7 @@ The following changes are highlights of this release: ### Breaking change -This is a bugfix, but we're calling special attention to it since it seems especially plausible that existing code might (perhaps inadvertently) be relying on the old behavior: +This is a bugfix, but be aware that existing code might, perhaps inadvertently, be relying on the old behavior: * On the empty string, `.tail` and `.init` now throw (instead of returning the empty string) ([#10851](https://github.com/scala/scala/pull/10851) by [@sh0hei](https://github.com/sh0hei)) @@ -17,9 +17,9 @@ This is a bugfix, but we're calling special attention to it since it seems espec ### REPL -* REPL: JLine 3.27.1 (was .0) ([#10899](https://github.com/scala/scala/pull/10899)) -* REPL: JLine: stop using deprecated JNA ([#10898](https://github.com/scala/scala/pull/10898)) -* REPL: JLine 3.27.0 (was 3.26.3) ([#10882](https://github.com/scala/scala/pull/10882)) +The following upgrades hopefully won't be noticed, but, REPL users on Windows take note: + +* REPL: JLine 3.27.1 (was 3.26.3) and on Windows use JNA not JNI ([#10899](https://github.com/scala/scala/pull/10899), [#10898](https://github.com/scala/scala/pull/10898), [#10882](https://github.com/scala/scala/pull/10882)) ### Align with Scala 3 @@ -32,7 +32,9 @@ This is a bugfix, but we're calling special attention to it since it seems espec ### Collections * Do not use `rangeHash` when `rangeDiff` is 0 ([#10912](https://github.com/scala/scala/pull/10912) by [@Friendseeker](https://github.com/Friendseeker)) -* Deprecate mutable.AnyRefMap ([#10862](https://github.com/scala/scala/pull/10862) by [@wangyum](https://github.com/wangyum)) + * This may affect fragile code relying on ordering of hash-based collections +* Deprecate `collection.mutable.AnyRefMap` ([#10862](https://github.com/scala/scala/pull/10862) by [@wangyum](https://github.com/wangyum)) + * It no longer has any performance advantage over `collection.mutable.HashMap` ### More changes From f52299d2ae95b589a1753bebf95903725f0818c4 Mon Sep 17 00:00:00 2001 From: Seth Tisue Date: Thu, 19 Dec 2024 11:12:37 -0800 Subject: [PATCH 4/7] wip --- 2.13.16.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/2.13.16.md b/2.13.16.md index 5652742e8e..cf2dd77399 100644 --- a/2.13.16.md +++ b/2.13.16.md @@ -1,6 +1,6 @@ # Scala 2.13.16 (DRAFT) -The Scala team at Lightbend is pleased to announce Scala 2.13.16. +The Scala team at Akka (formerly Lightbend) is pleased to announce Scala 2.13.16. The following changes are highlights of this release: @@ -54,7 +54,7 @@ We especially acknowledge and thank A. P. Marki, also known as Som Snytt, who is This release was brought to you by 18 contributors, according to `git shortlog -sn --no-merges @ ^v2.13.15 ^2.12.x`. Thank you A. P. Marki, Seth Tisue, Scala Steward, Lukas Rytz, Friendseeker, Ondra Pelech, Philippus Baalman, Benjamin Maurer, Eric Seidel2, Hamza Remmal, Jamie Thompson, João Costa, Kenji Yoshida, Mathias Kools, Rikito Taniguchi, Yuming Wang, rochala, sh0hei. -Thanks to [Lightbend](https://www.lightbend.com/scala) for their continued sponsorship of the Scala 2 team’s efforts. Lightbend offers [commercial support](https://www.lightbend.com/lightbend-platform-subscription) for Scala. +Thanks to [Akka](https://akka.io) for their continued sponsorship of the Scala 2 team’s efforts. Akka offers commercial support for Scala. ## Scala 2.13 notes From a52ce6bc7c86188fb33106d9d38825d3d77a695a Mon Sep 17 00:00:00 2001 From: Seth Tisue Date: Thu, 19 Dec 2024 11:25:03 -0800 Subject: [PATCH 5/7] formatting/ordering --- 2.13.16.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/2.13.16.md b/2.13.16.md index cf2dd77399..f4cf2a9240 100644 --- a/2.13.16.md +++ b/2.13.16.md @@ -6,9 +6,8 @@ The following changes are highlights of this release: ### Breaking change -This is a bugfix, but be aware that existing code might, perhaps inadvertently, be relying on the old behavior: - * On the empty string, `.tail` and `.init` now throw (instead of returning the empty string) ([#10851](https://github.com/scala/scala/pull/10851) by [@sh0hei](https://github.com/sh0hei)) + * This is a bugfix, but be aware that existing code might, perhaps inadvertently, be relying on the old behavior ### Compatibility @@ -17,9 +16,8 @@ This is a bugfix, but be aware that existing code might, perhaps inadvertently, ### REPL -The following upgrades hopefully won't be noticed, but, REPL users on Windows take note: - * REPL: JLine 3.27.1 (was 3.26.3) and on Windows use JNA not JNI ([#10899](https://github.com/scala/scala/pull/10899), [#10898](https://github.com/scala/scala/pull/10898), [#10882](https://github.com/scala/scala/pull/10882)) + * These upgrades hopefully won't be noticed, but, REPL users on Windows take note ### Align with Scala 3 @@ -32,9 +30,9 @@ The following upgrades hopefully won't be noticed, but, REPL users on Windows ta ### Collections * Do not use `rangeHash` when `rangeDiff` is 0 ([#10912](https://github.com/scala/scala/pull/10912) by [@Friendseeker](https://github.com/Friendseeker)) - * This may affect fragile code relying on ordering of hash-based collections + * This may affect fragile code relying on ordering of hash-based collections * Deprecate `collection.mutable.AnyRefMap` ([#10862](https://github.com/scala/scala/pull/10862) by [@wangyum](https://github.com/wangyum)) - * It no longer has any performance advantage over `collection.mutable.HashMap` + * It no longer has any performance advantage over `collection.mutable.HashMap` ### More changes From 2b40c78b1c0d9f51ac59ef4a6212ad439675b28d Mon Sep 17 00:00:00 2001 From: Seth Tisue Date: Sat, 21 Dec 2024 07:05:10 -0800 Subject: [PATCH 6/7] notes tweak --- 2.13.16.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2.13.16.md b/2.13.16.md index f4cf2a9240..45aa56a93c 100644 --- a/2.13.16.md +++ b/2.13.16.md @@ -32,7 +32,7 @@ The following changes are highlights of this release: * Do not use `rangeHash` when `rangeDiff` is 0 ([#10912](https://github.com/scala/scala/pull/10912) by [@Friendseeker](https://github.com/Friendseeker)) * This may affect fragile code relying on ordering of hash-based collections * Deprecate `collection.mutable.AnyRefMap` ([#10862](https://github.com/scala/scala/pull/10862) by [@wangyum](https://github.com/wangyum)) - * It no longer has any performance advantage over `collection.mutable.HashMap` + * Since Scala 2.13.0 it has no performance advantage over `collection.mutable.HashMap` ### More changes From ce1027839c8ddea8453ac53bced7cafad0106c32 Mon Sep 17 00:00:00 2001 From: Seth Tisue Date: Tue, 7 Jan 2025 15:36:16 -0800 Subject: [PATCH 7/7] Update 2.13.16.md --- 2.13.16.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2.13.16.md b/2.13.16.md index 45aa56a93c..9fc700c6ec 100644 --- a/2.13.16.md +++ b/2.13.16.md @@ -50,7 +50,7 @@ A big thank you to everyone who's helped improve Scala by reporting bugs, improv We especially acknowledge and thank A. P. Marki, also known as Som Snytt, who is responsible for many of the improvements in this release. -This release was brought to you by 18 contributors, according to `git shortlog -sn --no-merges @ ^v2.13.15 ^2.12.x`. Thank you A. P. Marki, Seth Tisue, Scala Steward, Lukas Rytz, Friendseeker, Ondra Pelech, Philippus Baalman, Benjamin Maurer, Eric Seidel2, Hamza Remmal, Jamie Thompson, João Costa, Kenji Yoshida, Mathias Kools, Rikito Taniguchi, Yuming Wang, rochala, sh0hei. +This release was brought to you by 19 contributors, according to `git shortlog -sn --no-merges @ ^v2.13.15 ^2.12.x`. Thank you A. P. Marki, Seth Tisue, Scala Steward, Lukas Rytz, Friendseeker, Ondra Pelech, Philippus Baalman, Benjamin Maurer, Corey O'Connor, Eric Seidel2, Hamza Remmal, Jamie Thompson, João Costa, Kenji Yoshida, Mathias Kools, Rikito Taniguchi, Yuming Wang, rochala, sh0hei. Thanks to [Akka](https://akka.io) for their continued sponsorship of the Scala 2 team’s efforts. Akka offers commercial support for Scala.