Skip to content

Commit af44ebc

Browse files
committed
Update dev-dependencies
1 parent 915147f commit af44ebc

10 files changed

+125
-129
lines changed

lib/create-automatic-runtime.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -27,29 +27,29 @@ export function createAutomaticRuntime(f) {
2727
/**
2828
* @overload
2929
* @param {null} type
30-
* @param {{children?: Child}} props
30+
* @param {{children?: Child}} properties
3131
* @param {string} [key]
3232
* @returns {Root}
3333
*
3434
* @overload
3535
* @param {string} type
36-
* @param {JSXProps} props
36+
* @param {JSXProps} properties
3737
* @param {string} [key]
3838
* @returns {Element}
3939
*
4040
* @param {string | null} type
4141
* Element name or `null` to get a root.
42-
* @param {Properties & {children?: Child}} props
42+
* @param {Properties & {children?: Child}} properties
4343
* Properties.
4444
* @returns {Result}
4545
* Result.
4646
*/
47-
function jsx(type, props) {
48-
const {children, ...properties} = props
47+
function jsx(type, properties) {
48+
const {children, ...properties_} = properties
4949
const result =
5050
// @ts-ignore: `children` is fine: TS has a recursion problem which
5151
// sometimes generates broken types.
52-
type === null ? f(null, children) : f(type, properties, children)
52+
type === null ? f(null, children) : f(type, properties_, children)
5353
return result
5454
}
5555

lib/create-h.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export function createH(schema, defaultTagName, caseSensitive) {
101101
node.tagName = adjust[node.tagName]
102102
}
103103

104-
// Handle props.
104+
// Handle properties.
105105
if (isChild(properties)) {
106106
children.unshift(properties)
107107
} else {

package.json

+8-7
Original file line numberDiff line numberDiff line change
@@ -51,22 +51,23 @@
5151
"property-information": "^6.0.0",
5252
"space-separated-tokens": "^2.0.0"
5353
},
54+
"#devDependencies": "note: some bug with `typescript` 5.5 being broken",
5455
"devDependencies": {
55-
"@types/node": "^20.0.0",
56+
"@types/node": "^22.0.0",
5657
"acorn-jsx": "^5.0.0",
57-
"c8": "^9.0.0",
58+
"c8": "^10.0.0",
5859
"esast-util-from-js": "^2.0.0",
5960
"estree-util-build-jsx": "^3.0.0",
6061
"estree-util-to-js": "^2.0.0",
6162
"prettier": "^3.0.0",
62-
"remark-cli": "^11.0.0",
63-
"remark-preset-wooorm": "^9.0.0",
63+
"remark-cli": "^12.0.0",
64+
"remark-preset-wooorm": "^11.0.0",
6465
"svg-tag-names": "^3.0.0",
65-
"tsd": "^0.30.0",
66+
"tsd": "^0.31.0",
6667
"type-coverage": "^2.0.0",
67-
"typescript": "^5.0.0",
68+
"typescript": "~5.4.0",
6869
"unist-builder": "^4.0.0",
69-
"xo": "^0.56.0"
70+
"xo": "^0.60.0"
7071
},
7172
"scripts": {
7273
"prepack": "npm run build && npm run format",

0 commit comments

Comments
 (0)