Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

POC: move to specifying all types as individual params #43

Draft
wants to merge 181 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
181 commits
Select commit Hold shift + click to select a range
5f7afb7
Use domhandler node interface in htmlparser2 adapter
TrySound Nov 4, 2020
34c0798
Try to install npm 6
TrySound Nov 5, 2020
49b56de
Upgrade domhandler to v4
TrySound Dec 13, 2020
9044e56
add typescript to repo
43081j Jul 10, 2021
8921d88
move named entity script to module
43081j Jul 10, 2021
23a71ce
move feedback test to modules
43081j Jul 10, 2021
bc7b188
move eslintrc to json
43081j Jul 10, 2021
9410a79
move bench to modules
43081j Jul 10, 2021
cf32636
move parse5 to modules
43081j Jul 10, 2021
25ea50c
move all packages to modules
43081j Jul 10, 2021
07fe1c4
run format and fix lint
43081j Jul 10, 2021
b5fcb51
update to mocha 9.x and tdd tests
43081j Jul 11, 2021
b11ff8a
move remaining tests to modules
43081j Jul 11, 2021
4801e4d
chore(deps-dev): Upgrade all dev dependencies
fb55 Nov 1, 2021
f8afdbb
chore(bench): Fix imports in benchmarks
fb55 Nov 2, 2021
36e333a
fix(bench): correct some imports and URL paths
43081j Nov 2, 2021
92cd98e
Merge remote-tracking branch '43081j/esm'
fb55 Nov 4, 2021
4229788
Fix generating tests
fb55 Nov 4, 2021
7805f9c
Add GitHub Actions, Dependabot
fb55 Nov 4, 2021
59a6bc2
Add note to README
fb55 Nov 4, 2021
cd1ebbf
Fetch submodules from GitHub Actions
fb55 Nov 4, 2021
a66bd21
Update submodule with Dependabot
fb55 Nov 4, 2021
d5f715f
Run both prettier & eslint in `lint` & `format` scripts
fb55 Nov 4, 2021
f6bef05
refactor: Use ES6 in many more places
fb55 Nov 7, 2021
737eab7
refactor: Enable prefer-destructuring & prefer-template
fb55 Nov 7, 2021
9f432c3
refactor: Use String.fromCodePoint
fb55 Nov 7, 2021
57b4913
refactor: Remove `merge-options`
fb55 Nov 7, 2021
78542e8
refactor: Replace some maps with `Set`
fb55 Nov 7, 2021
8eb5ae9
refactor: Use `Map` for SVG & XML replacement maps
fb55 Nov 7, 2021
d8b61a1
refactor: Minor cleanup
fb55 Nov 7, 2021
5f96b56
chore: Fix dependabot gitsubmodule
fb55 Nov 7, 2021
a0881c9
Bump eslint from 8.1.0 to 8.2.0 (#3)
dependabot[bot] Nov 7, 2021
cadca20
chore: Fix scripts
fb55 Nov 8, 2021
686018e
test: Add several feedback tests
fb55 Nov 8, 2021
c641ce7
refactor: Make `C1_CONTROLS_REFERENCE_REPLACEMENTS` a `Map`
fb55 Nov 8, 2021
c8cf2b7
refactor: Use branches for tokenizer states for 25% speed gains
fb55 Nov 8, 2021
68f89ee
refactor: Use `Map` for parser `TOKEN_HANDLERS`
fb55 Nov 8, 2021
5206d63
fix: End tags in the 'in row' insertion mode were not properly ignored
fb55 Nov 8, 2021
f6e32dd
refactor: Introduce `Set`s in the serializer
fb55 Nov 8, 2021
c6c846d
refactor: Move more maps & lists to `Map` & `Set`
fb55 Nov 8, 2021
9905fef
refactor: Drop length optimisation in favour of `Set`s in element stack
fb55 Nov 8, 2021
90094e0
refactor: Simplify `FormattingElementList`
fb55 Nov 9, 2021
9149266
test: Switch to default mocha UI
fb55 Nov 9, 2021
068c492
refactor: Enable eslint `object-shorthand` rule
fb55 Nov 9, 2021
094f826
test: Switch from Mocha to Jest
fb55 Nov 9, 2021
bb12c8d
refactor: Port Tokenizer to TS
fb55 Nov 9, 2021
aaab000
fix: Do namespace check for every numbered header / table cell
fb55 Nov 9, 2021
0fba734
refactor: Continue porting to TS
fb55 Nov 9, 2021
d4a531a
refactor: Introduce enums
fb55 Nov 12, 2021
3901f81
refactor: Fix Mixin type, start converting them
fb55 Nov 12, 2021
6e8da64
refactor: Introduce tree adapter type
fb55 Nov 13, 2021
5a37fe5
refactor: Convert most of the parser to TS
fb55 Nov 13, 2021
64d54ed
fix: Properly handle end tags in table body
fb55 Nov 13, 2021
a5598c3
refactor: Finish porting parser
fb55 Nov 13, 2021
9f4bdcc
refactor: All the TS
fb55 Nov 16, 2021
ccbfad7
refactor: Remove most uses of `any`
fb55 Nov 16, 2021
ec676dd
refactor(parser): Move token handler maps to fns
fb55 Nov 16, 2021
f6920a0
refactor: Simplify `OpenElementStack`
fb55 Nov 17, 2021
abb024d
refactor: Re-introduce open element stack `stackTop`
fb55 Nov 17, 2021
8e8e50c
refactor: Make `_findFosterParentingLocation` return definite types
fb55 Nov 17, 2021
7e43175
refactor: Simplify `tmplInsertionModeStack`
fb55 Nov 17, 2021
f12e94c
fix: Use `node --loader` to run parser feedback gen
fb55 Nov 17, 2021
751c581
chore(deps-dev): bump typescript from 4.4.4 to 4.5.2 (#5)
dependabot[bot] Nov 18, 2021
6f02f67
Merge branch 'master' of https://github.com/parse5/parse5-fork
fb55 Nov 18, 2021
13853cb
test: Co-locate tests & implementation files
fb55 Nov 18, 2021
67c2f64
refactor: Use import aliases for HTML
fb55 Nov 18, 2021
9e16fe9
Merge branch 'htmlparser2-domhandler' of git://github.com/TrySound/pa…
fb55 Nov 18, 2021
c48c4f6
fix: Fix exports of updated htmlparser2 interface
fb55 Nov 18, 2021
f47e452
refactor: Remove `parse5-` prefix, use `@parse5` ns
fb55 Nov 18, 2021
fe817c4
refactor: Convert htmlparser2 adapter to TS, improve adapters
fb55 Nov 18, 2021
feaec5c
test: Refactor tests to call `it` directly
fb55 Nov 18, 2021
a6702d2
chore(deps-dev): bump @types/jest from 27.0.2 to 27.0.3 (#6)
dependabot[bot] Nov 19, 2021
0b34367
chore(deps-dev): Remove @types/mocha
fb55 Nov 19, 2021
1a7cc5b
chore(build): Add build config for main pkg
fb55 Nov 19, 2021
c7ae4e8
refactor: Switch FormattingElementList entries order, simplify
fb55 Nov 19, 2021
1fab850
refactor: Move more docs into JSDoc comments
fb55 Nov 19, 2021
68d0ff8
refactor: Re-enable eslint, --fix
fb55 Nov 19, 2021
6f57fec
chore(deps-dev): bump eslint from 8.2.0 to 8.3.0 (#9)
dependabot[bot] Nov 22, 2021
ff5fac8
refactor: Remove Tokenizer statics
fb55 Nov 22, 2021
fe68cf6
refactor: Remove FormattingElemList statics
fb55 Nov 22, 2021
1de6e63
refactor: Compute SVG adjusted names
fb55 Nov 23, 2021
3ab6403
refactor: Remove `PositionTrackingPreprocessorMixin`
fb55 Nov 24, 2021
5639c01
refactor: Simplify preprocessor
fb55 Nov 24, 2021
758f13c
refactor: Merge `LocationInfoTokenizerMixin` into Tokenizer
fb55 Nov 24, 2021
54e1feb
refactor: Inline preprocessor & tokenizer error mixins
fb55 Nov 24, 2021
269ef1c
refactor: Move `ErrorReportingParserMixin` into parser
fb55 Nov 24, 2021
b82e3e9
refactor: Start moving `LocationInfoParserMixin` into parser
fb55 Nov 24, 2021
d5febfe
refactor: Make `TokenType` a numeric enum
fb55 Nov 24, 2021
ed16619
refactor: Call states/modes directly
fb55 Nov 24, 2021
fe2bcda
refactor: Small fixes
fb55 Nov 24, 2021
a40c20c
refactor: Don't re-initialize `tempBuff`
fb55 Nov 24, 2021
1e3643e
refactor: Remove the last mixin
fb55 Nov 24, 2021
03f74c5
test: Move location info tests
fb55 Nov 24, 2021
993ab99
refactor: Set tag end locations on EOF
fb55 Nov 25, 2021
931b517
refactor: Add more types
fb55 Nov 25, 2021
96eba33
refactor: Use `entities` for decoding entities
fb55 Nov 25, 2021
dd41a7f
refactor: Add more types
fb55 Nov 25, 2021
a1e45e9
test: Add return types
fb55 Nov 25, 2021
0602bec
refactor: Simplify some code
fb55 Nov 25, 2021
7d77890
chore(deps-dev): bump prettier from 2.4.1 to 2.5.0 (#11)
dependabot[bot] Nov 26, 2021
c29128b
Merge branch 'master' of https://github.com/parse5/parse5-fork
fb55 Nov 26, 2021
09d3cd8
chore(package): Introduce npm workspaces
fb55 Nov 27, 2021
2d1ac02
chore(lerna): Skip `lerna bootstrap`
fb55 Nov 27, 2021
17321d3
chore(ci): Bump npm client before installing deps
fb55 Nov 27, 2021
b410114
refactor: Use original `parse5` package name
fb55 Nov 27, 2021
00851be
refactor: Add warnings on explicit `any`
fb55 Nov 27, 2021
680971a
chore(ci): Test on lts/*
fb55 Nov 28, 2021
2f8447c
fix: Fix import in html-rewriting-stream
fb55 Nov 28, 2021
35c959f
refactor: Move rewriting-stream.test to TS
fb55 Nov 28, 2021
fb64f0a
refactor: Use `fs/promises` when already dealing with promises
fb55 Nov 28, 2021
96b9209
chore: Improve prettier & lint-staged config
fb55 Nov 29, 2021
cd87d18
fix: Target es2019 for Node 12 support
fb55 Nov 29, 2021
7e552a4
refactor: Move `test` to `packages/test-utils`
fb55 Nov 29, 2021
d94d38c
fix: Fix package name in `parser-stream` package.json
fb55 Nov 29, 2021
41e8181
test: Simplify `moduleNameMapper`
fb55 Nov 29, 2021
3bfd881
chore(pkg): Add `bench` as a workspace
fb55 Nov 29, 2021
c3f7971
feat: Make it possible to build all packages
fb55 Nov 29, 2021
ebf72e1
chore(deps-dev): bump jest from 27.3.1 to 27.4.0 (#12)
dependabot[bot] Nov 30, 2021
b3b52ff
chore(deps-dev): bump @typescript-eslint/eslint-plugin (#13)
dependabot[bot] Nov 30, 2021
6d9890f
chore(deps-dev): bump @typescript-eslint/parser from 5.4.0 to 5.5.0 (…
dependabot[bot] Nov 30, 2021
aaf2cfe
Merge branch 'master' of https://github.com/parse5/parse5-fork
fb55 Nov 30, 2021
8c374bb
chore(deps-dev): bump jest from 27.4.0 to 27.4.2 (#15)
dependabot[bot] Dec 1, 2021
13ca1e0
chore(deps): bump domhandler from 4.2.2 to 4.3.0 (#16)
dependabot[bot] Dec 1, 2021
afa2f51
chore(deps-dev): bump jest from 27.4.2 to 27.4.3 (#17)
dependabot[bot] Dec 2, 2021
e8aff84
refactor: Remove many uses of any and non-null
fb55 Dec 2, 2021
3b0cddc
chore: Move most sax-parser docs to TSDoc
fb55 Dec 2, 2021
91fb13b
test: Don't hand-roll setTimeout promise
fb55 Dec 2, 2021
862af1b
test: Make formatting-element-list test tokens match elements
fb55 Dec 3, 2021
dc5980a
test: Assert `entry` exists
fb55 Dec 3, 2021
abfb1f2
chore: Fix ignores for html5lib path
fb55 Dec 3, 2021
c56b95d
fix: Overwrite stream `end` method instead of `_final`
fb55 Dec 4, 2021
1b0869c
Revert "test: Don't hand-roll setTimeout promise"
fb55 Dec 4, 2021
df3e26a
refactor: Introduce tagIDs (#18)
fb55 Dec 4, 2021
672df8f
Update .gitattributes
fb55 Dec 4, 2021
434cc04
refactor: Introduce eslint-plugin-unicorn
fb55 Dec 5, 2021
c213ca5
refactor: Move special end tag handling to method
fb55 Dec 5, 2021
2974576
refactor: Output state name in `generateTokenizationTests`
fb55 Dec 5, 2021
8905a6f
fix: Emit error on undefined named entity in attribute starting with …
fb55 Dec 5, 2021
4c1390e
refactor: Simplify `_consumeSequenceIfMatch`
fb55 Dec 5, 2021
d9c07c5
chore(deps-dev): bump ts-jest from 27.0.7 to 27.1.0 (#19)
dependabot[bot] Dec 6, 2021
ba33566
chore(deps-dev): bump eslint from 8.3.0 to 8.4.0 (#20)
dependabot[bot] Dec 6, 2021
829e279
refactor: Read double escaped script as sequence
fb55 Dec 6, 2021
fba2f0e
refactor: Don't write to `tempBuff` when decoding entities
fb55 Dec 6, 2021
baf38df
Merge branch 'master' of https://github.com/parse5/parse5-fork
fb55 Dec 6, 2021
a9e2bb3
chore(deps-dev): bump prettier from 2.5.0 to 2.5.1 (#21)
dependabot[bot] Dec 6, 2021
904a554
refactor: Make `QUIRKS_MODE_PUBLIC_IDS` a set
fb55 Dec 6, 2021
5091a39
refactor: Add return types everywhere
fb55 Dec 6, 2021
23e5fad
refactor: Combine loops for Noah's Ark condition
fb55 Dec 6, 2021
1ae9548
refactor: Create tokens that don't change only once
fb55 Dec 6, 2021
4ebba7f
refactor: Make sequences strings, handle special end tag as sequence
fb55 Dec 6, 2021
2e12023
refactor: Re-introduce `isWhitespace`
fb55 Dec 6, 2021
d5a3788
refactor: Pass count to `retreat`
fb55 Dec 6, 2021
fcef097
chore(deps-dev): bump @typescript-eslint/parser from 5.5.0 to 5.6.0 (…
dependabot[bot] Dec 7, 2021
81b5c16
refactor: Setup tokenizer CDATA mode on stack updates
fb55 Dec 7, 2021
ab654fc
test: Use `assert.ok` when a pretty printed message is available
fb55 Dec 8, 2021
be7ba13
refactor: Use `.bind` to pass handlers to stack
fb55 Dec 8, 2021
36672bd
chore(deps-dev): bump eslint from 8.4.0 to 8.4.1 (#24)
dependabot[bot] Dec 8, 2021
ddc609f
chore(deps-dev): bump @typescript-eslint/eslint-plugin (#23)
dependabot[bot] Dec 8, 2021
62ae149
chore(deps-dev): bump ts-jest from 27.1.0 to 27.1.1 (#25)
dependabot[bot] Dec 9, 2021
79bc8f6
refactor: Only set source code location if that is enabled
fb55 Dec 9, 2021
0a9ede7
Merge branch 'master' of https://github.com/parse5/parse5-fork
fb55 Dec 9, 2021
a8832f9
chore(deps-dev): bump typescript from 4.5.2 to 4.5.3 (#27)
dependabot[bot] Dec 10, 2021
789326f
chore(deps-dev): bump jest from 27.4.3 to 27.4.4 (#28)
dependabot[bot] Dec 13, 2021
477a2cd
chore(deps-dev): bump @typescript-eslint/parser from 5.6.0 to 5.7.0 (…
dependabot[bot] Dec 14, 2021
fde8e4c
chore(deps-dev): bump typescript from 4.5.3 to 4.5.4 (#30)
dependabot[bot] Dec 14, 2021
b21a23d
chore(deps-dev): bump jest from 27.4.4 to 27.4.5 (#32)
dependabot[bot] Dec 14, 2021
8ca7d00
chore(deps-dev): bump @typescript-eslint/eslint-plugin (#31)
dependabot[bot] Dec 14, 2021
bb4efd3
chore: Add some comments
fb55 Dec 14, 2021
8239afe
refactor: Remove `_isSequenceMatch` method
fb55 Dec 14, 2021
7bb8949
refactor: Use `switch` in more places
fb55 Dec 14, 2021
3b1ecf0
chore(deps-dev): bump ts-jest from 27.1.1 to 27.1.2 (#33)
dependabot[bot] Dec 17, 2021
5576fbb
refactor: Simplify code
fb55 Dec 17, 2021
f16e26f
refactor: Move <html> and <body> end tag location logic
fb55 Dec 18, 2021
0b94a8a
refactor: No more temp buffer
fb55 Dec 18, 2021
908aaf5
refactor: Simplify parser constructor
fb55 Dec 18, 2021
6dcfbee
chore(deps-dev): bump eslint from 8.4.1 to 8.5.0 (#34)
dependabot[bot] Dec 20, 2021
5ed39bb
chore(deps-dev): bump @typescript-eslint/parser from 5.7.0 to 5.8.0 (…
dependabot[bot] Dec 21, 2021
21e5fa6
refactor: Use unions to describe DOM (#26)
fb55 Dec 27, 2021
fd4b577
chore(deps-dev): bump @typescript-eslint/eslint-plugin (#40)
dependabot[bot] Dec 28, 2021
eb7ea53
chore(deps-dev): bump @typescript-eslint/parser from 5.8.0 to 5.8.1 (…
dependabot[bot] Dec 28, 2021
1ea6072
move to specifying all types as individual params
43081j Dec 28, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
packages/parse5/lib/tokenizer/named-entity-data.js
test/benchmark/node_modules/**/*.js
test/memory_benchmark/node_modules/**/*.js
packages/test-utils/data/html5lib-tests
packages/*/dist/
node_modules
20 changes: 0 additions & 20 deletions .eslintrc.js

This file was deleted.

55 changes: 55 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"env": {
"es2020": true,
"node": true,
"jest": true
},
"extends": ["eslint:recommended", "prettier", "plugin:unicorn/recommended"],
"rules": {
"no-console": "error",
"curly": ["error", "all"],
"prefer-arrow-callback": "error",
"one-var": ["error", "never"],
"no-var": "error",
"prefer-const": "error",
"object-shorthand": "error",
"prefer-destructuring": [
"error",
{
"object": true,
"array": false
}
],
"prefer-template": "error",

"unicorn/no-null": "off",
"unicorn/prevent-abbreviations": "off",
"unicorn/prefer-string-slice": "off",
"unicorn/prefer-code-point": "off",
"unicorn/no-array-push-push": "off",
"unicorn/no-array-reduce": "off",
"unicorn/no-for-loop": "off",
"unicorn/consistent-destructuring": "off",
"unicorn/prefer-switch": ["error", { "emptyDefaultCase": "do-nothing-comment" }]
},
"parserOptions": {
"sourceType": "module"
},
"overrides": [
{
"files": "*.ts",
"extends": [
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"rules": {
"@typescript-eslint/no-non-null-assertion": "warn",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/explicit-function-return-type": "error",

"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }]
}
}
]
}
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Exclude the HTML files from GitHub's language statistics
# https://github.com/github/linguist#using-gitattributes
test/data/* linguist-vendored
packages/test-utils/data/* linguist-vendored
16 changes: 16 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: 2
updates:
- package-ecosystem: npm
directory: '/'
schedule:
interval: daily
open-pull-requests-limit: 10
versioning-strategy: increase
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: daily
- package-ecosystem: gitsubmodule
directory: '/'
schedule:
interval: daily
33 changes: 33 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: 'CodeQL'

on:
push:
branches: [master]
pull_request:
# The branches below must be a subset of the branches above
branches: [master]
schedule:
- cron: '0 0 * * 0'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
submodules: recursive

- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: 'javascript'

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
28 changes: 28 additions & 0 deletions .github/workflows/dependabot-automerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Based on https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/automating-dependabot-with-github-actions#enable-auto-merge-on-a-pull-request
name: Dependabot auto-merge
on: pull_request_target

permissions:
pull-requests: write
contents: write

jobs:
dependabot:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/[email protected]
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'
- name: Enable auto-merge for Dependabot PRs
# Automatically merge semver-patch and semver-minor PRs
if: "${{ steps.metadata.outputs.update-type ==
'version-update:semver-minor' ||
steps.metadata.outputs.update-type ==
'version-update:semver-patch' }}"
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
54 changes: 54 additions & 0 deletions .github/workflows/nodejs-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Node.js CI

on:
push:
branches-ignore:
- 'dependabot/**'
pull_request:

env:
CI: true
FORCE_COLOR: 2

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/setup-node@v2
with:
node-version: lts/*
cache: npm
- run: npm ci
- run: npm run lint

test:
name: Node ${{ matrix.node }}
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
node:
- 12
- 14
- 16
- lts/*

steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
cache: npm
- run: npm install -g npm@8
- run: npm ci
- run: npm run build --if-present

- name: Run Tests
run: npm run unit-tests
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@
node_modules
docs/build
docs/05_api_reference.md
package-lock.json
bench/package-lock.json
packages/*/dist/
.DS_Store
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "test/data/html5lib-tests"]
path = test/data/html5lib-tests
path = packages/test-utils/data/html5lib-tests
url = https://github.com/HTMLParseErrorWG/html5lib-tests
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run pre-commit
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
packages/parse5/lib/tokenizer/named-entity-data.js
packages/*/dist/
docs
packages/test-utils/data/html5lib-tests
4 changes: 0 additions & 4 deletions .travis.yml

This file was deleted.

17 changes: 12 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
<p align="center">
<a href="https://github.com/inikulin/parse5">
<img src="https://raw.github.com/inikulin/parse5/master/media/logo.png" alt="parse5" />
<a href="https://github.com/parse5/parse5-fork">
<img src="https://raw.github.com/parse5/parse5-fork/master/media/logo.png" alt="parse5" />
</a>
</p>

<p align="center">
<i>HTML parsing/serialization toolset for Node.js. <a href="https://html.spec.whatwg.org/multipage/">WHATWG HTML Living Standard (aka HTML5)</a>-compliant.</i>
</p>

---

This is a fork of the original parse5 package. We want this to become the next version of the package, pending on
@inikulin's go-ahead.

---

<p align="center">
<a href="https://travis-ci.org/inikulin/parse5"><img alt="Build Status" src="https://api.travis-ci.org/inikulin/parse5.svg"></a>
<a href="https://github.com/parse5/parse5-fork/actions/workflows/nodejs-test.yml"><img alt="Build Status" src="https://img.shields.io/github/workflow/status/parse5/parse5-fork/Node.js%20CI?label=tests&style=flat"></a>
<a href="https://www.npmjs.com/package/parse5"><img alt="NPM Version" src="https://img.shields.io/npm/v/parse5.svg"></a>
<a href="https://npmjs.org/package/parse5"><img alt="Downloads" src="http://img.shields.io/npm/dm/parse5.svg"></a>
<a href="https://npmjs.org/package/parse5"><img alt="Downloads total" src="http://img.shields.io/npm/dt/parse5.svg"></a>
Expand All @@ -24,14 +31,14 @@ as <a href="https://github.com/tmpvar/jsdom">jsdom</a>, <a href="https://github.
---

<p align="center">
<a href="https://github.com/inikulin/parse5/tree/master/docs/list-of-packages.md">List of parse5 toolset packages</a>
<a href="https://github.com/parse5/parse5-fork/tree/master/docs/list-of-packages.md">List of parse5 toolset packages</a>
</p>

<p align="center">
<a href="http://astexplorer.net/#/1CHlCXc4n4">Online playground</a>
</p>

<p align="center">
<a href="https://github.com/inikulin/parse5/tree/master/docs/version-history.md">Version history</a>
<a href="https://github.com/parse5/parse5-fork/tree/master/docs/version-history.md">Version history</a>
</p>
</p>
9 changes: 0 additions & 9 deletions bench/.eslintrc.js

This file was deleted.

6 changes: 6 additions & 0 deletions bench/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": ["../.eslintrc.json"],
"rules": {
"no-console": "off"
}
}
15 changes: 0 additions & 15 deletions bench/memory/named-entity-data.js

This file was deleted.

Loading