@vue/compat 3.4.32 → 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.32
2
+ * @vue/compat v3.4.34
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -5261,7 +5261,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
5261
5261
  return vm;
5262
5262
  }
5263
5263
  }
5264
- Vue.version = `2.6.14-compat:${"3.4.32"}`;
5264
+ Vue.version = `2.6.14-compat:${"3.4.34"}`;
5265
5265
  Vue.config = singletonApp.config;
5266
5266
  Vue.use = (plugin, ...options) => {
5267
5267
  if (plugin && isFunction(plugin.install)) {
@@ -9306,7 +9306,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
9306
9306
  const modifiers = getModelModifiers(props, name);
9307
9307
  const res = customRef((track, trigger) => {
9308
9308
  let localValue;
9309
- let prevSetValue;
9309
+ let prevSetValue = EMPTY_OBJ;
9310
9310
  let prevEmittedValue;
9311
9311
  watchSyncEffect(() => {
9312
9312
  const propValue = props[name];
@@ -9321,7 +9321,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
9321
9321
  return options.get ? options.get(localValue) : localValue;
9322
9322
  },
9323
9323
  set(value) {
9324
- if (!hasChanged(value, localValue)) {
9324
+ if (!hasChanged(value, localValue) && !(prevSetValue !== EMPTY_OBJ && hasChanged(value, prevSetValue))) {
9325
9325
  return;
9326
9326
  }
9327
9327
  const rawProps = i.vnode.props;
@@ -9332,7 +9332,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
9332
9332
  }
9333
9333
  const emittedValue = options.set ? options.set(value) : value;
9334
9334
  i.emit(`update:${name}`, emittedValue);
9335
- if (value !== emittedValue && value !== prevSetValue && emittedValue === prevEmittedValue) {
9335
+ if (hasChanged(value, emittedValue) && hasChanged(value, prevSetValue) && !hasChanged(emittedValue, prevEmittedValue)) {
9336
9336
  trigger();
9337
9337
  }
9338
9338
  prevSetValue = value;
@@ -10903,8 +10903,6 @@ function createComponentInstance(vnode, parent, suspense) {
10903
10903
  refs: EMPTY_OBJ,
10904
10904
  setupState: EMPTY_OBJ,
10905
10905
  setupContext: null,
10906
- attrsProxy: null,
10907
- slotsProxy: null,
10908
10906
  // suspense related
10909
10907
  suspense,
10910
10908
  suspenseId: suspense ? suspense.pendingId : 0,
@@ -11194,12 +11192,12 @@ const attrsProxyHandlers = !!(process.env.NODE_ENV !== "production") ? {
11194
11192
  }
11195
11193
  };
11196
11194
  function getSlotsProxy(instance) {
11197
- return instance.slotsProxy || (instance.slotsProxy = new Proxy(instance.slots, {
11195
+ return new Proxy(instance.slots, {
11198
11196
  get(target, key) {
11199
11197
  track(instance, "get", "$slots");
11200
11198
  return target[key];
11201
11199
  }
11202
- }));
11200
+ });
11203
11201
  }
11204
11202
  function createSetupContext(instance) {
11205
11203
  const expose = (exposed) => {
@@ -11227,12 +11225,13 @@ function createSetupContext(instance) {
11227
11225
  };
11228
11226
  if (!!(process.env.NODE_ENV !== "production")) {
11229
11227
  let attrsProxy;
11228
+ let slotsProxy;
11230
11229
  return Object.freeze({
11231
11230
  get attrs() {
11232
11231
  return attrsProxy || (attrsProxy = new Proxy(instance.attrs, attrsProxyHandlers));
11233
11232
  },
11234
11233
  get slots() {
11235
- return getSlotsProxy(instance);
11234
+ return slotsProxy || (slotsProxy = getSlotsProxy(instance));
11236
11235
  },
11237
11236
  get emit() {
11238
11237
  return (event, ...args) => instance.emit(event, ...args);
@@ -11532,7 +11531,7 @@ function isMemoSame(cached, memo) {
11532
11531
  return true;
11533
11532
  }
11534
11533
 
11535
- const version = "3.4.32";
11534
+ const version = "3.4.34";
11536
11535
  const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
11537
11536
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
11538
11537
  const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
@@ -12210,7 +12209,7 @@ function compatCoerceAttr(el, key, value, instance = null) {
12210
12209
 
12211
12210
  function patchDOMProp(el, key, value, parentComponent) {
12212
12211
  if (key === "innerHTML" || key === "textContent") {
12213
- if (value === null) return;
12212
+ if (value == null) return;
12214
12213
  el[key] = value;
12215
12214
  return;
12216
12215
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compat v3.4.32
2
+ * @vue/compat v3.4.34
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -5249,7 +5249,7 @@ If this is a native custom element, make sure to exclude it from component resol
5249
5249
  return vm;
5250
5250
  }
5251
5251
  }
5252
- Vue.version = `2.6.14-compat:${"3.4.32"}`;
5252
+ Vue.version = `2.6.14-compat:${"3.4.34"}`;
5253
5253
  Vue.config = singletonApp.config;
5254
5254
  Vue.use = (plugin, ...options) => {
5255
5255
  if (plugin && isFunction(plugin.install)) {
@@ -9217,7 +9217,7 @@ Server rendered element contains fewer child nodes than client vdom.`
9217
9217
  const modifiers = getModelModifiers(props, name);
9218
9218
  const res = customRef((track, trigger) => {
9219
9219
  let localValue;
9220
- let prevSetValue;
9220
+ let prevSetValue = EMPTY_OBJ;
9221
9221
  let prevEmittedValue;
9222
9222
  watchSyncEffect(() => {
9223
9223
  const propValue = props[name];
@@ -9232,7 +9232,7 @@ Server rendered element contains fewer child nodes than client vdom.`
9232
9232
  return options.get ? options.get(localValue) : localValue;
9233
9233
  },
9234
9234
  set(value) {
9235
- if (!hasChanged(value, localValue)) {
9235
+ if (!hasChanged(value, localValue) && !(prevSetValue !== EMPTY_OBJ && hasChanged(value, prevSetValue))) {
9236
9236
  return;
9237
9237
  }
9238
9238
  const rawProps = i.vnode.props;
@@ -9243,7 +9243,7 @@ Server rendered element contains fewer child nodes than client vdom.`
9243
9243
  }
9244
9244
  const emittedValue = options.set ? options.set(value) : value;
9245
9245
  i.emit(`update:${name}`, emittedValue);
9246
- if (value !== emittedValue && value !== prevSetValue && emittedValue === prevEmittedValue) {
9246
+ if (hasChanged(value, emittedValue) && hasChanged(value, prevSetValue) && !hasChanged(emittedValue, prevEmittedValue)) {
9247
9247
  trigger();
9248
9248
  }
9249
9249
  prevSetValue = value;
@@ -10814,8 +10814,6 @@ Component that was made reactive: `,
10814
10814
  refs: EMPTY_OBJ,
10815
10815
  setupState: EMPTY_OBJ,
10816
10816
  setupContext: null,
10817
- attrsProxy: null,
10818
- slotsProxy: null,
10819
10817
  // suspense related
10820
10818
  suspense,
10821
10819
  suspenseId: suspense ? suspense.pendingId : 0,
@@ -11084,12 +11082,12 @@ Component that was made reactive: `,
11084
11082
  }
11085
11083
  } ;
11086
11084
  function getSlotsProxy(instance) {
11087
- return instance.slotsProxy || (instance.slotsProxy = new Proxy(instance.slots, {
11085
+ return new Proxy(instance.slots, {
11088
11086
  get(target, key) {
11089
11087
  track(instance, "get", "$slots");
11090
11088
  return target[key];
11091
11089
  }
11092
- }));
11090
+ });
11093
11091
  }
11094
11092
  function createSetupContext(instance) {
11095
11093
  const expose = (exposed) => {
@@ -11117,12 +11115,13 @@ Component that was made reactive: `,
11117
11115
  };
11118
11116
  {
11119
11117
  let attrsProxy;
11118
+ let slotsProxy;
11120
11119
  return Object.freeze({
11121
11120
  get attrs() {
11122
11121
  return attrsProxy || (attrsProxy = new Proxy(instance.attrs, attrsProxyHandlers));
11123
11122
  },
11124
11123
  get slots() {
11125
- return getSlotsProxy(instance);
11124
+ return slotsProxy || (slotsProxy = getSlotsProxy(instance));
11126
11125
  },
11127
11126
  get emit() {
11128
11127
  return (event, ...args) => instance.emit(event, ...args);
@@ -11415,7 +11414,7 @@ Component that was made reactive: `,
11415
11414
  return true;
11416
11415
  }
11417
11416
 
11418
- const version = "3.4.32";
11417
+ const version = "3.4.34";
11419
11418
  const warn = warn$1 ;
11420
11419
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
11421
11420
  const devtools = devtools$1 ;
@@ -12077,7 +12076,7 @@ Component that was made reactive: `,
12077
12076
 
12078
12077
  function patchDOMProp(el, key, value, parentComponent) {
12079
12078
  if (key === "innerHTML" || key === "textContent") {
12080
- if (value === null) return;
12079
+ if (value == null) return;
12081
12080
  el[key] = value;
12082
12081
  return;
12083
12082
  }