Skip to content

Commit

Permalink
permute: add deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Tieske committed Oct 12, 2020
1 parent fbd7093 commit 0400d57
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions lua/pl/permute.lua
Original file line number Diff line number Diff line change
Expand Up @@ -166,15 +166,27 @@ end
-- @param ...
-- @see permute.order_iter
function permute.iter(...)
--TODO: add deprecation warning here
utils.deprecation_warning {
source = "Penlight " .. utils._VERSION,
message = "function 'iter' was renamed to 'order_iter'",
version_removed = "2.0.0",
version_deprecated = "1.9.2",
}

return permute.order_iter(...)
end

--- deprecated.
-- @param ...
-- @see permute.order_iter
function permute.table(...)
--TODO: add deprecation warning here
utils.deprecation_warning {
source = "Penlight " .. utils._VERSION,
message = "function 'table' was renamed to 'order_table'",
version_removed = "2.0.0",
version_deprecated = "1.9.2",
}

return permute.order_table(...)
end

Expand Down

0 comments on commit 0400d57

Please sign in to comment.