From d1ec9e5050ccd6955126d17b78d7489e2a3576ee Mon Sep 17 00:00:00 2001 From: Arpan Chakraborty Date: Mon, 18 May 2026 17:12:24 +0530 Subject: [PATCH 1/6] fix: improve AddonMemory deprecation error message with migration example --- src/annotations/input_arguments.jl | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/annotations/input_arguments.jl b/src/annotations/input_arguments.jl index 624ed6294..83a425595 100644 --- a/src/annotations/input_arguments.jl +++ b/src/annotations/input_arguments.jl @@ -178,7 +178,12 @@ Use [`InputArgumentsAnnotations`](@ref) instead. See the migration guide in the """ function AddonMemory(args...; kwargs...) error( - """`AddonMemory` has been removed in ReactiveMP v6 and replaced by `InputArgumentsAnnotations`. """ * - """See the migration guide in the documentation for details.""", + """`AddonMemory` has been removed in ReactiveMP v6 """ * + """and replaced by `InputArgumentsAnnotations`.\n""" * + """To migrate, replace:\n""" * + """ addons = (AddonMemory(),)\n""" * + """with:\n""" * + """ addons = (InputArgumentsAnnotations(),)\n""" * + """See the migration guide: https://reactivebayes.github.io/ReactiveMP.jl/stable/migration-guides/v5-to-v6/""", ) end From 1af2de36768b3e3ec527af257b8c18c881e41c47 Mon Sep 17 00:00:00 2001 From: Arpan Chakraborty Date: Mon, 18 May 2026 17:19:44 +0530 Subject: [PATCH 2/6] docs: update CHANGELOG for AddonMemory deprecation message improvement --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7179e4848..97b781661 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed +- Improved `AddonMemory` deprecation error message to include a before/after migration example and a direct link to the v5-to-v6 migration guide ([#600](https://github.com/ReactiveBayes/RxInfer.jl/issues/600)) + ## [6.1.0] - 04-05-2026 ### Added From 3bd21e10302f9ccbe22371ab87fcd75a87ca62b3 Mon Sep 17 00:00:00 2001 From: Arpan Chakraborty Date: Mon, 18 May 2026 17:25:09 +0530 Subject: [PATCH 3/6] fix: use annotations variable name as suggested by reviewer --- src/annotations/input_arguments.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/annotations/input_arguments.jl b/src/annotations/input_arguments.jl index 83a425595..94544f09c 100644 --- a/src/annotations/input_arguments.jl +++ b/src/annotations/input_arguments.jl @@ -183,7 +183,7 @@ function AddonMemory(args...; kwargs...) """To migrate, replace:\n""" * """ addons = (AddonMemory(),)\n""" * """with:\n""" * - """ addons = (InputArgumentsAnnotations(),)\n""" * + """ annotations = (InputArgumentsAnnotations(),)\n""" * """See the migration guide: https://reactivebayes.github.io/ReactiveMP.jl/stable/migration-guides/v5-to-v6/""", ) end From c432af74313fe38a7dbcf486347b868d0a7ea33d Mon Sep 17 00:00:00 2001 From: Arpan Chakraborty Date: Mon, 18 May 2026 18:23:32 +0530 Subject: [PATCH 4/6] fix: improve AddonLogScale deprecation error message with migration example --- src/annotations/logscale.jl | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/annotations/logscale.jl b/src/annotations/logscale.jl index 6d780b4d0..cebde1203 100644 --- a/src/annotations/logscale.jl +++ b/src/annotations/logscale.jl @@ -80,7 +80,13 @@ Use [`LogScaleAnnotations`](@ref) instead. See the migration guide in the docume """ function AddonLogScale(args...; kwargs...) error( - """`AddonLogScale` has been removed in ReactiveMP v6 and replaced by `LogScaleAnnotations`. """ * - """See the migration guide in the documentation for details.""", + """`AddonLogScale` has been removed in ReactiveMP v6 """ * + """and replaced by `LogScaleAnnotations`.\n""" * + """\n""" * + """To migrate, replace:\n""" * + """ annotations = (AddonLogScale(),)\n""" * + """with:\n""" * + """ annotations = (LogScaleAnnotations(),)\n""" * + """See the migration guide: https://reactivebayes.github.io/ReactiveMP.jl/stable/migration-guides/v5-to-v6/""", ) end From ac849fb9769f6d95fdc7198d78afa35be8c92713 Mon Sep 17 00:00:00 2001 From: Arpan Chakraborty Date: Mon, 18 May 2026 18:26:15 +0530 Subject: [PATCH 5/6] docs: update CHANGELOG for AddonLogScale deprecation message improvement --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 97b781661..2419281f1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - Improved `AddonMemory` deprecation error message to include a before/after migration example and a direct link to the v5-to-v6 migration guide ([#600](https://github.com/ReactiveBayes/RxInfer.jl/issues/600)) +- Improved `AddonLogScale` deprecation error message to include a before/after migration example and a direct link to the v5-to-v6 migration guide ## [6.1.0] - 04-05-2026 From 01472028b0f8e66e514cdb8ed2009330d93c374b Mon Sep 17 00:00:00 2001 From: Arpan Chakraborty Date: Mon, 18 May 2026 18:27:23 +0530 Subject: [PATCH 6/6] fix: use addons variable name in AddonLogScale migration example --- src/annotations/logscale.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/annotations/logscale.jl b/src/annotations/logscale.jl index cebde1203..977661cbf 100644 --- a/src/annotations/logscale.jl +++ b/src/annotations/logscale.jl @@ -84,7 +84,7 @@ function AddonLogScale(args...; kwargs...) """and replaced by `LogScaleAnnotations`.\n""" * """\n""" * """To migrate, replace:\n""" * - """ annotations = (AddonLogScale(),)\n""" * + """ addons = (AddonLogScale(),)\n""" * """with:\n""" * """ annotations = (LogScaleAnnotations(),)\n""" * """See the migration guide: https://reactivebayes.github.io/ReactiveMP.jl/stable/migration-guides/v5-to-v6/""",