parse5 8.0.0 → 8.0.1

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.
@@ -459,7 +459,9 @@ export class Tokenizer {
459
459
  : cp === $.NULL
460
460
  ? TokenType.NULL_CHARACTER
461
461
  : TokenType.CHARACTER;
462
- this._appendCharToCurrentCharacterToken(type, String.fromCodePoint(cp));
462
+ // OPTIMIZATION: Use String.fromCharCode for BMP characters (< 0x10000) which is faster
463
+ // than String.fromCodePoint. Characters outside BMP are rare in HTML.
464
+ this._appendCharToCurrentCharacterToken(type, cp < 65536 ? String.fromCharCode(cp) : String.fromCodePoint(cp));
463
465
  }
464
466
  //NOTE: used when we emit characters explicitly.
465
467
  //This is always for non-whitespace and non-null characters, which allows us to avoid additional checks.
package/package.json CHANGED
@@ -2,13 +2,18 @@
2
2
  "name": "parse5",
3
3
  "type": "module",
4
4
  "description": "HTML parser and serializer.",
5
- "version": "8.0.0",
5
+ "version": "8.0.1",
6
6
  "author": "Ivan Nikulin <ifaaan@gmail.com> (https://github.com/inikulin)",
7
- "contributors": "https://github.com/inikulin/parse5/graphs/contributors",
7
+ "contributors": [
8
+ "James Garbutt (https://github.com/43081j)",
9
+ "Felix Boehm (https://github.com/fb55)",
10
+ "Ivan Nikulin (https://github.com/inikulin)",
11
+ "Titus (https://github.com/wooorm)"
12
+ ],
8
13
  "homepage": "https://parse5.js.org",
9
14
  "funding": "https://github.com/inikulin/parse5?sponsor=1",
10
15
  "dependencies": {
11
- "entities": "^6.0.0"
16
+ "entities": "^8.0.0"
12
17
  },
13
18
  "keywords": [
14
19
  "html",