@vue/compat 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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compat v3.4.33
2
+ * @vue/compat v3.4.34
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -5194,7 +5194,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
5194
5194
  return vm;
5195
5195
  }
5196
5196
  }
5197
- Vue.version = `2.6.14-compat:${"3.4.33"}`;
5197
+ Vue.version = `2.6.14-compat:${"3.4.34"}`;
5198
5198
  Vue.config = singletonApp.config;
5199
5199
  Vue.use = (plugin, ...options) => {
5200
5200
  if (plugin && isFunction(plugin.install)) {
@@ -9239,7 +9239,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
9239
9239
  const modifiers = getModelModifiers(props, name);
9240
9240
  const res = customRef((track, trigger) => {
9241
9241
  let localValue;
9242
- let prevSetValue;
9242
+ let prevSetValue = EMPTY_OBJ;
9243
9243
  let prevEmittedValue;
9244
9244
  watchSyncEffect(() => {
9245
9245
  const propValue = props[name];
@@ -9254,7 +9254,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
9254
9254
  return options.get ? options.get(localValue) : localValue;
9255
9255
  },
9256
9256
  set(value) {
9257
- if (!hasChanged(value, localValue)) {
9257
+ if (!hasChanged(value, localValue) && !(prevSetValue !== EMPTY_OBJ && hasChanged(value, prevSetValue))) {
9258
9258
  return;
9259
9259
  }
9260
9260
  const rawProps = i.vnode.props;
@@ -9265,7 +9265,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
9265
9265
  }
9266
9266
  const emittedValue = options.set ? options.set(value) : value;
9267
9267
  i.emit(`update:${name}`, emittedValue);
9268
- if (value !== emittedValue && value !== prevSetValue && emittedValue === prevEmittedValue) {
9268
+ if (hasChanged(value, emittedValue) && hasChanged(value, prevSetValue) && !hasChanged(emittedValue, prevEmittedValue)) {
9269
9269
  trigger();
9270
9270
  }
9271
9271
  prevSetValue = value;
@@ -11464,7 +11464,7 @@ function isMemoSame(cached, memo) {
11464
11464
  return true;
11465
11465
  }
11466
11466
 
11467
- const version = "3.4.33";
11467
+ const version = "3.4.34";
11468
11468
  const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
11469
11469
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
11470
11470
  const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compat v3.4.33
2
+ * @vue/compat v3.4.34
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -5182,7 +5182,7 @@ If this is a native custom element, make sure to exclude it from component resol
5182
5182
  return vm;
5183
5183
  }
5184
5184
  }
5185
- Vue.version = `2.6.14-compat:${"3.4.33"}`;
5185
+ Vue.version = `2.6.14-compat:${"3.4.34"}`;
5186
5186
  Vue.config = singletonApp.config;
5187
5187
  Vue.use = (plugin, ...options) => {
5188
5188
  if (plugin && isFunction(plugin.install)) {
@@ -9150,7 +9150,7 @@ Server rendered element contains fewer child nodes than client vdom.`
9150
9150
  const modifiers = getModelModifiers(props, name);
9151
9151
  const res = customRef((track, trigger) => {
9152
9152
  let localValue;
9153
- let prevSetValue;
9153
+ let prevSetValue = EMPTY_OBJ;
9154
9154
  let prevEmittedValue;
9155
9155
  watchSyncEffect(() => {
9156
9156
  const propValue = props[name];
@@ -9165,7 +9165,7 @@ Server rendered element contains fewer child nodes than client vdom.`
9165
9165
  return options.get ? options.get(localValue) : localValue;
9166
9166
  },
9167
9167
  set(value) {
9168
- if (!hasChanged(value, localValue)) {
9168
+ if (!hasChanged(value, localValue) && !(prevSetValue !== EMPTY_OBJ && hasChanged(value, prevSetValue))) {
9169
9169
  return;
9170
9170
  }
9171
9171
  const rawProps = i.vnode.props;
@@ -9176,7 +9176,7 @@ Server rendered element contains fewer child nodes than client vdom.`
9176
9176
  }
9177
9177
  const emittedValue = options.set ? options.set(value) : value;
9178
9178
  i.emit(`update:${name}`, emittedValue);
9179
- if (value !== emittedValue && value !== prevSetValue && emittedValue === prevEmittedValue) {
9179
+ if (hasChanged(value, emittedValue) && hasChanged(value, prevSetValue) && !hasChanged(emittedValue, prevEmittedValue)) {
9180
9180
  trigger();
9181
9181
  }
9182
9182
  prevSetValue = value;
@@ -11347,7 +11347,7 @@ Component that was made reactive: `,
11347
11347
  return true;
11348
11348
  }
11349
11349
 
11350
- const version = "3.4.33";
11350
+ const version = "3.4.34";
11351
11351
  const warn = warn$1 ;
11352
11352
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
11353
11353
  const devtools = devtools$1 ;