diff --git a/CHANGELOG.md b/CHANGELOG.md index 7179e4848..2419281f1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ 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)) +- 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 ### Added diff --git a/src/annotations/input_arguments.jl b/src/annotations/input_arguments.jl index 624ed6294..94544f09c 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""" * + """ annotations = (InputArgumentsAnnotations(),)\n""" * + """See the migration guide: https://reactivebayes.github.io/ReactiveMP.jl/stable/migration-guides/v5-to-v6/""", ) end diff --git a/src/annotations/logscale.jl b/src/annotations/logscale.jl index 6d780b4d0..977661cbf 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""" * + """ addons = (AddonLogScale(),)\n""" * + """with:\n""" * + """ annotations = (LogScaleAnnotations(),)\n""" * + """See the migration guide: https://reactivebayes.github.io/ReactiveMP.jl/stable/migration-guides/v5-to-v6/""", ) end