vue 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.
@@ -4370,7 +4370,7 @@ function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false
4370
4370
  const Component = instance.type;
4371
4371
  // explicit self name has highest priority
4372
4372
  if (type === COMPONENTS) {
4373
- const selfName = getComponentName(Component);
4373
+ const selfName = getComponentName(Component, false /* do not include inferred name to avoid breaking existing code */);
4374
4374
  if (selfName &&
4375
4375
  (selfName === name ||
4376
4376
  selfName === camelize(name) ||
@@ -6041,7 +6041,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
6041
6041
  setupState[ref] = value;
6042
6042
  }
6043
6043
  }
6044
- else if (isRef(ref)) {
6044
+ else if (_isRef) {
6045
6045
  ref.value = value;
6046
6046
  if (rawRef.k)
6047
6047
  refs[rawRef.k] = value;
@@ -6080,11 +6080,13 @@ function createHydrationFunctions(rendererInternals) {
6080
6080
  `Performing full mount instead.`);
6081
6081
  patch(null, vnode, container);
6082
6082
  flushPostFlushCbs();
6083
+ container._vnode = vnode;
6083
6084
  return;
6084
6085
  }
6085
6086
  hasMismatch = false;
6086
6087
  hydrateNode(container.firstChild, vnode, null, null, null);
6087
6088
  flushPostFlushCbs();
6089
+ container._vnode = vnode;
6088
6090
  if (hasMismatch && !false) {
6089
6091
  // this error should show up in production
6090
6092
  console.error(`Hydration completed but contains mismatches.`);
@@ -6134,7 +6136,7 @@ function createHydrationFunctions(rendererInternals) {
6134
6136
  }
6135
6137
  break;
6136
6138
  case Static:
6137
- if (domType !== 1 /* ELEMENT */) {
6139
+ if (domType !== 1 /* ELEMENT */ && domType !== 3 /* TEXT */) {
6138
6140
  nextNode = onMismatch();
6139
6141
  }
6140
6142
  else {
@@ -6145,7 +6147,10 @@ function createHydrationFunctions(rendererInternals) {
6145
6147
  const needToAdoptContent = !vnode.children.length;
6146
6148
  for (let i = 0; i < vnode.staticCount; i++) {
6147
6149
  if (needToAdoptContent)
6148
- vnode.children += nextNode.outerHTML;
6150
+ vnode.children +=
6151
+ nextNode.nodeType === 1 /* ELEMENT */
6152
+ ? nextNode.outerHTML
6153
+ : nextNode.data;
6149
6154
  if (i === vnode.staticCount - 1) {
6150
6155
  vnode.anchor = nextNode;
6151
6156
  }
@@ -8818,10 +8823,10 @@ function getExposeProxy(instance) {
8818
8823
  }
8819
8824
  const classifyRE = /(?:^|[-_])(\w)/g;
8820
8825
  const classify = (str) => str.replace(classifyRE, c => c.toUpperCase()).replace(/[-_]/g, '');
8821
- function getComponentName(Component) {
8826
+ function getComponentName(Component, includeInferred = true) {
8822
8827
  return isFunction(Component)
8823
8828
  ? Component.displayName || Component.name
8824
- : Component.name;
8829
+ : Component.name || (includeInferred && Component.__name);
8825
8830
  }
8826
8831
  /* istanbul ignore next */
8827
8832
  function formatComponentName(instance, Component, isRoot = false) {
@@ -9265,9 +9270,9 @@ function isMemoSame(cached, memo) {
9265
9270
  }
9266
9271
 
9267
9272
  // Core API ------------------------------------------------------------------
9268
- const version = "3.2.36";
9273
+ const version = "3.2.37";
9269
9274
  /**
9270
- * SSR utils for \@vue/server-renderer. Only exposed in cjs builds.
9275
+ * SSR utils for \@vue/server-renderer. Only exposed in ssr-possible builds.
9271
9276
  * @internal
9272
9277
  */
9273
9278
  const ssrUtils = (null);