Skip to content

Commit

Permalink
chore(deps): update compiler (#9157)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: 涓夊挷鏅哄瓙 Kevin Deng <sxzz@sxzz.moe>
  • Loading branch information
renovate[bot] and sxzz committed Sep 20, 2023
1 parent c651d73 commit 021a47a
Show file tree
Hide file tree
Showing 9 changed files with 195 additions and 274 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
"node": ">=16.14.0"
},
"devDependencies": {
"@babel/parser": "^7.21.3",
"@babel/types": "^7.21.3",
"@babel/parser": "^7.22.16",
"@babel/types": "^7.22.19",
"@rollup/plugin-alias": "^5.0.0",
"@rollup/plugin-commonjs": "^25.0.4",
"@rollup/plugin-json": "^6.0.0",
Expand All @@ -81,7 +81,7 @@
"jsdom": "^22.1.0",
"lint-staged": "^14.0.1",
"lodash": "^4.17.21",
"magic-string": "^0.30.0",
"magic-string": "^0.30.3",
"markdown-table": "^3.0.3",
"marked": "^4.3.0",
"minimist": "^1.2.8",
Expand Down
4 changes: 2 additions & 2 deletions packages/compiler-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@
},
"homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-core#readme",
"dependencies": {
"@babel/parser": "^7.21.3",
"@babel/parser": "^7.22.16",
"@vue/shared": "3.3.4",
"estree-walker": "^2.0.2",
"source-map-js": "^1.0.2"
},
"devDependencies": {
"@babel/types": "^7.21.3"
"@babel/types": "^7.22.19"
}
}
12 changes: 6 additions & 6 deletions packages/compiler-sfc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,28 +32,28 @@
},
"homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-sfc#readme",
"dependencies": {
"@babel/parser": "^7.20.15",
"@babel/parser": "^7.22.16",
"@vue/compiler-core": "3.3.4",
"@vue/compiler-dom": "3.3.4",
"@vue/compiler-ssr": "3.3.4",
"@vue/reactivity-transform": "3.3.4",
"@vue/shared": "3.3.4",
"estree-walker": "^2.0.2",
"magic-string": "^0.30.0",
"postcss": "^8.1.10",
"magic-string": "^0.30.3",
"postcss": "^8.4.30",
"source-map-js": "^1.0.2"
},
"devDependencies": {
"@babel/types": "^7.21.3",
"@babel/types": "^7.22.19",
"@types/estree": "^0.0.52",
"@types/lru-cache": "^5.1.1",
"@vue/consolidate": "^0.17.3",
"hash-sum": "^2.0.0",
"lru-cache": "^5.1.1",
"merge-source-map": "^1.1.0",
"minimatch": "^9.0.3",
"postcss-modules": "^4.0.0",
"postcss-selector-parser": "^6.0.4",
"postcss-modules": "^4.3.1",
"postcss-selector-parser": "^6.0.13",
"pug": "^3.0.2",
"sass": "^1.67.0"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/compiler-sfc/src/rewriteDefault.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function rewriteDefaultAST(
// multi-line comments or template strings. fallback to a full parse.
ast.forEach(node => {
if (node.type === 'ExportDefaultDeclaration') {
if (node.declaration.type === 'ClassDeclaration') {
if (node.declaration.type === 'ClassDeclaration' && node.declaration.id) {
let start: number =
node.declaration.decorators && node.declaration.decorators.length > 0
? node.declaration.decorators[
Expand Down
11 changes: 9 additions & 2 deletions packages/compiler-sfc/src/script/defineEmits.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
import { Identifier, LVal, Node, RestElement } from '@babel/types'
import {
ArrayPattern,
Identifier,
LVal,
Node,
ObjectPattern,
RestElement
} from '@babel/types'
import { isCallOf } from './utils'
import { ScriptCompileContext } from './context'
import { resolveTypeElements, resolveUnionType } from './resolveType'
Expand Down Expand Up @@ -91,7 +98,7 @@ function extractRuntimeEmits(ctx: ScriptCompileContext): Set<string> {

function extractEventNames(
ctx: ScriptCompileContext,
eventName: Identifier | RestElement,
eventName: ArrayPattern | Identifier | ObjectPattern | RestElement,
emits: Set<string>
) {
if (
Expand Down
2 changes: 1 addition & 1 deletion packages/compiler-sfc/src/script/resolveType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1227,7 +1227,7 @@ function recordType(
break
}
case 'ClassDeclaration':
types[overwriteId || getId(node.id)] = node
if (overwriteId || node.id) types[overwriteId || getId(node.id!)] = node
break
case 'TSTypeAliasDeclaration':
types[node.id.name] = node.typeAnnotation
Expand Down
8 changes: 4 additions & 4 deletions packages/reactivity-transform/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@
},
"homepage": "https://github.com/vuejs/core/tree/dev/packages/reactivity-transform#readme",
"dependencies": {
"@babel/parser": "^7.20.15",
"@babel/parser": "^7.22.16",
"@vue/compiler-core": "3.3.4",
"@vue/shared": "3.3.4",
"estree-walker": "^2.0.2",
"magic-string": "^0.30.0"
"magic-string": "^0.30.3"
},
"devDependencies": {
"@babel/core": "^7.21.3",
"@babel/types": "^7.21.3"
"@babel/core": "^7.22.20",
"@babel/types": "^7.22.19"
}
}
2 changes: 1 addition & 1 deletion packages/vue-compat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},
"homepage": "https://github.com/vuejs/core/tree/main/packages/vue-compat#readme",
"dependencies": {
"@babel/parser": "^7.21.3",
"@babel/parser": "^7.22.16",
"estree-walker": "^2.0.2",
"source-map-js": "^1.0.2"
},
Expand Down
Loading

0 comments on commit 021a47a

Please sign in to comment.