vue 2.7.11 → 2.7.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vue.common.dev.js +12 -10
- package/dist/vue.common.prod.js +3 -3
- package/dist/vue.esm.browser.js +12 -10
- package/dist/vue.esm.browser.min.js +3 -3
- package/dist/vue.esm.js +12 -10
- package/dist/vue.js +12 -10
- package/dist/vue.min.js +3 -3
- package/dist/vue.runtime.common.dev.js +12 -10
- package/dist/vue.runtime.common.prod.js +3 -3
- package/dist/vue.runtime.esm.js +12 -10
- package/dist/vue.runtime.js +12 -10
- package/dist/vue.runtime.min.js +3 -3
- package/package.json +2 -2
- package/packages/compiler-sfc/dist/compiler-sfc.js +1 -0
- package/packages/compiler-sfc/package.json +1 -1
- package/src/core/instance/init.ts +2 -7
- package/src/core/instance/state.ts +7 -2
- package/src/core/observer/traverse.ts +1 -0
- package/src/v3/reactivity/effectScope.ts +4 -5
- package/types/jsx.d.ts +1 -1
- package/types/v3-generated.d.ts +1 -0
|
@@ -16,9 +16,7 @@ export class EffectScope {
|
|
|
16
16
|
* @internal
|
|
17
17
|
*/
|
|
18
18
|
cleanups: (() => void)[] = []
|
|
19
|
-
|
|
20
19
|
/**
|
|
21
|
-
* only assigned by undetached scope
|
|
22
20
|
* @internal
|
|
23
21
|
*/
|
|
24
22
|
parent: EffectScope | undefined
|
|
@@ -38,9 +36,9 @@ export class EffectScope {
|
|
|
38
36
|
*/
|
|
39
37
|
private index: number | undefined
|
|
40
38
|
|
|
41
|
-
constructor(detached = false) {
|
|
39
|
+
constructor(public detached = false) {
|
|
40
|
+
this.parent = activeEffectScope
|
|
42
41
|
if (!detached && activeEffectScope) {
|
|
43
|
-
this.parent = activeEffectScope
|
|
44
42
|
this.index =
|
|
45
43
|
(activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(
|
|
46
44
|
this
|
|
@@ -93,7 +91,7 @@ export class EffectScope {
|
|
|
93
91
|
}
|
|
94
92
|
}
|
|
95
93
|
// nested scope, dereference from parent to avoid memory leaks
|
|
96
|
-
if (this.parent && !fromParent) {
|
|
94
|
+
if (!this.detached && this.parent && !fromParent) {
|
|
97
95
|
// optimized O(1) removal
|
|
98
96
|
const last = this.parent.scopes!.pop()
|
|
99
97
|
if (last && last !== this) {
|
|
@@ -101,6 +99,7 @@ export class EffectScope {
|
|
|
101
99
|
last.index = this.index!
|
|
102
100
|
}
|
|
103
101
|
}
|
|
102
|
+
this.parent = undefined
|
|
104
103
|
this.active = false
|
|
105
104
|
}
|
|
106
105
|
}
|
package/types/jsx.d.ts
CHANGED
|
@@ -731,7 +731,7 @@ export interface SVGAttributes extends AriaAttributes, EventHandlers<Events> {
|
|
|
731
731
|
* @see https://www.w3.org/TR/SVG/styling.html#ElementSpecificStyling
|
|
732
732
|
*/
|
|
733
733
|
class?: any
|
|
734
|
-
style?:
|
|
734
|
+
style?: StyleValue
|
|
735
735
|
|
|
736
736
|
color?: string
|
|
737
737
|
height?: Numberish
|
package/types/v3-generated.d.ts
CHANGED
|
@@ -91,6 +91,7 @@ export declare function del(object: object, key: string | number): void;
|
|
|
91
91
|
/* Excluded from this release type: DepTarget */
|
|
92
92
|
|
|
93
93
|
export declare class EffectScope {
|
|
94
|
+
detached: boolean;
|
|
94
95
|
/* Excluded from this release type: active */
|
|
95
96
|
/* Excluded from this release type: effects */
|
|
96
97
|
/* Excluded from this release type: cleanups */
|