@vue/compat 3.2.36 → 3.2.37

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.
@@ -4934,7 +4934,7 @@ function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false
4934
4934
  const Component = instance.type;
4935
4935
  // explicit self name has highest priority
4936
4936
  if (type === COMPONENTS) {
4937
- const selfName = getComponentName(Component);
4937
+ const selfName = getComponentName(Component, false /* do not include inferred name to avoid breaking existing code */);
4938
4938
  if (selfName &&
4939
4939
  (selfName === name ||
4940
4940
  selfName === camelize(name) ||
@@ -7029,7 +7029,7 @@ function createCompatVue(createApp, createSingletonApp) {
7029
7029
  return vm;
7030
7030
  }
7031
7031
  }
7032
- Vue.version = `2.6.14-compat:${"3.2.36"}`;
7032
+ Vue.version = `2.6.14-compat:${"3.2.37"}`;
7033
7033
  Vue.config = singletonApp.config;
7034
7034
  Vue.use = (p, ...options) => {
7035
7035
  if (p && isFunction(p.install)) {
@@ -7685,7 +7685,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
7685
7685
  setupState[ref] = value;
7686
7686
  }
7687
7687
  }
7688
- else if (isRef(ref)) {
7688
+ else if (_isRef) {
7689
7689
  ref.value = value;
7690
7690
  if (rawRef.k)
7691
7691
  refs[rawRef.k] = value;
@@ -7724,11 +7724,13 @@ function createHydrationFunctions(rendererInternals) {
7724
7724
  `Performing full mount instead.`);
7725
7725
  patch(null, vnode, container);
7726
7726
  flushPostFlushCbs();
7727
+ container._vnode = vnode;
7727
7728
  return;
7728
7729
  }
7729
7730
  hasMismatch = false;
7730
7731
  hydrateNode(container.firstChild, vnode, null, null, null);
7731
7732
  flushPostFlushCbs();
7733
+ container._vnode = vnode;
7732
7734
  if (hasMismatch && !false) {
7733
7735
  // this error should show up in production
7734
7736
  console.error(`Hydration completed but contains mismatches.`);
@@ -7778,7 +7780,7 @@ function createHydrationFunctions(rendererInternals) {
7778
7780
  }
7779
7781
  break;
7780
7782
  case Static:
7781
- if (domType !== 1 /* ELEMENT */) {
7783
+ if (domType !== 1 /* ELEMENT */ && domType !== 3 /* TEXT */) {
7782
7784
  nextNode = onMismatch();
7783
7785
  }
7784
7786
  else {
@@ -7789,7 +7791,10 @@ function createHydrationFunctions(rendererInternals) {
7789
7791
  const needToAdoptContent = !vnode.children.length;
7790
7792
  for (let i = 0; i < vnode.staticCount; i++) {
7791
7793
  if (needToAdoptContent)
7792
- vnode.children += nextNode.outerHTML;
7794
+ vnode.children +=
7795
+ nextNode.nodeType === 1 /* ELEMENT */
7796
+ ? nextNode.outerHTML
7797
+ : nextNode.data;
7793
7798
  if (i === vnode.staticCount - 1) {
7794
7799
  vnode.anchor = nextNode;
7795
7800
  }
@@ -10573,10 +10578,10 @@ function getExposeProxy(instance) {
10573
10578
  }
10574
10579
  const classifyRE = /(?:^|[-_])(\w)/g;
10575
10580
  const classify = (str) => str.replace(classifyRE, c => c.toUpperCase()).replace(/[-_]/g, '');
10576
- function getComponentName(Component) {
10581
+ function getComponentName(Component, includeInferred = true) {
10577
10582
  return isFunction(Component)
10578
10583
  ? Component.displayName || Component.name
10579
- : Component.name;
10584
+ : Component.name || (includeInferred && Component.__name);
10580
10585
  }
10581
10586
  /* istanbul ignore next */
10582
10587
  function formatComponentName(instance, Component, isRoot = false) {
@@ -11020,9 +11025,9 @@ function isMemoSame(cached, memo) {
11020
11025
  }
11021
11026
 
11022
11027
  // Core API ------------------------------------------------------------------
11023
- const version = "3.2.36";
11028
+ const version = "3.2.37";
11024
11029
  /**
11025
- * SSR utils for \@vue/server-renderer. Only exposed in cjs builds.
11030
+ * SSR utils for \@vue/server-renderer. Only exposed in ssr-possible builds.
11026
11031
  * @internal
11027
11032
  */
11028
11033
  const ssrUtils = (null);