Skip to content

Commit cf450a6

Browse files
authored
Deprecate All (#28)
1 parent d4e5fb8 commit cf450a6

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "DataAPI"
22
uuid = "9a962f9c-6df0-11e9-0e5d-c546b8b5ee8a"
33
authors = ["quinnj <[email protected]>"]
4-
version = "1.3.0"
4+
version = "1.4.0"
55

66
[compat]
77
julia = "1"

src/DataAPI.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,12 @@ Select the union of the selections in `cols`. If `cols == ()`, select all column
121121
"""
122122
struct All{T<:Tuple}
123123
cols::T
124-
All(args...) = new{typeof(args)}(args)
124+
function All(args...)
125+
if !isempty(args)
126+
Base.depwarn("All(args...) is deprecated, use Cols(args...) instead", :All)
127+
end
128+
return new{typeof(args)}(args)
129+
end
125130
end
126131

127132
"""

0 commit comments

Comments
 (0)