Skip to content

Commit

Permalink
Merge pull request typelevel#4071 from typelevel/update/series/3.x/sc…
Browse files Browse the repository at this point in the history
…ala-library-2.13.14

Update scala-library to 2.13.14 in series/3.x
  • Loading branch information
armanbilge authored May 20, 2024
2 parents 169c8fe + d9fa9cc commit 391f1e1
Show file tree
Hide file tree
Showing 12 changed files with 31 additions and 33 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-14]
scala: [3.3.3, 2.12.19, 2.13.12]
scala: [3.3.3, 2.12.19, 2.13.14]
java:
- temurin@8
- temurin@11
Expand Down Expand Up @@ -256,7 +256,7 @@ jobs:
- shell: bash
run: sbt '++ ${{ matrix.scala }}' '${{ matrix.ci }}'

- if: (matrix.scala == '2.13.12' || matrix.scala == '3.3.3') && matrix.ci == 'ciJVM' && matrix.java == 'temurin@17'
- if: (matrix.scala == '2.13.14' || matrix.scala == '3.3.3') && matrix.ci == 'ciJVM' && matrix.java == 'temurin@17'
shell: bash
run: sbt '++ ${{ matrix.scala }}' docs/mdoc

Expand All @@ -271,7 +271,7 @@ jobs:
run: example/test-js.sh ${{ matrix.scala }}

- name: Test GraalVM Native Image
if: matrix.scala == '2.13.12' && matrix.java == 'graalvm@17' && matrix.os == 'ubuntu-latest'
if: matrix.scala == '2.13.14' && matrix.java == 'graalvm@17' && matrix.os == 'ubuntu-latest'
shell: bash
run: sbt '++ ${{ matrix.scala }}' graalVMExample/nativeImage graalVMExample/nativeImageRun

Expand All @@ -281,7 +281,7 @@ jobs:
run: example/test-native.sh ${{ matrix.scala }}

- name: Scalafix tests
if: matrix.scala == '2.13.12' && matrix.ci == 'ciJVM' && matrix.os == 'ubuntu-latest'
if: matrix.scala == '2.13.14' && matrix.ci == 'ciJVM' && matrix.os == 'ubuntu-latest'
shell: bash
run: |
cd scalafix
Expand Down Expand Up @@ -452,52 +452,52 @@ jobs:
tar xf targets.tar
rm targets.tar
- name: Download target directories (2.13.12, ciJVM)
- name: Download target directories (2.13.14, ciJVM)
uses: actions/download-artifact@v4
with:
name: target-${{ matrix.os }}-${{ matrix.java }}-2.13.12-ciJVM
name: target-${{ matrix.os }}-${{ matrix.java }}-2.13.14-ciJVM

- name: Inflate target directories (2.13.12, ciJVM)
- name: Inflate target directories (2.13.14, ciJVM)
run: |
tar xf targets.tar
rm targets.tar
- name: Download target directories (2.13.12, ciNative)
- name: Download target directories (2.13.14, ciNative)
uses: actions/download-artifact@v4
with:
name: target-${{ matrix.os }}-${{ matrix.java }}-2.13.12-ciNative
name: target-${{ matrix.os }}-${{ matrix.java }}-2.13.14-ciNative

- name: Inflate target directories (2.13.12, ciNative)
- name: Inflate target directories (2.13.14, ciNative)
run: |
tar xf targets.tar
rm targets.tar
- name: Download target directories (2.13.12, ciJS)
- name: Download target directories (2.13.14, ciJS)
uses: actions/download-artifact@v4
with:
name: target-${{ matrix.os }}-${{ matrix.java }}-2.13.12-ciJS
name: target-${{ matrix.os }}-${{ matrix.java }}-2.13.14-ciJS

- name: Inflate target directories (2.13.12, ciJS)
- name: Inflate target directories (2.13.14, ciJS)
run: |
tar xf targets.tar
rm targets.tar
- name: Download target directories (2.13.12, ciFirefox)
- name: Download target directories (2.13.14, ciFirefox)
uses: actions/download-artifact@v4
with:
name: target-${{ matrix.os }}-${{ matrix.java }}-2.13.12-ciFirefox
name: target-${{ matrix.os }}-${{ matrix.java }}-2.13.14-ciFirefox

- name: Inflate target directories (2.13.12, ciFirefox)
- name: Inflate target directories (2.13.14, ciFirefox)
run: |
tar xf targets.tar
rm targets.tar
- name: Download target directories (2.13.12, ciChrome)
- name: Download target directories (2.13.14, ciChrome)
uses: actions/download-artifact@v4
with:
name: target-${{ matrix.os }}-${{ matrix.java }}-2.13.12-ciChrome
name: target-${{ matrix.os }}-${{ matrix.java }}-2.13.14-ciChrome

