From bdd8c25a58beccbf2a61596b4dd0fb1c1b9f9aae Mon Sep 17 00:00:00 2001 From: takapi327 Date: Sun, 8 Jan 2023 15:17:39 +0900 Subject: [PATCH 1/9] Version up 0.7.0 -> 0.8.0 --- README.md | 2 +- version.sbt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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/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" From 2a0561b52deb03d6c7322a632ed139300956ff80 Mon Sep 17 00:00:00 2001 From: takapi327 Date: Sun, 8 Jan 2023 16:25:35 +0900 Subject: [PATCH 2/9] Update sbt version 1.7.1 -> 1.8.2 --- project/build.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 6c062b4a7fca39c908608777821f6fda20f297fe Mon Sep 17 00:00:00 2001 From: takapi327 Date: Sun, 8 Jan 2023 16:27:53 +0900 Subject: [PATCH 3/9] Action sbt githubWorkflowGenerate --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: From bd8cddd7c50a90c1f65b3ccb604fee24cab81e49 Mon Sep 17 00:00:00 2001 From: takapi327 Date: Sun, 8 Jan 2023 16:40:48 +0900 Subject: [PATCH 4/9] Update cats version 2.8.0 -> 2.9.0 --- project/Dependencies.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/Dependencies.scala b/project/Dependencies.scala index d1da0bac..72bb5e86 100644 --- a/project/Dependencies.scala +++ b/project/Dependencies.scala @@ -16,7 +16,7 @@ object Dependencies { val magnolia3 = "com.softwaremill.magnolia1_3" %% "magnolia" % "1.2.0" - 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" From ea0c2a80a900042e5ccb5ecc7a97ea24fa2cfb5c Mon Sep 17 00:00:00 2001 From: takapi327 Date: Sun, 8 Jan 2023 16:47:11 +0900 Subject: [PATCH 5/9] Update cats effect version 3.3.14 -> 3.4.4 --- project/Dependencies.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/Dependencies.scala b/project/Dependencies.scala index d1da0bac..b38ffc06 100644 --- a/project/Dependencies.scala +++ b/project/Dependencies.scala @@ -18,7 +18,7 @@ object Dependencies { val catsVersion = "2.8.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" From 784495c1e3d7d277c5a0400479889a456be83a79 Mon Sep 17 00:00:00 2001 From: takapi327 Date: Sun, 8 Jan 2023 16:48:16 +0900 Subject: [PATCH 6/9] Change deprecated methods Random -> SecureRandom --- .../src/main/scala/lepus/app/session/SessionStorage.scala | 6 +++--- .../scala/lepus/app/session/SessionIdentifierTest.scala | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) 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) From ab6bde4fc888174a876483763f81e7272b77aa46 Mon Sep 17 00:00:00 2001 From: takapi327 Date: Sun, 8 Jan 2023 16:52:08 +0900 Subject: [PATCH 7/9] Update http4s version 0.23.16 -> 0.23.17 --- project/Dependencies.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/Dependencies.scala b/project/Dependencies.scala index 72bb5e86..75d2335d 100644 --- a/project/Dependencies.scala +++ b/project/Dependencies.scala @@ -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", From 7278136908e860840ad6cc933e9040c6440795bd Mon Sep 17 00:00:00 2001 From: takapi327 Date: Sun, 8 Jan 2023 16:57:53 +0900 Subject: [PATCH 8/9] Update magnolia3 version 1.2.0 -> 1.2.6 --- project/Dependencies.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/Dependencies.scala b/project/Dependencies.scala index adfa4f5f..9eb149d8 100644 --- a/project/Dependencies.scala +++ b/project/Dependencies.scala @@ -14,7 +14,7 @@ object Dependencies { 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.9.0" val cats = "org.typelevel" %% "cats-core" % catsVersion From 53856f5fb8727557f8ad1947d9d136ba79d6e1fa Mon Sep 17 00:00:00 2001 From: takapi327 Date: Sun, 8 Jan 2023 17:00:56 +0900 Subject: [PATCH 9/9] Update logback version 1.4.1 -> 1.4.5 --- project/Dependencies.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/Dependencies.scala b/project/Dependencies.scala index adfa4f5f..4483658d 100644 --- a/project/Dependencies.scala +++ b/project/Dependencies.scala @@ -10,7 +10,7 @@ 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"