@vue/compat 3.5.2 → 3.5.3

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.5.2
2
+ * @vue/compat v3.5.3
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -621,6 +621,9 @@ function isDirty(sub) {
621
621
  return false;
622
622
  }
623
623
  function refreshComputed(computed) {
624
+ if (computed.flags & 2) {
625
+ return false;
626
+ }
624
627
  if (computed.flags & 4 && !(computed.flags & 16)) {
625
628
  return;
626
629
  }
@@ -1895,8 +1898,8 @@ class ComputedRefImpl {
1895
1898
  * @internal
1896
1899
  */
1897
1900
  notify() {
1898
- this.flags |= 16;
1899
1901
  if (activeSub !== this) {
1902
+ this.flags |= 16;
1900
1903
  this.dep.notify();
1901
1904
  }
1902
1905
  }
@@ -4083,6 +4086,7 @@ function getInnerChild$1(vnode) {
4083
4086
  }
4084
4087
  function setTransitionHooks(vnode, hooks) {
4085
4088
  if (vnode.shapeFlag & 6 && vnode.component) {
4089
+ vnode.transition = hooks;
4086
4090
  setTransitionHooks(vnode.component.subTree, hooks);
4087
4091
  } else if (vnode.shapeFlag & 128) {
4088
4092
  vnode.ssContent.transition = hooks.clone(vnode.ssContent);
@@ -4127,7 +4131,7 @@ function defineComponent(options, extraOptions) {
4127
4131
  function useId() {
4128
4132
  const i = getCurrentInstance();
4129
4133
  if (i) {
4130
- return (i.appContext.config.idPrefix || "v") + ":" + i.ids[0] + i.ids[1]++;
4134
+ return (i.appContext.config.idPrefix || "v") + "-" + i.ids[0] + i.ids[1]++;
4131
4135
  } else {
4132
4136
  warn$1(
4133
4137
  `useId() is called when there is no active component instance to be associated with.`
@@ -7032,7 +7036,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
7032
7036
  return vm;
7033
7037
  }
7034
7038
  }
7035
- Vue.version = `2.6.14-compat:${"3.5.2"}`;
7039
+ Vue.version = `2.6.14-compat:${"3.5.3"}`;
7036
7040
  Vue.config = singletonApp.config;
7037
7041
  Vue.use = (plugin, ...options) => {
7038
7042
  if (plugin && isFunction(plugin.install)) {
@@ -8937,7 +8941,7 @@ function baseCreateRenderer(options, createHydrationFns) {
8937
8941
  endMeasure(instance, `hydrate`);
8938
8942
  }
8939
8943
  };
8940
- if (isAsyncWrapperVNode) {
8944
+ if (isAsyncWrapperVNode && type.__asyncHydrate) {
8941
8945
  type.__asyncHydrate(
8942
8946
  el,
8943
8947
  instance,
@@ -10145,8 +10149,7 @@ function renderComponentRoot(instance) {
10145
10149
  data,
10146
10150
  setupState,
10147
10151
  ctx,
10148
- inheritAttrs,
10149
- isMounted
10152
+ inheritAttrs
10150
10153
  } = instance;
10151
10154
  const prev = setCurrentRenderingInstance(instance);
10152
10155
  let result;
@@ -10287,7 +10290,7 @@ function renderComponentRoot(instance) {
10287
10290
  `Component inside <Transition> renders non-element root node that cannot be animated.`
10288
10291
  );
10289
10292
  }
10290
- root.transition = isMounted ? vnode.component.subTree.transition : vnode.transition;
10293
+ setTransitionHooks(root, vnode.transition);
10291
10294
  }
10292
10295
  if (setRoot) {
10293
10296
  setRoot(root);
@@ -12146,7 +12149,7 @@ function isMemoSame(cached, memo) {
12146
12149
  return true;
12147
12150
  }
12148
12151
 
12149
- const version = "3.5.2";
12152
+ const version = "3.5.3";
12150
12153
  const warn = warn$1 ;
12151
12154
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
12152
12155
  const devtools = devtools$1 ;
@@ -12159,7 +12162,9 @@ const _ssrUtils = {
12159
12162
  isVNode: isVNode,
12160
12163
  normalizeVNode,
12161
12164
  getComponentPublicInstance,
12162
- ensureValidVNode
12165
+ ensureValidVNode,
12166
+ pushWarningContext,
12167
+ popWarningContext
12163
12168
  };
12164
12169
  const ssrUtils = _ssrUtils ;
12165
12170
  const resolveFilter = resolveFilter$1 ;