Skip to content

Conversation

@luislobo
Copy link

No description provided.

jcsahnwaldt and others added 30 commits June 15, 2018 04:40
#356 "processor signature not working"
In case there are multiple empty tags in xml,
they all share reference to the same default object. This causes unwanted
duplication, when we assign something to any of these empty objects.
When we provide factory function for emptyObject, these objects no longer
share reference and works as expected.
parser.test.coffee: regression tests for #356
Bump nodejs versions to ones that are still maintained
Examples:

```js
// Via root API
xml2js.parseStringPromise('< ... >', options)
  .then(function (result) { /* ... */ })
  .catch(function (err) { /* ... */ })

// Via parser
var parser = new xml2js.Parser(options);
parser.parseStringPromise('< ... >')
  .then(function (result) { /* ... */ })
  .catch(function (err) { /* ... */ })
```
Restore Node 4 compatibility temporarily
Here we implement the feature without adding an extra
dependency.
Remove the temporary util.promisify dependency
Leonidas-from-XIV and others added 30 commits March 27, 2020 13:23
fix issue554, a build error under win10 environment
Allow function as default value for parsing empty tags
Correct a typo
Add documentation for `explicitCharkey` option
use Object.create(null) to create all parsed objects
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.