diff --git a/.gitattributes b/.gitattributes index 09948ef45c1dbd488ee1d8e1a4ad443d9c3249ff..bcbf5457f3d0d7f58f6f2c2aa082f95ab8d6ea59 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,3 +1,3 @@ # Exclude the HTML files from GitHub's language statistics # https://github.com/github/linguist#using-gitattributes -test/data/* linguist-vendored +test/data/** linguist-vendored diff --git a/.gitignore b/.gitignore index 8c7a05a76af440d66756320f002bb55d279f5708..44961c3bb370f9c0fec4ed383542c2847ab4d062 100644 --- a/.gitignore +++ b/.gitignore @@ -3,9 +3,7 @@ .vscode node_modules docs/build -docs/05_api_reference.md packages/*/dist/ test/dist/ -.DS_Store tsconfig.tsbuildinfo coverage/ diff --git a/README.OpenSource b/README.OpenSource index a85f3acdbe4523c12b980400ccb1b814dba11ac7..a763e02aa4295aeb699efb710a076c24b7b67cca 100644 --- a/README.OpenSource +++ b/README.OpenSource @@ -3,7 +3,7 @@ "Name": "parse5", "License": "MIT", "License File": "NOTICE", - "Version Number": "v7.1.2", + "Version Number": "v7.2.1", "Owner": "sunbingxin@huawei.com", "Upstream URL": "https://github.com/inikulin/parse5.git", "Description": "HTML parser and serializer." diff --git a/README.md b/README.md index 6226d6031c33becb280a412dd7ae424239927634..ca632137097df7eefc2492a84f48e61e8e807ea7 100644 --- a/README.md +++ b/README.md @@ -9,10 +9,10 @@

- Build Status + Build Status NPM Version - Downloads - Downloads total + Downloads + Downloads total Coverage

@@ -31,7 +31,7 @@ as jsdom, - Online playground + Online playground

diff --git a/bench/memory/sax-parser.js b/bench/memory/sax-parser.js index 0bc22809c131bb17ff60c649aaf55f406ac456d2..50ee769c8ecb240f450205df18e37be212ab691f 100644 --- a/bench/memory/sax-parser.js +++ b/bench/memory/sax-parser.js @@ -1,3 +1,5 @@ +/* eslint-disable no-console */ + import { readFile } from 'node:fs/promises'; import format from 'human-format'; import memwatch from '@airbnb/node-memwatch'; diff --git a/bench/memory/sax-parser.js:Zone.Identifier b/bench/memory/sax-parser.js:Zone.Identifier new file mode 100644 index 0000000000000000000000000000000000000000..34207a49ea9ef8a87d4cabbce7abd4a98977d207 --- /dev/null +++ b/bench/memory/sax-parser.js:Zone.Identifier @@ -0,0 +1,4 @@ +[ZoneTransfer] +ZoneId=3 +ReferrerUrl=https://github.com/inikulin/parse5/releases +HostUrl=https://codeload.github.com/inikulin/parse5/zip/refs/tags/v7.2.1 diff --git a/bench/package.json b/bench/package.json index cd8b234aaea5800b184f6bd1e53f95dae98dd0b6..9e5bf82ebc40a78cf59ef1ad72d3b549f57e4714 100644 --- a/bench/package.json +++ b/bench/package.json @@ -8,7 +8,7 @@ "license": "MIT", "dependencies": { "benchmark": "^2.1.4", - "human-format": "^1.0.0", + "human-format": "^1.2.0", "@airbnb/node-memwatch": "^2.0.0", "parse5": "npm:parse5" } diff --git a/bench/perf/index.js b/bench/perf/index.js index 2306eabe056c9755def2567a33bedf4d16421fb1..2d2521bbad9a6a4b702fa6b475b657193891f482 100644 --- a/bench/perf/index.js +++ b/bench/perf/index.js @@ -1,3 +1,5 @@ +/* eslint-disable no-console */ + import { readFileSync, createReadStream, readdirSync } from 'node:fs'; import Benchmark from 'benchmark'; import { loadTreeConstructionTestData } from 'parse5-test-utils/dist/generate-parsing-tests.js'; @@ -25,7 +27,7 @@ global.microTests = loadTreeConstructionTestData(treeConstructionPath, treeAdapt .filter( (test) => //NOTE: this test caused a stack overflow in parse5 v1.x - test.input !== '