From 175b0f3ad54c0e9d3dd8e0d5e4da1a103e166473 Mon Sep 17 00:00:00 2001 From: Tomasz Patrzek Date: Mon, 22 Jun 2026 13:32:23 +0200 Subject: [PATCH 1/2] Drop removed ensure_supported_any_usage: keyword for RES 3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit RubyEventStore::InMemoryRepository#initialize no longer accepts the ensure_supported_any_usage: keyword in 3.0 — the "no mixing :any with a specific expected position" rule is now enforced unconditionally. Passing the keyword raised ArgumentError. Dropping it preserves the previous behaviour (we passed `true`, which is now the default). Co-Authored-By: Claude Opus 4.8 --- infra/lib/infra/event_store.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infra/lib/infra/event_store.rb b/infra/lib/infra/event_store.rb index fe6af941..cb399a6f 100644 --- a/infra/lib/infra/event_store.rb +++ b/infra/lib/infra/event_store.rb @@ -19,7 +19,7 @@ def self.default_mapper def self.in_memory new( RubyEventStore::Client.new( - repository: RubyEventStore::InMemoryRepository.new(ensure_supported_any_usage: true) + repository: RubyEventStore::InMemoryRepository.new ) ) end @@ -27,7 +27,7 @@ def self.in_memory def self.in_memory_rails new( RailsEventStore::Client.new( - repository: RubyEventStore::InMemoryRepository.new(ensure_supported_any_usage: true) + repository: RubyEventStore::InMemoryRepository.new ) ) end From 9a6742a49f12b00f6a3feccf0f03a215c96bffc3 Mon Sep 17 00:00:00 2001 From: Tomasz Patrzek Date: Mon, 22 Jun 2026 13:32:23 +0200 Subject: [PATCH 2/2] Replace apply_* handlers with on DSL in Communication::Message RES 3.0 removed the apply_ state-handler naming convention; the default apply strategy now raises AggregateRoot::MissingHandler for it. Switch the (empty) MessageSent/MessageRead handlers to the `on` DSL. Co-Authored-By: Claude Opus 4.8 --- domains/communication/lib/communication.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/domains/communication/lib/communication.rb b/domains/communication/lib/communication.rb index 9395de78..7dc2da65 100644 --- a/domains/communication/lib/communication.rb +++ b/domains/communication/lib/communication.rb @@ -74,10 +74,10 @@ def read(message_id) apply MessageRead.new(data: { message_id: message_id }) end - def apply_message_sent(_) + on MessageSent do |_| end - def apply_message_read(_) + on MessageRead do |_| end end end