vue 3.5.0 → 3.5.1

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * vue v3.5.0
2
+ * vue v3.5.1
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -978,7 +978,7 @@ var Vue = (function (exports) {
978
978
  },
979
979
  concat(...args) {
980
980
  return reactiveReadArray(this).concat(
981
- ...args.map((x) => reactiveReadArray(x))
981
+ ...args.map((x) => isArray(x) ? reactiveReadArray(x) : x)
982
982
  );
983
983
  },
984
984
  entries() {
@@ -3304,7 +3304,9 @@ var Vue = (function (exports) {
3304
3304
  // #11061, ensure enterHooks is fresh after clone
3305
3305
  (hooks) => enterHooks = hooks
3306
3306
  );
3307
- setTransitionHooks(innerChild, enterHooks);
3307
+ if (innerChild.type !== Comment) {
3308
+ setTransitionHooks(innerChild, enterHooks);
3309
+ }
3308
3310
  const oldChild = instance.subTree;
3309
3311
  const oldInnerChild = oldChild && getInnerChild$1(oldChild);
3310
3312
  if (oldInnerChild && oldInnerChild.type !== Comment && !isSameVNodeType(innerChild, oldInnerChild) && recursiveGetSubtree(instance).type !== Comment) {
@@ -3627,10 +3629,11 @@ var Vue = (function (exports) {
3627
3629
  const oldRef = oldRawRef && oldRawRef.r;
3628
3630
  const refs = owner.refs === EMPTY_OBJ ? owner.refs = {} : owner.refs;
3629
3631
  const setupState = owner.setupState;
3632
+ const canSetSetupRef = setupState === EMPTY_OBJ ? () => false : (key) => hasOwn(setupState, key) && !(Object.getOwnPropertyDescriptor(refs, key) || EMPTY_OBJ).get;
3630
3633
  if (oldRef != null && oldRef !== ref) {
3631
3634
  if (isString(oldRef)) {
3632
3635
  refs[oldRef] = null;
3633
- if (hasOwn(setupState, oldRef)) {
3636
+ if (canSetSetupRef(oldRef)) {
3634
3637
  setupState[oldRef] = null;
3635
3638
  }
3636
3639
  } else if (isRef(oldRef)) {
@@ -3645,14 +3648,14 @@ var Vue = (function (exports) {
3645
3648
  if (_isString || _isRef) {
3646
3649
  const doSet = () => {
3647
3650
  if (rawRef.f) {
3648
- const existing = _isString ? hasOwn(setupState, ref) ? setupState[ref] : refs[ref] : ref.value;
3651
+ const existing = _isString ? canSetSetupRef(ref) ? setupState[ref] : refs[ref] : ref.value;
3649
3652
  if (isUnmount) {
3650
3653
  isArray(existing) && remove(existing, refValue);
3651
3654
  } else {
3652
3655
  if (!isArray(existing)) {
3653
3656
  if (_isString) {
3654
3657
  refs[ref] = [refValue];
3655
- if (hasOwn(setupState, ref)) {
3658
+ if (canSetSetupRef(ref)) {
3656
3659
  setupState[ref] = refs[ref];
3657
3660
  }
3658
3661
  } else {
@@ -3665,7 +3668,7 @@ var Vue = (function (exports) {
3665
3668
  }
3666
3669
  } else if (_isString) {
3667
3670
  refs[ref] = value;
3668
- if (hasOwn(setupState, ref)) {
3671
+ if (canSetSetupRef(ref)) {
3669
3672
  setupState[ref] = value;
3670
3673
  }
3671
3674
  } else if (_isRef) {
@@ -10318,7 +10321,7 @@ Component that was made reactive: `,
10318
10321
  return true;
10319
10322
  }
10320
10323
 
10321
- const version = "3.5.0";
10324
+ const version = "3.5.1";
10322
10325
  const warn = warn$1 ;
10323
10326
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
10324
10327
  const devtools = devtools$1 ;
@@ -10412,8 +10415,6 @@ Component that was made reactive: `,
10412
10415
  const TRANSITION = "transition";
10413
10416
  const ANIMATION = "animation";
10414
10417
  const vtcKey = Symbol("_vtc");
10415
- const Transition = (props, { slots }) => h(BaseTransition, resolveTransitionProps(props), slots);
10416
- Transition.displayName = "Transition";
10417
10418
  const DOMTransitionPropsValidators = {
10418
10419
  name: String,
10419
10420
  type: String,
@@ -10432,11 +10433,19 @@ Component that was made reactive: `,
10432
10433
  leaveActiveClass: String,
10433
10434
  leaveToClass: String
10434
10435
  };
10435
- const TransitionPropsValidators = Transition.props = /* @__PURE__ */ extend(
10436
+ const TransitionPropsValidators = /* @__PURE__ */ extend(
10436
10437
  {},
10437
10438
  BaseTransitionPropsValidators,
10438
10439
  DOMTransitionPropsValidators
10439
10440
  );
10441
+ const decorate$1 = (t) => {
10442
+ t.displayName = "Transition";
10443
+ t.props = TransitionPropsValidators;
10444
+ return t;
10445
+ };
10446
+ const Transition = /* @__PURE__ */ decorate$1(
10447
+ (props, { slots }) => h(BaseTransition, resolveTransitionProps(props), slots)
10448
+ );
10440
10449
  const callHook = (hook, args = []) => {
10441
10450
  if (isArray(hook)) {
10442
10451
  hook.forEach((h2) => h2(...args));
@@ -11553,7 +11562,11 @@ Expected function or array of functions, received type ${typeof value}.`
11553
11562
  const newPositionMap = /* @__PURE__ */ new WeakMap();
11554
11563
  const moveCbKey = Symbol("_moveCb");
11555
11564
  const enterCbKey = Symbol("_enterCb");
11556
- const TransitionGroupImpl = {
11565
+ const decorate = (t) => {
11566
+ delete t.props.mode;
11567
+ return t;
11568
+ };
11569
+ const TransitionGroupImpl = /* @__PURE__ */ decorate({
11557
11570
  name: "TransitionGroup",
11558
11571
  props: /* @__PURE__ */ extend({}, TransitionPropsValidators, {
11559
11572
  tag: String,
@@ -11639,9 +11652,7 @@ Expected function or array of functions, received type ${typeof value}.`
11639
11652
  return createVNode(tag, null, children);
11640
11653
  };
11641
11654
  }
11642
- };
11643
- const removeMode = (props) => delete props.mode;
11644
- /* @__PURE__ */ removeMode(TransitionGroupImpl.props);
11655
+ });
11645
11656
  const TransitionGroup = TransitionGroupImpl;
11646
11657
  function callPendingCbs(c) {
11647
11658
  const el = c.el;