From 0a58388cdeed3f025f540fec7a3f72a05cb90a6e Mon Sep 17 00:00:00 2001 From: tovedetered Date: Wed, 13 Mar 2024 17:12:36 -0400 Subject: [PATCH] adding deprecation warnings --- src/xmleam/builder.gleam | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xmleam/builder.gleam b/src/xmleam/builder.gleam index 4483216..c83c588 100644 --- a/src/xmleam/builder.gleam +++ b/src/xmleam/builder.gleam @@ -19,6 +19,7 @@ pub type Option { /// Ex. builder.basic_tag("pubDate", "12 Mar 2024") to /// 12 Mar 2024 \n /// basic_tag(tag_name, contents) +@deprecated("Please Migrate to xml_builder module") pub fn basic_tag( tag_name: String, contents: List(String), @@ -48,6 +49,7 @@ pub fn basic_tag( /// "IDK why you would use this") /// -> /// IDK why you would use this +@deprecated("Please Migrate to xml_builder module") pub fn option_content_tag( tag_name: String, options: List(Option), @@ -75,6 +77,7 @@ pub fn option_content_tag( |> Ok } +@deprecated("Please Migrate to xml_builder module") pub fn option_tag( tag_name: String, options: List(Option), @@ -96,6 +99,7 @@ pub fn option_tag( ///This is the header tag REQUIRED by all valid XML documents /// Usage: xml(version (1.0), encoding (UTF-8), /// document: List(String) -> [basic_tag(...), basic_tag(...)]) +@deprecated("Please Migrate to xml_builder module") pub fn xml( version: String, encoding: String,