From 2feadb3ffeefb90889caf896b59174861ed0f8cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mos=C3=A8=20Giordano?= Date: Sat, 14 Mar 2026 16:23:07 +0000 Subject: [PATCH 1/3] Allow JSON v1 --- Project.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index cc4e1d5..9216d48 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "CDSAPI" uuid = "8a7b9de3-9c00-473e-88b4-7eccd7ef2fea" authors = ["Micky Yun Chan and contributors"] -version = "2.2.1" +version = "2.2.2" [deps] Dates = "ade2ca70-3891-5945-98fb-dc099432e06a" @@ -12,7 +12,7 @@ ScopedValues = "7e506255-f358-4e82-b7e4-beb19740aa63" [compat] Dates = "1.10" HTTP = "1" -JSON = "0.21" +JSON = "0.21, 1" ScopedValues = "1.3.0" julia = "1.10" From 91100fbf5726168b1234cde28ca6696e88e7787f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BAlio=20Hoffimann?= Date: Sun, 15 Mar 2026 07:12:28 -0300 Subject: [PATCH 2/3] Update compat entries --- Project.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index 9216d48..c3cc675 100644 --- a/Project.toml +++ b/Project.toml @@ -12,8 +12,8 @@ ScopedValues = "7e506255-f358-4e82-b7e4-beb19740aa63" [compat] Dates = "1.10" HTTP = "1" -JSON = "0.21, 1" -ScopedValues = "1.3.0" +JSON = "1" +ScopedValues = "1.3" julia = "1.10" [extras] From 1afdfc6fa34455ffcb4daaa3d6f7894134e92d9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BAlio=20Hoffimann?= Date: Sun, 15 Mar 2026 07:18:16 -0300 Subject: [PATCH 3/3] Update tests for JSON.jl v1 --- Project.toml | 2 +- test/runtests.jl | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Project.toml b/Project.toml index c3cc675..2083717 100644 --- a/Project.toml +++ b/Project.toml @@ -23,4 +23,4 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" ZipFile = "a5390f91-8eb1-5f08-bee0-b1d1ffed6cea" [targets] -test = ["Test", "GRIB", "ZipFile", "NetCDF"] +test = ["Test", "GRIB", "NetCDF", "ZipFile"] diff --git a/test/runtests.jl b/test/runtests.jl index 13c541a..4633e5f 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,6 +1,7 @@ using CDSAPI -using ZipFile using GRIB, NetCDF +using ZipFile +using JSON using Test @@ -24,7 +25,7 @@ datadir = joinpath(@__DIR__, "data") filename ) - @test typeof(response) <: Dict + @test typeof(response) <: JSON.Object @test isfile(filename) GribFile(filename) do datafile @@ -54,7 +55,7 @@ datadir = joinpath(@__DIR__, "data") filename ) - @test typeof(response) <: Dict + @test typeof(response) <: JSON.Object @test isfile(filename) # extract contents