node-html-parser
Advanced tools
+7
-0
@@ -5,2 +5,9 @@ # Changelog | ||
| ### [8.0.1](https://github.com/taoqf/node-fast-html-parser/compare/v8.0.0...v8.0.1) (2026-06-20) | ||
| ### Bug Fixes | ||
| * refactor: update import statements to use type keyword for Options and decodeHTML function [#308](https://github.com/taoqf/node-fast-html-parser/issues/308) ([000ec5d](https://github.com/taoqf/node-fast-html-parser/commit/000ec5daa4667f306c6efa8aa4d42c3191c8a193)) | ||
| ## [8.0.0](https://github.com/taoqf/node-fast-html-parser/compare/v7.1.1...v8.0.0) (2026-06-20) | ||
@@ -7,0 +14,0 @@ |
+2
-2
| import CommentNode from './nodes/comment'; | ||
| import HTMLElement, { Options } from './nodes/html'; | ||
| import HTMLElement, { type Options } from './nodes/html'; | ||
| import Node from './nodes/node'; | ||
@@ -8,3 +8,3 @@ import TextNode from './nodes/text'; | ||
| import valid from './valid'; | ||
| export { Options } from './nodes/html'; | ||
| export type { Options } from './nodes/html'; | ||
| export { parse, HTMLElement, CommentNode, valid, Node, TextNode, NodeType }; | ||
@@ -11,0 +11,0 @@ declare function parse(data: string, options?: Partial<Options>): HTMLElement; |
@@ -8,3 +8,3 @@ "use strict"; | ||
| const css_select_1 = require("css-select"); | ||
| const entities_1 = __importDefault(require("entities")); | ||
| const entities_1 = require("entities"); | ||
| const back_1 = __importDefault(require("../back")); | ||
@@ -18,3 +18,3 @@ const matcher_1 = __importDefault(require("../matcher")); | ||
| function decode(val) { | ||
| return entities_1.default.decodeHTML(val); | ||
| return (0, entities_1.decodeHTML)(val); | ||
| } | ||
@@ -21,0 +21,0 @@ // https://developer.mozilla.org/en-US/docs/Web/HTML/Block-level_elements |
+1
-1
@@ -1,2 +0,2 @@ | ||
| import { Options } from './nodes/html'; | ||
| import { type Options } from './nodes/html'; | ||
| /** | ||
@@ -3,0 +3,0 @@ * Parses HTML and returns a root element |
+1
-1
| { | ||
| "name": "node-html-parser", | ||
| "version": "8.0.0", | ||
| "version": "8.0.1", | ||
| "description": "A very fast HTML parser, generating a simplified DOM, with basic element query support.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is too big to display
173342
0.19%3779
-0.03%