From dc4f58ee028c6a1acc2a8a7777debff358a3c5fc Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Tue, 17 Dec 2024 14:21:21 +0000 Subject: [PATCH 01/10] Update guava to 33.4.0-jre --- project/Commons.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/Commons.scala b/project/Commons.scala index fdeab13c4..460c79de2 100644 --- a/project/Commons.scala +++ b/project/Commons.scala @@ -24,7 +24,7 @@ object Commons extends ProjectGroup("commons") { // option in IntelliJ's SBT settings. val forIdeaImport: Boolean = System.getProperty("idea.managed", "false").toBoolean && System.getProperty("idea.runid") == null - val guavaVersion = "33.3.1-jre" + val guavaVersion = "33.4.0-jre" val jsr305Version = "3.0.2" val scalatestVersion = "3.2.19" val scalatestplusScalacheckVersion = "3.2.14.0" From c6e9696807a5814f071319f682499daf89336c8b Mon Sep 17 00:00:00 2001 From: Dawid Dworak Date: Tue, 24 Dec 2024 09:12:17 +0100 Subject: [PATCH 02/10] Mark entrypoints for Redis driver as deprecated --- .../commons/redis/RedisClusterClient.scala | 13 +++++++------ .../commons/redis/RedisConnectionClient.scala | 5 +++-- .../com/avsystem/commons/redis/RedisExecutor.scala | 5 +++-- .../avsystem/commons/redis/RedisNodeClient.scala | 14 +++++++------- .../com/avsystem/commons/redis/config/config.scala | 11 ++++++----- 5 files changed, 26 insertions(+), 22 deletions(-) diff --git a/redis/src/main/scala/com/avsystem/commons/redis/RedisClusterClient.scala b/redis/src/main/scala/com/avsystem/commons/redis/RedisClusterClient.scala index 44551ef56..ebbb23f89 100644 --- a/redis/src/main/scala/com/avsystem/commons/redis/RedisClusterClient.scala +++ b/redis/src/main/scala/com/avsystem/commons/redis/RedisClusterClient.scala @@ -1,9 +1,6 @@ package com.avsystem.commons package redis -import org.apache.pekko.actor.{ActorSystem, Props} -import org.apache.pekko.pattern.ask -import org.apache.pekko.util.Timeout import com.avsystem.commons.concurrent.RetryStrategy import com.avsystem.commons.redis.RawCommand.Level import com.avsystem.commons.redis.RedisClusterClient.{AskingPack, CollectionPacks} @@ -12,16 +9,19 @@ import com.avsystem.commons.redis.actor.ClusterMonitoringActor.{GetClient, GetCl import com.avsystem.commons.redis.actor.RedisConnectionActor.PacksResult import com.avsystem.commons.redis.commands.{Asking, SlotRange} import com.avsystem.commons.redis.config.{ClusterConfig, ExecutionConfig} -import com.avsystem.commons.redis.exception._ +import com.avsystem.commons.redis.exception.* import com.avsystem.commons.redis.monitoring.ClusterStateObserver -import com.avsystem.commons.redis.protocol._ +import com.avsystem.commons.redis.protocol.* import com.avsystem.commons.redis.util.DelayedFuture +import org.apache.pekko.actor.{ActorSystem, Props} +import org.apache.pekko.pattern.ask +import org.apache.pekko.util.Timeout import java.util.concurrent.atomic.AtomicInteger import scala.annotation.tailrec import scala.collection.mutable import scala.collection.mutable.ArrayBuffer -import scala.concurrent.duration._ +import scala.concurrent.duration.* /** * Redis client implementation for Redis Cluster deployments. Internally, it uses single [[RedisNodeClient]] instance @@ -45,6 +45,7 @@ import scala.concurrent.duration._ * @param config client configuration - [[ClusterConfig]] * @param clusterStateObserver optional observer for monitoring client's state and connections - [[ClusterStateObserver]] */ +@deprecated("Redis driver is scheduled for removal. Use a different library, e.g. redisson.", "2.21.0") final class RedisClusterClient( val seedNodes: Seq[NodeAddress] = List(NodeAddress.Default), val config: ClusterConfig = ClusterConfig(), diff --git a/redis/src/main/scala/com/avsystem/commons/redis/RedisConnectionClient.scala b/redis/src/main/scala/com/avsystem/commons/redis/RedisConnectionClient.scala index 7226cc4fc..c570c5987 100644 --- a/redis/src/main/scala/com/avsystem/commons/redis/RedisConnectionClient.scala +++ b/redis/src/main/scala/com/avsystem/commons/redis/RedisConnectionClient.scala @@ -1,8 +1,6 @@ package com.avsystem.commons package redis -import org.apache.pekko.actor.{ActorSystem, Props} -import org.apache.pekko.pattern.ask import com.avsystem.commons.concurrent.RetryStrategy import com.avsystem.commons.redis.RawCommand.Level import com.avsystem.commons.redis.actor.RedisConnectionActor.PacksResult @@ -10,6 +8,8 @@ import com.avsystem.commons.redis.actor.RedisOperationActor.OpResult import com.avsystem.commons.redis.actor.{RedisConnectionActor, RedisOperationActor} import com.avsystem.commons.redis.config.{ConfigDefaults, ConnectionConfig, ExecutionConfig} import com.avsystem.commons.redis.exception.ClientStoppedException +import org.apache.pekko.actor.{ActorSystem, Props} +import org.apache.pekko.pattern.ask /** * Redis client that uses a single, non-reconnectable connection. @@ -24,6 +24,7 @@ import com.avsystem.commons.redis.exception.ClientStoppedException * If you simply need a single-connection, reconnectable client, use [[RedisNodeClient]] with connection pool size * configured to 1. */ +@deprecated("Redis driver is scheduled for removal. Use a different library, e.g. redisson.", "2.21.0") final class RedisConnectionClient( val address: NodeAddress = NodeAddress.Default, val config: ConnectionConfig = ConnectionConfig(), diff --git a/redis/src/main/scala/com/avsystem/commons/redis/RedisExecutor.scala b/redis/src/main/scala/com/avsystem/commons/redis/RedisExecutor.scala index ef10990f6..f20c677c1 100644 --- a/redis/src/main/scala/com/avsystem/commons/redis/RedisExecutor.scala +++ b/redis/src/main/scala/com/avsystem/commons/redis/RedisExecutor.scala @@ -1,10 +1,10 @@ package com.avsystem.commons package redis -import java.io.Closeable - import com.avsystem.commons.redis.config.ExecutionConfig +import java.io.Closeable + /** * Base trait for Redis clients with ability to execute [[RedisBatch]]es. */ @@ -54,6 +54,7 @@ trait RedisNodeExecutor extends RedisKeyedExecutor with RedisOpExecutor */ trait RedisConnectionExecutor extends RedisNodeExecutor +@deprecated("Redis driver is scheduled for removal. Use a different library, e.g. redisson.", "2.21.0") abstract class RedisClient extends RedisExecutor with Closeable { def initialized: Future[this.type] } diff --git a/redis/src/main/scala/com/avsystem/commons/redis/RedisNodeClient.scala b/redis/src/main/scala/com/avsystem/commons/redis/RedisNodeClient.scala index 15f106363..bfaa185b7 100644 --- a/redis/src/main/scala/com/avsystem/commons/redis/RedisNodeClient.scala +++ b/redis/src/main/scala/com/avsystem/commons/redis/RedisNodeClient.scala @@ -1,12 +1,6 @@ package com.avsystem.commons package redis -import java.util.concurrent.ConcurrentLinkedDeque -import java.util.concurrent.atomic.AtomicLong - -import org.apache.pekko.actor.{Actor, ActorRef, ActorSystem, Props} -import org.apache.pekko.pattern.ask -import org.apache.pekko.util.Timeout import com.avsystem.commons.concurrent.RunInQueueEC import com.avsystem.commons.redis.actor.ConnectionPoolActor.QueuedConn import com.avsystem.commons.redis.actor.RedisConnectionActor.PacksResult @@ -14,15 +8,21 @@ import com.avsystem.commons.redis.actor.RedisOperationActor.OpResult import com.avsystem.commons.redis.actor.{ConnectionPoolActor, RedisConnectionActor, RedisOperationActor} import com.avsystem.commons.redis.config.{ConfigDefaults, ConnectionConfig, ExecutionConfig, NodeConfig} import com.avsystem.commons.redis.exception.{ClientStoppedException, NodeInitializationFailure, NodeRemovedException, TooManyConnectionsException} +import org.apache.pekko.actor.{Actor, ActorRef, ActorSystem, Props} +import org.apache.pekko.pattern.ask +import org.apache.pekko.util.Timeout +import java.util.concurrent.ConcurrentLinkedDeque +import java.util.concurrent.atomic.AtomicLong import scala.collection.mutable.ArrayBuffer -import scala.concurrent.duration._ +import scala.concurrent.duration.* /** * Redis client implementation for a single Redis node using a connection pool. Connection pool size is constant * and batches and operations are distributed over connections using round-robin scheme. Connections are automatically * reconnected upon failure (possibly with an appropriate delay, see [[config.NodeConfig NodeConfig]] for details). */ +@deprecated("Redis driver is scheduled for removal. Use a different library, e.g. redisson.", "2.21.0") final class RedisNodeClient( val address: NodeAddress = NodeAddress.Default, val config: NodeConfig = NodeConfig(), diff --git a/redis/src/main/scala/com/avsystem/commons/redis/config/config.scala b/redis/src/main/scala/com/avsystem/commons/redis/config/config.scala index ce22c431e..dd1d84b8c 100644 --- a/redis/src/main/scala/com/avsystem/commons/redis/config/config.scala +++ b/redis/src/main/scala/com/avsystem/commons/redis/config/config.scala @@ -1,16 +1,16 @@ package com.avsystem.commons package redis.config -import java.net.InetSocketAddress -import org.apache.pekko.io.Inet -import org.apache.pekko.util.Timeout import com.avsystem.commons.concurrent.RetryStrategy -import com.avsystem.commons.concurrent.RetryStrategy._ +import com.avsystem.commons.concurrent.RetryStrategy.* import com.avsystem.commons.redis.actor.RedisConnectionActor.{DebugListener, DevNullListener} import com.avsystem.commons.redis.{NodeAddress, RedisBatch, RedisOp} +import org.apache.pekko.io.Inet +import org.apache.pekko.util.Timeout +import java.net.InetSocketAddress import javax.net.ssl.SSLEngine -import scala.concurrent.duration._ +import scala.concurrent.duration.* /** * Configuration of a [[com.avsystem.commons.redis.RedisClusterClient RedisClusterClient]] @@ -161,6 +161,7 @@ case class NodeConfig( * @param debugListener listener for traffic going through this connection. Only for debugging and testing * purposes */ +@deprecated("Redis driver is scheduled for removal. Use a different library, e.g. redisson.", "2.21.0") case class ConnectionConfig( initCommands: RedisBatch[Any] = RedisBatch.unit, sslEngineCreator: OptArg[() => SSLEngine] = OptArg.Empty, From 6feaa167657ba1e1376bf370d4ec7d71e55d6884 Mon Sep 17 00:00:00 2001 From: Dawid Dworak Date: Tue, 24 Dec 2024 09:12:45 +0100 Subject: [PATCH 03/10] Only inform about deprecations in commons-redis due to scheduled removal --- project/Commons.scala | 1 + 1 file changed, 1 insertion(+) diff --git a/project/Commons.scala b/project/Commons.scala index 460c79de2..4b730116b 100644 --- a/project/Commons.scala +++ b/project/Commons.scala @@ -337,6 +337,7 @@ object Commons extends ProjectGroup("commons") { "io.monix" %% "monix" % monixVersion, ), Test / parallelExecution := false, + Compile / scalacOptions += "-Wconf:cat=deprecation:is", // only inform about deprecations due to scheduled removal ) lazy val hocon = mkSubProject From b1a50d1648f34cf80d824ff429c3649c9253d8cc Mon Sep 17 00:00:00 2001 From: Dawid Dworak Date: Tue, 24 Dec 2024 09:22:20 +0100 Subject: [PATCH 04/10] Remove commons-redis from test suite --- .github/workflows/ci.yml | 10 ---------- install-redis.sh | 9 --------- project/Commons.scala | 16 +--------------- 3 files changed, 1 insertion(+), 34 deletions(-) delete mode 100755 install-redis.sh diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 84712a69b..ae8280730 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,6 @@ on: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - REDIS_VERSION: 6.2.12 jobs: build: @@ -52,12 +51,6 @@ jobs: - name: Setup sbt uses: sbt/setup-sbt@v1 - - name: Cache Redis - uses: actions/cache@v2 - with: - path: ./redis-${{ env.REDIS_VERSION }} - key: ${{ runner.os }}-redis-cache-v2-${{ env.REDIS_VERSION }} - - name: Setup Node.js uses: actions/setup-node@v2 with: @@ -69,9 +62,6 @@ jobs: mongodb-version: 7.0 mongodb-replica-set: test-rs - - name: Setup Redis - run: ./install-redis.sh - - name: Check that workflows are up to date run: sbt '++ ${{ matrix.scala }}' githubWorkflowCheck diff --git a/install-redis.sh b/install-redis.sh deleted file mode 100755 index 2b0784e61..000000000 --- a/install-redis.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env bash -REDIS_HOME=$PWD/redis-$REDIS_VERSION/src -echo "REDIS_HOME=$REDIS_HOME" >> $GITHUB_ENV -if [ ! -d $REDIS_HOME ]; then - wget http://download.redis.io/releases/redis-$REDIS_VERSION.tar.gz - tar -xzf redis-$REDIS_VERSION.tar.gz - cd redis-$REDIS_VERSION && make BUILD_TLS=yes -fi - diff --git a/project/Commons.scala b/project/Commons.scala index 4b730116b..683678f13 100644 --- a/project/Commons.scala +++ b/project/Commons.scala @@ -73,20 +73,9 @@ object Commons extends ProjectGroup("commons") { githubWorkflowTargetTags ++= Seq("v*"), - githubWorkflowEnv ++= Map( - "REDIS_VERSION" -> "6.2.12", - ), githubWorkflowArtifactUpload := false, githubWorkflowJavaVersions := Seq(JavaSpec.temurin("17"), JavaSpec.temurin("21")), githubWorkflowBuildPreamble ++= Seq( - WorkflowStep.Use( - UseRef.Public("actions", "cache", "v2"), - name = Some("Cache Redis"), - params = Map( - "path" -> "./redis-${{ env.REDIS_VERSION }}", - "key" -> "${{ runner.os }}-redis-cache-v2-${{ env.REDIS_VERSION }}" - ) - ), WorkflowStep.Use( UseRef.Public("actions", "setup-node", "v2"), name = Some("Setup Node.js"), @@ -100,10 +89,6 @@ object Commons extends ProjectGroup("commons") { "mongodb-replica-set" -> "test-rs", ) ), - WorkflowStep.Run( - List("./install-redis.sh"), - name = Some("Setup Redis"), - ) ), githubWorkflowPublishTargetBranches := Seq(RefPredicate.StartsWith(Ref.Tag("v"))), @@ -338,6 +323,7 @@ object Commons extends ProjectGroup("commons") { ), Test / parallelExecution := false, Compile / scalacOptions += "-Wconf:cat=deprecation:is", // only inform about deprecations due to scheduled removal + Test / skip := true, ) lazy val hocon = mkSubProject From 1fcc7dd41b216c50a9191d10f68464012fedf9a7 Mon Sep 17 00:00:00 2001 From: Dawid Dworak Date: Tue, 24 Dec 2024 10:35:49 +0100 Subject: [PATCH 05/10] Update documentation regarding commons-redis deprecation --- README.md | 1 - docs/RedisDriver.md | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c9e1b9cb3..46e6f82e2 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,6 @@ [`OptRef`](http://avsystem.github.io/scala-commons/api/com/avsystem/commons/misc/OptRef.html) (implemented as value classes) * [Components](docs/Components.md) and Dependency Injection library -* `commons-redis` - [Scala driver for Redis](docs/RedisDriver.md) * `commons-macros` contains implementations of macros used in other modules and reusable macro utilities: * `MacroCommons` trait with several convenience functions for implementing macros * `TypeClassDerivation` - implements infrastructure for automatic type class derivation diff --git a/docs/RedisDriver.md b/docs/RedisDriver.md index 7517f0317..9ca0b9bcc 100644 --- a/docs/RedisDriver.md +++ b/docs/RedisDriver.md @@ -1,5 +1,8 @@ # Redis driver +**⚠️ WARNING: This module is deprecated and scheduled for removal in a future release. Please migrate to an alternative +solution.** + `commons-redis` - Scala driver for Redis ```scala From 8be39c70a03a9bd58d39191fb6b88a0a490b6f5b Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Fri, 10 Jan 2025 15:03:07 +0000 Subject: [PATCH 06/10] Update pekko-stream to 1.1.3 --- project/Commons.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/Commons.scala b/project/Commons.scala index 460c79de2..4b8e21602 100644 --- a/project/Commons.scala +++ b/project/Commons.scala @@ -35,7 +35,7 @@ object Commons extends ProjectGroup("commons") { val typesafeConfigVersion = "1.4.3" val commonsIoVersion = "1.3.2" // test only val scalaLoggingVersion = "3.9.5" - val pekkoVersion = "1.1.2" + val pekkoVersion = "1.1.3" val monixVersion = "3.4.1" val circeVersion = "0.14.5" // benchmark only val upickleVersion = "3.1.2" // benchmark only From ebab26313a2c1fccd7cb1c0582016b8a13abe709 Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Fri, 10 Jan 2025 15:03:09 +0000 Subject: [PATCH 07/10] Update sbt-scalajs, scalajs-compiler, ... to 1.18.1 --- project/plugins.sbt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/plugins.sbt b/project/plugins.sbt index 8fc99a25c..b927318de 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,7 +1,7 @@ logLevel := Level.Warn addSbtPlugin("com.github.ghik" % "sbt-nosbt" % "0.2.1") -addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.17.0") +addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.18.1") addSbtPlugin("org.scala-js" % "sbt-jsdependencies" % "1.0.2") addSbtPlugin("org.jetbrains.scala" % "sbt-ide-settings" % "1.1.2") addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.4.7") From 499956b307327227c6764e14eba6110a93887f74 Mon Sep 17 00:00:00 2001 From: Dawid Dworak Date: Fri, 10 Jan 2025 16:28:18 +0100 Subject: [PATCH 08/10] Restore Redis driver docs link in ToC --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 46e6f82e2..73b757f9b 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,7 @@ [`OptRef`](http://avsystem.github.io/scala-commons/api/com/avsystem/commons/misc/OptRef.html) (implemented as value classes) * [Components](docs/Components.md) and Dependency Injection library +* `commons-redis` (DEPRECATED) - [Scala driver for Redis](docs/RedisDriver.md) * `commons-macros` contains implementations of macros used in other modules and reusable macro utilities: * `MacroCommons` trait with several convenience functions for implementing macros * `TypeClassDerivation` - implements infrastructure for automatic type class derivation From 686ebe90513c5808bbd42d3c819f19d540325f4e Mon Sep 17 00:00:00 2001 From: Dawid Dworak Date: Fri, 10 Jan 2025 16:28:33 +0100 Subject: [PATCH 09/10] Add info regarding Redis driver testing --- docs/RedisDriver.md | 4 ++-- .../scala/com/avsystem/commons/redis/RedisClusterClient.scala | 2 +- .../com/avsystem/commons/redis/RedisConnectionClient.scala | 2 +- .../main/scala/com/avsystem/commons/redis/RedisExecutor.scala | 2 +- .../scala/com/avsystem/commons/redis/RedisNodeClient.scala | 2 +- .../main/scala/com/avsystem/commons/redis/config/config.scala | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/RedisDriver.md b/docs/RedisDriver.md index 9ca0b9bcc..e6c8cfabf 100644 --- a/docs/RedisDriver.md +++ b/docs/RedisDriver.md @@ -1,7 +1,7 @@ # Redis driver -**⚠️ WARNING: This module is deprecated and scheduled for removal in a future release. Please migrate to an alternative -solution.** +**⚠️ WARNING: This module is deprecated and scheduled for removal in a future release. +It has not been actively tested since v2.21.0. Please migrate to an alternative solution. ** `commons-redis` - Scala driver for Redis diff --git a/redis/src/main/scala/com/avsystem/commons/redis/RedisClusterClient.scala b/redis/src/main/scala/com/avsystem/commons/redis/RedisClusterClient.scala index ebbb23f89..4882e8e31 100644 --- a/redis/src/main/scala/com/avsystem/commons/redis/RedisClusterClient.scala +++ b/redis/src/main/scala/com/avsystem/commons/redis/RedisClusterClient.scala @@ -45,7 +45,7 @@ import scala.concurrent.duration.* * @param config client configuration - [[ClusterConfig]] * @param clusterStateObserver optional observer for monitoring client's state and connections - [[ClusterStateObserver]] */ -@deprecated("Redis driver is scheduled for removal. Use a different library, e.g. redisson.", "2.21.0") +@deprecated("Redis driver is scheduled for removal. It has not been actively tested since v2.21.0. Use a different library, e.g. redisson.", "2.21.0") final class RedisClusterClient( val seedNodes: Seq[NodeAddress] = List(NodeAddress.Default), val config: ClusterConfig = ClusterConfig(), diff --git a/redis/src/main/scala/com/avsystem/commons/redis/RedisConnectionClient.scala b/redis/src/main/scala/com/avsystem/commons/redis/RedisConnectionClient.scala index c570c5987..eaca0f242 100644 --- a/redis/src/main/scala/com/avsystem/commons/redis/RedisConnectionClient.scala +++ b/redis/src/main/scala/com/avsystem/commons/redis/RedisConnectionClient.scala @@ -24,7 +24,7 @@ import org.apache.pekko.pattern.ask * If you simply need a single-connection, reconnectable client, use [[RedisNodeClient]] with connection pool size * configured to 1. */ -@deprecated("Redis driver is scheduled for removal. Use a different library, e.g. redisson.", "2.21.0") +@deprecated("Redis driver is scheduled for removal. It has not been actively tested since v2.21.0. Use a different library, e.g. redisson.", "2.21.0") final class RedisConnectionClient( val address: NodeAddress = NodeAddress.Default, val config: ConnectionConfig = ConnectionConfig(), diff --git a/redis/src/main/scala/com/avsystem/commons/redis/RedisExecutor.scala b/redis/src/main/scala/com/avsystem/commons/redis/RedisExecutor.scala index f20c677c1..da078a995 100644 --- a/redis/src/main/scala/com/avsystem/commons/redis/RedisExecutor.scala +++ b/redis/src/main/scala/com/avsystem/commons/redis/RedisExecutor.scala @@ -54,7 +54,7 @@ trait RedisNodeExecutor extends RedisKeyedExecutor with RedisOpExecutor */ trait RedisConnectionExecutor extends RedisNodeExecutor -@deprecated("Redis driver is scheduled for removal. Use a different library, e.g. redisson.", "2.21.0") +@deprecated("Redis driver is scheduled for removal. It has not been actively tested since v2.21.0. Use a different library, e.g. redisson.", "2.21.0") abstract class RedisClient extends RedisExecutor with Closeable { def initialized: Future[this.type] } diff --git a/redis/src/main/scala/com/avsystem/commons/redis/RedisNodeClient.scala b/redis/src/main/scala/com/avsystem/commons/redis/RedisNodeClient.scala index bfaa185b7..ecb952732 100644 --- a/redis/src/main/scala/com/avsystem/commons/redis/RedisNodeClient.scala +++ b/redis/src/main/scala/com/avsystem/commons/redis/RedisNodeClient.scala @@ -22,7 +22,7 @@ import scala.concurrent.duration.* * and batches and operations are distributed over connections using round-robin scheme. Connections are automatically * reconnected upon failure (possibly with an appropriate delay, see [[config.NodeConfig NodeConfig]] for details). */ -@deprecated("Redis driver is scheduled for removal. Use a different library, e.g. redisson.", "2.21.0") +@deprecated("Redis driver is scheduled for removal. It has not been actively tested since v2.21.0. Use a different library, e.g. redisson.", "2.21.0") final class RedisNodeClient( val address: NodeAddress = NodeAddress.Default, val config: NodeConfig = NodeConfig(), diff --git a/redis/src/main/scala/com/avsystem/commons/redis/config/config.scala b/redis/src/main/scala/com/avsystem/commons/redis/config/config.scala index dd1d84b8c..aa965a34d 100644 --- a/redis/src/main/scala/com/avsystem/commons/redis/config/config.scala +++ b/redis/src/main/scala/com/avsystem/commons/redis/config/config.scala @@ -161,7 +161,7 @@ case class NodeConfig( * @param debugListener listener for traffic going through this connection. Only for debugging and testing * purposes */ -@deprecated("Redis driver is scheduled for removal. Use a different library, e.g. redisson.", "2.21.0") +@deprecated("Redis driver is scheduled for removal. It has not been actively tested since v2.21.0. Use a different library, e.g. redisson.", "2.21.0") case class ConnectionConfig( initCommands: RedisBatch[Any] = RedisBatch.unit, sslEngineCreator: OptArg[() => SSLEngine] = OptArg.Empty, From 6ae0bea3eadb6299794d30f81893239131e4c0a7 Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Sun, 12 Jan 2025 14:27:43 +0000 Subject: [PATCH 10/10] Update mongo-scala-driver to 5.3.0 --- project/Commons.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/Commons.scala b/project/Commons.scala index 269917f60..9a7e0203e 100644 --- a/project/Commons.scala +++ b/project/Commons.scala @@ -30,7 +30,7 @@ object Commons extends ProjectGroup("commons") { val scalatestplusScalacheckVersion = "3.2.14.0" val scalacheckVersion = "1.18.1" val jettyVersion = "12.0.16" - val mongoVersion = "5.2.1" + val mongoVersion = "5.3.0" val springVersion = "5.3.39" val typesafeConfigVersion = "1.4.3" val commonsIoVersion = "1.3.2" // test only