Skip to content

Commit 11e66c0

Browse files
committed
Update @types/hast, utilities
1 parent ecb93c0 commit 11e66c0

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

lib/enter-state.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @typedef {import('./types.js').Node} Node
44
* @typedef {import('./types.js').ElementChild} ElementChild
55
* @typedef {import('./types.js').Direction} Direction
6-
* @typedef {import('unist-util-visit/complex-types.js').Visitor<ElementChild>} Visitor
6+
* @typedef {import('unist-util-visit').Visitor<ElementChild>} Visitor
77
*/
88

99
import {direction} from 'direction'
@@ -69,6 +69,7 @@ export function enterState(state, node) {
6969
} else if (dir === 'auto' || node.tagName === 'bdi') {
7070
if (node.tagName === 'textarea') {
7171
// Check contents of `<textarea>`.
72+
// @ts-expect-error: to do: remove when `rehype-minify` is updated.
7273
dirInferred = dirBidi(toString(node))
7374
} else if (
7475
node.tagName === 'input' &&

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,32 +38,32 @@
3838
"index.js"
3939
],
4040
"dependencies": {
41-
"@types/hast": "^2.0.0",
42-
"@types/unist": "^2.0.0",
41+
"@types/hast": "^3.0.0",
42+
"@types/unist": "^3.0.0",
4343
"bcp-47-match": "^2.0.0",
4444
"comma-separated-tokens": "^2.0.0",
4545
"css-selector-parser": "^1.0.0",
4646
"direction": "^2.0.0",
47-
"hast-util-has-property": "^2.0.0",
47+
"hast-util-has-property": "^3.0.0",
4848
"hast-util-to-string": "^2.0.0",
49-
"hast-util-whitespace": "^2.0.0",
49+
"hast-util-whitespace": "^3.0.0",
5050
"not": "^0.1.0",
5151
"nth-check": "^2.0.0",
5252
"property-information": "^6.0.0",
5353
"space-separated-tokens": "^2.0.0",
54-
"unist-util-visit": "^4.0.0",
54+
"unist-util-visit": "^5.0.0",
5555
"zwitch": "^2.0.0"
5656
},
5757
"devDependencies": {
5858
"@types/node": "^20.0.0",
5959
"c8": "^8.0.0",
60-
"hastscript": "^7.0.0",
60+
"hastscript": "^8.0.0",
6161
"prettier": "^3.0.0",
6262
"remark-cli": "^11.0.0",
6363
"remark-preset-wooorm": "^9.0.0",
6464
"type-coverage": "^2.0.0",
6565
"typescript": "^5.0.0",
66-
"unist-builder": "^3.0.0",
66+
"unist-builder": "^4.0.0",
6767
"xo": "^0.55.0"
6868
},
6969
"scripts": {

0 commit comments

Comments
 (0)