Skip to content

Commit 0518c1e

Browse files
Merge pull request #495 from remarkablemark/build/package
build(package): upgrade devDependencies
2 parents 9e898cd + 1694dc7 commit 0518c1e

File tree

9 files changed

+14
-12
lines changed

9 files changed

+14
-12
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414

1515
- name: Use Node.js
1616
uses: actions/setup-node@v2
17+
with:
18+
node-version: 16
1719

1820
- name: Cache dependencies
1921
uses: actions/cache@v2

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
npm run lint:dts && npm run test:ci && npx lint-staged
4+
npm run test:ci && npx lint-staged

.lintstagedrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"*.js": "npm run lint:fix",
2+
"*.js": "eslint --fix",
33
"*.{html,json,md,yml}": "prettier --write"
44
}

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// TypeScript Version: 4.1
1+
// TypeScript Version: 4.7
22

33
import { ParserOptions } from 'htmlparser2';
44
import {

lib/attributes-to-props.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// TypeScript Version: 4.1
1+
// TypeScript Version: 4.7
22

33
export type Attributes = Record<string, string>;
44

lib/dom-to-react.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// TypeScript Version: 4.1
1+
// TypeScript Version: 4.7
22

33
import { DOMNode, HTMLReactParserOptions } from '..';
44

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,21 +49,21 @@
4949
"devDependencies": {
5050
"@commitlint/cli": "16.2.3",
5151
"@commitlint/config-conventional": "16.2.1",
52-
"@rollup/plugin-commonjs": "21.0.2",
52+
"@rollup/plugin-commonjs": "21.0.3",
5353
"@rollup/plugin-node-resolve": "13.1.3",
5454
"@size-limit/preset-big-lib": "7.0.8",
5555
"@types/react": "17.0.43",
56-
"@typescript-eslint/parser": "5.16.0",
56+
"@typescript-eslint/parser": "5.17.0",
5757
"benchmark": "2.1.4",
5858
"dtslint": "4.2.1",
59-
"eslint": "8.11.0",
59+
"eslint": "8.12.0",
6060
"eslint-plugin-prettier": "4.0.0",
6161
"husky": "7.0.4",
6262
"jest": "27.5.1",
6363
"lint-staged": "12.3.7",
6464
"pinst": "3.0.0",
65-
"preact": "10.6.6",
66-
"prettier": "2.6.0",
65+
"preact": "10.7.0",
66+
"prettier": "2.6.1",
6767
"react": "17.0.2",
6868
"react-dom": "17.0.2",
6969
"rimraf": "3.0.2",

test/types/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ parse('<p/><p/>', {
8686
// $ExpectType string | Element | Element[]
8787
parse('\t<p>text \r</p>\n', { trim: true });
8888

89-
// $ExpectType (Comment | Element | ProcessingInstruction | Text)[]
89+
// $ExpectType (Text | Comment | ProcessingInstruction | Element)[]
9090
const domNodes = htmlToDOM('<div>text</div>');
9191

9292
// $ExpectType string | Element | Element[]

test/types/lib/dom-to-react.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import domToReact from 'html-react-parser/lib/dom-to-react';
44
import * as React from 'react';
55
import htmlToDOM from 'html-dom-parser';
66

7-
// $ExpectType (Comment | Element | ProcessingInstruction | Text)[]
7+
// $ExpectType (Text | Comment | ProcessingInstruction | Element)[]
88
htmlToDOM('<div>text</div>');
99

1010
// $ExpectType string | Element | Element[]

0 commit comments

Comments
 (0)