diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b9f5d3b4..abb4bdbf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -72,7 +72,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - scala: [2.12.16] + scala: [2.12.17] java: [temurin@11] runs-on: ${{ matrix.os }} steps: diff --git a/README.md b/README.md index 968a60aa..c02ee6c1 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ ![lepusframework](https://socialify.git.ci/takapi327/lepusframework/image?description=1&font=Inter&language=1&logo=https%3A%2F%2Fuser-images.githubusercontent.com%2F57429437%2F170270360-93f29bbf-aef3-47d7-8910-f5baba490ba6.png&owner=1&pattern=Plus&theme=Light)
- + diff --git a/core/lepus-app/src/main/scala/lepus/app/session/SessionStorage.scala b/core/lepus-app/src/main/scala/lepus/app/session/SessionStorage.scala index 069d3bb5..8a64d84f 100644 --- a/core/lepus-app/src/main/scala/lepus/app/session/SessionStorage.scala +++ b/core/lepus-app/src/main/scala/lepus/app/session/SessionStorage.scala @@ -8,7 +8,7 @@ import cats.Functor import cats.syntax.all.* import cats.effect.{ Sync, Async } -import cats.effect.std.Random +import cats.effect.std.SecureRandom import io.chrisdavenport.mapref.MapRef @@ -53,7 +53,7 @@ private[lepus] object SessionStorage: numBytes: Int = 32 ): F[SessionStorage[F, T]] = for - random <- Random.javaSecuritySecureRandom(numShards) + random <- SecureRandom.javaSecuritySecureRandom(numShards) ref <- MapRef.inShardedImmutableMap[F, F, SessionIdentifier, T](numShards) yield new MemorySessionStorage[F, T](random, numBytes, ref) @@ -71,7 +71,7 @@ private[lepus] object SessionStorage: * Value managed by Session */ private class MemorySessionStorage[F[_]: Functor, T]( - random: Random[F], + random: SecureRandom[F], numBytes: Int, access: MapRef[F, SessionIdentifier, Option[T]] ) extends SessionStorage[F, T]: diff --git a/core/lepus-app/src/test/scala/lepus/app/session/SessionIdentifierTest.scala b/core/lepus-app/src/test/scala/lepus/app/session/SessionIdentifierTest.scala index a6118e64..27cfc25a 100644 --- a/core/lepus-app/src/test/scala/lepus/app/session/SessionIdentifierTest.scala +++ b/core/lepus-app/src/test/scala/lepus/app/session/SessionIdentifierTest.scala @@ -5,7 +5,7 @@ package lepus.app.session import cats.effect.IO -import cats.effect.std.Random +import cats.effect.std.SecureRandom import cats.effect.unsafe.implicits.global import org.http4s.* @@ -30,7 +30,7 @@ object SessionIdentifierTest extends Specification: "The value generated by the create method of the SessionIdentifier can be regenerated from the cookie of the request." in { val request: IO[Request[IO]] = for - random <- Random.javaSecuritySecureRandom[IO](4) + random <- SecureRandom.javaSecuritySecureRandom[IO](4) id <- SessionIdentifier.create[IO](random, 32) yield buildRequest(id.value) diff --git a/project/Dependencies.scala b/project/Dependencies.scala index d1da0bac..0b4bf2db 100644 --- a/project/Dependencies.scala +++ b/project/Dependencies.scala @@ -10,15 +10,15 @@ object Dependencies { val guice = "com.google.inject" % "guice" % "5.1.0" - val logback = "ch.qos.logback" % "logback-classic" % "1.4.1" + val logback = "ch.qos.logback" % "logback-classic" % "1.4.5" val typesafeConfig = "com.typesafe" % "config" % "1.4.2" - val magnolia3 = "com.softwaremill.magnolia1_3" %% "magnolia" % "1.2.0" + val magnolia3 = "com.softwaremill.magnolia1_3" %% "magnolia" % "1.2.6" - val catsVersion = "2.8.0" + val catsVersion = "2.9.0" val cats = "org.typelevel" %% "cats-core" % catsVersion - val catsEffect = "org.typelevel" %% "cats-effect" % "3.3.14" + val catsEffect = "org.typelevel" %% "cats-effect" % "3.4.4" val mapRef = "io.chrisdavenport" %% "mapref" % "0.2.1" @@ -29,7 +29,7 @@ object Dependencies { "jjwt-jackson" ).map("io.jsonwebtoken" % _ % jjwtVersion) - val http4sVersion = "0.23.16" + val http4sVersion = "0.23.17" val http4sDsl = "org.http4s" %% "http4s-dsl" % http4sVersion val http4sEmber: Seq[ModuleID] = Seq( "http4s-ember-server", diff --git a/project/build.properties b/project/build.properties index db397d23..3979cca0 100644 --- a/project/build.properties +++ b/project/build.properties @@ -4,4 +4,4 @@ * please view the LICENSE file that was distributed with this source code. */ -sbt.version=1.7.1 +sbt.version=1.8.2 diff --git a/version.sbt b/version.sbt index bf3ddd64..fc2d32dd 100644 --- a/version.sbt +++ b/version.sbt @@ -1 +1 @@ -ThisBuild / version := "0.7.0" +ThisBuild / version := "0.8.0"