- name: Inflate target directories (2.13.12, ciChrome)
- name: Inflate target directories (2.13.14, ciChrome)
run: |
tar xf targets.tar
rm targets.tar
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ val Windows = "windows-latest"
val MacOS = "macos-14"

val Scala212 = "2.12.19"
val Scala213 = "2.13.12"
val Scala213 = "2.13.14"
val Scala3 = "3.3.3"

ThisBuild / crossScalaVersions := Seq(Scala3, Scala212, Scala213)
Expand Down
1 change: 0 additions & 1 deletion core/js/src/main/scala/cats/effect/process.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ package cats.effect

import cats.data.OptionT
import cats.effect.std.Env
import cats.syntax.all._

import scala.scalajs.js
import scala.util.Try
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ final class DispatcherOps[F[_]] private[syntax] (private[syntax] val wrapped: Di
def unsafeRunSyncToFuture[A](fa: F[A], syncLimit: Int)(implicit F: Async[F]): Future[A] =
F.syncStep[SyncIO, A](fa, syncLimit).attempt.unsafeRunSync() match {
case Left(t) => Future.failed(t)
case Right(Left(fa)) => wrapped.unsafeToFuture(fa)
case Right(Left(fa1)) => wrapped.unsafeToFuture(fa1)
case Right(Right(a)) => Future.successful(a)
}

Expand All @@ -63,7 +63,7 @@ final class DispatcherOps[F[_]] private[syntax] (private[syntax] val wrapped: Di
def unsafeRunSyncToPromise[A](fa: F[A], syncLimit: Int)(implicit F: Async[F]): Promise[A] =
F.syncStep[SyncIO, A](fa, syncLimit).attempt.unsafeRunSync() match {
case Left(t) => Promise.reject(t)
case Right(Left(fa)) => wrapped.unsafeToPromise(fa)
case Right(Left(fa1)) => wrapped.unsafeToPromise(fa1)
case Right(Right(a)) => Promise.resolve[A](a)
}

Expand Down
4 changes: 2 additions & 2 deletions kernel/shared/src/main/scala/cats/effect/kernel/Outcome.scala
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,8 @@ object Outcome extends LowPriorityImplicits {
}

@tailrec
def tailRecM[A, B](a: A)(f: A => Outcome[F, E, Either[A, B]]): Outcome[F, E, B] =
f(a) match {
def tailRecM[A, B](a0: A)(f: A => Outcome[F, E, Either[A, B]]): Outcome[F, E, B] =
f(a0) match {
case Succeeded(fa) =>
Traverse[F].sequence[Either[A, *], B](fa) match { // Dotty can't infer this
case Left(a) => tailRecM(a)(f)
Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.9.9
sbt.version=1.10.0
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.4.7")
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.5.2")
addSbtPlugin("com.lightbend.sbt" % "sbt-java-formatter" % "0.8.0")
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.12.0")
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.11.1")
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.12.1")
addSbtPlugin("org.scalameta" % "sbt-native-image" % "0.3.4")
2 changes: 1 addition & 1 deletion scalafix/project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.9.9
sbt.version=1.10.0
2 changes: 1 addition & 1 deletion scalafix/project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.11.1")
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.12.1")
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ package cats.effect.std

import cats.data.OptionT
import cats.effect.kernel.Sync
import cats.syntax.all._

import scala.collection.immutable.Iterable
import scala.scalajs.js
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package cats.effect.unsafe

import cats.effect.{BaseSpec /*, IO*/}
import cats.effect.BaseSpec
import cats.effect.testkit.TestInstances

import scala.concurrent.duration._
Expand Down
4 changes: 2 additions & 2 deletions tests/shared/src/test/scala/cats/effect/IOSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1882,9 +1882,9 @@ class IOSpec extends BaseSpec with Discipline with IOPlatformSpecification {

"timeoutAndForget" should {
"terminate on an uncancelable fiber" in real {
IO.never.uncancelable.timeoutAndForget(1.second).attempt flatMap { e =>
IO.never.uncancelable.timeoutAndForget(1.second).attempt flatMap { r =>
IO {
e must beLike { case Left(e) => e must haveClass[TimeoutException] }
r must beLike { case Left(e) => e must haveClass[TimeoutException] }
}
}
}
Expand Down

0 comments on commit 391f1e1

Please sign in to comment.