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
  **/
@@ -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
  **/
@@ -1045,7 +1045,7 @@ var Vue = (function (exports) {
1045
1045
  },
1046
1046
  concat(...args) {
1047
1047
  return reactiveReadArray(this).concat(
1048
- ...args.map((x) => reactiveReadArray(x))
1048
+ ...args.map((x) => isArray(x) ? reactiveReadArray(x) : x)
1049
1049
  );
1050
1050
  },
1051
1051
  entries() {
@@ -3371,7 +3371,9 @@ var Vue = (function (exports) {
3371
3371
  // #11061, ensure enterHooks is fresh after clone
3372
3372
  (hooks) => enterHooks = hooks
3373
3373
  );
3374
- setTransitionHooks(innerChild, enterHooks);
3374
+ if (innerChild.type !== Comment) {
3375
+ setTransitionHooks(innerChild, enterHooks);
3376
+ }
3375
3377
  const oldChild = instance.subTree;
3376
3378
  const oldInnerChild = oldChild && getInnerChild$1(oldChild);
3377
3379
  if (oldInnerChild && oldInnerChild.type !== Comment && !isSameVNodeType(innerChild, oldInnerChild) && recursiveGetSubtree(instance).type !== Comment) {
@@ -3694,10 +3696,11 @@ var Vue = (function (exports) {
3694
3696
  const oldRef = oldRawRef && oldRawRef.r;
3695
3697
  const refs = owner.refs === EMPTY_OBJ ? owner.refs = {} : owner.refs;
3696
3698
  const setupState = owner.setupState;
3699
+ const canSetSetupRef = setupState === EMPTY_OBJ ? () => false : (key) => hasOwn(setupState, key) && !(Object.getOwnPropertyDescriptor(refs, key) || EMPTY_OBJ).get;
3697
3700
  if (oldRef != null && oldRef !== ref) {
3698
3701
  if (isString(oldRef)) {
3699
3702
  refs[oldRef] = null;
3700
- if (hasOwn(setupState, oldRef)) {
3703
+ if (canSetSetupRef(oldRef)) {
3701
3704
  setupState[oldRef] = null;
3702
3705
  }
3703
3706
  } else if (isRef(oldRef)) {
@@ -3712,14 +3715,14 @@ var Vue = (function (exports) {
3712
3715
  if (_isString || _isRef) {
3713
3716
  const doSet = () => {
3714
3717
  if (rawRef.f) {
3715
- const existing = _isString ? hasOwn(setupState, ref) ? setupState[ref] : refs[ref] : ref.value;
3718
+ const existing = _isString ? canSetSetupRef(ref) ? setupState[ref] : refs[ref] : ref.value;
3716
3719
  if (isUnmount) {
3717
3720
  isArray(existing) && remove(existing, refValue);
3718
3721
  } else {
3719
3722
  if (!isArray(existing)) {
3720
3723
  if (_isString) {
3721
3724
  refs[ref] = [refValue];
3722
- if (hasOwn(setupState, ref)) {
3725
+ if (canSetSetupRef(ref)) {
3723
3726
  setupState[ref] = refs[ref];
3724
3727
  }
3725
3728
  } else {
@@ -3732,7 +3735,7 @@ var Vue = (function (exports) {
3732
3735
  }
3733
3736
  } else if (_isString) {
3734
3737
  refs[ref] = value;
3735
- if (hasOwn(setupState, ref)) {
3738
+ if (canSetSetupRef(ref)) {
3736
3739
  setupState[ref] = value;
3737
3740
  }
3738
3741
  } else if (_isRef) {
@@ -10385,7 +10388,7 @@ Component that was made reactive: `,
10385
10388
  return true;
10386
10389
  }
10387
10390
 
10388
- const version = "3.5.0";
10391
+ const version = "3.5.1";
10389
10392
  const warn = warn$1 ;
10390
10393
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
10391
10394
  const devtools = devtools$1 ;
@@ -10479,8 +10482,6 @@ Component that was made reactive: `,
10479
10482
  const TRANSITION$1 = "transition";
10480
10483
  const ANIMATION = "animation";
10481
10484
  const vtcKey = Symbol("_vtc");
10482
- const Transition = (props, { slots }) => h(BaseTransition, resolveTransitionProps(props), slots);
10483
- Transition.displayName = "Transition";
10484
10485
  const DOMTransitionPropsValidators = {
10485
10486
  name: String,
10486
10487
  type: String,
@@ -10499,11 +10500,19 @@ Component that was made reactive: `,
10499
10500
  leaveActiveClass: String,
10500
10501
  leaveToClass: String
10501
10502
  };
10502
- const TransitionPropsValidators = Transition.props = /* @__PURE__ */ extend(
10503
+ const TransitionPropsValidators = /* @__PURE__ */ extend(
10503
10504
  {},
10504
10505
  BaseTransitionPropsValidators,
10505
10506
  DOMTransitionPropsValidators
10506
10507
  );
10508
+ const decorate$1 = (t) => {
10509
+ t.displayName = "Transition";
10510
+ t.props = TransitionPropsValidators;
10511
+ return t;
10512
+ };
10513
+ const Transition = /* @__PURE__ */ decorate$1(
10514
+ (props, { slots }) => h(BaseTransition, resolveTransitionProps(props), slots)
10515
+ );
10507
10516
  const callHook = (hook, args = []) => {
10508
10517
  if (isArray(hook)) {
10509
10518
  hook.forEach((h2) => h2(...args));
@@ -11620,7 +11629,11 @@ Expected function or array of functions, received type ${typeof value}.`
11620
11629
  const newPositionMap = /* @__PURE__ */ new WeakMap();
11621
11630
  const moveCbKey = Symbol("_moveCb");
11622
11631
  const enterCbKey = Symbol("_enterCb");
11623
- const TransitionGroupImpl = {
11632
+ const decorate = (t) => {
11633
+ delete t.props.mode;
11634
+ return t;
11635
+ };
11636
+ const TransitionGroupImpl = /* @__PURE__ */ decorate({
11624
11637
  name: "TransitionGroup",
11625
11638
  props: /* @__PURE__ */ extend({}, TransitionPropsValidators, {
11626
11639
  tag: String,
@@ -11706,9 +11719,7 @@ Expected function or array of functions, received type ${typeof value}.`
11706
11719
  return createVNode(tag, null, children);
11707
11720
  };
11708
11721
  }
11709
- };
11710
- const removeMode = (props) => delete props.mode;
11711
- /* @__PURE__ */ removeMode(TransitionGroupImpl.props);
11722
+ });
11712
11723
  const TransitionGroup = TransitionGroupImpl;
11713
11724
  function callPendingCbs(c) {
11714
11725
  const el = c.el;
@@ -14799,7 +14810,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
14799
14810
  };
14800
14811
  }
14801
14812
 
14802
- const PURE_ANNOTATION = `/*#__PURE__*/`;
14813
+ const PURE_ANNOTATION = `/*@__PURE__*/`;
14803
14814
  const aliasHelper = (s) => `${helperNameMap[s]}: _${helperNameMap[s]}`;
14804
14815
  function createCodegenContext(ast, {
14805
14816
  mode = "function",