saxen
Advanced tools
Comparing version 6.0.1 to 7.0.0
@@ -9,7 +9,23 @@ # Changelog | ||
## 7.0.0 | ||
### Breaking Changes | ||
* `FEAT`: expose `Parser` and `decode` via single export only. Use `import` or destructuring to access it: | ||
```javascript | ||
var { Parser } = require('saxen'); | ||
``` | ||
### Other Improvements | ||
* `FEAT`: generate pre-built distributions for CommonJS and Browser targets | ||
* `FEAT`: generate UMD bundle | ||
* `CHORE`: Migrate code base to ES6 | ||
## 6.0.1 | ||
_This is a re-publish of the broken `v6.0.0` version_ | ||
_This is a re-publish of the broken `v6.0.0` version._ | ||
* `FEAT`: recover from attribute parse errors; instead of skipping attributes all together attempt to parse what's possible [#13](https://github.com/nikku/saxen/issues/13) | ||
* `FEAT`: recover from attribute parse errors [#13](https://github.com/nikku/saxen/issues/13) | ||
@@ -16,0 +32,0 @@ ## 6.0.0 |
@@ -6,3 +6,4 @@ { | ||
"all": "run-s lint test-coverage test-perf", | ||
"lint": "eslint parser.js test/*.js", | ||
"lint": "eslint .", | ||
"pretest": "rollup -c", | ||
"test": "mocha test/index.js", | ||
@@ -18,4 +19,6 @@ "test-coverage": "NO_PERF=1 nyc --check-coverage --statements 95 npm test", | ||
], | ||
"version": "6.0.1", | ||
"main": "./parser.js", | ||
"version": "7.0.0", | ||
"main": "./dist/index.js", | ||
"module": "./dist/index.mjs", | ||
"browser": "./dist/saxen.umd.js", | ||
"bugs": { | ||
@@ -46,4 +49,6 @@ "url": "https://github.com/nikku/saxen/issues" | ||
"nyc": "^11.3.0", | ||
"rollup": "^0.57.1", | ||
"rollup-plugin-uglify": "^3.0.0", | ||
"table": "^4.0.2" | ||
} | ||
} |
@@ -20,3 +20,5 @@ # `/saxen/` parser <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/5/5f/Coat_of_arms_of_Saxony.svg/220px-Coat_of_arms_of_Saxony.svg.png" align="right" /> | ||
```javascript | ||
var Parser = require('saxen'); | ||
var { | ||
Parser | ||
} = require('saxen'); | ||
@@ -23,0 +25,0 @@ var parser = new Parser(); |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
87834
8
2450
145
8
1