Skip to content

Commit 77d2dfa

Browse files
committed
chore(deps): update rehype to v12.0.0
1 parent 0feb2f6 commit 77d2dfa

File tree

2 files changed

+31
-15
lines changed

2 files changed

+31
-15
lines changed

package.json

Lines changed: 30 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -52,38 +52,55 @@
5252
"uiwjs",
5353
"editor"
5454
],
55+
"jest": {
56+
"testMatch": [
57+
"<rootDir>/src/__test__/*.{ts,tsx}"
58+
],
59+
"transformIgnorePatterns": [
60+
"<rootDir>/node_modules/?!(.*)"
61+
],
62+
"collectCoverageFrom": [
63+
"**/*.{tsx,ts}",
64+
"!.kktrc.ts",
65+
"!**/*.{js,d.ts}",
66+
"!**/node_modules/**",
67+
"!<rootDir>/coverage/**",
68+
"!**/website/**",
69+
"!**/vendor/**"
70+
]
71+
},
5572
"peerDependencies": {
5673
"@babel/runtime": ">=7.10.0",
5774
"react": ">=16.9.0",
5875
"react-dom": ">=16.9.0"
5976
},
6077
"dependencies": {
61-
"@babel/runtime": "7.14.6",
62-
"@mapbox/rehype-prism": "0.6.0",
63-
"rehype": "11.0.0"
78+
"@babel/runtime": "7.15.3",
79+
"@mapbox/rehype-prism": "0.7.0",
80+
"rehype": "12.0.0"
6481
},
6582
"devDependencies": {
66-
"@kkt/less-modules": "6.10.4",
67-
"@kkt/raw-modules": "6.10.4",
68-
"@kkt/scope-plugin-options": "6.10.4",
83+
"@kkt/less-modules": "6.11.0",
84+
"@kkt/raw-modules": "6.11.0",
85+
"@kkt/scope-plugin-options": "6.11.0",
6986
"@testing-library/react": "12.0.0",
70-
"@types/react": "17.0.11",
71-
"@types/react-dom": "17.0.8",
87+
"@types/react": "17.0.19",
88+
"@types/react-dom": "17.0.9",
7289
"@types/react-test-renderer": "17.0.1",
73-
"@types/testing-library__jest-dom": "5.14.0",
90+
"@types/testing-library__jest-dom": "5.14.1",
7491
"@uiw/react-github-corners": "1.4.0",
7592
"@uiw/react-markdown-preview": "3.2.2",
7693
"code-example": "3.0.6",
7794
"compile-less-cli": "1.8.1",
7895
"husky": "6.0.0",
79-
"kkt": "6.10.4",
80-
"lint-staged": "11.0.0",
96+
"kkt": "6.11.0",
97+
"lint-staged": "11.1.2",
8198
"prettier": "2.3.2",
8299
"react": "17.0.2",
83100
"react-dom": "17.0.2",
84101
"react-test-renderer": "17.0.2",
85-
"rehype-attr": "1.3.2",
86-
"tsbb": "2.2.1"
102+
"rehype-attr": "1.4.2",
103+
"tsbb": "2.3.1"
87104
},
88105
"eslintConfig": {
89106
"extends": [

src/utils.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// @ts-ignore
2-
import rehype from 'rehype';
1+
import { rehype } from 'rehype';
32
// @ts-ignore
43
import rehypePrism from '@mapbox/rehype-prism';
54

0 commit comments

Comments
 (0)