Repository: remarkablemark/html-react-parser
Pull request #1087 (2023-10-17 00:29:47)

build(package): bump html-dom-parser from 4.0.1 to 5.0.0
Release-As: 4.2.4

## What is the motivation for this pull request?

build(package): bump html-dom-parser from 4.0.1 to 5.0.0

## What is the current behavior?

[html-dom-parser v4.0.1](https://github.com/remarkablemark/html-dom-parser/releases/tag/v4.0.1)

## What is the new behavior?

[html-dom-parser v5.0.0](https://github.com/remarkablemark/html-dom-parser/releases/tag/v5.0.0)

## Checklist:

- [x] [Conventional Commits](https://www.conventionalcommits.org/)
- [ ] Tests
- [ ] Documentation
- [ ] Types

codecov[bot]: ## [Codecov](https://app.codecov.io/gh/remarkablemark/html-react-parser/pull/1087?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Mark) Report
> Merging [#1087](https://app.codecov.io/gh/remarkablemark/html-react-parser/pull/1087?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Mark) (48598c1) into [master](https://app.codecov.io/gh/remarkablemark/html-react-parser/commit/f02b9c0e3f4152f8d24ca1019efdedaabc6ab627?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Mark) (f02b9c0) will **not change** coverage.
> The diff coverage is `100.00%`.

```diff
@@            Coverage Diff            @@
##            master     #1087   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            8         8           
  Lines          169       169           
  Branches        50        50           
=========================================
  Hits           169       169           
```


| [Files](https://app.codecov.io/gh/remarkablemark/html-react-parser/pull/1087?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Mark) | Coverage Δ | |
|---|---|---|
| [index.js](https://app.codecov.io/gh/remarkablemark/html-react-parser/pull/1087?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Mark#diff-aW5kZXguanM=) | `100.00% <100.00%> (ø)` | |

:mega: We’re building smart automated test selection to slash your CI/CD build times. [Learn more](https://about.codecov.io/iterative-testing/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Mark)

github-actions[bot]: ## size-limit report 📦 
| Path                          | Size                 | Loading time (3g)  | Running time (snapdragon) | Total time |
| ----------------------------- | -------------------- | ------------------ | ------------------------- | ---------- |
| dist/html-react-parser.min.js | 10.43 KB (+1.04% 🔺) | 209 ms (+1.04% 🔺) | 24 ms (+176.33% 🔺)       | 233 ms     |

Patch:
diff --git a/.size-limit.json b/.size-limit.json
index 43e1a68..32eaa6c 100644
--- a/.size-limit.json
+++ b/.size-limit.json
@@ -1,6 +1,6 @@
 [
   {
     "path": "dist/html-react-parser.min.js",
-    "limit": "10.6 KB"
+    "limit": "10.68 KB"
   }
 ]
diff --git a/index.js b/index.js
index e389b40..cea478c 100644
--- a/index.js
+++ b/index.js
@@ -1,5 +1,5 @@
 var domhandler = require('domhandler');
-var htmlToDOM = require('html-dom-parser');
+var htmlToDOM = require('html-dom-parser').default;
 
 var attributesToProps = require('./lib/attributes-to-props');
 var domToReact = require('./lib/dom-to-react');
diff --git a/package-lock.json b/package-lock.json
index ede52ac..9cde022 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -11,7 +11,7 @@
       "license": "MIT",
       "dependencies": {
         "domhandler": "5.0.3",
-        "html-dom-parser": "4.0.1",
+        "html-dom-parser": "5.0.0",
         "react-property": "2.0.0",
         "style-to-js": "1.1.4"
       },
@@ -6164,9 +6164,9 @@
       "license": "ISC"
     },
     "node_modules/html-dom-parser": {
-      "version": "4.0.1",
-      "resolved": "https://registry.npmjs.org/html-dom-parser/-/html-dom-parser-4.0.1.tgz",
-      "integrity": "sha512-YADpM4AxP/W4Kyea3Aonmwz64pwlijbXpKHaNwd0ipK/OzCOamI0a24L6nh60uwHmcpD7wC3xvL9unWCPk7tiQ==",
+      "version": "5.0.0",
+      "resolved": "https://registry.npmjs.org/html-dom-parser/-/html-dom-parser-5.0.0.tgz",
+      "integrity": "sha512-Q3CsICOy3FuGZvWLTpbB0RDB3dVLiv2/1qWB49Rnedc0uPc0d6LtVZqmGZ6X+DUC7V3OdkMD/YWAmJlJnmoZFQ==",
       "dependencies": {
         "domhandler": "5.0.3",
         "htmlparser2": "9.0.0"
@@ -16073,9 +16073,9 @@
       }
     },
     "html-dom-parser": {
-      "version": "4.0.1",
-      "resolved": "https://registry.npmjs.org/html-dom-parser/-/html-dom-parser-4.0.1.tgz",
-      "integrity": "sha512-YADpM4AxP/W4Kyea3Aonmwz64pwlijbXpKHaNwd0ipK/OzCOamI0a24L6nh60uwHmcpD7wC3xvL9unWCPk7tiQ==",
+      "version": "5.0.0",
+      "resolved": "https://registry.npmjs.org/html-dom-parser/-/html-dom-parser-5.0.0.tgz",
+      "integrity": "sha512-Q3CsICOy3FuGZvWLTpbB0RDB3dVLiv2/1qWB49Rnedc0uPc0d6LtVZqmGZ6X+DUC7V3OdkMD/YWAmJlJnmoZFQ==",
       "requires": {
         "domhandler": "5.0.3",
         "htmlparser2": "9.0.0"
diff --git a/package.json b/package.json
index 3cf6ccd..2dd2988 100644
--- a/package.json
+++ b/package.json
@@ -50,7 +50,7 @@
   ],
   "dependencies": {
     "domhandler": "5.0.3",
-    "html-dom-parser": "4.0.1",
+    "html-dom-parser": "5.0.0",
     "react-property": "2.0.0",
     "style-to-js": "1.1.4"
   },


Test patch:
diff --git a/test/dom-to-react.test.js b/test/dom-to-react.test.js
index 2b32628..175b1f3 100644
--- a/test/dom-to-react.test.js
+++ b/test/dom-to-react.test.js
@@ -1,5 +1,5 @@
 const React = require('react');
-const htmlToDOM = require('html-dom-parser');
+const htmlToDOM = require('html-dom-parser').default;
 
 const domToReact = require('../lib/dom-to-react');
 const utilities = require('../lib/utilities');
diff --git a/test/index.test.js b/test/index.test.js
index a5c774f..ef0441d 100644
--- a/test/index.test.js
+++ b/test/index.test.js
@@ -16,9 +16,8 @@ describe('module', () => {
   });
 
   it('exports htmlToDOM', () => {
-    expect(parse.htmlToDOM).toBe(require('html-dom-parser'));
+    expect(parse.htmlToDOM).toBe(require('html-dom-parser').default);
     expect(parse.htmlToDOM).toBeInstanceOf(Function);
-    expect(parse.htmlToDOM.default).toBe(parse.htmlToDOM);
   });
 
   it('exports attributesToProps', () => {