Skip to content

Commit 83991af

Browse files
authored
chore(deps): bump vue to 3.2 (#889)
1 parent 6541c3d commit 83991af

File tree

5 files changed

+185
-98
lines changed

5 files changed

+185
-98
lines changed

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
"@types/node": "16.7.4",
2424
"@types/pretty": "^2.0.0",
2525
"@vue/babel-plugin-jsx": "^1.0.6",
26-
"@vue/compat": "^3.1.5",
27-
"@vue/compiler-dom": "^3.1.4",
28-
"@vue/compiler-sfc": "3.1.5",
26+
"@vue/compat": "3.2.4",
27+
"@vue/compiler-dom": "3.2.6",
28+
"@vue/compiler-sfc": "3.2.6",
2929
"babel-jest": "^26.6.3",
3030
"babel-preset-jest": "^27.0.6",
3131
"husky": "^7.0.1",
@@ -39,9 +39,10 @@
3939
"rollup": "^2.56.3",
4040
"rollup-plugin-typescript2": "^0.30.0",
4141
"ts-jest": "25.3.1",
42+
"tslib": "^2.3.1",
4243
"typescript": "^4.3.5",
4344
"vitepress": "^0.16.1",
44-
"vue": "3.1.5",
45+
"vue": "3.2.6",
4546
"vue-class-component": "^8.0.0-rc.1",
4647
"vue-jest": "^5.0.0-alpha.10",
4748
"vue-router": "^4.0.11",

src/stubs.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
defineComponent,
99
VNodeTypes,
1010
ConcreteComponent,
11+
DefineComponent,
1112
ComponentPropsOptions
1213
} from 'vue'
1314
import { hyphenate } from './utils/vueShared'
@@ -47,7 +48,7 @@ export const createStub = ({
4748
name,
4849
propsDeclaration,
4950
renderStubDefaultSlot
50-
}: StubOptions): ComponentOptions => {
51+
}: StubOptions) => {
5152
const anonName = 'anonymous-stub'
5253
const tag = name ? `${hyphenate(name)}-stub` : anonName
5354

@@ -63,7 +64,7 @@ export const createStub = ({
6364
})
6465
}
6566

66-
const createTransitionStub = ({ name }: StubOptions): ComponentOptions => {
67+
const createTransitionStub = ({ name }: StubOptions) => {
6768
const render = (ctx: ComponentPublicInstance) => {
6869
return h(name, {}, ctx.$slots)
6970
}

tests/emit.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import {
2+
DefineComponent,
23
defineComponent,
34
FunctionalComponent,
45
getCurrentInstance,
@@ -322,7 +323,7 @@ describe('emitted', () => {
322323
expect(wrapper.emitted('foo')).toHaveLength(1)
323324
})
324325

325-
it.each([EmitsEventSFC, EmitsEventScriptSetup])(
326+
it.each([EmitsEventSFC, EmitsEventScriptSetup] as DefineComponent[])(
326327
'captures emitted events',
327328
async (component) => {
328329
const wrapper = mount(component)

tests/mountingOptions/global.stubs.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ describe('mounting options: stubs', () => {
2222
return h('p')
2323
}
2424
}
25-
const Component: ComponentOptions = {
25+
const Component = {
2626
render() {
2727
return h(() => [h('div'), h(Foo)])
2828
}
@@ -131,7 +131,7 @@ describe('mounting options: stubs', () => {
131131
return h('p')
132132
}
133133
}
134-
const Component: ComponentOptions = {
134+
const Component = {
135135
render() {
136136
return h(() => [h('div'), h(Foo)])
137137
}
@@ -283,7 +283,7 @@ describe('mounting options: stubs', () => {
283283
return h('p')
284284
}
285285
}
286-
const Component: ComponentOptions = {
286+
const Component = {
287287
render() {
288288
return h(() => [h(Foo), h(Bar)])
289289
}

0 commit comments

Comments
 (0)