From 17c5c0c720e696b1e6d9e09dd5561f8c738c1cbe Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Wed, 25 Oct 2023 21:34:11 +0800 Subject: [PATCH 1/4] deprecate htmlparser ref https://github.com/nim-lang/Nim/pull/22848 --- lib/pure/htmlparser.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/pure/htmlparser.nim b/lib/pure/htmlparser.nim index 0de384a8e645c..a573be74f7862 100644 --- a/lib/pure/htmlparser.nim +++ b/lib/pure/htmlparser.nim @@ -47,6 +47,8 @@ ## writeFile("output.html", $html) ## ``` +{.deprecated: "use command `nimble install htmlparser` and import `pkg/htmlparser` instead".} + import strutils, streams, parsexml, xmltree, unicode, strtabs when defined(nimPreviewSlimSystem): From 3ae9441af955ac374e6e0ab506072bfac2be09fc Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Wed, 25 Oct 2023 21:37:27 +0800 Subject: [PATCH 2/4] adds a changelog --- changelog.md | 1 + 1 file changed, 1 insertion(+) diff --git a/changelog.md b/changelog.md index 58efde163f1e3..715d0e573f9f3 100644 --- a/changelog.md +++ b/changelog.md @@ -11,6 +11,7 @@ - Changed `std/osfiles.copyFile` to allow to specify `bufferSize` instead of a hardcoded one. - Changed `std/osfiles.copyFile` to use `POSIX_FADV_SEQUENTIAL` hints for kernel-level aggressive sequential read-aheads. +- `std/htmlparser` have been moved to nimble packages, use `nimble` or `atlas` to install them. [//]: # "Additions:" From 630328e9d09eb4531d354efc1b5cd9890ad5521b Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Thu, 26 Oct 2023 13:07:22 +0200 Subject: [PATCH 3/4] Update changelog.md --- changelog.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 715d0e573f9f3..b094dd0ebeb88 100644 --- a/changelog.md +++ b/changelog.md @@ -11,7 +11,7 @@ - Changed `std/osfiles.copyFile` to allow to specify `bufferSize` instead of a hardcoded one. - Changed `std/osfiles.copyFile` to use `POSIX_FADV_SEQUENTIAL` hints for kernel-level aggressive sequential read-aheads. -- `std/htmlparser` have been moved to nimble packages, use `nimble` or `atlas` to install them. +- `std/htmlparser` has been moved to a nimble package, use `nimble` or `atlas` to install it. [//]: # "Additions:" From ac5f731696ff5ede4a1ba274b6ddf48bc0860ac4 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Thu, 26 Oct 2023 13:07:42 +0200 Subject: [PATCH 4/4] Update lib/pure/htmlparser.nim --- lib/pure/htmlparser.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pure/htmlparser.nim b/lib/pure/htmlparser.nim index a573be74f7862..8bf149721419d 100644 --- a/lib/pure/htmlparser.nim +++ b/lib/pure/htmlparser.nim @@ -47,7 +47,7 @@ ## writeFile("output.html", $html) ## ``` -{.deprecated: "use command `nimble install htmlparser` and import `pkg/htmlparser` instead".} +{.deprecated: "use `nimble install htmlparser` and import `pkg/htmlparser` instead".} import strutils, streams, parsexml, xmltree, unicode, strtabs