Skip to content

Commit 2e7b0ca

Browse files
fix: bump html-dom-parser@8.0.2 so require does not throw ERR_REQUIRE_ESM_RACE_CONDITION
See remarkablemark/html-dom-parser#1551
1 parent cbabca5 commit 2e7b0ca

3 files changed

Lines changed: 11 additions & 9 deletions

File tree

‎package-lock.json‎

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
],
6363
"dependencies": {
6464
"domhandler": "6.0.1",
65-
"html-dom-parser": "8.0.1",
65+
"html-dom-parser": "8.0.2",
6666
"react-property": "2.0.2",
6767
"style-to-js": "2.0.2"
6868
},

‎src/types.ts‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
import type { DomHandlerOptions } from 'domhandler';
2-
import type { DOMNode, TrustedTypePolicy } from 'html-dom-parser';
3-
import type { ParserOptions } from 'htmlparser2';
1+
import type {
2+
DOMNode,
3+
HTMLDOMParserOptions,
4+
TrustedTypePolicy,
5+
} from 'html-dom-parser';
46
import type { JSX, ReactNode } from 'react';
57

68
export interface HTMLReactParserOptions {
7-
htmlparser2?: ParserOptions & DomHandlerOptions;
9+
htmlparser2?: Omit<HTMLDOMParserOptions, 'trustedTypePolicy'>;
810
trustedTypePolicy?: TrustedTypePolicy;
911

1012
library?: {

0 commit comments

Comments
 (0)