Repository navigation
Conversation
Motivation: Consolidate the deprecated 413/422 aliases, custom method factories, Java duration wrappers and Scala coding implementation entry points. Modification: Remove obsolete public members, internalize Scala coding implementations without changing their JVM names, and document migration. Add exact 2.1 compatibility exceptions for removed members and retain MiMa checks on scoped implementation classes. Result: Existing replacements and wire status codes remain; intentionally removed public members require consumer migration. References: apache#1122, apache#1123, and apache#1124.
|
I'd really like for us to stop removing deprecated code for a while and worry more about not inconveniencing users - making it as easy to upgrade to pekko 2 as possible. We gain very little from removing the deprecated methods except leaving behind users who won't upgrade because of the effort. |
|
It's my strong opinion that we shouldn't remove any more methods until Pekko 3 and I am strongly against starting work on Pekko 3 yet. |
|
@pjfanning I will try to send PR to the community to upgrade to Pekko 2.0.x first |
|
|
||
| # The legacy Scala coding implementations are package-internal but their JVM types still link. | ||
| # Keep checking those types and members instead of ignoring the visibility change. | ||
| BinaryApi.keep[ClassNoLongerCheckedProblem]("org.apache.pekko.http.scaladsl.coding.Compressor") |
There was a problem hiding this comment.
Could validatePullRequest pass mimaBinaryApi to runMima too? The standalone MiMa task reads this file, but MimaWithPrValidation calls the overload without the keep rules. At this head the Scala 2.13 PR job still reports 12 ClassNoLongerCheckedProblem entries. Passing the same rules to both tasks would keep these JVM types under compatibility checking rather than filtering the problems out.
Motivation
Consolidate the remaining Pekko HTTP API deprecations from before version 2.0 instead of reviewing separate removal PRs.
Modification
Codersand JavaCoderentry points.Result
Draft: this proposal deliberately breaks source and binary compatibility with 2.0 for the 12 removed public members. The MiMa exceptions acknowledge those removals; they do not restore linkage for consumers compiled against 2.0. Since the published compatibility guidelines promise backward compatibility within 2.x, the 2.1 release decision needs maintainer agreement before this leaves Draft.
Locally validated: independent source review; MiMa for both modules on Scala 2.13.18 and 3.3.9; scoped Scala/Java formatting; 38 focused tests passed with one existing pending case; documentation examples compiled. No hosted CI or release approval is claimed.
References
Supersedes #1122, #1123 and #1124. See Pekko HTTP compatibility guidelines.