This is an automated email from the ASF dual-hosted git repository.

fanningpj pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko-persistence-jdbc.git


The following commit(s) were added to refs/heads/main by this push:
     new 4db13d7  remove some deprecated code (#335)
4db13d7 is described below

commit 4db13d719ed76485fa95187b26d4858bdee0a7f2
Author: PJ Fanning <[email protected]>
AuthorDate: Mon Sep 22 14:04:17 2025 +0100

    remove some deprecated code (#335)
    
    * remove some deprecations
    
    * Update SlickDatabase.scala
    
    * Create remove-deprecated-code.excludes
---
 .../remove-deprecated-code.excludes                | 21 ++++++++++++++++++
 .../pekko/persistence/jdbc/db/SlickDatabase.scala  | 25 ----------------------
 .../serialization/PersistentReprSerializer.scala   |  8 +++----
 3 files changed, 25 insertions(+), 29 deletions(-)

diff --git 
a/core/src/main/mima-filters/2.0.x.backwards.excludes/remove-deprecated-code.excludes
 
b/core/src/main/mima-filters/2.0.x.backwards.excludes/remove-deprecated-code.excludes
new file mode 100644
index 0000000..598d780
--- /dev/null
+++ 
b/core/src/main/mima-filters/2.0.x.backwards.excludes/remove-deprecated-code.excludes
@@ -0,0 +1,21 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+# Remove deprecated code
+ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.pekko.persistence.jdbc.db.SlickDatabase.forConfig")
+ProblemFilters.exclude[MissingClassProblem]("org.apache.pekko.persistence.jdbc.db.SlickDriver")
+ProblemFilters.exclude[MissingClassProblem]("org.apache.pekko.persistence.jdbc.db.SlickDriver$")
diff --git 
a/core/src/main/scala/org/apache/pekko/persistence/jdbc/db/SlickDatabase.scala 
b/core/src/main/scala/org/apache/pekko/persistence/jdbc/db/SlickDatabase.scala
index dd83286..db5479b 100644
--- 
a/core/src/main/scala/org/apache/pekko/persistence/jdbc/db/SlickDatabase.scala
+++ 
b/core/src/main/scala/org/apache/pekko/persistence/jdbc/db/SlickDatabase.scala
@@ -23,36 +23,11 @@ import slick.basic.DatabaseConfig
 import slick.jdbc.JdbcProfile
 import slick.jdbc.JdbcBackend._
 
-/**
- * INTERNAL API
- */
-@deprecated(message = "Internal API, will be removed in pekko-persistence-jdbc 
2.0.0",
-  since = "akka-persistence-jdbc 3.4.0")
-object SlickDriver {
-
-  /**
-   * INTERNAL API
-   */
-  @deprecated(message = "Internal API, will be removed in 
pekko-persistence-jdbc 2.0.0",
-    since = "akka-persistence-jdbc 3.4.0")
-  def forDriverName(config: Config): JdbcProfile =
-    SlickDatabase.profile(config, "slick")
-}
-
 /**
  * INTERNAL API
  */
 object SlickDatabase {
 
-  /**
-   * INTERNAL API
-   */
-  @deprecated(message = "Internal API, will be removed in 
pekko-persistence-jdbc 2.0.0",
-    since = "akka-persistence-jdbc 3.4.0")
-  def forConfig(config: Config, slickConfiguration: SlickConfiguration): 
Database = {
-    database(config, slickConfiguration, "slick.db")
-  }
-
   /**
    * INTERNAL API
    */
diff --git 
a/core/src/main/scala/org/apache/pekko/persistence/jdbc/serialization/PersistentReprSerializer.scala
 
b/core/src/main/scala/org/apache/pekko/persistence/jdbc/serialization/PersistentReprSerializer.scala
index ff9034c..f16621d 100644
--- 
a/core/src/main/scala/org/apache/pekko/persistence/jdbc/serialization/PersistentReprSerializer.scala
+++ 
b/core/src/main/scala/org/apache/pekko/persistence/jdbc/serialization/PersistentReprSerializer.scala
@@ -24,8 +24,8 @@ import scala.collection.immutable._
 
 import scala.util.Try
 
-@deprecated("use Apache Pekko Serialization for the payloads instead", since = 
"akka-persistence-jdbc 5.0.0")
-trait PersistentReprSerializer[T] {
+// package private since 2.0.0
+private[jdbc] trait PersistentReprSerializer[T] {
 
   /**
    * An org.apache.pekko.persistence.AtomicWrite contains a Sequence of events 
(with metadata, the PersistentRepr)
@@ -55,8 +55,8 @@ trait PersistentReprSerializer[T] {
   def deserialize(t: T): Try[(PersistentRepr, Set[String], Long)]
 }
 
-@deprecated("use Apache Pekko Serialization for the payloads instead", since = 
"akka-persistence-jdbc 5.0.0")
-trait FlowPersistentReprSerializer[T] extends PersistentReprSerializer[T] {
+// package private since 2.0.0
+private[jdbc] trait FlowPersistentReprSerializer[T] extends 
PersistentReprSerializer[T] {
 
   /**
    * A flow which deserializes each element into a PersistentRepr,


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to