Skip to content

Commit f196da2

Browse files
committed
Update @types/hast, utilities
1 parent 8228447 commit f196da2

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

lib/index.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
/**
2-
* @typedef {import('hast').Root} Root
3-
* @typedef {import('hast').Content} Content
4-
*/
5-
6-
/**
7-
* @typedef {Content | Root} Node
2+
* @typedef {import('hast').Nodes} Nodes
83
*/
94

105
import {headingRank} from 'hast-util-heading-rank'
@@ -18,7 +13,7 @@ import {visit} from 'unist-util-visit'
1813
* Caps the rank so that shifting would not create invalid headings (so no `h0` or
1914
* `h7`).
2015
*
21-
* @template {Node} T
16+
* @template {Nodes} T
2217
* Node type.
2318
* @param {T} tree
2419
* Tree to change.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@
3737
"index.js"
3838
],
3939
"dependencies": {
40-
"@types/hast": "^2.0.0",
41-
"hast-util-heading-rank": "^2.0.0",
42-
"unist-util-visit": "^4.0.0"
40+
"@types/hast": "^3.0.0",
41+
"hast-util-heading-rank": "^3.0.0",
42+
"unist-util-visit": "^5.0.0"
4343
},
4444
"devDependencies": {
4545
"@types/node": "^20.0.0",
4646
"c8": "^8.0.0",
47-
"hastscript": "^7.0.0",
47+
"hastscript": "^8.0.0",
4848
"prettier": "^3.0.0",
4949
"remark-cli": "^11.0.0",
5050
"remark-preset-wooorm": "^9.0.0",

0 commit comments

Comments
 (0)