@rgrove/parse-xml
Advanced tools
Comparing version 1.1.1 to 2.0.0-next.0
{ | ||
"name": "@rgrove/parse-xml", | ||
"version": "1.1.1", | ||
"version": "2.0.0-next.0", | ||
"description": "A fast, safe, compliant XML parser for Node.js and browsers.", | ||
@@ -26,31 +26,29 @@ "keywords": [ | ||
], | ||
"browser": "dist/commonjs/index.js", | ||
"main": "src/index.js", | ||
"browser": "dist/index.js", | ||
"scripts": { | ||
"benchmark": "cd benchmark && npm i && npm run benchmark", | ||
"build": "babel src -d dist", | ||
"build": "babel src -d dist/commonjs && webpack", | ||
"clean": "rm -rf .nyc_output coverage dist", | ||
"coverage": "nyc --reporter html --report-dir coverage npm test && open coverage/index.html", | ||
"lint": "eslint --cache {benchmark,src,tests}", | ||
"lint": "eslint --cache {src,tests}", | ||
"prepublishOnly": "npm run clean && npm run build", | ||
"test": "nyc --check-coverage --lines 100 mocha tests/*.test.js --delay --reporter dot", | ||
"test:browser": "(sleep 1 && open 'http://localhost:8080/tests/browser/') & webpack-dev-server" | ||
"test:browser": "(sleep 5 && open 'http://localhost:8080/tests/browser/') & webpack-dev-server --config tests/webpack.config.test.js --watch" | ||
}, | ||
"devDependencies": { | ||
"async": "^2.5.0", | ||
"babel-cli": "^6.26.0", | ||
"babel-eslint": "^7.2.3", | ||
"babel-loader": "^7.1.2", | ||
"babel-plugin-transform-runtime": "^6.23.0", | ||
"babel-preset-env": "^1.6.0", | ||
"eslint": "^4.6.1", | ||
"eslint-plugin-babel": "^4.1.2", | ||
"mocha": "^3.5.2", | ||
"nyc": "^11.2.1", | ||
"webpack": "^3.5.6", | ||
"webpack-dev-server": "^2.7.1" | ||
"@babel/cli": "^7.2.3", | ||
"@babel/core": "^7.2.2", | ||
"@babel/preset-env": "^7.2.3", | ||
"async": "^2.6.1", | ||
"babel-eslint": "^10.0.1", | ||
"babel-loader": "^8.0.0", | ||
"eslint": "^5.11.1", | ||
"eslint-plugin-babel": "^5.3.0", | ||
"mocha": "^5.2.0", | ||
"nyc": "^13.1.0", | ||
"webpack": "^4.28.3", | ||
"webpack-cli": "^3.1.2", | ||
"webpack-dev-server": "^3.1.14" | ||
}, | ||
"dependencies": { | ||
"babel-runtime": "^6.23.0" | ||
} | ||
"dependencies": {} | ||
} |
@@ -33,2 +33,8 @@ # parse-xml | ||
Or, if you like living dangerously, you can load [the minified UMD bundle][umd] | ||
in a browser via [Unpkg][] and use the `parseXml` global. | ||
[umd]:https://unpkg.com/@rgrove/parse-xml/dist/umd/parse-xml.min.js | ||
[Unpkg]:https://unpkg.com/ | ||
## Features | ||
@@ -38,4 +44,5 @@ | ||
- Works great in browsers. Around 6KB minified and gzipped (depending on how | ||
you package it). | ||
- Works great in Node.js 8+ and in modern browsers. Also works in older | ||
browsers if you provide polyfills for `Object.assign()`, `Object.freeze()`, | ||
and `String.fromCodePoint()`. | ||
@@ -402,19 +409,19 @@ - Provides [helpful, detailed error messages](#friendly-errors) with context | ||
``` | ||
Node.js v8.4.0 / Darwin x64 | ||
Node.js v10.1.0 / Darwin x64 | ||
Intel(R) Core(TM) i7-6920HQ CPU @ 2.90GHz | ||
Small document (291 bytes) | ||
29,400 op/s » libxmljs (native) | ||
54,203 op/s » parse-xml | ||
32,359 op/s » xmldoc (sax-js) | ||
27,143 op/s » libxmljs (native) | ||
67,938 op/s » parse-xml | ||
35,749 op/s » xmldoc (sax-js) | ||
Medium document (72081 bytes) | ||
673 op/s » libxmljs (native) | ||
389 op/s » parse-xml | ||
234 op/s » xmldoc (sax-js) | ||
571 op/s » libxmljs (native) | ||
436 op/s » parse-xml | ||
236 op/s » xmldoc (sax-js) | ||
Large document (1162464 bytes) | ||
61 op/s » libxmljs (native) | ||
26 op/s » parse-xml | ||
20 op/s » xmldoc (sax-js) | ||
50 op/s » libxmljs (native) | ||
33 op/s » parse-xml | ||
21 op/s » xmldoc (sax-js) | ||
@@ -424,13 +431,10 @@ | ||
Benches: 9 | ||
Elapsed: 16,417.15 ms | ||
Elapsed: 15,383.87 ms | ||
``` | ||
To run this benchmark yourself, clone this repo and run: | ||
See the [parse-xml-benchmark](https://github.com/rgrove/parse-xml-benchmark) | ||
repo for instructions on running this benchmark yourself. | ||
``` | ||
npm i && npm run benchmark | ||
``` | ||
## License | ||
[ISC License](LICENSE) |
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
57882
0
8
1105
437
13
1
- Removedbabel-runtime@^6.23.0
- Removedbabel-runtime@6.26.0(transitive)
- Removedcore-js@2.6.12(transitive)
- Removedregenerator-runtime@0.11.1(transitive)