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.esm.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Vue.js v2.7.11
2
+ * Vue.js v2.7.13
3
3
  * (c) 2014-2022 Evan You
4
4
  * Released under the MIT License.
5
5
  */
@@ -3529,6 +3529,7 @@ var activeEffectScope;
3529
3529
  var EffectScope = /** @class */ (function () {
3530
3530
  function EffectScope(detached) {
3531
3531
  if (detached === void 0) { detached = false; }
3532
+ this.detached = detached;
3532
3533
  /**
3533
3534
  * @internal
3534
3535
  */
@@ -3541,8 +3542,8 @@ var EffectScope = /** @class */ (function () {
3541
3542
  * @internal
3542
3543
  */
3543
3544
  this.cleanups = [];
3545
+ this.parent = activeEffectScope;
3544
3546
  if (!detached && activeEffectScope) {
3545
- this.parent = activeEffectScope;
3546
3547
  this.index =
3547
3548
  (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(this) - 1;
3548
3549
  }
@@ -3591,7 +3592,7 @@ var EffectScope = /** @class */ (function () {
3591
3592
  }
3592
3593
  }
3593
3594
  // nested scope, dereference from parent to avoid memory leaks
3594
- if (this.parent && !fromParent) {
3595
+ if (!this.detached && this.parent && !fromParent) {
3595
3596
  // optimized O(1) removal
3596
3597
  var last = this.parent.scopes.pop();
3597
3598
  if (last && last !== this) {
@@ -3599,6 +3600,7 @@ var EffectScope = /** @class */ (function () {
3599
3600
  last.index = this.index;
3600
3601
  }
3601
3602
  }
3603
+ this.parent = undefined;
3602
3604
  this.active = false;
3603
3605
  }
3604
3606
  };
@@ -4037,7 +4039,7 @@ function onErrorCaptured(hook, target) {
4037
4039
  /**
4038
4040
  * Note: also update dist/vue.runtime.mjs when adding new exports to this file.
4039
4041
  */
4040
- var version = '2.7.11';
4042
+ var version = '2.7.13';
4041
4043
  /**
4042
4044
  * @internal type is manually declared in <root>/types/v3-define-component.d.ts
4043
4045
  */
@@ -4060,6 +4062,7 @@ function _traverse(val, seen) {
4060
4062
  var i, keys;
4061
4063
  var isA = isArray(val);
4062
4064
  if ((!isA && !isObject(val)) ||
4065
+ val.__v_skip /* ReactiveFlags.SKIP */ ||
4063
4066
  Object.isFrozen(val) ||
4064
4067
  val instanceof VNode) {
4065
4068
  return;
@@ -4307,6 +4310,10 @@ function proxy(target, sourceKey, key) {
4307
4310
  }
4308
4311
  function initState(vm) {
4309
4312
  var opts = vm.$options;
4313
+ if (opts.props)
4314
+ initProps$1(vm, opts.props);
4315
+ // Composition API
4316
+ initSetup(vm);
4310
4317
  if (opts.methods)
4311
4318
  initMethods(vm, opts.methods);
4312
4319
  if (opts.data) {
@@ -4323,8 +4330,6 @@ function initState(vm) {
4323
4330
  }
4324
4331
  }
4325
4332
  function initProps$1(vm, propsOptions) {
4326
- if (!propsOptions)
4327
- return;
4328
4333
  var propsData = vm.$options.propsData || {};
4329
4334
  var props = (vm._props = shallowReactive({}));
4330
4335
  // cache prop keys so that future props updates can iterate using Array
@@ -4699,11 +4704,8 @@ function initMixin$1(Vue) {
4699
4704
  initLifecycle(vm);
4700
4705
  initEvents(vm);
4701
4706
  initRender(vm);
4702
- var opts = vm.$options;
4703
- initInjections(vm); // resolve injections before data/props
4704
- initProps$1(vm, opts.props);
4705
- initSetup(vm);
4706
4707
  callHook$1(vm, 'beforeCreate', undefined, false /* setContext */);
4708
+ initInjections(vm); // resolve injections before data/props
4707
4709
  initState(vm);
4708
4710
  initProvide(vm); // resolve provide after data/props
4709
4711
  callHook$1(vm, 'created');
package/dist/vue.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Vue.js v2.7.11
2
+ * Vue.js v2.7.13
3
3
  * (c) 2014-2022 Evan You
4
4
  * Released under the MIT License.
5
5
  */
@@ -3495,6 +3495,7 @@
3495
3495
  var EffectScope = /** @class */ (function () {
3496
3496
  function EffectScope(detached) {
3497
3497
  if (detached === void 0) { detached = false; }
3498
+ this.detached = detached;
3498
3499
  /**
3499
3500
  * @internal
3500
3501
  */
@@ -3507,8 +3508,8 @@
3507
3508
  * @internal
3508
3509
  */
3509
3510
  this.cleanups = [];
3511
+ this.parent = activeEffectScope;
3510
3512
  if (!detached && activeEffectScope) {
3511
- this.parent = activeEffectScope;
3512
3513
  this.index =
3513
3514
  (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(this) - 1;
3514
3515
  }
@@ -3557,7 +3558,7 @@
3557
3558
  }
3558
3559
  }
3559
3560
  // nested scope, dereference from parent to avoid memory leaks
3560
- if (this.parent && !fromParent) {
3561
+ if (!this.detached && this.parent && !fromParent) {
3561
3562
  // optimized O(1) removal
3562
3563
  var last = this.parent.scopes.pop();
3563
3564
  if (last && last !== this) {
@@ -3565,6 +3566,7 @@
3565
3566
  last.index = this.index;
3566
3567
  }
3567
3568
  }
3569
+ this.parent = undefined;
3568
3570
  this.active = false;
3569
3571
  }
3570
3572
  };
@@ -3992,7 +3994,7 @@
3992
3994
  /**
3993
3995
  * Note: also update dist/vue.runtime.mjs when adding new exports to this file.
3994
3996
  */
3995
- var version = '2.7.11';
3997
+ var version = '2.7.13';
3996
3998
  /**
3997
3999
  * @internal type is manually declared in <root>/types/v3-define-component.d.ts
3998
4000
  */
@@ -4075,6 +4077,7 @@
4075
4077
  var i, keys;
4076
4078
  var isA = isArray(val);
4077
4079
  if ((!isA && !isObject(val)) ||
4080
+ val.__v_skip /* ReactiveFlags.SKIP */ ||
4078
4081
  Object.isFrozen(val) ||
4079
4082
  val instanceof VNode) {
4080
4083
  return;
@@ -4321,6 +4324,10 @@
4321
4324
  }
4322
4325
  function initState(vm) {
4323
4326
  var opts = vm.$options;
4327
+ if (opts.props)
4328
+ initProps$1(vm, opts.props);
4329
+ // Composition API
4330
+ initSetup(vm);
4324
4331
  if (opts.methods)
4325
4332
  initMethods(vm, opts.methods);
4326
4333
  if (opts.data) {
@@ -4337,8 +4344,6 @@
4337
4344
  }
4338
4345
  }
4339
4346
  function initProps$1(vm, propsOptions) {
4340
- if (!propsOptions)
4341
- return;
4342
4347
  var propsData = vm.$options.propsData || {};
4343
4348
  var props = (vm._props = shallowReactive({}));
4344
4349
  // cache prop keys so that future props updates can iterate using Array
@@ -4702,11 +4707,8 @@
4702
4707
  initLifecycle(vm);
4703
4708
  initEvents(vm);
4704
4709
  initRender(vm);
4705
- var opts = vm.$options;
4706
- initInjections(vm); // resolve injections before data/props
4707
- initProps$1(vm, opts.props);
4708
- initSetup(vm);
4709
4710
  callHook$1(vm, 'beforeCreate', undefined, false /* setContext */);
4711
+ initInjections(vm); // resolve injections before data/props
4710
4712
  initState(vm);
4711
4713
  initProvide(vm); // resolve provide after data/props
4712
4714
  callHook$1(vm, 'created');