From 9732e31395a48bba236f13805468d12497ef2115 Mon Sep 17 00:00:00 2001 From: JimMoen Date: Wed, 11 Oct 2023 11:23:41 +0800 Subject: [PATCH] chore: highlight breaking changes --- changes/ce/fix-10976.en.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/changes/ce/fix-10976.en.md b/changes/ce/fix-10976.en.md index 87a7b442a..f2f15d4c8 100644 --- a/changes/ce/fix-10976.en.md +++ b/changes/ce/fix-10976.en.md @@ -1,2 +1,9 @@ Fix topic-filter overlapping handling in shared subscription. In the previous implementation, the storage method for subscription options did not provide adequate support for shared subscriptions. This resulted in message routing failures and leakage of routing tables between nodes during the "subscribe-unsubscribe" process with specific order and topics. + +## Breaking changes +* Hook callback `session.subscribed` and `client.subscribe` will now receive shared subscription in its full representation, e.g. `$share/group1/topic1/#`, and the `share` property is deleted from `subopts`. +* Hook callback `session.unsubscribed` and `client.unsubscribe` will now receive shared subscription in its full representation, e.g. `$share/group1/topic1/#` instead of just `topic1/#`. +* ExHook Proto changed. The `share` field in message `SubOpts` was deprecated. + ExHook Server will now receive shared subscription in its full representation, e.g. `$share/group1/topic1/#`, and the `share` property is deleted from message `SubOpts`. +* `session.subscribed` and `session.unsubscribed` rule-engine events will have shared subscriptions in their full representation for `topic`, e.g. `$share/group1/topic1/#` instead of just `topic1/#`.