From 330643ad69fb4e2777b88ad3d581337d9a0d98f8 Mon Sep 17 00:00:00 2001 From: Penelope Yong Date: Fri, 17 Oct 2025 02:15:47 +0100 Subject: [PATCH 1/5] fix compat for JSON=1 --- Project.toml | 2 +- src/varname/serialize.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index c1940ca2..814ad1b9 100644 --- a/Project.toml +++ b/Project.toml @@ -25,7 +25,7 @@ AbstractMCMC = "2, 3, 4, 5" Accessors = "0.1" DensityInterface = "0.4" Distributions = "0.25" -JSON = "0.19 - 0.21" +JSON = "0.19-0.21, 1" LinearAlgebra = "<0.0.1, 1.10" Random = "1.6" StatsBase = "0.32, 0.33, 0.34" diff --git a/src/varname/serialize.jl b/src/varname/serialize.jl index e27da781..9d19aead 100644 --- a/src/varname/serialize.jl +++ b/src/varname/serialize.jl @@ -171,4 +171,4 @@ varname_to_string(vn::VarName) = JSON.json(varname_to_dict(vn)) Convert a string representation of a `VarName` back to a `VarName`. The string should have been generated by `varname_to_string`. """ -string_to_varname(str::AbstractString) = dict_to_varname(JSON.parse(str)) +string_to_varname(str::AbstractString) = dict_to_varname(JSON.parse(str; dicttype=Dict{String, Any})) From 03382141333e3708ba33872975773df3ed2578a9 Mon Sep 17 00:00:00 2001 From: Penelope Yong Date: Fri, 17 Oct 2025 02:16:33 +0100 Subject: [PATCH 2/5] bump patch --- HISTORY.md | 4 ++++ Project.toml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/HISTORY.md b/HISTORY.md index c7b61af0..026c849d 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,3 +1,7 @@ +## 0.13.3 + +Bumped compatibility for JSON.jl to include v1. + ## 0.13.2 Implemented `varname_leaves` for `LinearAlgebra.Cholesky`. diff --git a/Project.toml b/Project.toml index 814ad1b9..18149fc9 100644 --- a/Project.toml +++ b/Project.toml @@ -3,7 +3,7 @@ uuid = "7a57a42e-76ec-4ea3-a279-07e840d6d9cf" keywords = ["probablistic programming"] license = "MIT" desc = "Common interfaces for probabilistic programming" -version = "0.13.2" +version = "0.13.3" [deps] AbstractMCMC = "80f14c24-f653-4e6a-9b94-39d6b0f70001" From 0ed80cdd1a876f0ccfb6c9aaa1a5ece74e818950 Mon Sep 17 00:00:00 2001 From: Penelope Yong Date: Fri, 17 Oct 2025 02:18:41 +0100 Subject: [PATCH 3/5] fix --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 18149fc9..471a9b3b 100644 --- a/Project.toml +++ b/Project.toml @@ -25,7 +25,7 @@ AbstractMCMC = "2, 3, 4, 5" Accessors = "0.1" DensityInterface = "0.4" Distributions = "0.25" -JSON = "0.19-0.21, 1" +JSON = "0.19 - 0.21, 1" LinearAlgebra = "<0.0.1, 1.10" Random = "1.6" StatsBase = "0.32, 0.33, 0.34" From 716d1d36d168e9d52e98771cf2d8bfaa674e70da Mon Sep 17 00:00:00 2001 From: Penelope Yong Date: Fri, 17 Oct 2025 02:20:39 +0100 Subject: [PATCH 4/5] format --- src/varname/serialize.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/varname/serialize.jl b/src/varname/serialize.jl index 9d19aead..7feb4896 100644 --- a/src/varname/serialize.jl +++ b/src/varname/serialize.jl @@ -171,4 +171,5 @@ varname_to_string(vn::VarName) = JSON.json(varname_to_dict(vn)) Convert a string representation of a `VarName` back to a `VarName`. The string should have been generated by `varname_to_string`. """ -string_to_varname(str::AbstractString) = dict_to_varname(JSON.parse(str; dicttype=Dict{String, Any})) +string_to_varname(str::AbstractString) = + dict_to_varname(JSON.parse(str; dicttype=Dict{String,Any})) From 329309d7b007208ba66671871404db018409adfc Mon Sep 17 00:00:00 2001 From: Penelope Yong Date: Fri, 17 Oct 2025 02:22:20 +0100 Subject: [PATCH 5/5] fix CI for 1.12 --- .github/workflows/CI.yml | 3 +++ .github/workflows/JuliaPre.yml | 11 +++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 459b3354..cb5be580 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -20,6 +20,9 @@ jobs: # Minimum supported version - version: 'min' os: ubuntu-latest + # 1.11 + - version: '1.11' + os: ubuntu-latest # Windows - version: '1' os: windows-latest diff --git a/.github/workflows/JuliaPre.yml b/.github/workflows/JuliaPre.yml index 6c005bfd..e3bf4a97 100644 --- a/.github/workflows/JuliaPre.yml +++ b/.github/workflows/JuliaPre.yml @@ -1,10 +1,13 @@ name: JuliaPre on: - push: - branches: - - main - pull_request: + workflow_dispatch: + # JuliaPre is currently disabled because 'pre' resolves to 1.12. Re-enable + # when 1.13 prerelease is available. + # push: + # branches: + # - main + # pull_request: # needed to allow julia-actions/cache to delete old caches that it has created permissions: