Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Bureaucratic stuff :).

  • Loading branch information...
commit 13af14abb85b9d45dc995d39fc293927fdd10b18 1 parent 31de4b5
@SaltwaterC authored
Showing with 11 additions and 3 deletions.
  1. +3 −0  CHANGELOG.md
  2. +2 −1  README.md
  3. +6 −2 package.json
View
3  CHANGELOG.md
@@ -1,3 +1,6 @@
+## v0.3.10
+ * Fixes a couple of global variable leaks [#10](https://github.com/SaltwaterC/libxml-to-js/pull/10).
+
## v0.3.9
* Takes a more safe approach to the err argument of the catch block in the exported method. It proves that in production the err argument may be undefined which breaks things.
View
3  README.md
@@ -39,7 +39,7 @@ parser(xml, '//xpath/query', function (error, result) {
## Gotcha
-Due to the fact that libxmljs does not have any method for returning the namespace attributes of a specific element, the returned namespaces aren't returned into an obvious way:
+Due to the fact that libxmljs does not have any method for returning the namespace attributes of a specific element, the returned namespaces aren't returned as expected:
* the returned namespaces are only the actual used namespaces by the XML document. If there are unused namespaces, they aren't returned. This is a consequence of the fact that the namespaces are pushed into the returned object as they are detected by the parsing recursion.
* the returned namespaces are attached as attributes to the root element, into the xmlns key in order to keep the code simple.
@@ -82,3 +82,4 @@ is parsed as:
* @[Marsup](https://github.com/Marsup): XPath queries support.
* @[VirgileD](https://github.com/VirgileD): improved text kludge and namespaces support
* @[Richard Anaya](https://github.com/richardanaya): fix for [#6](https://github.com/SaltwaterC/libxml-to-js/issues/6)
+ * @[TokyoIncidents](https://github.com/TokyoIncidents): fixes a couple of global variables leaks [#10](https://github.com/SaltwaterC/libxml-to-js/pull/10)
View
8 package.json
@@ -1,10 +1,10 @@
{
"name": "libxml-to-js",
- "version": "0.3.9",
+ "version": "0.3.10",
"main": "./lib/libxml-to-js.js",
"description": "XML to JavaScript object parser based on libxmljs",
"dependencies": {
- "libxmljs": ">=0.x"
+ "libxmljs": ">=0.5.x"
},
"engines": {
"node": ">=0.4.x"
@@ -30,6 +30,10 @@
{
"name": "Richard Anaya",
"url": "http://www.richardanaya.com/"
+ },
+ {
+ "name": "TokyoIncidents",
+ "url": "https://github.com/TokyoIncidents"
}
],
"repository": {
Please sign in to comment.
Something went wrong with that request. Please try again.