diff --git a/HISTORY.md b/HISTORY.md index 54b40b7e9..ddfbf2432 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,5 +1,9 @@ # DynamicPPL Changelog +## 0.39.0 + +Removed the method `returned(::Model, values, keys)`; please use `returned(::Model, ::AbstractDict{<:VarName})` instead. + ## 0.38.3 Add an implementation of `returned(::Model, ::AbstractDict{<:VarName})`. @@ -11,6 +15,8 @@ The generic method `returned(::Model, values, keys)` is deprecated and will be r Added a compatibility entry for JET@0.11. +> > > > > > > main + ## 0.38.1 Added `from_linked_vec_transform` and `from_vec_transform` methods for `ProductNamedTupleDistribution`. diff --git a/Project.toml b/Project.toml index d54f9d1da..9d5fb22d8 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "DynamicPPL" uuid = "366bfd00-2699-11ea-058f-f148b4cae6d8" -version = "0.38.3" +version = "0.39.0" [deps] ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b" diff --git a/src/model.jl b/src/model.jl index edb042ba9..ec98b90cd 100644 --- a/src/model.jl +++ b/src/model.jl @@ -1107,11 +1107,6 @@ function predict end Execute `model` with variables `keys` set to `values` and return the values returned by the `model`. - returned(model::Model, values, keys) - -Execute `model` with variables `keys` set to `values` and return the values returned by the `model`. -This method is deprecated; use the NamedTuple or AbstractDict version instead. - # Example ```jldoctest julia> using DynamicPPL, Distributions @@ -1141,6 +1136,3 @@ function returned(model::Model, parameters::Union{NamedTuple,AbstractDict{<:VarN # We can't use new_model() because that overwrites it with an InitContext of its own. return first(evaluate!!(new_model, vi)) end -Base.@deprecate returned(model::Model, values, keys) returned( - model, NamedTuple{keys}(values) -)