Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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)

<div align="center">
<img src="https://img.shields.io/badge/lepus-v0.7.0-blue">
<img src="https://img.shields.io/badge/lepus-v0.8.0-blue">
<a href="https://en.wikipedia.org/wiki/MIT_License">
<img src="https://img.shields.io/badge/license-MIT-green">
</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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)

Expand All @@ -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]:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.*
Expand All @@ -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)

Expand Down
10 changes: 5 additions & 5 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion version.sbt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ThisBuild / version := "0.7.0"
ThisBuild / version := "0.8.0"