Skip to content

Commit 852bf3c

Browse files
committed
chore: update deps
1 parent ac9d845 commit 852bf3c

File tree

7 files changed

+763
-554
lines changed

7 files changed

+763
-554
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"version": "2.4.7",
3-
"packageManager": "[email protected].3",
3+
"packageManager": "[email protected].4",
44
"description": "Vue JSX Vapor",
55
"type": "module",
66
"keywords": [
@@ -40,10 +40,10 @@
4040
"devDependencies": {
4141
"@sxzz/eslint-config": "^7.0.4",
4242
"@ts-macro/tsc": "catalog:",
43-
"@types/node": "^22.15.33",
43+
"@types/node": "^22.16.0",
4444
"bumpp": "^10.2.0",
4545
"conventional-changelog-cli": "^5.0.0",
46-
"eslint": "^9.29.0",
46+
"eslint": "^9.30.1",
4747
"tsdown": "^0.12.9",
4848
"typescript": "^5.8.3",
4949
"unplugin-raw": "^0.5.0",

packages/eslint/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@
4040
"test": "vitest"
4141
},
4242
"dependencies": {
43-
"@prettier/sync": "^0.5.5"
43+
"@prettier/sync": "^0.6.1"
4444
},
4545
"devDependencies": {
46-
"@typescript-eslint/utils": "^8.35.0",
46+
"@typescript-eslint/utils": "^8.35.1",
4747
"eslint-vitest-rule-tester": "^2.2.0"
4848
}
4949
}

packages/macros/src/core/index.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@ import { transformDefineModel } from './define-model'
1414
import { transformDefineSlots } from './define-slots'
1515
import { transformDefineStyle } from './define-style'
1616
import { getParamsStart, isFunctionalNode, type FunctionalNode } from './utils'
17-
import type { CallExpression, LVal, Node, Program } from '@babel/types'
17+
import type {
18+
CallExpression,
19+
LVal,
20+
Node,
21+
Program,
22+
VoidPattern,
23+
} from '@babel/types'
1824

1925
export { isFunctionalNode }
2026

@@ -34,7 +40,7 @@ export type Macros = {
3440
}[]
3541
defineSlots?: {
3642
expression: CallExpression
37-
id?: LVal
43+
id?: VoidPattern | LVal
3844
}
3945
defineExpose?: CallExpression
4046
defineStyle?: DefineStyle[]

packages/vue-jsx-vapor/src/core/vue-jsx.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export function transformVueJsx(
2121
babelrc: false,
2222
configFile: false,
2323
})
24-
if (result && result.code !== code) {
24+
if (result?.code && result.code !== code) {
2525
return {
2626
code: result.code,
2727
map: result.map,

playground/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"devDependencies": {
1111
"vite": "catalog:",
1212
"vite-hyper-config": "^0.7.0",
13-
"vite-plugin-inspect": "^11.2.0",
13+
"vite-plugin-inspect": "^11.3.0",
1414
"vue": "catalog:",
1515
"vue-jsx-vapor": "workspace:*"
1616
}

0 commit comments

Comments
 (0)