@vue/compat 3.3.10 → 3.3.11

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.
@@ -235,20 +235,29 @@ const replacer = (_key, val) => {
235
235
  return replacer(_key, val.value);
236
236
  } else if (isMap(val)) {
237
237
  return {
238
- [`Map(${val.size})`]: [...val.entries()].reduce((entries, [key, val2]) => {
239
- entries[`${key} =>`] = val2;
240
- return entries;
241
- }, {})
238
+ [`Map(${val.size})`]: [...val.entries()].reduce(
239
+ (entries, [key, val2], i) => {
240
+ entries[stringifySymbol(key, i) + " =>"] = val2;
241
+ return entries;
242
+ },
243
+ {}
244
+ )
242
245
  };
243
246
  } else if (isSet(val)) {
244
247
  return {
245
- [`Set(${val.size})`]: [...val.values()]
248
+ [`Set(${val.size})`]: [...val.values()].map((v) => stringifySymbol(v))
246
249
  };
250
+ } else if (isSymbol(val)) {
251
+ return stringifySymbol(val);
247
252
  } else if (isObject(val) && !isArray(val) && !isPlainObject(val)) {
248
253
  return String(val);
249
254
  }
250
255
  return val;
251
256
  };
257
+ const stringifySymbol = (v, i = "") => {
258
+ var _a;
259
+ return isSymbol(v) ? `Symbol(${(_a = v.description) != null ? _a : i})` : v;
260
+ };
252
261
 
253
262
  function warn$1(msg, ...args) {
254
263
  console.warn(`[Vue warn] ${msg}`, ...args);
@@ -672,8 +681,13 @@ class BaseReactiveHandler {
672
681
  return isReadonly2;
673
682
  } else if (key === "__v_isShallow") {
674
683
  return shallow;
675
- } else if (key === "__v_raw" && receiver === (isReadonly2 ? shallow ? shallowReadonlyMap : readonlyMap : shallow ? shallowReactiveMap : reactiveMap).get(target)) {
676
- return target;
684
+ } else if (key === "__v_raw") {
685
+ if (receiver === (isReadonly2 ? shallow ? shallowReadonlyMap : readonlyMap : shallow ? shallowReactiveMap : reactiveMap).get(target) || // receiver is not the reactive proxy, but has the same prototype
686
+ // this means the reciever is a user proxy of the reactive proxy
687
+ Object.getPrototypeOf(target) === Object.getPrototypeOf(receiver)) {
688
+ return target;
689
+ }
690
+ return;
677
691
  }
678
692
  const targetIsArray = isArray(target);
679
693
  if (!isReadonly2) {
@@ -1684,13 +1698,16 @@ function queuePostFlushCb(cb) {
1684
1698
  }
1685
1699
  queueFlush();
1686
1700
  }
1687
- function flushPreFlushCbs(seen, i = isFlushing ? flushIndex + 1 : 0) {
1701
+ function flushPreFlushCbs(instance, seen, i = isFlushing ? flushIndex + 1 : 0) {
1688
1702
  {
1689
1703
  seen = seen || /* @__PURE__ */ new Map();
1690
1704
  }
1691
1705
  for (; i < queue.length; i++) {
1692
1706
  const cb = queue[i];
1693
1707
  if (cb && cb.pre) {
1708
+ if (instance && cb.id !== instance.uid) {
1709
+ continue;
1710
+ }
1694
1711
  if (checkRecursiveUpdates(seen, cb)) {
1695
1712
  continue;
1696
1713
  }
@@ -3359,6 +3376,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
3359
3376
  }
3360
3377
  const { vnode: vnode2, activeBranch, parentComponent: parentComponent2, container: container2, isSVG: isSVG2 } = suspense;
3361
3378
  triggerEvent(vnode2, "onFallback");
3379
+ const anchor2 = next(activeBranch);
3362
3380
  const mountFallback = () => {
3363
3381
  if (!suspense.isInFallback) {
3364
3382
  return;
@@ -3367,7 +3385,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
3367
3385
  null,
3368
3386
  fallbackVNode,
3369
3387
  container2,
3370
- next(activeBranch),
3388
+ anchor2,
3371
3389
  parentComponent2,
3372
3390
  null,
3373
3391
  // fallback tree will not have suspense context
@@ -6208,7 +6226,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
6208
6226
  return vm;
6209
6227
  }
6210
6228
  }
6211
- Vue.version = `2.6.14-compat:${"3.3.10"}`;
6229
+ Vue.version = `2.6.14-compat:${"3.3.11"}`;
6212
6230
  Vue.config = singletonApp.config;
6213
6231
  Vue.use = (p, ...options) => {
6214
6232
  if (p && isFunction(p.install)) {
@@ -8846,7 +8864,7 @@ function baseCreateRenderer(options, createHydrationFns) {
8846
8864
  updateProps(instance, nextVNode.props, prevProps, optimized);
8847
8865
  updateSlots(instance, nextVNode.children, optimized);
8848
8866
  pauseTracking();
8849
- flushPreFlushCbs();
8867
+ flushPreFlushCbs(instance);
8850
8868
  resetTracking();
8851
8869
  };
8852
8870
  const patchChildren = (n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized = false) => {
@@ -10801,7 +10819,7 @@ function isMemoSame(cached, memo) {
10801
10819
  return true;
10802
10820
  }
10803
10821
 
10804
- const version = "3.3.10";
10822
+ const version = "3.3.11";
10805
10823
  const ssrUtils = null;
10806
10824
  const resolveFilter = resolveFilter$1 ;
10807
10825
  const _compatUtils = {
@@ -11554,7 +11572,9 @@ function shouldSetAsProp(el, key, value, isSVG) {
11554
11572
  }
11555
11573
  if (key === "width" || key === "height") {
11556
11574
  const tag = el.tagName;
11557
- return !(tag === "IMG" || tag === "VIDEO" || tag === "CANVAS" || tag === "SOURCE");
11575
+ if (tag === "IMG" || tag === "VIDEO" || tag === "CANVAS" || tag === "SOURCE") {
11576
+ return false;
11577
+ }
11558
11578
  }
11559
11579
  if (isNativeOn(key) && isString(value)) {
11560
11580
  return false;