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.
@@ -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?: string | CSSProperties
734
+ style?: StyleValue
735
735
 
736
736
  color?: string
737
737
  height?: Numberish
@@ -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 */