posthtml-parser
Advanced tools
Comparing version 0.6.0 to 0.7.0
@@ -0,3 +1,20 @@ | ||
## 0.7.0 (2021-02-09) | ||
* build: default build cjs ([41b7b25](https://github.com/posthtml/posthtml-parser/commit/41b7b25)) | ||
* build: not generate dts ([662f8d9](https://github.com/posthtml/posthtml-parser/commit/662f8d9)) | ||
* build: perf config for ts ([a3b5bc4](https://github.com/posthtml/posthtml-parser/commit/a3b5bc4)) | ||
* build: refactor builder/lint/test system ([baa7bcc](https://github.com/posthtml/posthtml-parser/commit/baa7bcc)) | ||
* build(deps): bump ini from 1.3.5 to 1.3.8 ([471a77f](https://github.com/posthtml/posthtml-parser/commit/471a77f)) | ||
* docs: default import description ([c824343](https://github.com/posthtml/posthtml-parser/commit/c824343)) | ||
* perf: export default declare ([eb63940](https://github.com/posthtml/posthtml-parser/commit/eb63940)) | ||
* perf: target to node 10 ([3f0a707](https://github.com/posthtml/posthtml-parser/commit/3f0a707)) | ||
* style: after update xo ([dc66abe](https://github.com/posthtml/posthtml-parser/commit/dc66abe)) | ||
* test: rewrite to typscript ([63a3415](https://github.com/posthtml/posthtml-parser/commit/63a3415)) | ||
* refactor: rewrite to typscript ([b1450a8](https://github.com/posthtml/posthtml-parser/commit/b1450a8)) | ||
## 0.6.0 (2020-11-13) | ||
* 0.6.0 ([cf98487](https://github.com/posthtml/posthtml-parser/commit/cf98487)) | ||
* refactor: update htmlparser2 to version 5 ([58258b4](https://github.com/posthtml/posthtml-parser/commit/58258b4)) | ||
@@ -4,0 +21,0 @@ |
{ | ||
"name": "posthtml-parser", | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"description": "Parse HTML/XML to PostHTMLTree", | ||
"keywords": [ | ||
"html", | ||
"xml", | ||
"parser", | ||
"posthtml", | ||
"posthtmltree" | ||
], | ||
"main": "index.js", | ||
"types": "index.d.ts", | ||
"engines": { | ||
"node": ">=10.0.0" | ||
"license": "MIT", | ||
"repository": "posthtml/posthtml-parser", | ||
"homepage": "https://github.com/posthtml/posthtml-parser#readme", | ||
"bugs": { | ||
"url": "https://github.com/posthtml/posthtml-parser/issues" | ||
}, | ||
"scripts": { | ||
"version": "conventional-changelog -i changelog.md -s -r 0 && git add changelog.md", | ||
"test": "xo && c8 mocha" | ||
}, | ||
"repository": "posthtml/posthtml-parser", | ||
"author": "Ivan Voischev <voischev.ivan@ya.ru>", | ||
"author": "Ivan Voischev <voischev@posthtml.org>", | ||
"contributors": [ | ||
{ | ||
"name": "Ivan Voischev", | ||
"email": "voischev.ivan@ya.ru" | ||
"email": "voischev@posthtml.org" | ||
}, | ||
{ | ||
"name": "Ivan Demidov", | ||
"email": "scrum@list.ru" | ||
"email": "scrum@posthtml.org" | ||
} | ||
], | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/posthtml/posthtml-parser/issues" | ||
"main": "dist", | ||
"engines": { | ||
"node": ">=10" | ||
}, | ||
"homepage": "https://github.com/posthtml/posthtml-parser#readme", | ||
"scripts": { | ||
"version": "conventional-changelog -i changelog.md -s -r 0 && git add changelog.md", | ||
"build": "rm -rf dist && tsup src/*.ts --minify", | ||
"dev": "npm run build -- --watch", | ||
"test": "xo && c8 ava", | ||
"pretest": "clinton" | ||
}, | ||
"keywords": [ | ||
"html", | ||
"xml", | ||
"parser", | ||
"posthtml", | ||
"posthtmltree" | ||
], | ||
"dependencies": { | ||
"htmlparser2": "^5.0.1" | ||
"htmlparser2": "^6.0.0" | ||
}, | ||
"devDependencies": { | ||
"@antfu/eslint-config-ts": "^0.4.3", | ||
"@commitlint/cli": "^11.0.0", | ||
"@commitlint/config-angular": "^11.0.0", | ||
"c8": "^7.3.5", | ||
"chai": "^4.2.0", | ||
"@types/node": "^14.14.25", | ||
"ava": "^3.13.0", | ||
"c8": "^7.5.0", | ||
"clinton": "^0.14.0", | ||
"conventional-changelog-cli": "^2.0.34", | ||
"husky": "^4.3.0", | ||
"lint-staged": "^10.5.0", | ||
"mocha": "^8.2.0", | ||
"esbuild-register": "^2.0.0", | ||
"eslint": "^7.19.0", | ||
"esm": "^3.2.25", | ||
"husky": "^4.3.8", | ||
"lint-staged": "^10.5.3", | ||
"rewire": "^5.0.0", | ||
"rimraf": "^3.0.0", | ||
"sinon": "^9.2.0", | ||
"sinon-chai": "^3.5.0", | ||
"xo": "^0.30.0" | ||
"ts-node": "^9.0.0", | ||
"tsup": "^3.7.1", | ||
"typescript": "^4.0.5", | ||
"xo": "^0.37.1" | ||
}, | ||
"funding": { | ||
"type": "patreon", | ||
"url": "https://opencollective.com/posthtml" | ||
}, | ||
"collective": { | ||
"type": "opencollective", | ||
"url": "https://opencollective.com/posthtml" | ||
} | ||
"types": "types/index.d.ts" | ||
} |
@@ -25,6 +25,7 @@ # posthtml-parser | ||
```js | ||
const parser = require('posthtml-parser') | ||
const fs = require('fs') | ||
const html = fs.readFileSync('path/to/input.html').toString() | ||
import parser from 'posthtml-parser' | ||
import fs from 'fs' | ||
const html = fs.readFileSync('path/to/input.html', 'utf-8') | ||
console.log(parser(html)) // Logs a PostHTML AST | ||
@@ -31,0 +32,0 @@ ``` |
module.exports = { | ||
space: true, | ||
rules: { | ||
'@typescript-eslint/prefer-readonly-parameter-types': 'off', | ||
'ava/no-skip-test': 'off', | ||
'ava/no-only-test': 'off' | ||
} | ||
}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
121
32728
19
17
258
2
1
+ Addedhtmlparser2@6.1.0(transitive)
- Removeddomhandler@3.3.0(transitive)
- Removedhtmlparser2@5.0.1(transitive)
Updatedhtmlparser2@^6.0.0