Skip to content

Commit c832cea

Browse files
Merge pull request #942 from remarkablemark/build/html-dom-parser
build(deps): bump html-dom-parser from 3.1.7 to 4.0.0
2 parents bf599e8 + 5cd0db8 commit c832cea

File tree

3 files changed

+40
-23
lines changed

3 files changed

+40
-23
lines changed

README.md

+12-7
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,10 @@ parse('<p>Hello, World!</p>'); // React.createElement('p', {}, 'Hello, World!')
4242
- [htmlparser2](#htmlparser2)
4343
- [trim](#trim)
4444
- [Migration](#migration)
45-
- [v3.0.0](#v300)
46-
- [v2.0.0](#v200)
47-
- [v1.0.0](#v100)
45+
- [v4](#v4)
46+
- [v3](#v3)
47+
- [v2](#v2)
48+
- [v1](#v1)
4849
- [FAQ](#faq)
4950
- [Is this XSS safe?](#is-this-xss-safe)
5051
- [Does invalid HTML get sanitized?](#does-invalid-html-get-sanitized)
@@ -376,17 +377,21 @@ parse('<p> </p>', { trim: true }); // React.createElement('p')
376377

377378
## Migration
378379

379-
### v3.0.0
380+
### v4
381+
382+
[htmlparser2](https://github.com/fb55/htmlparser2) has been upgraded to [v9](https://github.com/fb55/htmlparser2/releases/tag/v9.0.0).
383+
384+
### v3
380385

381386
[domhandler](https://github.com/fb55/domhandler) has been upgraded to v5 so some [parser options](https://github.com/fb55/htmlparser2/wiki/Parser-options) like `normalizeWhitespace` have been removed.
382387

383-
Also, it's recommended to upgrade to the latest version of [typescript](https://www.npmjs.com/package/typescript).
388+
Also, it's recommended to upgrade to the latest version of [TypeScript](https://www.npmjs.com/package/typescript).
384389

385-
### v2.0.0
390+
### v2
386391

387392
Since [v2.0.0](https://github.com/remarkablemark/html-react-parser/releases/tag/v2.0.0), Internet Explorer (IE) is no longer supported.
388393

389-
### v1.0.0
394+
### v1
390395

391396
TypeScript projects will need to update the types in [v1.0.0](https://github.com/remarkablemark/html-react-parser/releases/tag/v1.0.0).
392397

package-lock.json

+27-15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
],
4747
"dependencies": {
4848
"domhandler": "5.0.3",
49-
"html-dom-parser": "3.1.7",
49+
"html-dom-parser": "4.0.0",
5050
"react-property": "2.0.0",
5151
"style-to-js": "1.1.3"
5252
},

0 commit comments

Comments
 (0)