Skip to content

Commit 85b5118

Browse files
authored
Merge branch 'breaking' into mhauru/varnamedvector-as-default
2 parents 852c971 + c57de02 commit 85b5118

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

HISTORY.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# DynamicPPL Changelog
22

3+
## 0.39.0
4+
5+
Removed the method `returned(::Model, values, keys)`; please use `returned(::Model, ::AbstractDict{<:VarName})` instead.
6+
37
## 0.38.4
48

59
Improve performance of VarNamedVector. It should now be very nearly on par with Metadata for all models we've benchmarked on.
@@ -15,6 +19,8 @@ The generic method `returned(::Model, values, keys)` is deprecated and will be r
1519

1620
Added a compatibility entry for [email protected].
1721

22+
> > > > > > > main
23+
1824
## 0.38.1
1925

2026
Added `from_linked_vec_transform` and `from_vec_transform` methods for `ProductNamedTupleDistribution`.

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "DynamicPPL"
22
uuid = "366bfd00-2699-11ea-058f-f148b4cae6d8"
3-
version = "0.38.4"
3+
version = "0.39.0"
44

55
[deps]
66
ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b"

src/model.jl

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,11 +1107,6 @@ function predict end
11071107
11081108
Execute `model` with variables `keys` set to `values` and return the values returned by the `model`.
11091109
1110-
returned(model::Model, values, keys)
1111-
1112-
Execute `model` with variables `keys` set to `values` and return the values returned by the `model`.
1113-
This method is deprecated; use the NamedTuple or AbstractDict version instead.
1114-
11151110
# Example
11161111
```jldoctest
11171112
julia> using DynamicPPL, Distributions
@@ -1141,6 +1136,3 @@ function returned(model::Model, parameters::Union{NamedTuple,AbstractDict{<:VarN
11411136
# We can't use new_model() because that overwrites it with an InitContext of its own.
11421137
return first(evaluate!!(new_model, vi))
11431138
end
1144-
Base.@deprecate returned(model::Model, values, keys) returned(
1145-
model, NamedTuple{keys}(values)
1146-
)

0 commit comments

Comments
 (0)