@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.
package/dist/vue.cjs.js CHANGED
@@ -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
  **/
@@ -5303,7 +5303,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
5303
5303
  return vm;
5304
5304
  }
5305
5305
  }
5306
- Vue.version = `2.6.14-compat:${"3.4.33"}`;
5306
+ Vue.version = `2.6.14-compat:${"3.4.34"}`;
5307
5307
  Vue.config = singletonApp.config;
5308
5308
  Vue.use = (plugin, ...options) => {
5309
5309
  if (plugin && isFunction(plugin.install)) {
@@ -9297,7 +9297,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
9297
9297
  const modifiers = getModelModifiers(props, name);
9298
9298
  const res = customRef((track, trigger) => {
9299
9299
  let localValue;
9300
- let prevSetValue;
9300
+ let prevSetValue = EMPTY_OBJ;
9301
9301
  let prevEmittedValue;
9302
9302
  watchSyncEffect(() => {
9303
9303
  const propValue = props[name];
@@ -9312,7 +9312,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
9312
9312
  return options.get ? options.get(localValue) : localValue;
9313
9313
  },
9314
9314
  set(value) {
9315
- if (!hasChanged(value, localValue)) {
9315
+ if (!hasChanged(value, localValue) && !(prevSetValue !== EMPTY_OBJ && hasChanged(value, prevSetValue))) {
9316
9316
  return;
9317
9317
  }
9318
9318
  const rawProps = i.vnode.props;
@@ -9323,7 +9323,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
9323
9323
  }
9324
9324
  const emittedValue = options.set ? options.set(value) : value;
9325
9325
  i.emit(`update:${name}`, emittedValue);
9326
- if (value !== emittedValue && value !== prevSetValue && emittedValue === prevEmittedValue) {
9326
+ if (hasChanged(value, emittedValue) && hasChanged(value, prevSetValue) && !hasChanged(emittedValue, prevEmittedValue)) {
9327
9327
  trigger();
9328
9328
  }
9329
9329
  prevSetValue = value;
@@ -11508,7 +11508,7 @@ function isMemoSame(cached, memo) {
11508
11508
  return true;
11509
11509
  }
11510
11510
 
11511
- const version = "3.4.33";
11511
+ const version = "3.4.34";
11512
11512
  const warn = warn$1 ;
11513
11513
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
11514
11514
  const devtools = devtools$1 ;
@@ -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
  **/
@@ -4151,7 +4151,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
4151
4151
  return vm;
4152
4152
  }
4153
4153
  }
4154
- Vue.version = `2.6.14-compat:${"3.4.33"}`;
4154
+ Vue.version = `2.6.14-compat:${"3.4.34"}`;
4155
4155
  Vue.config = singletonApp.config;
4156
4156
  Vue.use = (plugin, ...options) => {
4157
4157
  if (plugin && isFunction(plugin.install)) {
@@ -7470,7 +7470,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
7470
7470
  const modifiers = getModelModifiers(props, name);
7471
7471
  const res = customRef((track, trigger) => {
7472
7472
  let localValue;
7473
- let prevSetValue;
7473
+ let prevSetValue = EMPTY_OBJ;
7474
7474
  let prevEmittedValue;
7475
7475
  watchSyncEffect(() => {
7476
7476
  const propValue = props[name];
@@ -7485,7 +7485,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
7485
7485
  return options.get ? options.get(localValue) : localValue;
7486
7486
  },
7487
7487
  set(value) {
7488
- if (!hasChanged(value, localValue)) {
7488
+ if (!hasChanged(value, localValue) && !(prevSetValue !== EMPTY_OBJ && hasChanged(value, prevSetValue))) {
7489
7489
  return;
7490
7490
  }
7491
7491
  const rawProps = i.vnode.props;
@@ -7496,7 +7496,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
7496
7496
  }
7497
7497
  const emittedValue = options.set ? options.set(value) : value;
7498
7498
  i.emit(`update:${name}`, emittedValue);
7499
- if (value !== emittedValue && value !== prevSetValue && emittedValue === prevEmittedValue) {
7499
+ if (hasChanged(value, emittedValue) && hasChanged(value, prevSetValue) && !hasChanged(emittedValue, prevEmittedValue)) {
7500
7500
  trigger();
7501
7501
  }
7502
7502
  prevSetValue = value;
@@ -9167,7 +9167,7 @@ function isMemoSame(cached, memo) {
9167
9167
  return true;
9168
9168
  }
9169
9169
 
9170
- const version = "3.4.33";
9170
+ const version = "3.4.34";
9171
9171
  const warn$1 = NOOP;
9172
9172
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
9173
9173
  const devtools = 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
  **/
@@ -5246,7 +5246,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
5246
5246
  return vm;
5247
5247
  }
5248
5248
  }
5249
- Vue.version = `2.6.14-compat:${"3.4.33"}`;
5249
+ Vue.version = `2.6.14-compat:${"3.4.34"}`;
5250
5250
  Vue.config = singletonApp.config;
5251
5251
  Vue.use = (plugin, ...options) => {
5252
5252
  if (plugin && isFunction(plugin.install)) {
@@ -9220,7 +9220,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
9220
9220
  const modifiers = getModelModifiers(props, name);
9221
9221
  const res = customRef((track, trigger) => {
9222
9222
  let localValue;
9223
- let prevSetValue;
9223
+ let prevSetValue = EMPTY_OBJ;
9224
9224
  let prevEmittedValue;
9225
9225
  watchSyncEffect(() => {
9226
9226
  const propValue = props[name];
@@ -9235,7 +9235,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
9235
9235
  return options.get ? options.get(localValue) : localValue;
9236
9236
  },
9237
9237
  set(value) {
9238
- if (!hasChanged(value, localValue)) {
9238
+ if (!hasChanged(value, localValue) && !(prevSetValue !== EMPTY_OBJ && hasChanged(value, prevSetValue))) {
9239
9239
  return;
9240
9240
  }
9241
9241
  const rawProps = i.vnode.props;
@@ -9246,7 +9246,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
9246
9246
  }
9247
9247
  const emittedValue = options.set ? options.set(value) : value;
9248
9248
  i.emit(`update:${name}`, emittedValue);
9249
- if (value !== emittedValue && value !== prevSetValue && emittedValue === prevEmittedValue) {
9249
+ if (hasChanged(value, emittedValue) && hasChanged(value, prevSetValue) && !hasChanged(emittedValue, prevEmittedValue)) {
9250
9250
  trigger();
9251
9251
  }
9252
9252
  prevSetValue = value;
@@ -11417,7 +11417,7 @@ function isMemoSame(cached, memo) {
11417
11417
  return true;
11418
11418
  }
11419
11419
 
11420
- const version = "3.4.33";
11420
+ const version = "3.4.34";
11421
11421
  const warn = warn$1 ;
11422
11422
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
11423
11423
  const devtools = devtools$1 ;