Skip to content

Commit 219aedf

Browse files
committed
options: Use with over deprecated scoped
1 parent 0d525cc commit 219aedf

File tree

4 files changed

+22
-17
lines changed

4 files changed

+22
-17
lines changed

Manifest.toml

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# This file is machine-generated - editing it directly is not advised
22

3-
julia_version = "1.8.2"
3+
julia_version = "1.8.5"
44
manifest_format = "2.0"
5-
project_hash = "b9d6b99cd2acb92936717d3d8fc43a05d135e857"
5+
project_hash = "c7130869591b4f985941e8a5c1d2a572f2f59175"
66

77
[[deps.Artifacts]]
88
uuid = "56f22d72-fd6d-98f1-02f0-08ddc0907c33"
@@ -12,9 +12,9 @@ uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
1212

1313
[[deps.ChainRulesCore]]
1414
deps = ["Compat", "LinearAlgebra", "SparseArrays"]
15-
git-tree-sha1 = "e30f2f4e20f7f186dc36529910beaedc60cfa644"
15+
git-tree-sha1 = "b66b8f8e3db5d7835fb8cbe2589ffd1cd456e491"
1616
uuid = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
17-
version = "1.16.0"
17+
version = "1.17.0"
1818

1919
[[deps.ChangesOfVariables]]
2020
deps = ["InverseFunctions", "LinearAlgebra", "Test"]
@@ -24,14 +24,14 @@ version = "0.1.8"
2424

2525
[[deps.Compat]]
2626
deps = ["Dates", "LinearAlgebra", "UUIDs"]
27-
git-tree-sha1 = "e460f044ca8b99be31d35fe54fc33a5c33dd8ed7"
27+
git-tree-sha1 = "8a62af3e248a8c4bad6b32cbbe663ae02275e32c"
2828
uuid = "34da2185-b29b-5c13-b0c7-acf172513d20"
29-
version = "4.9.0"
29+
version = "4.10.0"
3030

3131
[[deps.CompilerSupportLibraries_jll]]
3232
deps = ["Artifacts", "Libdl"]
3333
uuid = "e66e0078-7015-5450-92f7-15fbd957f2ae"
34-
version = "0.5.2+0"
34+
version = "1.0.1+0"
3535

3636
[[deps.DataAPI]]
3737
git-tree-sha1 = "8da84edb865b0b5b0100c0666a9bc9a0b71c553c"
@@ -58,6 +58,11 @@ git-tree-sha1 = "2fb1e02f2b635d0845df5d7c167fec4dd739b00d"
5858
uuid = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
5959
version = "0.9.3"
6060

61+
[[deps.HashArrayMappedTries]]
62+
git-tree-sha1 = "2eaa69a7cab70a52b9687c8bf950a5a93ec895ae"
63+
uuid = "076d061b-32b6-4027-95e0-9a2c6f6d7e74"
64+
version = "0.2.0"
65+
6166
[[deps.InteractiveUtils]]
6267
deps = ["Markdown"]
6368
uuid = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
@@ -155,10 +160,10 @@ uuid = "ea8e919c-243c-51af-8825-aaa63cd721ce"
155160
version = "0.7.0"
156161

157162
[[deps.ScopedValues]]
158-
deps = ["Logging"]
159-
git-tree-sha1 = "aeee2ed0fc640697678a5d96a151d1324f0cfc00"
163+
deps = ["HashArrayMappedTries", "Logging"]
164+
git-tree-sha1 = "e3b5e4ccb1702db2ae9ac2a660d4b6b2a8595742"
160165
uuid = "7e506255-f358-4e82-b7e4-beb19740aa63"
161-
version = "1.0.1"
166+
version = "1.1.0"
162167

163168
[[deps.Serialization]]
164169
uuid = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
@@ -186,15 +191,15 @@ uuid = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
186191

187192
[[deps.StatsAPI]]
188193
deps = ["LinearAlgebra"]
189-
git-tree-sha1 = "45a7769a04a3cf80da1c1c7c60caf932e6f4c9f7"
194+
git-tree-sha1 = "1ff449ad350c9c4cbc756624d6f8a8c3ef56d3ed"
190195
uuid = "82ae8749-77ed-4fe6-ae5f-f523153014b0"
191-
version = "1.6.0"
196+
version = "1.7.0"
192197

193198
[[deps.StatsBase]]
194199
deps = ["DataAPI", "DataStructures", "LinearAlgebra", "LogExpFunctions", "Missings", "Printf", "Random", "SortingAlgorithms", "SparseArrays", "Statistics", "StatsAPI"]
195-
git-tree-sha1 = "75ebe04c5bed70b91614d684259b661c9e6274a4"
200+
git-tree-sha1 = "1d77abd07f617c4868c33d4f5b9e1dbb2643c9cf"
196201
uuid = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
197-
version = "0.34.0"
202+
version = "0.34.2"
198203

199204
[[deps.Test]]
200205
deps = ["InteractiveUtils", "Logging", "Random", "Serialization"]

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ DataStructures = "0.18"
2525
MacroTools = "0.5"
2626
MemPool = "0.4.4"
2727
Requires = "1"
28-
ScopedValues = "1"
28+
ScopedValues = "1.1"
2929
StatsBase = "0.28, 0.29, 0.30, 0.31, 0.32, 0.33, 0.34"
3030
TimespanLogging = "0.1"
3131
julia = "1.8"

src/Dagger.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import LinearAlgebra: transpose
1212

1313
using UUIDs
1414

15-
if !isdefined(Base, :scoped)
15+
if !isdefined(Base, :with)
1616
using ScopedValues
1717
end
1818

src/options.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ scope. Note that setting an option here will propagate its value across Julia
1313
or Dagger tasks spawned by `f()` or its callees (i.e. the options propagate).
1414
"""
1515
function with_options(f, options::NamedTuple)
16-
scoped(options_context => options) do
16+
with(options_context => options) do
1717
f()
1818
end
1919
end

0 commit comments

Comments
 (0)