Skip to content

Commit 5f8aae0

Browse files
committed
Update @types/hast, utilities
1 parent 8349539 commit 5f8aae0

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

lib/index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
/**
2-
* @typedef {import('hast').Root} Root
3-
* @typedef {import('hast').Content} Content
2+
* @typedef {import('hast').Nodes} Nodes
43
* @typedef {import('hast').Text} Text
54
* @typedef {import('hast').Element} Element
65
*/
76

87
/**
9-
* @typedef {Content | Root} Node
108
* @typedef {Element & {tagName: 'br'}} BreakElement
119
*/
1210

@@ -28,7 +26,7 @@ const search = /\r?\n|\r/g
2826
* In this utility, we accept all parent nodes and handle them as elements, and
2927
* for all literals we set the `value` of the given node the given value.
3028
*
31-
* @template {Node} T
29+
* @template {Nodes} T
3230
* Node type.
3331
* @param {T} tree
3432
* Tree to change.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,18 @@
3535
"index.js"
3636
],
3737
"dependencies": {
38-
"@types/hast": "^2.0.0"
38+
"@types/hast": "^3.0.0"
3939
},
4040
"devDependencies": {
4141
"@types/node": "^20.0.0",
4242
"c8": "^8.0.0",
43-
"hastscript": "^7.0.0",
43+
"hastscript": "^8.0.0",
4444
"prettier": "^3.0.0",
4545
"remark-cli": "^11.0.0",
4646
"remark-preset-wooorm": "^9.0.0",
4747
"type-coverage": "^2.0.0",
4848
"typescript": "^5.0.0",
49-
"unist-builder": "^3.0.0",
49+
"unist-builder": "^4.0.0",
5050
"xo": "^0.55.0"
5151
},
5252
"scripts": {

0 commit comments

Comments
 (0)