node-html-parser 5.0.0 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -1
- package/README.md +1 -1
- package/dist/nodes/html.d.ts +1 -1
- package/package.json +6 -4
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
-
## [5.
|
|
5
|
+
## [5.1.0](https://github.com/taoqf/node-fast-html-parser/compare/v4.1.5...v5.1.0) (2021-10-28)
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
### ⚠ BREAKING CHANGES
|
|
@@ -13,6 +13,26 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
13
13
|
|
|
14
14
|
* Add esm named export support (closes [#160](https://github.com/taoqf/node-fast-html-parser/issues/160) closes [#139](https://github.com/taoqf/node-fast-html-parser/issues/139)) ([0d4b922](https://github.com/taoqf/node-fast-html-parser/commit/0d4b922eefd6210fe802991e464b21b0c69d5f63))
|
|
15
15
|
* Added HTMLElement#getElementsByTagName ([d462e44](https://github.com/taoqf/node-fast-html-parser/commit/d462e449e7ebb00a5a43fb574133681ad5a62475))
|
|
16
|
+
* Expose `HTMLElement#rawAttrs` (make public) ([34f1595](https://github.com/taoqf/node-fast-html-parser/commit/34f1595756c0974b6ae7ef5755a615f09e421f32))
|
|
17
|
+
* Improved parsing performance + matching (closes [#164](https://github.com/taoqf/node-fast-html-parser/issues/164)) ([3c5b8e2](https://github.com/taoqf/node-fast-html-parser/commit/3c5b8e2a9104b01a8ca899a7970507463e42adaf))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* Add null to return type for HTMLElement#querySelector (closes [#157](https://github.com/taoqf/node-fast-html-parser/issues/157)) ([2b65583](https://github.com/taoqf/node-fast-html-parser/commit/2b655839bd3868c41fb19cae5786ca097565bc7f))
|
|
23
|
+
* blockTextElements incorrectly matching partial tag (detail) (fixes [#156](https://github.com/taoqf/node-fast-html-parser/issues/156) fixes [#124](https://github.com/taoqf/node-fast-html-parser/issues/124)) ([6823349](https://github.com/taoqf/node-fast-html-parser/commit/6823349fdf1809c7484c70d948aa24930ef4983f))
|
|
24
|
+
|
|
25
|
+
## [5.0.0](https://github.com/taoqf/node-fast-html-parser/compare/v4.1.5...v5.0.0) (2021-10-10)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### ⚠ BREAKING CHANGES
|
|
29
|
+
|
|
30
|
+
* Added esm named export support ([0d4b922](https://github.com/taoqf/node-fast-html-parser/commit/0d4b922eefd6210fe802991e464b21b0c69d5f63))
|
|
31
|
+
|
|
32
|
+
### Features
|
|
33
|
+
|
|
34
|
+
* Added esm named export support (closes [#160](https://github.com/taoqf/node-fast-html-parser/issues/160) closes [#139](https://github.com/taoqf/node-fast-html-parser/issues/139)) ([0d4b922](https://github.com/taoqf/node-fast-html-parser/commit/0d4b922eefd6210fe802991e464b21b0c69d5f63))
|
|
35
|
+
* Added HTMLElement#getElementsByTagName ([d462e44](https://github.com/taoqf/node-fast-html-parser/commit/d462e449e7ebb00a5a43fb574133681ad5a62475))
|
|
16
36
|
* Improved parsing performance + matching (closes [#164](https://github.com/taoqf/node-fast-html-parser/issues/164)) ([3c5b8e2](https://github.com/taoqf/node-fast-html-parser/commit/3c5b8e2a9104b01a8ca899a7970507463e42adaf))
|
|
17
37
|
|
|
18
38
|
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Fast HTML Parser [](http://badge.fury.io/js/node-html-parser) [](http://badge.fury.io/js/node-html-parser) [](https://actions-badge.atrox.dev/taoqf/node-html-parser/goto?ref=main)
|
|
2
2
|
|
|
3
3
|
Fast HTML Parser is a _very fast_ HTML parser. Which will generate a simplified
|
|
4
4
|
DOM tree, with element query support.
|
package/dist/nodes/html.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-html-parser",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"description": "A very fast HTML parser, generating a simplified DOM, with basic element query support.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -11,15 +11,17 @@
|
|
|
11
11
|
"compile:amd": "tsc -t es5 -m amd -d false --outFile ./dist/main.js",
|
|
12
12
|
"lint": "eslint ./src/*.ts ./src/**/*.ts",
|
|
13
13
|
"---------------": "",
|
|
14
|
-
"test": "
|
|
15
|
-
"test:src": "cross-env TEST_TARGET=src
|
|
16
|
-
"test:dist": "cross-env TEST_TARGET=dist
|
|
14
|
+
"test": "yarn run test:target",
|
|
15
|
+
"test:src": "cross-env TEST_TARGET=src yarn run test",
|
|
16
|
+
"test:dist": "cross-env TEST_TARGET=dist yarn run test",
|
|
17
17
|
"benchmark": "node ./test/benchmark/compare.mjs",
|
|
18
18
|
"--------------- ": "",
|
|
19
19
|
"clean": "npx rimraf ./dist/",
|
|
20
20
|
"clean:global": "yarn run clean && npx rimraf yarn.lock test/yarn.lock test/node_modules node_modules",
|
|
21
21
|
"reset": "yarn run clean:global && yarn install && yarn build",
|
|
22
22
|
"--------------- ": "",
|
|
23
|
+
"test:target": "mocha --recursive \"./test/tests\"",
|
|
24
|
+
"test:ci": "cross-env TEST_TARGET=dist yarn run test:target",
|
|
23
25
|
"posttest": "yarn run benchmark",
|
|
24
26
|
"prepare": "cd test && yarn install"
|
|
25
27
|
},
|