Closed matthewpwilson closed 5 years ago
Here's the dependency tree for our plugin
├─┬ @zowe/cics@2.0.1
│ └─┬ xml2js@0.4.19
│ ├── sax@1.2.4
│ └── xmlbuilder@9.0.7
└─┬ xml2json@0.11.2
├── hoek@4.2.1
├─┬ joi@13.7.0
│ ├── hoek@5.0.4
│ ├─┬ isemail@3.2.0
│ │ └── punycode@2.1.1
│ └─┬ topo@3.0.3
│ └── hoek@6.1.3
└─┬ node-expat@2.3.18
├─┬ bindings@1.5.0
│ └── file-uri-to-path@1.0.0
└── nan@2.14.0
So, those warnings all occur as result of dependencies of xml2json
Some has raised a PR to fix these https://github.com/buglabs/node-xml2json/pull/179, however it doesn't look like the project maintainers are too responsive.
We could consider swapping to another XML parser. At a quick glance fast-xml-parser and xml-js look like reasonable candidates. Both have been updated in the last few months. They both also appear to be native JavaScript parers, which would mean that Windows users wouldn't need to install tools for compiling native modules.
Thoughts @pcoop ?
The cics plugin uses https://www.npmjs.com/package/xml2js as its parser, but it hasn't been updated in a couple of years so I wasn't keen for us to base on that. If we can find a parser that addresses the namespace problems in issue #158 then that would be good, and we need something that will round-trip a document from XML->JSON->XML without introducing oddities in the processes.
Fixed by #239.
When I install the cics-deploy plugin I get the following warnings from npm:
We need to investigate and at least understand the source of these, and ideally get rid of them for 1.0.