Skip to content

chore: remove APIs deprecated before 2.10 in akka-persistence-typed - #33039

Draft
johanandren wants to merge 3 commits into
mainfrom
johan/agent/remove-deprecated-persistence-typed
Draft

johanandren wants to merge 3 commits into
mainfrom
johan/agent/remove-deprecated-persistence-typed

Conversation

@johanandren

Copy link
Copy Markdown
Contributor

🤖 Part of the 2.11 clean-up: one PR per module removes APIs deprecated in 2.9 or earlier, or in 2.10.0.

Removed

  • javadsl snapshotSelectionCriteria in EventSourcedBehavior, EventSourcedOnCommandBehavior and EventSourcedOnCommandWithReplyBehavior (2.6.5). Nothing internal called it, so overriding it already had no effect.
  • scaladsl EventSourcedBehavior.withSnapshotSelectionCriteria (2.6.5)

Kept on purpose (2.10.1 or later): javadsl.Recovery.default, the EventSourcedBehaviorImpl metadata constructor, withReplicatedEventTransformation.

Also: migration guide section (shared ## Removed deprecated APIs heading with the other removal PRs; keep one when rebasing); MiMa filters in 2.11.0.backwards.excludes.

Verified: root Test/compile, akka-persistence-typed-tests/test (289), MiMa.

Downstream (compile check against a snapshot with all 2.11 removals): no repo uses the removed members.

* Remove the javadsl snapshotSelectionCriteria overrides in
  EventSourcedBehavior, EventSourcedOnCommandBehavior and
  EventSourcedOnCommandWithReplyBehavior, deprecated in 2.6.5. They were
  not used by the implementation, override recovery instead.
* Remove the scaladsl EventSourcedBehavior.withSnapshotSelectionCriteria,
  deprecated in 2.6.5, use withRecovery instead.
@johanandren

Copy link
Copy Markdown
Contributor Author

🤖 Reworded the migration guide intro to "deprecated in 2.10.0 or earlier", following the review on #33046.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant