vue 3.4.33 → 3.4.34

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.cjs.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * vue v3.4.33
2
+ * vue v3.4.34
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.4.33
2
+ * vue v3.4.34
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.4.33
2
+ * vue v3.4.34
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -7572,7 +7572,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
7572
7572
  const modifiers = getModelModifiers(props, name);
7573
7573
  const res = customRef((track, trigger) => {
7574
7574
  let localValue;
7575
- let prevSetValue;
7575
+ let prevSetValue = EMPTY_OBJ;
7576
7576
  let prevEmittedValue;
7577
7577
  watchSyncEffect(() => {
7578
7578
  const propValue = props[name];
@@ -7587,7 +7587,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
7587
7587
  return options.get ? options.get(localValue) : localValue;
7588
7588
  },
7589
7589
  set(value) {
7590
- if (!hasChanged(value, localValue)) {
7590
+ if (!hasChanged(value, localValue) && !(prevSetValue !== EMPTY_OBJ && hasChanged(value, prevSetValue))) {
7591
7591
  return;
7592
7592
  }
7593
7593
  const rawProps = i.vnode.props;
@@ -7598,7 +7598,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
7598
7598
  }
7599
7599
  const emittedValue = options.set ? options.set(value) : value;
7600
7600
  i.emit(`update:${name}`, emittedValue);
7601
- if (value !== emittedValue && value !== prevSetValue && emittedValue === prevEmittedValue) {
7601
+ if (hasChanged(value, emittedValue) && hasChanged(value, prevSetValue) && !hasChanged(emittedValue, prevEmittedValue)) {
7602
7602
  trigger();
7603
7603
  }
7604
7604
  prevSetValue = value;
@@ -9662,7 +9662,7 @@ function isMemoSame(cached, memo) {
9662
9662
  return true;
9663
9663
  }
9664
9664
 
9665
- const version = "3.4.33";
9665
+ const version = "3.4.34";
9666
9666
  const warn = warn$1 ;
9667
9667
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
9668
9668
  const devtools = devtools$1 ;