Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/stevedonovan/Penlight.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorThijs Schreijer <thijs@thijsschreijer.nl>2022-01-10 14:51:39 +0300
committerThijs Schreijer <thijs@thijsschreijer.nl>2022-01-10 16:15:26 +0300
commita2fa921d0924d71a96eb9404639c54ebcb1b00b2 (patch)
tree2e429d583c033587d18e633f720301599781e021 /lua
parent73aa91d3881c771ea1e906035baa2382fdd5adf0 (diff)
deprecate(xml) deprecate the 'pl.xml' module
Diffstat (limited to 'lua')
-rw-r--r--lua/pl/text.lua2
-rw-r--r--lua/pl/xml.lua10
2 files changed, 11 insertions, 1 deletions
diff --git a/lua/pl/text.lua b/lua/pl/text.lua
index fe07754..8b6a53f 100644
--- a/lua/pl/text.lua
+++ b/lua/pl/text.lua
@@ -15,7 +15,7 @@
local utils = require("pl.utils")
-require("pl.utils").raise_deprecation {
+utils.raise_deprecation {
source = "Penlight " .. utils._VERSION,
message = "the contents of module 'pl.text' has moved into 'pl.stringx'",
version_removed = "2.0.0",
diff --git a/lua/pl/xml.lua b/lua/pl/xml.lua
index c593738..7956de9 100644
--- a/lua/pl/xml.lua
+++ b/lua/pl/xml.lua
@@ -51,6 +51,16 @@ local pcall = pcall
local require = require
+utils.raise_deprecation {
+ source = "Penlight " .. utils._VERSION,
+ message = "the contents of module 'pl.xml' has been deprecated, please use a more specialized library instead",
+ version_removed = "2.0.0",
+ deprecated_after = "1.11.0",
+ no_trace = true,
+}
+
+
+
local _M = {}
local Doc = { __type = "doc" };
Doc.__index = Doc;