Repository: remarkablemark/html-react-parser
Pull request #495 (2022-03-30 00:10:55)

build(package): upgrade devDependencies
```
 @rollup/plugin-commonjs    21.0.2  →  21.0.3
 @typescript-eslint/parser  5.16.0  →  5.17.0
 eslint                     8.11.0  →  8.12.0
 preact                     10.6.6  →  10.7.0
 prettier                    2.6.0  →   2.6.1
```


Patch:
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 584d964..906afd7 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -14,6 +14,8 @@ jobs:
 
       - name: Use Node.js
         uses: actions/setup-node@v2
+        with:
+          node-version: 16
 
       - name: Cache dependencies
         uses: actions/cache@v2
diff --git a/.husky/pre-commit b/.husky/pre-commit
index 353209b..efb7b18 100755
--- a/.husky/pre-commit
+++ b/.husky/pre-commit
@@ -1,4 +1,4 @@
 #!/bin/sh
 . "$(dirname "$0")/_/husky.sh"
 
-npm run lint:dts && npm run test:ci && npx lint-staged
+npm run test:ci && npx lint-staged
diff --git a/.lintstagedrc.json b/.lintstagedrc.json
index 58bc955..bd1c9bd 100644
--- a/.lintstagedrc.json
+++ b/.lintstagedrc.json
@@ -1,4 +1,4 @@
 {
-  "*.js": "npm run lint:fix",
+  "*.js": "eslint --fix",
   "*.{html,json,md,yml}": "prettier --write"
 }
diff --git a/index.d.ts b/index.d.ts
index 16bfee7..5e7746d 100644
--- a/index.d.ts
+++ b/index.d.ts
@@ -1,4 +1,4 @@
-// TypeScript Version: 4.1
+// TypeScript Version: 4.7
 
 import { ParserOptions } from 'htmlparser2';
 import {
diff --git a/lib/attributes-to-props.d.ts b/lib/attributes-to-props.d.ts
index ec5147c..7b23942 100644
--- a/lib/attributes-to-props.d.ts
+++ b/lib/attributes-to-props.d.ts
@@ -1,4 +1,4 @@
-// TypeScript Version: 4.1
+// TypeScript Version: 4.7
 
 export type Attributes = Record<string, string>;
 
diff --git a/lib/dom-to-react.d.ts b/lib/dom-to-react.d.ts
index ae45a03..04a1ae9 100644
--- a/lib/dom-to-react.d.ts
+++ b/lib/dom-to-react.d.ts
@@ -1,4 +1,4 @@
-// TypeScript Version: 4.1
+// TypeScript Version: 4.7
 
 import { DOMNode, HTMLReactParserOptions } from '..';
 
diff --git a/package.json b/package.json
index 9e3371a..be798c4 100644
--- a/package.json
+++ b/package.json
@@ -49,21 +49,21 @@
   "devDependencies": {
     "@commitlint/cli": "16.2.3",
     "@commitlint/config-conventional": "16.2.1",
-    "@rollup/plugin-commonjs": "21.0.2",
+    "@rollup/plugin-commonjs": "21.0.3",
     "@rollup/plugin-node-resolve": "13.1.3",
     "@size-limit/preset-big-lib": "7.0.8",
     "@types/react": "17.0.43",
-    "@typescript-eslint/parser": "5.16.0",
+    "@typescript-eslint/parser": "5.17.0",
     "benchmark": "2.1.4",
     "dtslint": "4.2.1",
-    "eslint": "8.11.0",
+    "eslint": "8.12.0",
     "eslint-plugin-prettier": "4.0.0",
     "husky": "7.0.4",
     "jest": "27.5.1",
     "lint-staged": "12.3.7",
     "pinst": "3.0.0",
-    "preact": "10.6.6",
-    "prettier": "2.6.0",
+    "preact": "10.7.0",
+    "prettier": "2.6.1",
     "react": "17.0.2",
     "react-dom": "17.0.2",
     "rimraf": "3.0.2",


Test patch:
diff --git a/test/types/index.tsx b/test/types/index.tsx
index 7679fa2..5ee9b28 100644
--- a/test/types/index.tsx
+++ b/test/types/index.tsx
@@ -86,7 +86,7 @@ parse('<p/><p/>', {
 // $ExpectType string | Element | Element[]
 parse('\t<p>text \r</p>\n', { trim: true });
 
-// $ExpectType (Comment | Element | ProcessingInstruction | Text)[]
+// $ExpectType (Text | Comment | ProcessingInstruction | Element)[]
 const domNodes = htmlToDOM('<div>text</div>');
 
 // $ExpectType string | Element | Element[]
diff --git a/test/types/lib/dom-to-react.tsx b/test/types/lib/dom-to-react.tsx
index 32e4da4..b9a6a1f 100644
--- a/test/types/lib/dom-to-react.tsx
+++ b/test/types/lib/dom-to-react.tsx
@@ -4,7 +4,7 @@ import domToReact from 'html-react-parser/lib/dom-to-react';
 import * as React from 'react';
 import htmlToDOM from 'html-dom-parser';
 
-// $ExpectType (Comment | Element | ProcessingInstruction | Text)[]
+// $ExpectType (Text | Comment | ProcessingInstruction | Element)[]
 htmlToDOM('<div>text</div>');
 
 // $ExpectType string | Element | Element[]