Skip to content

Commit d9c77ae

Browse files
committed
chore: update core deps
- Update `@vue/reactivity` from 3.2.27 to 3.4.0 - Avoid circular referencing the `hasOwnProperty` method in reactive proxy. - Reference: [fix(reactivity): track hasOwnProperty](vuejs/core@588bd44) - Bump `@vue/shared` from 3.2.7 to 3.4.0
1 parent bc7df16 commit d9c77ae

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
},
3838
"homepage": "https://github.com/vuejs/petite-vue#readme",
3939
"devDependencies": {
40-
"@vue/reactivity": "^3.2.27",
41-
"@vue/shared": "^3.2.27",
40+
"@vue/reactivity": "^3.4.0",
41+
"@vue/shared": "^3.4.0",
4242
"chalk": "^4.1.1",
4343
"conventional-changelog-cli": "^2.1.1",
4444
"enquirer": "^2.3.6",

pnpm-lock.yaml

+9-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/context.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import {
33
reactive,
44
ReactiveEffectRunner
55
} from '@vue/reactivity'
6+
import { hasOwn } from '@vue/shared'
67
import { Block } from './block'
78
import { Directive } from './directives'
89
import { queueJob } from './scheduler'
@@ -54,7 +55,7 @@ export const createScopedContext = (ctx: Context, data = {}): Context => {
5455
set(target, key, val, receiver) {
5556
// when setting a property that doesn't exist on current scope,
5657
// do not create it on the current scope and fallback to parent scope.
57-
if (receiver === reactiveProxy && !target.hasOwnProperty(key)) {
58+
if (receiver === reactiveProxy && !hasOwn(target, key)) {
5859
return Reflect.set(parentScope, key, val)
5960
}
6061
return Reflect.set(target, key, val, receiver)

0 commit comments

Comments
 (0)