Skip to content

Commit 53e3533

Browse files
committed
chore: bump deps
1 parent 40aa7d8 commit 53e3533

File tree

15 files changed

+937
-1364
lines changed

15 files changed

+937
-1364
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"node": ">=16.11.0"
5555
},
5656
"devDependencies": {
57-
"@babel/types": "^7.12.0",
57+
"@babel/types": "^7.20.7",
5858
"@esbuild-plugins/node-modules-polyfill": "^0.1.4",
5959
"@microsoft/api-extractor": "~7.20.0",
6060
"@rollup/plugin-alias": "^4.0.3",
@@ -100,7 +100,7 @@
100100
"terser": "^5.15.1",
101101
"todomvc-app-css": "^2.3.0",
102102
"tslib": "^2.4.0",
103-
"typescript": "^4.8.0",
103+
"typescript": "^4.9.0",
104104
"vite": "^4.0.4",
105105
"vitest": "^0.28.2",
106106
"vue": "workspace:*"

packages/compiler-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-core#readme",
3434
"dependencies": {
3535
"@vue/shared": "3.2.47",
36-
"@babel/parser": "^7.16.4",
36+
"@babel/parser": "^7.20.15",
3737
"estree-walker": "^2.0.2",
3838
"source-map": "^0.6.1"
3939
},

packages/compiler-sfc/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@
3232
},
3333
"homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-sfc#readme",
3434
"dependencies": {
35-
"@babel/parser": "^7.16.4",
35+
"@babel/parser": "^7.20.15",
3636
"@vue/compiler-core": "3.2.47",
3737
"@vue/compiler-dom": "3.2.47",
3838
"@vue/compiler-ssr": "3.2.47",
3939
"@vue/reactivity-transform": "3.2.47",
4040
"@vue/shared": "3.2.47",
4141
"estree-walker": "^2.0.2",
42-
"magic-string": "^0.25.7",
42+
"magic-string": "^0.27.0",
4343
"source-map": "^0.6.1",
4444
"postcss": "^8.1.10"
4545
},

