Update dependency scala to v2.13.11 #31

Closed
renovate[bot] wants to merge 1 commit from renovate/scala-2.x into master
renovate[bot] commented 2023-09-01 02:25:10 +00:00 (Migrated from github.com)

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
scala (source) 2.12.18 -> 2.13.11 age adoption passing confidence

Release Notes

scala/scala (scala)

v2.13.11: Scala 2.13.11

Compare Source

The Scala team at Lightbend is pleased to announce Scala 2.13.11.

The following changes are highlights of this release:

Collections
Compatibility
Align with Scala 3
Lints and warnings
Other notable changes

2.13.11 also includes the changes from Scala 2.12.18. (A few of the most significant, such as those involving JDK 20 and 21 compatibility, are listed above.)

For the complete 2.13.11 change lists, see all merged PRs and all closed bugs.

Known issues

A few regressions have been discovered:

  • Exhaustivity checker emits spurious warning when matching on Java enum type (2.13.11 regression) (scala/bug#12800)
  • Duplicated @Deprecated annotations when extending Java interface with deprecated default method cause java.lang.annotation.AnnotationFormatError when accessed via Java reflection (2.13.11 regression) (scala/bug#12799)

We'll address these in Scala 2.13.12.

Compatibility

As usual for our minor releases, Scala 2.13.11 is binary-compatible 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 a large share of the improvements in this release.

This release was brought to you by 28 contributors, according to git shortlog -sn --no-merges @​ ^v2.13.10 ^2.12.x. Thank you A. P. Marki, Lukas Rytz, Seth Tisue, Anselm von Wangenheim, Scala Steward, Liang Yan, Jamie Thompson, jxnu-liguobin, AminMal, Jason Zaugg, Kenji Yoshida, Rituraj, ashish, Chris Kipp, Dale Wijnand, Francesco Kriegel, Georgi Chochov, Goooler, João Costa, Kisaragi Marine, Rafał Sumisławski, Ruslans Tarasovs, Simon R, Sébastien Doeraene, Tomasz Godzik, Zhang Zhipeng, danarmak, hepin.p.

Thanks to Lightbend for their continued sponsorship of the Scala 2 team’s efforts. Lightbend offers commercial support for Scala.

Scala 2.13 notes

The release notes for Scala 2.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 scalaVersion setting in your sbt project
  • Bump the using scala setting in your Scala-CLI project
  • Download a distribution from scala-lang.org
  • Obtain JARs via Maven Central

v2.13.10: Scala 2.13.10

Compare Source

The Scala team at Lightbend is pleased to announce the availability of Scala 2.13.10.

The following changes are highlights of this release:

Binary compatibility regression fixed
  • Fix 2.13.9 regression which broke binary compatibility of case classes which are also value classes (#​10155)

Library maintainers should avoid publishing libraries using Scala 2.13.9.

Other notable changes
  • Fix 2.13.9 regression in linting, causing spurious "variable x is never used" warnings (#​10154)
  • -Xsource:3 now respects refinements by whitebox macro overrides (#​10160 by @​som-snytt)
  • Scaladoc tool: fix parsing bug which could cause very slow performance or incorrect output (#​10175 by @​liang3zy22)
  • Restore -Vprint-args, for echoing arguments provided to compiler (#​10164 by @​som-snytt)

For the complete 2.13.10 change lists, see all merged PRs and all closed bugs.

Compatibility

As usual for our minor releases, Scala 2.13.10 is binary-compatible 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 an especially large share of the improvements in this release.

This release was brought to you by 6 contributors, according to git shortlog -sn --no-merges @​ ^v2.13.9 ^2.12.x. Thank you A. P. Marki, Liang Yan, Seth Tisue, Antoine Parent, Luc Henninger, 梦境迷离.

Thanks to Lightbend for their continued sponsorship of the Scala core team’s efforts. Lightbend offers commercial support for Scala.

Scala 2.13 notes

The release notes for Scala 2.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):

v2.13.9: Scala 2.13.9

Compare Source

The following changes are highlights of this release:

Regression

Library maintainers should avoid publishing libraries using Scala 2.13.9. Please use 2.13.10 instead. 2.13.9 has a regression where binary-incompatible bytecode is emitted for case classes which are also value classes (case class ... extends AnyVal).

Compatibility with Scala 3
  • Tasty Reader: Add support for Scala 3.2 (#​10068)
  • Tasty Reader: Restrict access to experimental definitions (#​10020)
  • To aid cross-building, accept and ignore using in method calls (#​10064 by @​som-snytt)
  • To aid cross-building, allow ? as a wildcard even without -Xsource:3 (#​9990)
  • Make Scala-3-style implicit resolution explicitly opt-in rather than bundled in -Xsource:3 (#​10012 by @​povder)
  • Prefer type of overridden member when inferring (under -Xsource:3) (#​9891 by @​som-snytt)
JDK version support
Warnings and lints
Language improvements
  • Improve support for Unicode supplementary characters in identifiers and string interpolation (#​9805 by @​som-snytt)
Compiler options
Security
  • Error on source files with Unicode directional formatting characters (#​10017)
  • Prevent Function0 execution during LazyList deserialization (#​10118)
Bugfixes
  • Emit all bridge methods non-final (perhaps affecting serialization compat) (#​9976)
  • Fix null-pointer regression in Vector#prependedAll and Vector#appendedAll (#​9983)
  • Improve concurrent behavior of Java ConcurrentMap wrapper
    (#​10027 by @​igabaydulin)
  • Preserve null policy in wrapped Java Maps (#​10129 by @​som-snytt)

Changes that shipped in Scala 2.12.16 and 2.12.17 are also included in this release.

For the complete 2.13.9 change lists, see all merged PRs and all closed bugs.

Compatibility

As usual for our minor releases, Scala 2.13.9 is binary-compatible 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 an especially large share of the improvements in this release.

This release was brought to you by 27 contributors, according to git shortlog -sn --no-merges @​ ^v2.13.8 ^2.12.x. Thank you A. P. Marki, Lukas Rytz, Seth Tisue, Jamie Thompson, Sébastien Doeraene, Scala Steward, Georgi Krastev, Jason Zaugg, Philippus, Balys Anikevicius, Gilad Hoch, NthPortal, Zhang Zhipeng, Arman Bilge, Dale Wijnand, Dominik Helm, Eric Huang, Guillaume Martres, Harrison Houghton, Krzysztof Pado, Michał Pałka, Zeeshan Arif, counter2015, jxnu-liguobin, mcallisto, naveen, philwalk.

Thanks to Lightbend for their continued sponsorship of the Scala core team’s efforts. Lightbend offers commercial support for Scala.

Scala 2.13 notes

The release notes for Scala 2.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):

v2.13.8: Scala 2.13.8

Compare Source

The Scala team at Lightbend is pleased to announce the availability of Scala 2.13.8.

This is a modest, incremental release focused on addressing regressions in 2.13.7.

Highlights

A few small changes that will ship in 2.12.16 are also included in this release.

For the complete 2.13.8 change lists, see all merged PRs and all closed bugs.

Compatibility

As usual for our minor releases, Scala 2.13.8 is binary-compatible 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.

This release was brought to you by 8 contributors, according to git shortlog -sn --no-merges @​ ^v2.13.7 ^2.12.x. Thank you A. P. Marki, Seth Tisue, Georgi Krastev, Jason Zaugg, Lukas Rytz, Martijn Hoekstra, Philippus Baalman, Chris Kipp.

Thanks to Lightbend for their continued sponsorship of the Scala core team’s efforts. Lightbend offers commercial support for Scala.

Scala 2.13 notes

The release notes for Scala 2.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):

v2.13.7: Scala 2.13.7

Compare Source

The Scala team at Lightbend is pleased to announce the availability of Scala 2.13.7.

Align with Scala 3
JDK and Java compatibility
Android compatibility
  • Add ClassValueCompat to support systems without java.lang.ClassValue (such as Android) (#​9752 by @​nwk37011)
  • For Android compatibility, make Statics.releaseFence() also catch NoSuchMethodException for java.lang.invoke.VarHandle.releaseFence() call (#​9739 by @​nwk37011)
Concurrency
  • Fix asymmetric failure behavior of Future#{zip,zipWith,traverse,sequence} by making them fail fast regardless of ordering (#​9655 by @​lihaoyi)
Collections
Other changes

Some small changes that will ship in 2.12.16 are also included in this release.

For the complete 2.13.7 change lists, see all merged PRs and all closed bugs.

Compatibility

As usual for our minor releases, Scala 2.13.7 is binary-compatible 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.

This release was brought to you by 25 contributors, according to git shortlog -sn --no-merges @​ ^v2.13.6 ^2.12.x. Thank you A. P. Marki, Lukas Rytz, Seth Tisue, Jason Zaugg, Jamie Thompson, NthPortal, Georgi Krastev, Guillaume Martres, Dale Wijnand, Martijn Hoekstra, Alec Theriault, Rafał Sumisławski, Matt Dziuban, Li Haoyi, Doug Roper, Sébastien Doeraene, VladKopanev, danicheg, dengziming, megri, nwk37011, Magnolia.K, 梦境迷离, Mathias, James Judd.

Thanks to Lightbend for their continued sponsorship of the Scala core team’s efforts. Lightbend offers commercial support for Scala.

Scala 2.13 notes

The release notes for Scala 2.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):

v2.13.6: Scala 2.13.6

Compare Source

The Scala 2 team at Lightbend is pleased to announce the availability of Scala 2.13.6.

Highlights
Other Changes
  • Optimized BigInt implementation (#​9628) by @​denisrosset
  • Support JDK15 text blocks in Java parser (#​9548) by @​harpocrates
  • Stricter override checking for protected Scala members which override Java members (#​9525) by @​kynthus
  • Check private[this] members in override checking (#​9542)
  • More accurate outer checks in patterns (#​9504)
  • Allow renaming imports from _root_ (#​9482) by @​som-snytt
  • Make more annotations extend ConstantAnnotation (9336) by @​BalmungSan
  • A number of syntax changes were added to simplify cross-building between Scala 2 and 3
    • Don't error (only warn) on symbol literals under -Xsource:3 (#​9602)
    • Support writing & instead of with in types under -Xsource:3 (#​9594)
    • Support Scala 3 vararg splice syntax under -Xsource:3 (#​9584)
    • Support Scala 3 wildcard and renaming imports under -Xsource:3 (#​9582)
    • Allow soft keywords open and infix under -Xsource:3 (#​9580)
    • Align leading infix operator with Scala 3 improvements (#​9567)
    • Support ? as wildcard marker under -Xsource:3 (#​9560)
    • Support case in pattern bindings under -Xsource:3 (#​9558)
    • Parse +_ and -_ in types as identifiers under -Xsource:3 to support Scala 3.2 placeholder syntax (#​9605)

Some small changes that will ship in 2.12.14 are also included in this release.

For the complete 2.13.6 change lists, see all merged PRs and all closed bugs.

Compatibility

As usual for our minor releases, Scala 2.13.6 is binary-compatible 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.

This release was brought to you by 25 contributors, according to git shortlog -sn --no-merges HEAD ^v2.13.5 ^2.12.x. Thank you A. P. Marki, Lukas Rytz, Dale Wijnand, Jamie Thompson, Seth Tisue, 梦境迷离, Guillaume Martres, Martijn Hoekstra, Denis Rosset, Aaron S. Hawley, Kai, Eugene Yokota, Jason Zaugg, Anatolii Kmetiuk, Ikko Ashimine, superseeker13, Eugene Platonov, Diego E. Alonso Blas, Filipe Regadas, Hatano Yuusuke, Luis Miguel Mejía Suárez, Rafał Sumisławski, Alec Theriault, Tom Grigg, Torsten Schmits.

Thanks to Lightbend for their continued sponsorship of the Scala core team’s efforts. Lightbend offers commercial support for Scala.

Scala 2.13 notes

The release notes for Scala 2.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):

v2.13.5: Scala 2.13.5

Compare Source

Scala 2.13.5

The Scala 2 team at Lightbend is pleased to announce the availability of Scala 2.13.5.

Highlights
Other changes

Some small changes that will ship in 2.12.14 are also included in this release.

For complete 2.13.5 change lists, see all merged PRs and all closed bugs.

Compatibility

As usual for our minor releases, Scala 2.13.5 is binary-compatible 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.

This release was brought to you by 23 contributors, according to git shortlog -sn --no-merges HEAD ^v2.13.4 ^2.12.x. Thank you Seth Tisue, A. P. Marki, Dale Wijnand, NthPortal, Jamie Thompson, Lukas Rytz, Martijn Hoekstra, Georgi Krastev, Jason Zaugg, Jasper Moeys, Sakib Hadziavdic, Anatolii Kmetiuk, Arnaud Gourlay, Marcono1234, Chia-Ping Tsai, Mike Skells, Stefan Zeiger, Waleed Khan, Yann Bolliger, Guillaume Martres, 梦境迷离, Ethan Atkins, Darcy Shen.

Thanks to Lightbend for their continued sponsorship of the Scala core team’s efforts. Lightbend offers commercial support for Scala.

Scala 2.13 notes

The release notes for Scala 2.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):

v2.13.4: Scala 2.13.4

Compare Source

Scala 2.13.4:

  • Restores default global ExecutionContext to 2.12 behavior
  • Improves pattern matching, especially in exhaustivity checking
  • Adds experimental support for consuming some libraries built by Scala 3

and more! Details below.

Concurrency

NOTE The following change affects parallelism and performance. If you use scala.concurrent.ExecutionContext.global you may
want to adapt your code. (But note that Akka is unaffected, because it uses its own execution contexts.)

In 2.13.0 we made ExecutionContext.global "opportunistic". This enabled "batching" of nested tasks
to execute on the same thread, avoiding an expensive context switch. That strategy requires
user code to wrap long-running and/or blocking tasks with blocking { ... } to maintain parallel
execution.

For 2.13.4, we restore 2.12's default non-batching behavior, which is safer for arbitrary user code. Users wanting
increased performance may override the default, if they believe their code uses blocking correctly.
We make that choice available via ExecutionContext.opportunistic.

Using ExecutionContext.opportunistic requires a bit of extra boilerplate, made necessary by binary
compatibility constraints on the standard library. Detailed instructions are in
ExecutionContext.global's Scaladoc.

Further detail: #​9270/#​9296/scala/bug#12089,

Pattern matching

The pattern matcher is now much better at warning you if a match isn't exhaustive.

The following types of matches no longer disable exhaustivity checking:

  • guards (case <pattern> if <condition> => ...) #​9140
  • custom extractors (user-defined unapply or unapplySeq) #​9140/#​9162
  • unsealed types, if you opt in via -Xlint or -Xlint:strict-unsealed-patmat #​9140/#​9299

Additionally,

New warnings reported can be resolved by:

  1. adding any missing cases
  2. in the case of complementary guards (e.g. if n > 0 and if n <= 0) by dropping the last guard
  3. for custom extractors: demarking irrefutable extractors as such, by defining the return type as Some
  4. for sealed types: marking traits or parent classes sealed, parent classes abstract, and classes final
  5. explicitly declaring the default case: case x => throw new MatchError(x)

Otherwise, your options for suppressing warnings include:

  1. annotate the scrutinee with @unchecked, such as (foo: @&#8203;unchecked) match { ... }
  2. disable exhaustivity checking in the presence of guards and custom extractors with -Xnon-strict-patmat-analysis
  3. disable exhaustivity checking of unsealed types with -Xlint:-strict-unsealed-patmat
  4. use -Wconf to suppress the warnings globally, with e.g. -Wconf:msg=match may not be exhaustive:i
Scala 3 interop

This release enables the Scala 2 compiler to consume some libraries built in Scala 3. #​9109/#​9293

The new capability is experimental. To enable it, add -Ytasty-reader to your compiler options.

Not all Scala 3 built libraries are supported, because not all Scala 3 features can be supported.
The library author must stay within the supported subset.

For more details and caveats see the blog post Forward Compatibility for the Scala 3 Transition.

Standard library changes
  • When compiling on JDK 15, avoid clash with new CharSequence#isEmpty method #​9292
    • The clash is avoided by making CharSequence wrappers in Predef non-implicit.
    • The change is binary compatible, but not source compatible. Call sites may need updating.
  • Make LazyList.cons.apply lazier #​9095
  • Make MapView#values preserve laziness #​9090
  • Make ListBuffer's iterator fail when the buffer is mutated #​9174
  • Un-deprecate useful StringOps methods, despite Unicode concerns #​9246
Compiler changes
  • Allow using classOf with object type (e.g. classOf[Foo.type]) #​9279
  • Fix back-quoted constructor params with identical prefixes #​9008
  • Enable range positions (-Yrangepos) by default #​9146
Other changes

Some changes that will also ship in 2.12.13 are also included in this release, most notably:

  • When compiling on JDK 15, avoid clash with new CharSequence#isEmpty method #​9292
    • To avoid the clash, implicit was removed from Predef's implicit conversions to SeqCharSequence and ArrayCharSequence.
    • This change is binary compatible, but not source compatible. User code may need updating. See PR for details.

For complete 2.13.4 change lists, see all merged PRs and all closed bugs.

Compatibility

As usual for our minor releases, Scala 2.13.4 is binary-compatible 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.

This release was brought to you by 40 contributors, according to git shortlog -sn --no-merges HEAD ^v2.13.3 ^2.12.x. Thank you Jamie Thompson, Dale Wijnand, A. P. Marki, NthPortal, Lukas Rytz, Seth Tisue, Jason Zaugg, Georgi Krastev, Eugene Yokota, Martijn Hoekstra, Trey Cahill, Rado Buransky, Ergys Dona, Mike Skells, Greg Pfeil, Kazuhiro Sera, Mitsuhiro Shibuya, NagaChaitanya Vellanki, Sergei Petunin, Sébastien Doeraene, Takahashi Osamu, Viktor Klang, mwielocha, Nicolas Stucki, Jan Arne Sparka, Philippus Baalman, Glenn Liwanag, Rafał Sumisławski, Renato Cavalcanti, Sergei, nooberfsh, Dmitrii Naumenko, Simão Martins, counter2015, Jian Lan, Liu Fengyun, Kanishka, Julien Richard-Foy, Janek Bogucki, Björn Regnell.

Thanks to Lightbend for their continued sponsorship of the Scala core team’s efforts. Lightbend offers commercial support for Scala.

Scala 2.13 notes

The release notes for Scala 2.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):

v2.13.3: Scala 2.13.3

Compare Source

Scala 2.13.3 is primarily a bugfix release.

It also includes:

  • improvements to warnings and linting
  • experimental -Xasync support

For more detail, read on.

Behavior changes
  • Symbol#toString is now Symbol(foo) instead of the deprecated single-quote form 'foo (#​8933)
Bugfixes
  • Fix 2.13-only bug in Java collection converters that caused some operations to perform an extra pass (#​9058)
  • Fix 2.13.2 performance regression in Vector: restore special cases for small operands in appendedAll and prependedAll (#​9036)
  • Increase laziness of #:: for LazyList (#​8985)
  • Allow trailing backslash in string interpolators (#​8942)
  • Respect @uncheckedVariance in higher-kinded types (fixing 2.13.2 regression) (#​8938)
Warnings and linting
  • Deprecate auto-application of (non-Java-defined) methods with a single empty parameter list (#​8833)
    • The PR has instructions for suppressing the warning if it is unwanted
  • Warn by default on mismatch of presence/absence of an empty parameter list when overriding (#​8846)
    • -Xlint:nullary-override is no longer accepted, since this now warns by default
  • Discourage multi-argument infix syntax: lint applications (x op (a, b)), also lint operator-name definitions (#​8951)
  • Fix @nowarn to use correct semantics for & (#​9032)
  • Make -Wunused:imports work again even when -Ymacro-annotations is enabled (#​8962)
  • Replace -Wself-implicit with -Xlint:implicit-recursion (#​9019)
  • Under -Xsource:3, disallow auto-eta-expansion of SAMs (#​9049)
Experimental -Xasync

This successor to scala-async allows usage with other effect systems besides scala.concurrrent.Future.

  • Compiler support for scala-async; enable with -Xasync (#​8816)

We will publish a blog post with more detail on this work by @​retronym, building on his earlier collaboration with @​phaller. In the meantime, see the PR description.

This feature will also be included in the 2.12.12 release.

Other changes

For complete 2.13.3 change lists, see all merged PRs and all closed bugs.

Some changes that will ship in 2.12.12 are also included in this release, most notably:

  • Annotation parsing & @Deprecated (#​8781)
  • Fix Scaladoc tool on JDK 11 with -release 8: exclude sig files in Symbol#sourceFile (#​8849)

Compatibility

As usual for our minor releases, Scala 2.13.3 is binary-compatible with the whole Scala 2.13 series.

Upgrading from 2.12? Enable -Xmigration during upgrade 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.

This release was brought to you by 28 contributors, according to git shortlog -sn --no-merges HEAD ^v2.13.2 ^2.12.x. Thank you A. P. Marki, Jason Zaugg, Seth Tisue, Dale Wijnand, Lukas Rytz, Georgi Krastev, David Barri, Eugene Yokota, Diego E. Alonso Blas, Akhtiam Sakaev, Glenn Liwanag, changvvb, Evgeny Ganchurin, Mike Skells, Martijn Hoekstra, yudedako, Anatolii Kmetiuk, Gilles Peiffer, JyotiSachdeva.ext, Karol Chmist, Kenji Yoshida, Lorenzo Costanzia di Costigliole, NthPortal, Steven Barnes, Sébastien Doeraene, Travis Brown, counter2015, nogurenn.

Thanks to Lightbend for their continued sponsorship of the Scala core team’s efforts. Lightbend offers commercial support for Scala.

Scala 2.13 notes

The release notes for Scala 2.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):

v2.13.2: Scala 2.13.2

Compare Source

Scala 2.13.2 has:

  • a brand-new Vector implementation
  • configurable warnings
  • an improved REPL (now JLine 3 based)
  • bugfixes and more
Vector
  • Rewrite Vector (using "radix-balanced finger tree vectors"), for performance (#​8534)

Small vectors are now more compactly represented. Some operations are now drastically faster on large vectors. A few operations may be a little slower.

Kudos to @​szeiger for this work.

Configurable warnings
  • Add -Wconf flag for configurable warnings, @nowarn annotation for local suppression (#​8373)

Note that scala-collection-compat 2.1.6 (or newer) provides @nowarn for cross-built projects (as a no-op on 2.11 and 2.12).

Special thanks to Roman Janusz (@​ghik), whose silencer plugin was the basis for this work.

REPL improvements
  • REPL: upgrade to JLine 3 (benefits include multi-line editing) (#​8036)
  • Default true -Yrepl-class-based and -Yuse-magic-imports (#​8748)
    • -Yrepl-class-based avoids deadlocks
    • -Yuse-magic-imports improves performance for long sessions
  • Improve REPL display of method types (#​8319)

Special thanks to @​som-snytt for spearheading the JLine 3 upgrade.

We are tracking JLine-related improvements and regressions here. There some known regressions in some less-vital features and behaviors; we plan to address these in future 2.13.x releases.

Language changes
  • Unicode escapes are now ordinary escape sequences (not processed early) (#​8282)
Compiler fixes
  • Plug many variance holes (in higher-kinded types, refined types, and private inner classes) (#​8545)
  • Fix variance handling for parameterized type aliases (#​8651)
  • Exclude universal members (getClass, toString, etc) from root module import (#​8541)
  • Matching strings makes switches in bytecode (#​8451)
Deprecations
  • Deprecate eta-expansion, via trailing underscore, of methods with no argument lists (#​8836)
  • Deprecate nested class shadowing in "override" position (#​8705)
  • Deprecate numeric conversions that lose precision (e.g., Long to Double) (#​8679)
  • Deprecate numeric widening of numeric literals which are not representable with Float/Double (#​8757)
  • Deprecate old-style constructor syntax (#​8591)
Improvements from the future
  • There is no more -Xsource:2.14, only -Xsource:3 (#​8812)
  • Allow infix operators at start of line (under -Xsource:3) (#​8419)
  • Case class copy and apply inherit access modifiers from constructor (under -Xsource:3) (#​7702)
Other fixes and improvements
  • Un-deprecate default floating point Orderings; issue migration warning instead under -Xmigration (#​8721)
  • Support macro annotation expansions in -Wmacros:MODE (#​8799)
  • Scaladoc can now link to Javadoc for the Java standard library for JDK versions 9 and up (overridable with new -jdk-api-doc-base flag) (#​8663)
  • sys.env now throws on null environment variable (#​8579)
  • Make the hashcode method ## have no parameter list (instead of a single empty one) (#​8814)

This is not a complete list of changes. For that, see all merged PRs and all closed bugs.

2.13.2 also includes the changes in Scala 2.12.11, most notably:

  • Make optimizer work on JDK 13+ (#​8676).
Compatibility

As usual for our minor releases, Scala 2.13.2 is binary-compatible 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.

This release was brought to you by 45 contributors, according to git shortlog -sn --no-merges HEAD ^v2.13.1 ^2.12.x. Thank you Som Snytt, Jason Zaugg, Lukas Rytz, Dale Wijnand, Seth Tisue, Diego E. Alonso Blas, Georgi Krastev, Martijn Hoekstra, Eugene Yokota, Harrison Houghton, Stefan Zeiger, NthPortal, Anatolii, Linas Medžiūnas, Aaron S. Hawley, Guillaume Martres, Josh Lemer, Sébastien Doeraene, Jasper Moeys, Julien Truffaut, Oskar Haarklou Veileborg, Lucas Cardoso, Andrew Valencik, Adriaan Moors, yudedako, Steven Barnes, Brian Wignall, Ausmarton Zarino Fernandes, Oguz Albayrak, Philippus, Viktor Klang, Yang Bo, bnyu, psilospore, sinanspd, wholock, Jamie Thompson, Hamza Meknassi, Janek Bogucki, Flash Sheridan, Fabian Page, Kenji Yoshida, Denis Rosset, Lucas S Cardoso, Chris Birchall.

Thanks to Lightbend for their continued sponsorship of the Scala core team’s efforts. Lightbend offers commercial support for Scala.

Scala 2.13 notes

The release notes for Scala 2.13.0 have important information applicable to the whole 2.13 series.

Obtaining Scala

Scala releases are available through a


Configuration

📅 Schedule: Branch creation - "before 3am on the first day of the month" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [scala](https://www.scala-lang.org/) ([source](https://togithub.com/scala/scala)) | `2.12.18` -> `2.13.11` | [![age](https://developer.mend.io/api/mc/badges/age/maven/scala/2.13.11?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/scala/2.13.11?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/scala/2.12.18/2.13.11?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/scala/2.12.18/2.13.11?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>scala/scala (scala)</summary> ### [`v2.13.11`](https://togithub.com/scala/scala/releases/tag/v2.13.11): Scala 2.13.11 [Compare Source](https://togithub.com/scala/scala/compare/v2.13.10...v2.13.11) The Scala team at Lightbend is pleased to announce Scala 2.13.11. The following changes are highlights of this release: ##### Collections - Faster `Vector` concatenation ([#&#8203;10159](https://togithub.com/scala/scala/pull/10159) by [@&#8203;ansvonwa](https://togithub.com/ansvonwa)) - New `LinkedHashMap`/`LinkedHashSet` implementation ([#&#8203;10221](https://togithub.com/scala/scala/pull/10221) by [@&#8203;liang3zy22](https://togithub.com/liang3zy22)) ##### Compatibility - Support JDK 20 and 21 by upgrading to ASM 9.5 ([#&#8203;10363](https://togithub.com/scala/scala/pull/10363), [#&#8203;10184](https://togithub.com/scala/scala/pull/10184) by [@&#8203;Philippus](https://togithub.com/Philippus)) - Fix crash reading JDK 21 classfiles ([#&#8203;10397](https://togithub.com/scala/scala/pull/10397)) - Support Java 17 `sealed` in Java sources and classfiles ([#&#8203;10348](https://togithub.com/scala/scala/pull/10348), [#&#8203;10105](https://togithub.com/scala/scala/pull/10105) by [@&#8203;som-snytt](https://togithub.com/som-snytt)) - Support Scala 3.3 in TASTy reader ([#&#8203;10299](https://togithub.com/scala/scala/pull/10299) by [@&#8203;bishabosha](https://togithub.com/bishabosha)) ##### Align with Scala 3 - Accept `implicit _`, `implicit (x: Int)` in lambdas, like Scala 3 does ([#&#8203;10327](https://togithub.com/scala/scala/pull/10327) by [@&#8203;som-snytt](https://togithub.com/som-snytt)) - Deprecate infix type args, as they are dropped in Scala 3 ([#&#8203;10255](https://togithub.com/scala/scala/pull/10255) by [@&#8203;som-snytt](https://togithub.com/som-snytt)) - Allow eta-expansion of methods with dependent types ([#&#8203;10166](https://togithub.com/scala/scala/pull/10166)) - Abstract parent `copy` does not suspend case `copy` ([#&#8203;10085](https://togithub.com/scala/scala/pull/10085) by [@&#8203;som-snytt](https://togithub.com/som-snytt)) - Don't GLB binders of type patterns, use the type directly ([#&#8203;10247](https://togithub.com/scala/scala/pull/10247)) - Under `-Xsource:3`, warn that inherited members no longer take precedence over outer definitions in Scala 3 ([#&#8203;10220](https://togithub.com/scala/scala/pull/10220), [#&#8203;10339](https://togithub.com/scala/scala/pull/10339)) - Under `-Xsource:3`, adjust 2.13.9 change to ignore override type for whitebox macro expansion ([#&#8203;10188](https://togithub.com/scala/scala/pull/10188) by [@&#8203;som-snytt](https://togithub.com/som-snytt)) - Under `-Xsource:3`, use narrowest type for pt of override ([#&#8203;10198](https://togithub.com/scala/scala/pull/10198) by [@&#8203;som-snytt](https://togithub.com/som-snytt)) - Under `-Xsource:3`, warn about change to parenless lambda parens ([#&#8203;10320](https://togithub.com/scala/scala/pull/10320) by [@&#8203;som-snytt](https://togithub.com/som-snytt)) ##### Lints and warnings - Lint select from `Unit`, or `Int` that incurs widening ([#&#8203;10372](https://togithub.com/scala/scala/pull/10372) by [@&#8203;som-snytt](https://togithub.com/som-snytt)) - Lint for integral divisions that are widened to a float ([#&#8203;10369](https://togithub.com/scala/scala/pull/10369) by [@&#8203;som-snytt](https://togithub.com/som-snytt)) - Lint if args adapted to `Unit` and discarded ([#&#8203;10150](https://togithub.com/scala/scala/pull/10150) by [@&#8203;som-snytt](https://togithub.com/som-snytt)) - Warn that implicit should have explicit type ([#&#8203;10083](https://togithub.com/scala/scala/pull/10083) by [@&#8203;som-snytt](https://togithub.com/som-snytt)) ##### Other notable changes - Disallow mixins where super calls bind to vals ([#&#8203;10268](https://togithub.com/scala/scala/pull/10268)) - Make scalac's argument-file processing more like javac's in handling spaces and line breaks ([#&#8203;10319](https://togithub.com/scala/scala/pull/10319) by [@&#8203;som-snytt](https://togithub.com/som-snytt)) - Bump JLine and JNA versions ([#&#8203;10318](https://togithub.com/scala/scala/pull/10318)) - `javabootclasspath` supersedes `jrt` ([#&#8203;10336](https://togithub.com/scala/scala/pull/10336) by [@&#8203;som-snytt](https://togithub.com/som-snytt)) - Report total errors on stderr ([#&#8203;10272](https://togithub.com/scala/scala/pull/10272) by [@&#8203;som-snytt](https://togithub.com/som-snytt)) - Fix pathologically slow compilation of some pattern matches since 2.13.7 ([#&#8203;10258](https://togithub.com/scala/scala/pull/10258) by [@&#8203;KisaragiEffective](https://togithub.com/KisaragiEffective)) - Provide `equals` and `hashCode` on `IterableWrapper` again (fixing 2.13.9 regression) ([#&#8203;10205](https://togithub.com/scala/scala/pull/10205) by [@&#8203;som-snytt](https://togithub.com/som-snytt)) - Improvements to `-Vimplicits`; errors now show complete implicit search tree ([#&#8203;9944](https://togithub.com/scala/scala/pull/9944) by [@&#8203;tribbloid](https://togithub.com/tribbloid)) - `-Vprint` defaults to `-Vprint:typer`; phases may be prefixed with `~` to mean "before and after" ([#&#8203;10173](https://togithub.com/scala/scala/pull/10173) by [@&#8203;som-snytt](https://togithub.com/som-snytt)) 2.13.11 also includes the [changes from Scala 2.12.18](https://togithub.com/scala/scala/releases/v2.12.18). (A few of the most significant, such as those involving JDK 20 and 21 compatibility, are listed above.) For the complete 2.13.11 change lists, see [all merged PRs](https://togithub.com/scala/scala/pulls?q=is%3Amerged%20milestone%3A2.13.11) and [all closed bugs](https://togithub.com/scala/bug/issues?utf8=%E2%9C%93\&q=is%3Aclosed+milestone%3A2.13.11). #### Known issues A few regressions have been discovered: - Exhaustivity checker emits spurious warning when matching on Java enum type (2.13.11 regression) ([scala/bug#12800](https://togithub.com/scala/bug/issues/12800)) - Duplicated `@Deprecated` annotations when extending Java interface with deprecated default method cause `java.lang.annotation.AnnotationFormatError` when accessed via Java reflection (2.13.11 regression) ([scala/bug#12799](https://togithub.com/scala/bug/issues/12799)) We'll address these in Scala 2.13.12. #### Compatibility As usual for our minor releases, Scala 2.13.11 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 a large share of the improvements in this release. This release was brought to you by 28 contributors, according to `git shortlog -sn --no-merges @&#8203; ^v2.13.10 ^2.12.x`. Thank you A. P. Marki, Lukas Rytz, Seth Tisue, Anselm von Wangenheim, Scala Steward, Liang Yan, Jamie Thompson, jxnu-liguobin, AminMal, Jason Zaugg, Kenji Yoshida, Rituraj, ashish, Chris Kipp, Dale Wijnand, Francesco Kriegel, Georgi Chochov, Goooler, João Costa, Kisaragi Marine, Rafał Sumisławski, Ruslans Tarasovs, Simon R, Sébastien Doeraene, Tomasz Godzik, Zhang Zhipeng, danarmak, hepin.p. 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://togithub.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 `scalaVersion` setting in your sbt project - Bump the `using scala` setting in your Scala-CLI project - Download a distribution from [scala-lang.org](https://scala-lang.org/download/2.13.11.html) - Obtain JARs via [Maven Central](https://search.maven.org/search?q=g:org.scala-lang%20AND%20v:2.13.11) ### [`v2.13.10`](https://togithub.com/scala/scala/releases/tag/v2.13.10): Scala 2.13.10 [Compare Source](https://togithub.com/scala/scala/compare/v2.13.9...v2.13.10) The Scala team at Lightbend is pleased to announce the availability of Scala 2.13.10. The following changes are highlights of this release: ##### Binary compatibility regression fixed - Fix 2.13.9 regression which broke binary compatibility of case classes which are also value classes ([#&#8203;10155](https://togithub.com/scala/scala/pull/10155)) Library maintainers should avoid publishing libraries using Scala 2.13.9. ##### Other notable changes - Fix 2.13.9 regression in linting, causing spurious "variable x is never used" warnings ([#&#8203;10154](https://togithub.com/scala/scala/pull/10154)) - `-Xsource:3` now respects refinements by whitebox macro overrides ([#&#8203;10160](https://togithub.com/scala/scala/pull/10160) by [@&#8203;som-snytt](https://togithub.com/som-snytt)) - Scaladoc tool: fix parsing bug which could cause very slow performance or incorrect output ([#&#8203;10175](https://togithub.com/scala/scala/pull/10175) by [@&#8203;liang3zy22](https://togithub.com/liang3zy22)) - Restore `-Vprint-args`, for echoing arguments provided to compiler ([#&#8203;10164](https://togithub.com/scala/scala/pull/10164) by [@&#8203;som-snytt](https://togithub.com/som-snytt)) For the complete 2.13.10 change lists, see [all merged PRs](https://togithub.com/scala/scala/pulls?q=is%3Amerged%20milestone%3A2.13.10) and [all closed bugs](https://togithub.com/scala/bug/issues?utf8=%E2%9C%93\&q=is%3Aclosed+milestone%3A2.13.10). #### Compatibility As usual for our minor releases, Scala 2.13.10 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 an especially large share of the improvements in this release. This release was brought to you by 6 contributors, according to `git shortlog -sn --no-merges @&#8203; ^v2.13.9 ^2.12.x`. Thank you A. P. Marki, Liang Yan, Seth Tisue, Antoine Parent, Luc Henninger, 梦境迷离. Thanks to [Lightbend](https://www.lightbend.com/scala) for their continued sponsorship of the Scala core 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://togithub.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 `scalaVersion` setting in your sbt-based project - Download a distribution from [scala-lang.org](https://scala-lang.org/download/2.13.10.html) - Obtain JARs via [Maven Central](https://search.maven.org/search?q=g:org.scala-lang%20AND%20v:2.13.10) ### [`v2.13.9`](https://togithub.com/scala/scala/releases/tag/v2.13.9): Scala 2.13.9 [Compare Source](https://togithub.com/scala/scala/compare/v2.13.8...v2.13.9) The following changes are highlights of this release: ##### Regression Library maintainers should avoid publishing libraries using Scala 2.13.9. Please use [2.13.10](https://togithub.com/scala/scala/releases/v2.13.10) instead. 2.13.9 has a [regression](https://togithub.com/scala/bug/issues/12650) where binary-incompatible bytecode is emitted for case classes which are also value classes (`case class ... extends AnyVal`). ##### Compatibility with Scala 3 - Tasty Reader: Add support for Scala 3.2 ([#&#8203;10068](https://togithub.com/scala/scala/pull/10068)) - Tasty Reader: Restrict access to experimental definitions ([#&#8203;10020](https://togithub.com/scala/scala/pull/10020)) - To aid cross-building, accept and ignore `using` in method calls ([#&#8203;10064](https://togithub.com/scala/scala/pull/10064) by [@&#8203;som-snytt](https://togithub.com/som-snytt)) - To aid cross-building, allow `?` as a wildcard even without `-Xsource:3` ([#&#8203;9990](https://togithub.com/scala/scala/pull/9990)) - Make Scala-3-style implicit resolution explicitly opt-in rather than bundled in `-Xsource:3` ([#&#8203;10012](https://togithub.com/scala/scala/pull/10012) by [@&#8203;povder](https://togithub.com/povder)) - Prefer type of overridden member when inferring (under `-Xsource:3`) ([#&#8203;9891](https://togithub.com/scala/scala/pull/9891) by [@&#8203;som-snytt](https://togithub.com/som-snytt)) ##### JDK version support - Make `-release` more useful, deprecate `-target`, align with Scala 3 ([#&#8203;9982](https://togithub.com/scala/scala/pull/9982) by [@&#8203;som-snytt](https://togithub.com/som-snytt)) - Support JDK 19 ([#&#8203;10001](https://togithub.com/scala/scala/pull/10001) by [@&#8203;Philippus](https://togithub.com/Philippus)) ##### Warnings and lints - Add `-Wnonunit-statement` to warn about discarded values in statement position ([#&#8203;9893](https://togithub.com/scala/scala/pull/9893) by [@&#8203;som-snytt](https://togithub.com/som-snytt)) - Make unused-import warnings easier to silence (support filtering by `origin=`) ([#&#8203;9939](https://togithub.com/scala/scala/pull/9939) by [@&#8203;som-snytt](https://togithub.com/som-snytt)) - Add `-Wperformance` lints for `*Ref` boxing and nonlocal `return` ([#&#8203;9889](https://togithub.com/scala/scala/pull/9889) by [@&#8203;som-snytt](https://togithub.com/som-snytt)) ##### Language improvements - Improve support for Unicode supplementary characters in identifiers and string interpolation ([#&#8203;9805](https://togithub.com/scala/scala/pull/9805) by [@&#8203;som-snytt](https://togithub.com/som-snytt)) ##### Compiler options - Use subcolon args to simplify optimizer options ([#&#8203;9810](https://togithub.com/scala/scala/pull/9810) by [@&#8203;som-snytt](https://togithub.com/som-snytt)) - For troubleshooting compiler, add `-Vdebug-type-error` (and remove `-Yissue-debug`) ([#&#8203;9824](https://togithub.com/scala/scala/pull/9824) by [@&#8203;tribbloid](https://togithub.com/tribbloid)) ##### Security - Error on source files with Unicode directional formatting characters ([#&#8203;10017](https://togithub.com/scala/scala/pull/10017)) - Prevent `Function0` execution during `LazyList` deserialization ([#&#8203;10118](https://togithub.com/scala/scala/pull/10118)) ##### Bugfixes - Emit all bridge methods non-final (perhaps affecting serialization compat) ([#&#8203;9976](https://togithub.com/scala/scala/pull/9976)) - Fix null-pointer regression in `Vector#prependedAll` and `Vector#appendedAll` ([#&#8203;9983](https://togithub.com/scala/scala/pull/9983)) - Improve concurrent behavior of Java `ConcurrentMap` wrapper ([#&#8203;10027](https://togithub.com/scala/scala/pull/10027) by [@&#8203;igabaydulin](https://togithub.com/igabaydulin)) - Preserve null policy in wrapped Java `Map`s ([#&#8203;10129](https://togithub.com/scala/scala/pull/10129) by [@&#8203;som-snytt](https://togithub.com/som-snytt)) Changes that shipped in Scala 2.12.16 and 2.12.17 are also included in this release. For the complete 2.13.9 change lists, see [all merged PRs](https://togithub.com/scala/scala/pulls?q=is%3Amerged%20milestone%3A2.13.9) and [all closed bugs](https://togithub.com/scala/bug/issues?utf8=%E2%9C%93\&q=is%3Aclosed+milestone%3A2.13.9). #### Compatibility As usual for our minor releases, Scala 2.13.9 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 an especially large share of the improvements in this release. This release was brought to you by 27 contributors, according to `git shortlog -sn --no-merges @&#8203; ^v2.13.8 ^2.12.x`. Thank you A. P. Marki, Lukas Rytz, Seth Tisue, Jamie Thompson, Sébastien Doeraene, Scala Steward, Georgi Krastev, Jason Zaugg, Philippus, Balys Anikevicius, Gilad Hoch, NthPortal, Zhang Zhipeng, Arman Bilge, Dale Wijnand, Dominik Helm, Eric Huang, Guillaume Martres, Harrison Houghton, Krzysztof Pado, Michał Pałka, Zeeshan Arif, counter2015, jxnu-liguobin, mcallisto, naveen, philwalk. Thanks to [Lightbend](https://www.lightbend.com/scala) for their continued sponsorship of the Scala core 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://togithub.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 `scalaVersion` setting in your sbt-based project - Download a distribution from [scala-lang.org](https://scala-lang.org/download/2.13.9.html) - Obtain JARs via [Maven Central](https://search.maven.org/search?q=g:org.scala-lang%20AND%20v:2.13.9) ### [`v2.13.8`](https://togithub.com/scala/scala/releases/tag/v2.13.8): Scala 2.13.8 [Compare Source](https://togithub.com/scala/scala/compare/v2.13.7...v2.13.8) The Scala team at Lightbend is pleased to announce the availability of Scala 2.13.8. This is a modest, incremental release focused on addressing regressions in 2.13.7. ##### Highlights - Make REPL work again on Mac M1 (upgrade JLine & JNA) ([#&#8203;9807](https://togithub.com/scala/scala/pull/9807) by [@&#8203;SethTisue](https://togithub.com/SethTisue)) - Fix slicing of views of `IndexedSeq`s (including fixing 2.13.7 `reverseIterator` regression) ([#&#8203;9799](https://togithub.com/scala/scala/pull/9799) by [@&#8203;som-snytt](https://togithub.com/som-snytt)) - Fix 2.13.7 regression in implicit resolution ([#&#8203;9829](https://togithub.com/scala/scala/pull/9829) by [@&#8203;joroKr21](https://togithub.com/joroKr21)) - Fix 2.13.7 `releaseFence` regression affecting GraalVM compatibility ([#&#8203;9825](https://togithub.com/scala/scala/pull/9825) by [@&#8203;lrytz](https://togithub.com/lrytz)) - Fix 2.13.7 regression affecting wildcards and F-bounded types ([#&#8203;9806](https://togithub.com/scala/scala/pull/9806) by [@&#8203;joroKr21](https://togithub.com/joroKr21)) A few small changes that will ship in 2.12.16 are also included in this release. For the complete 2.13.8 change lists, see [all merged PRs](https://togithub.com/scala/scala/pulls?q=is%3Amerged%20milestone%3A2.13.8) and [all closed bugs](https://togithub.com/scala/bug/issues?utf8=%E2%9C%93\&q=is%3Aclosed+milestone%3A2.13.8). #### Compatibility As usual for our minor releases, Scala 2.13.8 is binary-compatible 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. This release was brought to you by 8 contributors, according to `git shortlog -sn --no-merges @&#8203; ^v2.13.7 ^2.12.x`. Thank you A. P. Marki, Seth Tisue, Georgi Krastev, Jason Zaugg, Lukas Rytz, Martijn Hoekstra, Philippus Baalman, Chris Kipp. Thanks to [Lightbend](https://www.lightbend.com/scala) for their continued sponsorship of the Scala core 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://togithub.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 `scalaVersion` setting in your sbt-based project - Download a distribution from [scala-lang.org](https://scala-lang.org/download/2.13.8.html) - Obtain JARs via [Maven Central](https://search.maven.org/search?q=g:org.scala-lang%20AND%20v:2.13.8) ### [`v2.13.7`](https://togithub.com/scala/scala/releases/tag/v2.13.7): Scala 2.13.7 [Compare Source](https://togithub.com/scala/scala/compare/v2.13.6...v2.13.7) The Scala team at Lightbend is pleased to announce the availability of Scala 2.13.7. ##### Align with Scala 3 - Update TASTy reader to support Scala 3.1 ([#&#8203;9791](https://togithub.com/scala/scala/pull/9791) by [@&#8203;bishabosha](https://togithub.com/bishabosha)) - Allow `import x.{*, given}` under `-Xsource:3` ([#&#8203;9724](https://togithub.com/scala/scala/pull/9724) by [@&#8203;smarter](https://togithub.com/smarter)) - Allow `case` in pattern bindings even without `-Xsource:3` ([#&#8203;9721](https://togithub.com/scala/scala/pull/9721) by [@&#8203;smarter](https://togithub.com/smarter)) - Deprecate top-level wildcard type parameters ([#&#8203;9712](https://togithub.com/scala/scala/pull/9712) by [@&#8203;som-snytt](https://togithub.com/som-snytt)) ##### JDK and Java compatibility - Support JDK 18 ([#&#8203;9702](https://togithub.com/scala/scala/pull/9702) by [@&#8203;SethTisue](https://togithub.com/SethTisue)) - Support JDK 16 records in Java sources ([#&#8203;9551](https://togithub.com/scala/scala/pull/9551) by [@&#8203;harpocrates](https://togithub.com/harpocrates)) - Allow concrete private interface methods in Java sources ([#&#8203;9748](https://togithub.com/scala/scala/pull/9748) by [@&#8203;dengziming](https://togithub.com/dengziming)) - Use `StringConcatFactory` for string concatenation on JDK 9+ ([#&#8203;9556](https://togithub.com/scala/scala/pull/9556) by [@&#8203;harpocrates](https://togithub.com/harpocrates)) ##### Android compatibility - Add `ClassValueCompat` to support systems without `java.lang.ClassValue` (such as Android) ([#&#8203;9752](https://togithub.com/scala/scala/pull/9752) by [@&#8203;nwk37011](https://togithub.com/nwk37011)) - For Android compatibility, make `Statics.releaseFence()` also catch `NoSuchMethodException` for `java.lang.invoke.VarHandle.releaseFence()` call ([#&#8203;9739](https://togithub.com/scala/scala/pull/9739) by [@&#8203;nwk37011](https://togithub.com/nwk37011)) ##### Concurrency - Fix asymmetric failure behavior of `Future#{zip,zipWith,traverse,sequence}` by making them fail fast regardless of ordering ([#&#8203;9655](https://togithub.com/scala/scala/pull/9655) by [@&#8203;lihaoyi](https://togithub.com/lihaoyi)) ##### Collections - Make `ArrayBuffer`'s iterator fail fast when buffer is mutated ([#&#8203;9258](https://togithub.com/scala/scala/pull/9258) by [@&#8203;NthPortal](https://togithub.com/NthPortal)) - Fix `ArrayOps` bugs (by avoiding `ArraySeq#array`, which does not guarantee element type) ([#&#8203;9641](https://togithub.com/scala/scala/pull/9641) by [@&#8203;som-snytt](https://togithub.com/som-snytt)) - Deprecate `IterableOps.toIterable` ([#&#8203;9774](https://togithub.com/scala/scala/pull/9774) by [@&#8203;lrytz](https://togithub.com/lrytz)) ##### Other changes - Accept supplementary Unicode characters in identifiers ([#&#8203;9687](https://togithub.com/scala/scala/pull/9687) by [@&#8203;som-snytt](https://togithub.com/som-snytt)) - Improve tab completion and code assist in REPL ([#&#8203;9656](https://togithub.com/scala/scala/pull/9656) by [@&#8203;retronym](https://togithub.com/retronym)) Some small changes that will ship in 2.12.16 are also included in this release. For the complete 2.13.7 change lists, see [all merged PRs](https://togithub.com/scala/scala/pulls?q=is%3Amerged%20milestone%3A2.13.7) and [all closed bugs](https://togithub.com/scala/bug/issues?utf8=%E2%9C%93\&q=is%3Aclosed+milestone%3A2.13.7). #### Compatibility As usual for our minor releases, Scala 2.13.7 is binary-compatible 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. This release was brought to you by 25 contributors, according to `git shortlog -sn --no-merges @&#8203; ^v2.13.6 ^2.12.x`. Thank you A. P. Marki, Lukas Rytz, Seth Tisue, Jason Zaugg, Jamie Thompson, NthPortal, Georgi Krastev, Guillaume Martres, Dale Wijnand, Martijn Hoekstra, Alec Theriault, Rafał Sumisławski, Matt Dziuban, Li Haoyi, Doug Roper, Sébastien Doeraene, VladKopanev, danicheg, dengziming, megri, nwk37011, Magnolia.K, 梦境迷离, Mathias, James Judd. Thanks to [Lightbend](https://www.lightbend.com/scala) for their continued sponsorship of the Scala core 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://togithub.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 `scalaVersion` setting in your sbt-based project - Download a distribution from [scala-lang.org](https://scala-lang.org/download/2.13.7.html) - Obtain JARs via [Maven Central](https://search.maven.org/search?q=g:org.scala-lang%20AND%20v:2.13.7) ### [`v2.13.6`](https://togithub.com/scala/scala/releases/tag/v2.13.6): Scala 2.13.6 [Compare Source](https://togithub.com/scala/scala/compare/v2.13.5...v2.13.6) The Scala 2 team at Lightbend is pleased to announce the availability of Scala 2.13.6. ##### Highlights - TASTy Reader support for Scala 3.0.0 ([#&#8203;9617](https://togithub.com/scala/scala/pull/9617) by [@&#8203;bishabosha](https://togithub.com/bishabosha)) - The [splain compiler plugin](https://togithub.com/tek/splain) by [@&#8203;tek](https://togithub.com/tek) was integrated into the compiler, available with the `-Vimplicits` and `-Vtype-diffs` flags ([#&#8203;7785](https://togithub.com/scala/scala/pull/7785)) - Escaped double quotes now work as expected in string interpolations, both `s"\""` and `s"$""` ([#&#8203;8830](https://togithub.com/scala/scala/pull/8830) by [@&#8203;eed3si9n](https://togithub.com/eed3si9n) and [#&#8203;9536](https://togithub.com/scala/scala/pull/9536) by [@&#8203;martijnhoekstra](https://togithub.com/martijnhoekstra)) ##### Other Changes - Optimized `BigInt` implementation ([#&#8203;9628](https://togithub.com/scala/scala/pull/9628)) by [@&#8203;denisrosset](https://togithub.com/denisrosset) - Support JDK15 text blocks in Java parser ([#&#8203;9548](https://togithub.com/scala/scala/pull/9548)) by [@&#8203;harpocrates](https://togithub.com/harpocrates) - Stricter override checking for protected Scala members which override Java members ([#&#8203;9525](https://togithub.com/scala/scala/pull/9525)) by [@&#8203;kynthus](https://togithub.com/kynthus) - Check `private[this]` members in override checking ([#&#8203;9542](https://togithub.com/scala/scala/pull/9542)) - More accurate outer checks in patterns ([#&#8203;9504](https://togithub.com/scala/scala/pull/9504)) - Allow renaming imports from `_root_` ([#&#8203;9482](https://togithub.com/scala/scala/pull/9482)) by [@&#8203;som-snytt](https://togithub.com/som-snytt) - Make more annotations extend `ConstantAnnotation` ([9336](https://togithub.com/scala/scala/pull/9336)) by [@&#8203;BalmungSan](https://togithub.com/BalmungSan) - A number of syntax changes were added to simplify cross-building between Scala 2 and 3 - Don't error (only warn) on symbol literals under `-Xsource:3` ([#&#8203;9602](https://togithub.com/scala/scala/pull/9602)) - Support writing `&` instead of `with` in types under `-Xsource:3` ([#&#8203;9594](https://togithub.com/scala/scala/pull/9594)) - Support Scala 3 vararg splice syntax under `-Xsource:3` ([#&#8203;9584](https://togithub.com/scala/scala/pull/9584)) - Support Scala 3 wildcard and renaming imports under `-Xsource:3` ([#&#8203;9582](https://togithub.com/scala/scala/pull/9582)) - Allow soft keywords open and infix under `-Xsource:3` ([#&#8203;9580](https://togithub.com/scala/scala/pull/9580)) - Align leading infix operator with Scala 3 improvements ([#&#8203;9567](https://togithub.com/scala/scala/pull/9567)) - Support `?` as wildcard marker under `-Xsource:3` ([#&#8203;9560](https://togithub.com/scala/scala/pull/9560)) - Support case in pattern bindings under `-Xsource:3` ([#&#8203;9558](https://togithub.com/scala/scala/pull/9558)) - Parse `+_` and `-_` in types as identifiers under `-Xsource:3` to support Scala 3.2 placeholder syntax ([#&#8203;9605](https://togithub.com/scala/scala/pull/9605)) Some small changes that will ship in 2.12.14 are also included in this release. For the complete 2.13.6 change lists, see [all merged PRs](https://togithub.com/scala/scala/pulls?q=is%3Amerged%20milestone%3A2.13.6) and [all closed bugs](https://togithub.com/scala/bug/issues?utf8=%E2%9C%93\&q=is%3Aclosed+milestone%3A2.13.6). #### Compatibility As usual for our minor releases, Scala 2.13.6 is binary-compatible 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. This release was brought to you by 25 contributors, according to `git shortlog -sn --no-merges HEAD ^v2.13.5 ^2.12.x`. Thank you A. P. Marki, Lukas Rytz, Dale Wijnand, Jamie Thompson, Seth Tisue, 梦境迷离, Guillaume Martres, Martijn Hoekstra, Denis Rosset, Aaron S. Hawley, Kai, Eugene Yokota, Jason Zaugg, Anatolii Kmetiuk, Ikko Ashimine, superseeker13, Eugene Platonov, Diego E. Alonso Blas, Filipe Regadas, Hatano Yuusuke, Luis Miguel Mejía Suárez, Rafał Sumisławski, Alec Theriault, Tom Grigg, Torsten Schmits. Thanks to [Lightbend](https://www.lightbend.com/scala) for their continued sponsorship of the Scala core 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://togithub.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 `scalaVersion` setting in your sbt-based project - Download a distribution from [scala-lang.org](http://scala-lang.org/download/2.13.6.html) - Obtain JARs via [Maven Central](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.scala-lang%22%20AND%20v%3A%222.13.6%22) ### [`v2.13.5`](https://togithub.com/scala/scala/releases/tag/v2.13.5): Scala 2.13.5 [Compare Source](https://togithub.com/scala/scala/compare/v2.13.4...v2.13.5) #### Scala 2.13.5 The Scala 2 team at Lightbend is pleased to announce the availability of Scala 2.13.5. ##### Highlights - TASTy reader: add support for Scala 3.0.0-RC1 ([#&#8203;9501](https://togithub.com/scala/scala/pull/9501), [#&#8203;9394](https://togithub.com/scala/scala/pull/9394), [#&#8203;9357](https://togithub.com/scala/scala/pull/9357)) — thank you [@&#8203;bishabosha](https://togithub.com/bishabosha)! - Allow name-based extractors to be irrefutable ([#&#8203;9343](https://togithub.com/scala/scala/pull/9343)) — thank you [@&#8203;martijnhoekstra](https://togithub.com/martijnhoekstra)! - Upgrade to ASM 9.1, for JDK 16 and 17 support in the optimizer ([#&#8203;9489](https://togithub.com/scala/scala/pull/9489), [#&#8203;9480](https://togithub.com/scala/scala/pull/9480)) ##### Other changes - Assorted improvements to exhaustivity checking in pattern matching ([#&#8203;9479](https://togithub.com/scala/scala/pull/9479), [#&#8203;9472](https://togithub.com/scala/scala/pull/9472), [#&#8203;9474](https://togithub.com/scala/scala/pull/9474), [#&#8203;9313](https://togithub.com/scala/scala/pull/9313), [#&#8203;9462](https://togithub.com/scala/scala/pull/9462)) - Assorted improvements to handling of higher-kinded types, aligning with Scala 3 ([#&#8203;9400](https://togithub.com/scala/scala/pull/9400), [#&#8203;9404](https://togithub.com/scala/scala/pull/9404), [#&#8203;9405](https://togithub.com/scala/scala/pull/9405), [#&#8203;9414](https://togithub.com/scala/scala/pull/9414), [#&#8203;9417](https://togithub.com/scala/scala/pull/9417), [#&#8203;9439](https://togithub.com/scala/scala/pull/9439)) — thank you [@&#8203;joroKr21](https://togithub.com/joroKr21)! - Make `-target` support JVM 13, 14, 15, 16, and 17 ([#&#8203;9489](https://togithub.com/scala/scala/pull/9489), [#&#8203;9481](https://togithub.com/scala/scala/pull/9481)) - Omit `@nowarn` annotations from generated code, for forwards compatibility at compile-time ([#&#8203;9491](https://togithub.com/scala/scala/pull/9491)) - Add linting of unused context bounds (via `-Wunused:synthetics` or `-Wunused:params`) ([#&#8203;9346](https://togithub.com/scala/scala/pull/9346)) — thank you [@&#8203;som-snytt](https://togithub.com/som-snytt)! - Lift artificial restrictions on `ConstantAnnotation`s ([#&#8203;9379](https://togithub.com/scala/scala/pull/9379)) - Make Java `Map` wrappers handle nulls according to `put`/`remove` contract ([#&#8203;9344](https://togithub.com/scala/scala/pull/9344)) — thank you [@&#8203;som-snytt](https://togithub.com/som-snytt)! - Make language specification available as a PDF ([#&#8203;7432](https://togithub.com/scala/scala/pull/7432)) — thank you [@&#8203;sake92](https://togithub.com/sake92)! Some small changes that will ship in 2.12.14 are also included in this release. For complete 2.13.5 change lists, see [all merged PRs](https://togithub.com/scala/scala/pulls?q=is%3Amerged%20milestone%3A2.13.5) and [all closed bugs](https://togithub.com/scala/bug/issues?utf8=%E2%9C%93\&q=is%3Aclosed+milestone%3A2.13.5). #### Compatibility As usual for our minor releases, Scala 2.13.5 is binary-compatible 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. This release was brought to you by 23 contributors, according to `git shortlog -sn --no-merges HEAD ^v2.13.4 ^2.12.x`. Thank you Seth Tisue, A. P. Marki, Dale Wijnand, NthPortal, Jamie Thompson, Lukas Rytz, Martijn Hoekstra, Georgi Krastev, Jason Zaugg, Jasper Moeys, Sakib Hadziavdic, Anatolii Kmetiuk, Arnaud Gourlay, Marcono1234, Chia-Ping Tsai, Mike Skells, Stefan Zeiger, Waleed Khan, Yann Bolliger, Guillaume Martres, 梦境迷离, Ethan Atkins, Darcy Shen. Thanks to [Lightbend](https://www.lightbend.com/scala) for their continued sponsorship of the Scala core 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://togithub.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 `scalaVersion` setting in your sbt-based project - Download a distribution from [scala-lang.org](http://scala-lang.org/download/2.13.5.html) - Obtain JARs via [Maven Central](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.scala-lang%22%20AND%20v%3A%222.13.5%22) ### [`v2.13.4`](https://togithub.com/scala/scala/releases/tag/v2.13.4): Scala 2.13.4 [Compare Source](https://togithub.com/scala/scala/compare/v2.13.3...v2.13.4) Scala 2.13.4: - Restores default global `ExecutionContext` to 2.12 behavior - Improves pattern matching, especially in exhaustivity checking - Adds experimental support for consuming some libraries built by Scala 3 and more! Details below. ##### Concurrency **NOTE** The following change affects parallelism and performance. If you use `scala.concurrent.ExecutionContext.global` you may want to adapt your code. (But note that Akka is unaffected, because it uses its own execution contexts.) In 2.13.0 we made `ExecutionContext.global` "opportunistic". This enabled "batching" of nested tasks to execute on the same thread, avoiding an expensive context switch. That strategy requires user code to wrap long-running and/or blocking tasks with `blocking { ... }` to maintain parallel execution. For 2.13.4, we restore 2.12's default non-batching behavior, which is safer for arbitrary user code. Users wanting increased performance may override the default, if they believe their code uses `blocking` correctly. We make that choice available via `ExecutionContext.opportunistic`. Using `ExecutionContext.opportunistic` requires a bit of extra boilerplate, made necessary by binary compatibility constraints on the standard library. Detailed instructions are in [ExecutionContext.global's Scaladoc](https://www.scala-lang.org/api/2.13.4/scala/concurrent/ExecutionContext$.html#global:scala.concurrent.ExecutionContextExecutor). Further detail: [#&#8203;9270](https://togithub.com/scala/scala/pull/9270)/[#&#8203;9296](https://togithub.com/scala/scala/pull/9296)/[scala/bug#12089](https://togithub.com/scala/bug/issues/12089), ##### Pattern matching The pattern matcher is now much better at warning you if a match isn't exhaustive. The following types of matches no longer disable exhaustivity checking: - guards (`case <pattern> if <condition> => ...`) [#&#8203;9140][] - custom extractors (user-defined `unapply` or `unapplySeq`) [#&#8203;9140][]/[#&#8203;9162][] - unsealed types, if you opt in via `-Xlint` or `-Xlint:strict-unsealed-patmat` [#&#8203;9140][]/[#&#8203;9299][] Additionally, - private classes are now treated as if sealed [#&#8203;9211](https://togithub.com/scala/scala/pull/9211) - singleton types no longer prematurely widen [#&#8203;9209](https://togithub.com/scala/scala/pull/9209) - tuples are handled properly [#&#8203;9147](https://togithub.com/scala/scala/pull/9147)/[#&#8203;9163](https://togithub.com/scala/scala/pull/9163)/[#&#8203;9147](https://togithub.com/scala/scala/pull/9147) New warnings reported can be resolved by: 1. adding any missing cases 2. in the case of complementary guards (e.g. `if n > 0` and `if n <= 0`) by dropping the last guard 3. for custom extractors: demarking irrefutable extractors as such, by defining the return type as `Some` 4. for sealed types: marking traits or parent classes sealed, parent classes abstract, and classes final 5. explicitly declaring the default case: `case x => throw new MatchError(x)` Otherwise, your options for suppressing warnings include: 1. annotate the scrutinee with `@unchecked`, such as `(foo: @&#8203;unchecked) match { ... }` 2. disable exhaustivity checking in the presence of guards and custom extractors with `-Xnon-strict-patmat-analysis` 3. disable exhaustivity checking of unsealed types with `-Xlint:-strict-unsealed-patmat` 4. use `-Wconf` to suppress the warnings globally, with e.g. `-Wconf:msg=match may not be exhaustive:i` [#&#8203;9140]: https://togithub.com/scala/scala/pull/9140 [#&#8203;9162]: https://togithub.com/scala/scala/pull/9162 [#&#8203;9299]: https://togithub.com/scala/scala/pull/9299 ##### Scala 3 interop This release enables the Scala 2 compiler to consume some libraries built in Scala 3. [#&#8203;9109][]/[#&#8203;9293][] The new capability is experimental. To enable it, add `-Ytasty-reader` to your compiler options. Not all Scala 3 built libraries are supported, because not all Scala 3 features can be supported. The library author must stay within the supported subset. For more details and caveats see the blog post [Forward Compatibility for the Scala 3 Transition][]. [#&#8203;9109]: https://togithub.com/scala/scala/pull/9109 [#&#8203;9293]: https://togithub.com/scala/scala/pull/9293 [Forward Compatibility for the Scala 3 Transition]: https://togithub.com/SethTisue/scala-lang/blob/re-add-tasty-blog-post/blog/_posts/2020-11-17-scala-3-forward-compat.md ##### Standard library changes - When compiling on JDK 15, avoid clash with new `CharSequence#isEmpty` method [#&#8203;9292](https://togithub.com/scala/scala/pull/9292) - The clash is avoided by making `CharSequence` wrappers in `Predef` non-implicit. - The change is binary compatible, but not source compatible. Call sites may need updating. - Make `LazyList.cons.apply` lazier [#&#8203;9095](https://togithub.com/scala/scala/pull/9095) - Make `MapView#values` preserve laziness [#&#8203;9090](https://togithub.com/scala/scala/pull/9090) - Make `ListBuffer`'s iterator fail when the buffer is mutated [#&#8203;9174](https://togithub.com/scala/scala/pull/9174) - Un-deprecate useful `StringOps` methods, despite Unicode concerns [#&#8203;9246](https://togithub.com/scala/scala/pull/9246) ##### Compiler changes - Allow using `classOf` with object type (e.g. `classOf[Foo.type]`) [#&#8203;9279](https://togithub.com/scala/scala/pull/9279) - Fix back-quoted constructor params with identical prefixes [#&#8203;9008](https://togithub.com/scala/scala/pull/9008) - Enable range positions (`-Yrangepos`) by default [#&#8203;9146](https://togithub.com/scala/scala/pull/9146) ##### Other changes Some changes that will also ship in 2.12.13 are also included in this release, most notably: - When compiling on JDK 15, avoid clash with new `CharSequence#isEmpty` method [#&#8203;9292](https://togithub.com/scala/scala/pull/9292) - To avoid the clash, `implicit` was removed from `Predef`'s implicit conversions to `SeqCharSequence` and `ArrayCharSequence`. - This change is binary compatible, but not source compatible. User code may need updating. See PR for details. For complete 2.13.4 change lists, see [all merged PRs](https://togithub.com/scala/scala/pulls?q=is%3Amerged%20milestone%3A2.13.4) and [all closed bugs](https://togithub.com/scala/bug/issues?utf8=%E2%9C%93\&q=is%3Aclosed+milestone%3A2.13.4). #### Compatibility As usual for our minor releases, Scala 2.13.4 is binary-compatible 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. This release was brought to you by 40 contributors, according to `git shortlog -sn --no-merges HEAD ^v2.13.3 ^2.12.x`. Thank you Jamie Thompson, Dale Wijnand, A. P. Marki, NthPortal, Lukas Rytz, Seth Tisue, Jason Zaugg, Georgi Krastev, Eugene Yokota, Martijn Hoekstra, Trey Cahill, Rado Buransky, Ergys Dona, Mike Skells, Greg Pfeil, Kazuhiro Sera, Mitsuhiro Shibuya, NagaChaitanya Vellanki, Sergei Petunin, Sébastien Doeraene, Takahashi Osamu, Viktor Klang, mwielocha, Nicolas Stucki, Jan Arne Sparka, Philippus Baalman, Glenn Liwanag, Rafał Sumisławski, Renato Cavalcanti, Sergei, nooberfsh, Dmitrii Naumenko, Simão Martins, counter2015, Jian Lan, Liu Fengyun, Kanishka, Julien Richard-Foy, Janek Bogucki, Björn Regnell. Thanks to [Lightbend](https://www.lightbend.com/scala) for their continued sponsorship of the Scala core 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://togithub.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 `scalaVersion` setting in your sbt-based project - Download a distribution from [scala-lang.org](http://scala-lang.org/download/2.13.4.html) - Obtain JARs via [Maven Central](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.scala-lang%22%20AND%20v%3A%222.13.4%22) ### [`v2.13.3`](https://togithub.com/scala/scala/releases/tag/v2.13.3): Scala 2.13.3 [Compare Source](https://togithub.com/scala/scala/compare/v2.13.2...v2.13.3) Scala 2.13.3 is primarily a bugfix release. It also includes: - improvements to warnings and linting - experimental `-Xasync` support For more detail, read on. ##### Behavior changes - `Symbol#toString` is now `Symbol(foo)` instead of the deprecated single-quote form `'foo` ([#&#8203;8933](https://togithub.com/scala/scala/pull/8933)) ##### Bugfixes - Fix 2.13-only bug in Java collection converters that caused some operations to perform an extra pass ([#&#8203;9058](https://togithub.com/scala/scala/pull/9058)) - Fix 2.13.2 performance regression in `Vector`: restore special cases for small operands in `appendedAll` and `prependedAll` ([#&#8203;9036](https://togithub.com/scala/scala/pull/9036)) - Increase laziness of `#::` for `LazyList` ([#&#8203;8985](https://togithub.com/scala/scala/pull/8985)) - Allow trailing backslash in string interpolators ([#&#8203;8942](https://togithub.com/scala/scala/pull/8942)) - Respect `@uncheckedVariance` in higher-kinded types (fixing 2.13.2 regression) ([#&#8203;8938](https://togithub.com/scala/scala/pull/8938)) ##### Warnings and linting - Deprecate auto-application of (non-Java-defined) methods with a single empty parameter list ([#&#8203;8833](https://togithub.com/scala/scala/pull/8833)) - The PR has instructions for suppressing the warning if it is unwanted - Warn by default on mismatch of presence/absence of an empty parameter list when overriding ([#&#8203;8846](https://togithub.com/scala/scala/pull/8846)) - `-Xlint:nullary-override` is no longer accepted, since this now warns by default - Discourage multi-argument infix syntax: lint applications (`x op (a, b)`), also lint operator-name definitions ([#&#8203;8951](https://togithub.com/scala/scala/pull/8951)) - Fix `@nowarn` to use correct semantics for `&` ([#&#8203;9032](https://togithub.com/scala/scala/pull/9032)) - Make `-Wunused:imports` work again even when `-Ymacro-annotations` is enabled ([#&#8203;8962](https://togithub.com/scala/scala/pull/8962)) - Replace `-Wself-implicit` with `-Xlint:implicit-recursion` ([#&#8203;9019](https://togithub.com/scala/scala/pull/9019)) - Under `-Xsource:3`, disallow auto-eta-expansion of SAMs ([#&#8203;9049](https://togithub.com/scala/scala/pull/9049)) ##### Experimental `-Xasync` This successor to [scala-async](https://togithub.com/scala/scala-async) allows usage with other effect systems besides `scala.concurrrent.Future`. - Compiler support for scala-async; enable with `-Xasync` ([#&#8203;8816](https://togithub.com/scala/scala/pull/8816)) We will publish a blog post with more detail on this work by [@&#8203;retronym](https://togithub.com/retronym), building on his earlier collaboration with [@&#8203;phaller](https://togithub.com/phaller). In the meantime, see the PR description. This feature will also be included in the 2.12.12 release. ##### Other changes For complete 2.13.3 change lists, see [all merged PRs](https://togithub.com/scala/scala/pulls?q=is%3Amerged%20milestone%3A2.13.3) and [all closed bugs](https://togithub.com/scala/bug/issues?utf8=%E2%9C%93\&q=is%3Aclosed+milestone%3A2.13.3). Some changes that will ship in 2.12.12 are also included in this release, most notably: - Annotation parsing & `@Deprecated` ([#&#8203;8781](https://togithub.com/scala/scala/pull/8781)) - Fix Scaladoc tool on JDK 11 with `-release 8`: exclude sig files in `Symbol#sourceFile` ([#&#8203;8849](https://togithub.com/scala/scala/pull/8849)) #### Compatibility As usual for our minor releases, Scala 2.13.3 is binary-compatible with the whole Scala 2.13 series. Upgrading from 2.12? Enable `-Xmigration` during upgrade 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. This release was brought to you by 28 contributors, according to `git shortlog -sn --no-merges HEAD ^v2.13.2 ^2.12.x`. Thank you A. P. Marki, Jason Zaugg, Seth Tisue, Dale Wijnand, Lukas Rytz, Georgi Krastev, David Barri, Eugene Yokota, Diego E. Alonso Blas, Akhtiam Sakaev, Glenn Liwanag, changvvb, Evgeny Ganchurin, Mike Skells, Martijn Hoekstra, yudedako, Anatolii Kmetiuk, Gilles Peiffer, JyotiSachdeva.ext, Karol Chmist, Kenji Yoshida, Lorenzo Costanzia di Costigliole, NthPortal, Steven Barnes, Sébastien Doeraene, Travis Brown, counter2015, nogurenn. Thanks to [Lightbend](https://www.lightbend.com/scala) for their continued sponsorship of the Scala core 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://togithub.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 `scalaVersion` setting in your sbt-based project - Download a distribution from [scala-lang.org](http://scala-lang.org/download/2.13.3.html) - Obtain JARs via [Maven Central](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.scala-lang%22%20AND%20v%3A%222.13.3%22) ### [`v2.13.2`](https://togithub.com/scala/scala/releases/tag/v2.13.2): Scala 2.13.2 [Compare Source](https://togithub.com/scala/scala/compare/v2.13.1...v2.13.2) Scala 2.13.2 has: - a brand-new `Vector` implementation - configurable warnings - an improved REPL (now JLine 3 based) - bugfixes and more ##### Vector - Rewrite `Vector` (using "radix-balanced finger tree vectors"), for performance ([#&#8203;8534](https://togithub.com/scala/scala/pull/8534)) Small vectors are now more compactly represented. Some operations are now drastically faster on large vectors. A few operations may be a little slower. Kudos to [@&#8203;szeiger](https://togithub.com/szeiger) for this work. ##### Configurable warnings - Add `-Wconf` flag for configurable warnings, `@nowarn` annotation for local suppression ([#&#8203;8373](https://togithub.com/scala/scala/pull/8373)) Note that [scala-collection-compat 2.1.6](https://togithub.com/scala/scala-collection-compat/releases/tag/v2.1.6) (or newer) provides `@nowarn` for cross-built projects (as a no-op on 2.11 and 2.12). Special thanks to Roman Janusz ([@&#8203;ghik](https://togithub.com/ghik)), whose [silencer](https://togithub.com/ghik/silencer) plugin was the basis for this work. ##### REPL improvements - REPL: upgrade to JLine 3 (benefits include multi-line editing) ([#&#8203;8036](https://togithub.com/scala/scala/pull/8036)) - Default true `-Yrepl-class-based` and `-Yuse-magic-imports` ([#&#8203;8748](https://togithub.com/scala/scala/pull/8748)) - `-Yrepl-class-based` avoids deadlocks - `-Yuse-magic-imports` improves performance for long sessions - Improve REPL display of method types ([#&#8203;8319](https://togithub.com/scala/scala/pull/8319)) Special thanks to [@&#8203;som-snytt](https://togithub.com/som-snytt) for spearheading the JLine 3 upgrade. We are tracking JLine-related improvements and regressions [here](https://togithub.com/scala/scala-dev/issues?q=is%3Aissue+is%3Aopen+label%3At%3Ajline3). There some known regressions in some less-vital features and behaviors; we plan to address these in future 2.13.x releases. ##### Language changes - Unicode escapes are now ordinary escape sequences (not processed early) ([#&#8203;8282](https://togithub.com/scala/scala/pull/8282)) ##### Compiler fixes - Plug many variance holes (in higher-kinded types, refined types, and private inner classes) ([#&#8203;8545](https://togithub.com/scala/scala/pull/8545)) - Fix variance handling for parameterized type aliases ([#&#8203;8651](https://togithub.com/scala/scala/pull/8651)) - Exclude universal members (`getClass`, `toString`, etc) from root module import ([#&#8203;8541](https://togithub.com/scala/scala/pull/8541)) - Matching strings makes switches in bytecode ([#&#8203;8451](https://togithub.com/scala/scala/pull/8451)) ##### Deprecations - Deprecate eta-expansion, via trailing underscore, of methods with no argument lists ([#&#8203;8836](https://togithub.com/scala/scala/pull/8836)) - Deprecate nested class shadowing in "override" position ([#&#8203;8705](https://togithub.com/scala/scala/pull/8705)) - Deprecate numeric conversions that lose precision (e.g., `Long` to `Double`) ([#&#8203;8679](https://togithub.com/scala/scala/pull/8679)) - Deprecate numeric widening of numeric literals which are not representable with `Float`/`Double` ([#&#8203;8757](https://togithub.com/scala/scala/pull/8757)) - Deprecate old-style constructor syntax ([#&#8203;8591](https://togithub.com/scala/scala/pull/8591)) ##### Improvements from the future - There is no more `-Xsource:2.14`, only `-Xsource:3` ([#&#8203;8812](https://togithub.com/scala/scala/pull/8812)) - Allow infix operators at start of line (under `-Xsource:3`) ([#&#8203;8419](https://togithub.com/scala/scala/pull/8419)) - Case class copy and apply inherit access modifiers from constructor (under `-Xsource:3`) ([#&#8203;7702](https://togithub.com/scala/scala/pull/7702)) ##### Other fixes and improvements - Un-deprecate default floating point `Ordering`s; issue migration warning instead under `-Xmigration` ([#&#8203;8721](https://togithub.com/scala/scala/pull/8721)) - Support macro annotation expansions in `-Wmacros:MODE` ([#&#8203;8799](https://togithub.com/scala/scala/pull/8799)) - Scaladoc can now link to Javadoc for the Java standard library for JDK versions 9 and up (overridable with new `-jdk-api-doc-base` flag) ([#&#8203;8663](https://togithub.com/scala/scala/pull/8663)) - `sys.env` now throws on null environment variable ([#&#8203;8579](https://togithub.com/scala/scala/pull/8579)) - Make the hashcode method `##` have no parameter list (instead of a single empty one) ([#&#8203;8814](https://togithub.com/scala/scala/pull/8814)) This is not a complete list of changes. For that, see [all merged PRs](https://togithub.com/scala/scala/pulls?q=is%3Amerged%20milestone%3A2.13.2) and [all closed bugs](https://togithub.com/scala/bug/issues?utf8=%E2%9C%93\&q=is%3Aclosed+milestone%3A2.13.2). 2.13.2 also includes the changes in [Scala 2.12.11](https://togithub.com/scala/scala/releases/tag/v2.12.11), most notably: - Make optimizer work on JDK 13+ ([#&#8203;8676](https://togithub.com/scala/scala/pull/8676)). ##### Compatibility As usual for our minor releases, Scala 2.13.2 is binary-compatible 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. This release was brought to you by 45 contributors, according to `git shortlog -sn --no-merges HEAD ^v2.13.1 ^2.12.x`. Thank you Som Snytt, Jason Zaugg, Lukas Rytz, Dale Wijnand, Seth Tisue, Diego E. Alonso Blas, Georgi Krastev, Martijn Hoekstra, Eugene Yokota, Harrison Houghton, Stefan Zeiger, NthPortal, Anatolii, Linas Medžiūnas, Aaron S. Hawley, Guillaume Martres, Josh Lemer, Sébastien Doeraene, Jasper Moeys, Julien Truffaut, Oskar Haarklou Veileborg, Lucas Cardoso, Andrew Valencik, Adriaan Moors, yudedako, Steven Barnes, Brian Wignall, Ausmarton Zarino Fernandes, Oguz Albayrak, Philippus, Viktor Klang, Yang Bo, bnyu, psilospore, sinanspd, wholock, Jamie Thompson, Hamza Meknassi, Janek Bogucki, Flash Sheridan, Fabian Page, Kenji Yoshida, Denis Rosset, Lucas S Cardoso, Chris Birchall. Thanks to [Lightbend](https://www.lightbend.com/scala) for their continued sponsorship of the Scala core 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://togithub.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 </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 3am on the first day of the month" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/navicore/navi-xml). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi42OC4xIiwidXBkYXRlZEluVmVyIjoiMzYuNjguMSIsInRhcmdldEJyYW5jaCI6Im1hc3RlciJ9-->
renovate[bot] commented 2023-09-01 02:50:42 +00:00 (Migrated from github.com)

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update (2.13.11). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the ignoreDeps array of your Renovate config.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

### Renovate Ignore Notification Because you closed this PR without merging, Renovate will ignore this update (2.13.11). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the `ignoreDeps` array of your Renovate config. If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
navicore/navi-xml!31
No description provided.