Skip to content

Commit 7e74b4f

Browse files
committed
deprecate in-built CLI
1 parent 8be4bd5 commit 7e74b4f

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
<small>Note: If you find missing information about particular minor version, that version must have been changed without any functional change in this library.</small>
22

3+
**5.2.5 / 2025-06-08**
4+
- Inform user to use [fxp-cli](https://github.com/NaturalIntelligence/fxp-cli) instead of in-built CLI feature
5+
- Export typings for direct use
6+
37
**5.2.4 / 2025-06-06**
48
- fix (#747): fix EMPTY and ANY with ELEMENT in DOCTYPE
59

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fast-xml-parser",
3-
"version": "5.2.4",
3+
"version": "5.2.5",
44
"description": "Validate XML, Parse XML, Build XML without C/C++ based libraries",
55
"main": "./lib/fxp.cjs",
66
"type": "module",
@@ -51,7 +51,6 @@
5151
"x2js",
5252
"xml2json",
5353
"js",
54-
"cli",
5554
"validator",
5655
"validate",
5756
"transformer",

src/cli/cli.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ import {XMLParser, XMLValidator} from "../fxp.js";
77
import ReadToEnd from './read.js';
88
import cmdDetail from "./man.js"
99

10+
console.warn("\x1b[33m%s\x1b[0m", "⚠️ Warning: The built-in CLI interface is now deprecated.");
11+
console.warn("Please install the dedicated CLI package instead:");
12+
console.warn(" npm install -g fxp-cli");
13+
1014
if (process.argv[2] === '--help' || process.argv[2] === '-h') {
1115
console.log(cmdDetail);
1216
} else if (process.argv[2] === '--version') {

0 commit comments

Comments
 (0)