packages/compiler-sfc/src/compileScript.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ export function compileScript(
365365
if (node.trailingComments && node.trailingComments.length > 0) {
366366
const lastCommentNode =
367367
node.trailingComments[node.trailingComments.length - 1]
368-
end = lastCommentNode.end + startOffset
368+
end = lastCommentNode.end! + startOffset
369369
}
370370
// locate the end of whitespace between this statement and the next
371371
while (end <= source.length) {
@@ -2026,14 +2026,18 @@ function extractEventNames(
20262026
) {
20272027
const typeNode = eventName.typeAnnotation.typeAnnotation
20282028
if (typeNode.type === 'TSLiteralType') {
2029-
if (typeNode.literal.type !== 'UnaryExpression') {
2029+
if (
2030+
typeNode.literal.type !== 'UnaryExpression' &&
2031+
typeNode.literal.type !== 'TemplateLiteral'
2032+
) {
20302033
emits.add(String(typeNode.literal.value))
20312034
}
20322035
} else if (typeNode.type === 'TSUnionType') {
20332036
for (const t of typeNode.types) {
20342037
if (
20352038
t.type === 'TSLiteralType' &&
2036-
t.literal.type !== 'UnaryExpression'
2039+
t.literal.type !== 'UnaryExpression' &&
2040+
t.literal.type !== 'TemplateLiteral'
20372041
) {
20382042
emits.add(String(t.literal.value))
20392043
}

packages/compiler-sfc/src/rewriteDefault.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,19 @@ export function rewriteDefault(
5858
) {
5959
if (node.source) {
6060
if (specifier.local.name === 'default') {
61-
const end = specifierEnd(input, specifier.local.end!, node.end)
61+
const end = specifierEnd(input, specifier.local.end!, node.end!)
6262
s.prepend(
6363
`import { default as __VUE_DEFAULT__ } from '${node.source.value}'\n`
6464
)
6565
s.overwrite(specifier.start!, end, ``)
6666
s.append(`\nconst ${as} = __VUE_DEFAULT__`)
6767
continue
6868
} else {
69-
const end = specifierEnd(input, specifier.exported.end!, node.end)
69+
const end = specifierEnd(
70+
input,
71+
specifier.exported.end!,
72+
node.end!
73+
)
7074
s.prepend(
7175
`import { ${input.slice(
7276
specifier.local.start!,
@@ -78,7 +82,7 @@ export function rewriteDefault(
7882
continue
7983
}
8084
}
81-
const end = specifierEnd(input, specifier.end!, node.end)
85+
const end = specifierEnd(input, specifier.end!, node.end!)
8286
s.overwrite(specifier.start!, end, ``)
8387
s.append(`\nconst ${as} = ${specifier.local.name}`)
8488
}

packages/reactivity-transform/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@
2828
},
2929
"homepage": "https://github.com/vuejs/core/tree/dev/packages/reactivity-transform#readme",
3030
"dependencies": {
31-
"@babel/parser": "^7.16.4",
31+
"@babel/parser": "^7.20.15",
3232
"@vue/compiler-core": "3.2.47",
3333
"@vue/shared": "3.2.47",
3434
"estree-walker": "^2.0.2",
35-
"magic-string": "^0.25.7"
35+
"magic-string": "^0.27.0"
3636
},
3737
"devDependencies": {
38-
"@babel/core": "^7.16.0",
39-
"@babel/types": "^7.16.0"
38+
"@babel/core": "^7.20.12",
39+
"@babel/types": "^7.20.7"
4040
}
4141
}

packages/reactivity-transform/src/reactivityTransform.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ export function transformAST(
395395
defaultValue = p.value.right
396396
}
397397
} else {
398-
key = p.computed ? p.key : (p.key as Identifier).name
398+
key = p.computed ? (p.key as Expression) : (p.key as Identifier).name
399399
if (p.value.type === 'Identifier') {
400400
// { foo: bar }
401401
nameId = p.value

packages/reactivity/src/collectionHandlers.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ function createReadonlyMethod(type: TriggerOpTypes): Function {
228228
}
229229

230230
function createInstrumentations() {
231-
const mutableInstrumentations: Record<string, Function> = {
231+
const mutableInstrumentations: Record<string, Function | number> = {
232232
get(this: MapTypes, key: unknown) {
233233
return get(this, key)
234234
},
@@ -243,7 +243,7 @@ function createInstrumentations() {
243243
forEach: createForEach(false, false)
244244
}
245245

246-
const shallowInstrumentations: Record<string, Function> = {
246+
const shallowInstrumentations: Record<string, Function | number> = {
247247
get(this: MapTypes, key: unknown) {
248248
return get(this, key, false, true)
249249
},
@@ -258,7 +258,7 @@ function createInstrumentations() {
258258
forEach: createForEach(false, true)
259259
}
260260

261-
const readonlyInstrumentations: Record<string, Function> = {
261+
const readonlyInstrumentations: Record<string, Function | number> = {
262262
get(this: MapTypes, key: unknown) {
263263
return get(this, key, true)
264264
},
@@ -275,7 +275,7 @@ function createInstrumentations() {
275275
forEach: createForEach(true, false)
276276
}
277277

278-
const shallowReadonlyInstrumentations: Record<string, Function> = {
278+
const shallowReadonlyInstrumentations: Record<string, Function | number> = {
279279
get(this: MapTypes, key: unknown) {
280280
return get(this, key, true, true)
281281
},

packages/runtime-core/__tests__/apiOptions.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ describe('api: options', () => {
5858
bar(): number {
5959
return this.foo + 1
6060
},
61-
baz: (vm): number => vm.bar + 1
61+
baz: (vm: any): number => vm.bar + 1
6262
},
6363
render() {
6464
return h(

packages/server-renderer/__tests__/webStream.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { ReadableStream, TransformStream } from 'stream/web'
33
import { pipeToWebWritable, renderToWebStream } from '../src'
44

55
beforeEach(() => {
6+
// @ts-ignore
67
global.ReadableStream = ReadableStream
78
})
89

0 commit comments

Comments
 (0)