"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/core/observer/index.ts" between
vue-2.7.13.tar.gz and vue-2.7.14.tar.gz

About: Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

index.ts  (vue-2.7.13):index.ts  (vue-2.7.14)
skipping to change at line 19 skipping to change at line 19
hasProto, hasProto,
isPlainObject, isPlainObject,
isPrimitive, isPrimitive,
isUndef, isUndef,
isValidArrayIndex, isValidArrayIndex,
isServerRendering, isServerRendering,
hasChanged, hasChanged,
noop noop
} from '../util/index' } from '../util/index'
import { isReadonly, isRef, TrackOpTypes, TriggerOpTypes } from '../../v3' import { isReadonly, isRef, TrackOpTypes, TriggerOpTypes } from '../../v3'
import { rawMap } from '../../v3/reactivity/reactive'
const arrayKeys = Object.getOwnPropertyNames(arrayMethods) const arrayKeys = Object.getOwnPropertyNames(arrayMethods)
const NO_INIITIAL_VALUE = {} const NO_INIITIAL_VALUE = {}
/** /**
* In some cases we may want to disable observation inside a component's * In some cases we may want to disable observation inside a component's
* update computation. * update computation.
*/ */
export let shouldObserve: boolean = true export let shouldObserve: boolean = true
skipping to change at line 119 skipping to change at line 118
): Observer | void { ): Observer | void {
if (value && hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) { if (value && hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
return value.__ob__ return value.__ob__
} }
if ( if (
shouldObserve && shouldObserve &&
(ssrMockReactivity || !isServerRendering()) && (ssrMockReactivity || !isServerRendering()) &&
(isArray(value) || isPlainObject(value)) && (isArray(value) || isPlainObject(value)) &&
Object.isExtensible(value) && Object.isExtensible(value) &&
!value.__v_skip /* ReactiveFlags.SKIP */ && !value.__v_skip /* ReactiveFlags.SKIP */ &&
!rawMap.has(value) &&
!isRef(value) && !isRef(value) &&
!(value instanceof VNode) !(value instanceof VNode)
) { ) {
return new Observer(value, shallow, ssrMockReactivity) return new Observer(value, shallow, ssrMockReactivity)
} }
} }
/** /**
* Define a reactive property on an Object. * Define a reactive property on an Object.
*/ */
 End of changes. 2 change blocks. 
2 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)