Skip to content

Commit 575ccfa

Browse files
authored
bump compatibility for JSON.jl to include v1 (#143)
* fix compat for JSON=1 * bump patch * fix * format * fix CI for 1.12
1 parent 3f6c538 commit 575ccfa

File tree

5 files changed

+18
-7
lines changed

5 files changed

+18
-7
lines changed

.github/workflows/CI.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ jobs:
2020
# Minimum supported version
2121
- version: 'min'
2222
os: ubuntu-latest
23+
# 1.11
24+
- version: '1.11'
25+
os: ubuntu-latest
2326
# Windows
2427
- version: '1'
2528
os: windows-latest

.github/workflows/JuliaPre.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
name: JuliaPre
22

33
on:
4-
push:
5-
branches:
6-
- main
7-
pull_request:
4+
workflow_dispatch:
5+
# JuliaPre is currently disabled because 'pre' resolves to 1.12. Re-enable
6+
# when 1.13 prerelease is available.
7+
# push:
8+
# branches:
9+
# - main
10+
# pull_request:
811

912
# needed to allow julia-actions/cache to delete old caches that it has created
1013
permissions:

HISTORY.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.13.3
2+
3+
Bumped compatibility for JSON.jl to include v1.
4+
15
## 0.13.2
26

37
Implemented `varname_leaves` for `LinearAlgebra.Cholesky`.

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ uuid = "7a57a42e-76ec-4ea3-a279-07e840d6d9cf"
33
keywords = ["probablistic programming"]
44
license = "MIT"
55
desc = "Common interfaces for probabilistic programming"
6-
version = "0.13.2"
6+
version = "0.13.3"
77

88
[deps]
99
AbstractMCMC = "80f14c24-f653-4e6a-9b94-39d6b0f70001"
@@ -25,7 +25,7 @@ AbstractMCMC = "2, 3, 4, 5"
2525
Accessors = "0.1"
2626
DensityInterface = "0.4"
2727
Distributions = "0.25"
28-
JSON = "0.19 - 0.21"
28+
JSON = "0.19 - 0.21, 1"
2929
LinearAlgebra = "<0.0.1, 1.10"
3030
Random = "1.6"
3131
StatsBase = "0.32, 0.33, 0.34"

src/varname/serialize.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,4 +171,5 @@ varname_to_string(vn::VarName) = JSON.json(varname_to_dict(vn))
171171
Convert a string representation of a `VarName` back to a `VarName`. The string
172172
should have been generated by `varname_to_string`.
173173
"""
174-
string_to_varname(str::AbstractString) = dict_to_varname(JSON.parse(str))
174+
string_to_varname(str::AbstractString) =
175+
dict_to_varname(JSON.parse(str; dicttype=Dict{String,Any}))

0 commit comments

Comments
 (0)