@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
  **/
@@ -688,6 +688,9 @@ function isDirty(sub) {
688
688
  return false;
689
689
  }
690
690
  function refreshComputed(computed) {
691
+ if (computed.flags & 2) {
692
+ return false;
693
+ }
691
694
  if (computed.flags & 4 && !(computed.flags & 16)) {
692
695
  return;
693
696
  }
@@ -1972,8 +1975,8 @@ class ComputedRefImpl {
1972
1975
  * @internal
1973
1976
  */
1974
1977
  notify() {
1975
- this.flags |= 16;
1976
1978
  if (activeSub !== this) {
1979
+ this.flags |= 16;
1977
1980
  this.dep.notify();
1978
1981
  } else if (!!(process.env.NODE_ENV !== "production")) ;
1979
1982
  }
@@ -4169,6 +4172,7 @@ function getInnerChild$1(vnode) {
4169
4172
  }
4170
4173
  function setTransitionHooks(vnode, hooks) {
4171
4174
  if (vnode.shapeFlag & 6 && vnode.component) {
4175
+ vnode.transition = hooks;
4172
4176
  setTransitionHooks(vnode.component.subTree, hooks);
4173
4177
  } else if (vnode.shapeFlag & 128) {
4174
4178
  vnode.ssContent.transition = hooks.clone(vnode.ssContent);
@@ -4213,7 +4217,7 @@ function defineComponent(options, extraOptions) {
4213
4217
  function useId() {
4214
4218
  const i = getCurrentInstance();
4215
4219
  if (i) {
4216
- return (i.appContext.config.idPrefix || "v") + ":" + i.ids[0] + i.ids[1]++;
4220
+ return (i.appContext.config.idPrefix || "v") + "-" + i.ids[0] + i.ids[1]++;
4217
4221
  } else if (!!(process.env.NODE_ENV !== "production")) {
4218
4222
  warn$1(
4219
4223
  `useId() is called when there is no active component instance to be associated with.`
@@ -7131,7 +7135,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
7131
7135
  return vm;
7132
7136
  }
7133
7137
  }
7134
- Vue.version = `2.6.14-compat:${"3.5.2"}`;
7138
+ Vue.version = `2.6.14-compat:${"3.5.3"}`;
7135
7139
  Vue.config = singletonApp.config;
7136
7140
  Vue.use = (plugin, ...options) => {
7137
7141
  if (plugin && isFunction(plugin.install)) {
@@ -9076,7 +9080,7 @@ function baseCreateRenderer(options, createHydrationFns) {
9076
9080
  endMeasure(instance, `hydrate`);
9077
9081
  }
9078
9082
  };
9079
- if (isAsyncWrapperVNode) {
9083
+ if (isAsyncWrapperVNode && type.__asyncHydrate) {
9080
9084
  type.__asyncHydrate(
9081
9085
  el,
9082
9086
  instance,
@@ -10284,8 +10288,7 @@ function renderComponentRoot(instance) {
10284
10288
  data,
10285
10289
  setupState,
10286
10290
  ctx,
10287
- inheritAttrs,
10288
- isMounted
10291
+ inheritAttrs
10289
10292
  } = instance;
10290
10293
  const prev = setCurrentRenderingInstance(instance);
10291
10294
  let result;
@@ -10426,7 +10429,7 @@ function renderComponentRoot(instance) {
10426
10429
  `Component inside <Transition> renders non-element root node that cannot be animated.`
10427
10430
  );
10428
10431
  }
10429
- root.transition = isMounted ? vnode.component.subTree.transition : vnode.transition;
10432
+ setTransitionHooks(root, vnode.transition);
10430
10433
  }
10431
10434
  if (!!(process.env.NODE_ENV !== "production") && setRoot) {
10432
10435
  setRoot(root);
@@ -12299,7 +12302,7 @@ function isMemoSame(cached, memo) {
12299
12302
  return true;
12300
12303
  }
12301
12304
 
12302
- const version = "3.5.2";
12305
+ const version = "3.5.3";
12303
12306
  const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
12304
12307
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
12305
12308
  const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
@@ -12312,7 +12315,9 @@ const _ssrUtils = {
12312
12315
  isVNode: isVNode,
12313
12316
  normalizeVNode,
12314
12317
  getComponentPublicInstance,
12315
- ensureValidVNode
12318
+ ensureValidVNode,
12319
+ pushWarningContext,
12320
+ popWarningContext
12316
12321
  };
12317
12322
  const ssrUtils = _ssrUtils ;
12318
12323
  const resolveFilter = resolveFilter$1 ;
@@ -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
  **/
@@ -691,6 +691,9 @@ var Vue = (function () {
691
691
  return false;
692
692
  }
693
693
  function refreshComputed(computed) {
694
+ if (computed.flags & 2) {
695
+ return false;
696
+ }
694
697
  if (computed.flags & 4 && !(computed.flags & 16)) {
695
698
  return;
696
699
  }
@@ -1965,8 +1968,8 @@ var Vue = (function () {
1965
1968
  * @internal
1966
1969
  */
1967
1970
  notify() {
1968
- this.flags |= 16;
1969
1971
  if (activeSub !== this) {
1972
+ this.flags |= 16;
1970
1973
  this.dep.notify();
1971
1974
  }
1972
1975
  }
@@ -4153,6 +4156,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
4153
4156
  }
4154
4157
  function setTransitionHooks(vnode, hooks) {
4155
4158
  if (vnode.shapeFlag & 6 && vnode.component) {
4159
+ vnode.transition = hooks;
4156
4160
  setTransitionHooks(vnode.component.subTree, hooks);
4157
4161
  } else if (vnode.shapeFlag & 128) {
4158
4162
  vnode.ssContent.transition = hooks.clone(vnode.ssContent);
@@ -4197,7 +4201,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
4197
4201
  function useId() {
4198
4202
  const i = getCurrentInstance();
4199
4203
  if (i) {
4200
- return (i.appContext.config.idPrefix || "v") + ":" + i.ids[0] + i.ids[1]++;
4204
+ return (i.appContext.config.idPrefix || "v") + "-" + i.ids[0] + i.ids[1]++;
4201
4205
  } else {
4202
4206
  warn$1(
4203
4207
  `useId() is called when there is no active component instance to be associated with.`
@@ -7093,7 +7097,7 @@ If this is a native custom element, make sure to exclude it from component resol
7093
7097
  return vm;
7094
7098
  }
7095
7099
  }
7096
- Vue.version = `2.6.14-compat:${"3.5.2"}`;
7100
+ Vue.version = `2.6.14-compat:${"3.5.3"}`;
7097
7101
  Vue.config = singletonApp.config;
7098
7102
  Vue.use = (plugin, ...options) => {
7099
7103
  if (plugin && isFunction(plugin.install)) {
@@ -8998,7 +9002,7 @@ If you want to remount the same app, move your app creation logic into a factory
8998
9002
  endMeasure(instance, `hydrate`);
8999
9003
  }
9000
9004
  };
9001
- if (isAsyncWrapperVNode) {
9005
+ if (isAsyncWrapperVNode && type.__asyncHydrate) {
9002
9006
  type.__asyncHydrate(
9003
9007
  el,
9004
9008
  instance,
@@ -10184,8 +10188,7 @@ If you want to remount the same app, move your app creation logic into a factory
10184
10188
  data,
10185
10189
  setupState,
10186
10190
  ctx,
10187
- inheritAttrs,
10188
- isMounted
10191
+ inheritAttrs
10189
10192
  } = instance;
10190
10193
  const prev = setCurrentRenderingInstance(instance);
10191
10194
  let result;
@@ -10326,7 +10329,7 @@ If you want to remount the same app, move your app creation logic into a factory
10326
10329
  `Component inside <Transition> renders non-element root node that cannot be animated.`
10327
10330
  );
10328
10331
  }
10329
- root.transition = isMounted ? vnode.component.subTree.transition : vnode.transition;
10332
+ setTransitionHooks(root, vnode.transition);
10330
10333
  }
10331
10334
  if (setRoot) {
10332
10335
  setRoot(root);
@@ -12171,7 +12174,7 @@ Component that was made reactive: `,
12171
12174
  return true;
12172
12175
  }
12173
12176
 
12174
- const version = "3.5.2";
12177
+ const version = "3.5.3";
12175
12178
  const warn = warn$1 ;
12176
12179
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
12177
12180
  const devtools = devtools$1 ;