@vue/runtime-core 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/runtime-core v3.4.33
2
+ * @vue/runtime-core v3.4.34
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -6013,7 +6013,7 @@ function useModel(props, name, options = shared.EMPTY_OBJ) {
6013
6013
  const modifiers = getModelModifiers(props, name);
6014
6014
  const res = reactivity.customRef((track, trigger) => {
6015
6015
  let localValue;
6016
- let prevSetValue;
6016
+ let prevSetValue = shared.EMPTY_OBJ;
6017
6017
  let prevEmittedValue;
6018
6018
  watchSyncEffect(() => {
6019
6019
  const propValue = props[name];
@@ -6028,7 +6028,7 @@ function useModel(props, name, options = shared.EMPTY_OBJ) {
6028
6028
  return options.get ? options.get(localValue) : localValue;
6029
6029
  },
6030
6030
  set(value) {
6031
- if (!shared.hasChanged(value, localValue)) {
6031
+ if (!shared.hasChanged(value, localValue) && !(prevSetValue !== shared.EMPTY_OBJ && shared.hasChanged(value, prevSetValue))) {
6032
6032
  return;
6033
6033
  }
6034
6034
  const rawProps = i.vnode.props;
@@ -6039,7 +6039,7 @@ function useModel(props, name, options = shared.EMPTY_OBJ) {
6039
6039
  }
6040
6040
  const emittedValue = options.set ? options.set(value) : value;
6041
6041
  i.emit(`update:${name}`, emittedValue);
6042
- if (value !== emittedValue && value !== prevSetValue && emittedValue === prevEmittedValue) {
6042
+ if (shared.hasChanged(value, emittedValue) && shared.hasChanged(value, prevSetValue) && !shared.hasChanged(emittedValue, prevEmittedValue)) {
6043
6043
  trigger();
6044
6044
  }
6045
6045
  prevSetValue = value;
@@ -8117,7 +8117,7 @@ function isMemoSame(cached, memo) {
8117
8117
  return true;
8118
8118
  }
8119
8119
 
8120
- const version = "3.4.33";
8120
+ const version = "3.4.34";
8121
8121
  const warn = warn$1 ;
8122
8122
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
8123
8123
  const devtools = devtools$1 ;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/runtime-core v3.4.33
2
+ * @vue/runtime-core v3.4.34
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -4701,7 +4701,7 @@ function useModel(props, name, options = shared.EMPTY_OBJ) {
4701
4701
  const modifiers = getModelModifiers(props, name);
4702
4702
  const res = reactivity.customRef((track, trigger) => {
4703
4703
  let localValue;
4704
- let prevSetValue;
4704
+ let prevSetValue = shared.EMPTY_OBJ;
4705
4705
  let prevEmittedValue;
4706
4706
  watchSyncEffect(() => {
4707
4707
  const propValue = props[name];
@@ -4716,7 +4716,7 @@ function useModel(props, name, options = shared.EMPTY_OBJ) {
4716
4716
  return options.get ? options.get(localValue) : localValue;
4717
4717
  },
4718
4718
  set(value) {
4719
- if (!shared.hasChanged(value, localValue)) {
4719
+ if (!shared.hasChanged(value, localValue) && !(prevSetValue !== shared.EMPTY_OBJ && shared.hasChanged(value, prevSetValue))) {
4720
4720
  return;
4721
4721
  }
4722
4722
  const rawProps = i.vnode.props;
@@ -4727,7 +4727,7 @@ function useModel(props, name, options = shared.EMPTY_OBJ) {
4727
4727
  }
4728
4728
  const emittedValue = options.set ? options.set(value) : value;
4729
4729
  i.emit(`update:${name}`, emittedValue);
4730
- if (value !== emittedValue && value !== prevSetValue && emittedValue === prevEmittedValue) {
4730
+ if (shared.hasChanged(value, emittedValue) && shared.hasChanged(value, prevSetValue) && !shared.hasChanged(emittedValue, prevEmittedValue)) {
4731
4731
  trigger();
4732
4732
  }
4733
4733
  prevSetValue = value;
@@ -6301,7 +6301,7 @@ function isMemoSame(cached, memo) {
6301
6301
  return true;
6302
6302
  }
6303
6303
 
6304
- const version = "3.4.33";
6304
+ const version = "3.4.34";
6305
6305
  const warn$1 = shared.NOOP;
6306
6306
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
6307
6307
  const devtools = void 0;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/runtime-core v3.4.33
2
+ * @vue/runtime-core v3.4.34
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -6068,7 +6068,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
6068
6068
  const modifiers = getModelModifiers(props, name);
6069
6069
  const res = customRef((track, trigger) => {
6070
6070
  let localValue;
6071
- let prevSetValue;
6071
+ let prevSetValue = EMPTY_OBJ;
6072
6072
  let prevEmittedValue;
6073
6073
  watchSyncEffect(() => {
6074
6074
  const propValue = props[name];
@@ -6083,7 +6083,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
6083
6083
  return options.get ? options.get(localValue) : localValue;
6084
6084
  },
6085
6085
  set(value) {
6086
- if (!hasChanged(value, localValue)) {
6086
+ if (!hasChanged(value, localValue) && !(prevSetValue !== EMPTY_OBJ && hasChanged(value, prevSetValue))) {
6087
6087
  return;
6088
6088
  }
6089
6089
  const rawProps = i.vnode.props;
@@ -6094,7 +6094,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
6094
6094
  }
6095
6095
  const emittedValue = options.set ? options.set(value) : value;
6096
6096
  i.emit(`update:${name}`, emittedValue);
6097
- if (value !== emittedValue && value !== prevSetValue && emittedValue === prevEmittedValue) {
6097
+ if (hasChanged(value, emittedValue) && hasChanged(value, prevSetValue) && !hasChanged(emittedValue, prevEmittedValue)) {
6098
6098
  trigger();
6099
6099
  }
6100
6100
  prevSetValue = value;
@@ -8186,7 +8186,7 @@ function isMemoSame(cached, memo) {
8186
8186
  return true;
8187
8187
  }
8188
8188
 
8189
- const version = "3.4.33";
8189
+ const version = "3.4.34";
8190
8190
  const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
8191
8191
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
8192
8192
  const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/runtime-core",
3
- "version": "3.4.33",
3
+ "version": "3.4.34",
4
4
  "description": "@vue/runtime-core",
5
5
  "main": "index.js",
6
6
  "module": "dist/runtime-core.esm-bundler.js",
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "homepage": "https://github.com/vuejs/core/tree/main/packages/runtime-core#readme",
48
48
  "dependencies": {
49
- "@vue/shared": "3.4.33",
50
- "@vue/reactivity": "3.4.33"
49
+ "@vue/shared": "3.4.34",
50
+ "@vue/reactivity": "3.4.34"
51
51
  }
52
52
  }