@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.
package/dist/vue.cjs.js CHANGED
@@ -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
  **/
@@ -738,6 +738,9 @@ function isDirty(sub) {
738
738
  return false;
739
739
  }
740
740
  function refreshComputed(computed) {
741
+ if (computed.flags & 2) {
742
+ return false;
743
+ }
741
744
  if (computed.flags & 4 && !(computed.flags & 16)) {
742
745
  return;
743
746
  }
@@ -2012,8 +2015,8 @@ class ComputedRefImpl {
2012
2015
  * @internal
2013
2016
  */
2014
2017
  notify() {
2015
- this.flags |= 16;
2016
2018
  if (activeSub !== this) {
2019
+ this.flags |= 16;
2017
2020
  this.dep.notify();
2018
2021
  }
2019
2022
  }
@@ -4200,6 +4203,7 @@ function getInnerChild$1(vnode) {
4200
4203
  }
4201
4204
  function setTransitionHooks(vnode, hooks) {
4202
4205
  if (vnode.shapeFlag & 6 && vnode.component) {
4206
+ vnode.transition = hooks;
4203
4207
  setTransitionHooks(vnode.component.subTree, hooks);
4204
4208
  } else if (vnode.shapeFlag & 128) {
4205
4209
  vnode.ssContent.transition = hooks.clone(vnode.ssContent);
@@ -4244,7 +4248,7 @@ function defineComponent(options, extraOptions) {
4244
4248
  function useId() {
4245
4249
  const i = getCurrentInstance();
4246
4250
  if (i) {
4247
- return (i.appContext.config.idPrefix || "v") + ":" + i.ids[0] + i.ids[1]++;
4251
+ return (i.appContext.config.idPrefix || "v") + "-" + i.ids[0] + i.ids[1]++;
4248
4252
  } else {
4249
4253
  warn$1(
4250
4254
  `useId() is called when there is no active component instance to be associated with.`
@@ -7149,7 +7153,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
7149
7153
  return vm;
7150
7154
  }
7151
7155
  }
7152
- Vue.version = `2.6.14-compat:${"3.5.2"}`;
7156
+ Vue.version = `2.6.14-compat:${"3.5.3"}`;
7153
7157
  Vue.config = singletonApp.config;
7154
7158
  Vue.use = (plugin, ...options) => {
7155
7159
  if (plugin && isFunction(plugin.install)) {
@@ -9054,7 +9058,7 @@ function baseCreateRenderer(options, createHydrationFns) {
9054
9058
  endMeasure(instance, `hydrate`);
9055
9059
  }
9056
9060
  };
9057
- if (isAsyncWrapperVNode) {
9061
+ if (isAsyncWrapperVNode && type.__asyncHydrate) {
9058
9062
  type.__asyncHydrate(
9059
9063
  el,
9060
9064
  instance,
@@ -10262,8 +10266,7 @@ function renderComponentRoot(instance) {
10262
10266
  data,
10263
10267
  setupState,
10264
10268
  ctx,
10265
- inheritAttrs,
10266
- isMounted
10269
+ inheritAttrs
10267
10270
  } = instance;
10268
10271
  const prev = setCurrentRenderingInstance(instance);
10269
10272
  let result;
@@ -10404,7 +10407,7 @@ function renderComponentRoot(instance) {
10404
10407
  `Component inside <Transition> renders non-element root node that cannot be animated.`
10405
10408
  );
10406
10409
  }
10407
- root.transition = isMounted ? vnode.component.subTree.transition : vnode.transition;
10410
+ setTransitionHooks(root, vnode.transition);
10408
10411
  }
10409
10412
  if (setRoot) {
10410
10413
  setRoot(root);
@@ -12263,7 +12266,7 @@ function isMemoSame(cached, memo) {
12263
12266
  return true;
12264
12267
  }
12265
12268
 
12266
- const version = "3.5.2";
12269
+ const version = "3.5.3";
12267
12270
  const warn = warn$1 ;
12268
12271
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
12269
12272
  const devtools = devtools$1 ;
@@ -12276,7 +12279,9 @@ const _ssrUtils = {
12276
12279
  isVNode: isVNode,
12277
12280
  normalizeVNode,
12278
12281
  getComponentPublicInstance,
12279
- ensureValidVNode
12282
+ ensureValidVNode,
12283
+ pushWarningContext,
12284
+ popWarningContext
12280
12285
  };
12281
12286
  const ssrUtils = _ssrUtils ;
12282
12287
  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
  **/
@@ -644,6 +644,9 @@ function isDirty(sub) {
644
644
  return false;
645
645
  }
646
646
  function refreshComputed(computed) {
647
+ if (computed.flags & 2) {
648
+ return false;
649
+ }
647
650
  if (computed.flags & 4 && !(computed.flags & 16)) {
648
651
  return;
649
652
  }
@@ -1820,8 +1823,8 @@ class ComputedRefImpl {
1820
1823
  * @internal
1821
1824
  */
1822
1825
  notify() {
1823
- this.flags |= 16;
1824
1826
  if (activeSub !== this) {
1827
+ this.flags |= 16;
1825
1828
  this.dep.notify();
1826
1829
  }
1827
1830
  }
@@ -2060,6 +2063,10 @@ function traverse(value, depth = Infinity, seen) {
2060
2063
  return value;
2061
2064
  }
2062
2065
 
2066
+ function pushWarningContext(vnode) {
2067
+ }
2068
+ function popWarningContext() {
2069
+ }
2063
2070
  function assertNumber(val, type) {
2064
2071
  return;
2065
2072
  }
@@ -3278,6 +3285,7 @@ function getInnerChild$1(vnode) {
3278
3285
  }
3279
3286
  function setTransitionHooks(vnode, hooks) {
3280
3287
  if (vnode.shapeFlag & 6 && vnode.component) {
3288
+ vnode.transition = hooks;
3281
3289
  setTransitionHooks(vnode.component.subTree, hooks);
3282
3290
  } else if (vnode.shapeFlag & 128) {
3283
3291
  vnode.ssContent.transition = hooks.clone(vnode.ssContent);
@@ -3322,7 +3330,7 @@ function defineComponent(options, extraOptions) {
3322
3330
  function useId() {
3323
3331
  const i = getCurrentInstance();
3324
3332
  if (i) {
3325
- return (i.appContext.config.idPrefix || "v") + ":" + i.ids[0] + i.ids[1]++;
3333
+ return (i.appContext.config.idPrefix || "v") + "-" + i.ids[0] + i.ids[1]++;
3326
3334
  }
3327
3335
  }
3328
3336
  function markAsyncBoundary(instance) {
@@ -5735,7 +5743,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
5735
5743
  return vm;
5736
5744
  }
5737
5745
  }
5738
- Vue.version = `2.6.14-compat:${"3.5.2"}`;
5746
+ Vue.version = `2.6.14-compat:${"3.5.3"}`;
5739
5747
  Vue.config = singletonApp.config;
5740
5748
  Vue.use = (plugin, ...options) => {
5741
5749
  if (plugin && isFunction(plugin.install)) {
@@ -7262,7 +7270,7 @@ function baseCreateRenderer(options, createHydrationFns) {
7262
7270
  null
7263
7271
  );
7264
7272
  };
7265
- if (isAsyncWrapperVNode) {
7273
+ if (isAsyncWrapperVNode && type.__asyncHydrate) {
7266
7274
  type.__asyncHydrate(
7267
7275
  el,
7268
7276
  instance,
@@ -8327,8 +8335,7 @@ function renderComponentRoot(instance) {
8327
8335
  data,
8328
8336
  setupState,
8329
8337
  ctx,
8330
- inheritAttrs,
8331
- isMounted
8338
+ inheritAttrs
8332
8339
  } = instance;
8333
8340
  const prev = setCurrentRenderingInstance(instance);
8334
8341
  let result;
@@ -8419,7 +8426,7 @@ function renderComponentRoot(instance) {
8419
8426
  root.dirs = root.dirs ? root.dirs.concat(vnode.dirs) : vnode.dirs;
8420
8427
  }
8421
8428
  if (vnode.transition) {
8422
- root.transition = isMounted ? vnode.component.subTree.transition : vnode.transition;
8429
+ setTransitionHooks(root, vnode.transition);
8423
8430
  }
8424
8431
  {
8425
8432
  result = root;
@@ -9856,7 +9863,7 @@ function isMemoSame(cached, memo) {
9856
9863
  return true;
9857
9864
  }
9858
9865
 
9859
- const version = "3.5.2";
9866
+ const version = "3.5.3";
9860
9867
  const warn$1 = NOOP;
9861
9868
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
9862
9869
  const devtools = void 0;
@@ -9869,7 +9876,9 @@ const _ssrUtils = {
9869
9876
  isVNode: isVNode,
9870
9877
  normalizeVNode,
9871
9878
  getComponentPublicInstance,
9872
- ensureValidVNode
9879
+ ensureValidVNode,
9880
+ pushWarningContext,
9881
+ popWarningContext
9873
9882
  };
9874
9883
  const ssrUtils = _ssrUtils ;
9875
9884
  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
  **/
@@ -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
  }
@@ -1962,8 +1965,8 @@ class ComputedRefImpl {
1962
1965
  * @internal
1963
1966
  */
1964
1967
  notify() {
1965
- this.flags |= 16;
1966
1968
  if (activeSub !== this) {
1969
+ this.flags |= 16;
1967
1970
  this.dep.notify();
1968
1971
  }
1969
1972
  }
@@ -4150,6 +4153,7 @@ function getInnerChild$1(vnode) {
4150
4153
  }
4151
4154
  function setTransitionHooks(vnode, hooks) {
4152
4155
  if (vnode.shapeFlag & 6 && vnode.component) {
4156
+ vnode.transition = hooks;
4153
4157
  setTransitionHooks(vnode.component.subTree, hooks);
4154
4158
  } else if (vnode.shapeFlag & 128) {
4155
4159
  vnode.ssContent.transition = hooks.clone(vnode.ssContent);
@@ -4194,7 +4198,7 @@ function defineComponent(options, extraOptions) {
4194
4198
  function useId() {
4195
4199
  const i = getCurrentInstance();
4196
4200
  if (i) {
4197
- return (i.appContext.config.idPrefix || "v") + ":" + i.ids[0] + i.ids[1]++;
4201
+ return (i.appContext.config.idPrefix || "v") + "-" + i.ids[0] + i.ids[1]++;
4198
4202
  } else {
4199
4203
  warn$1(
4200
4204
  `useId() is called when there is no active component instance to be associated with.`
@@ -7099,7 +7103,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
7099
7103
  return vm;
7100
7104
  }
7101
7105
  }
7102
- Vue.version = `2.6.14-compat:${"3.5.2"}`;
7106
+ Vue.version = `2.6.14-compat:${"3.5.3"}`;
7103
7107
  Vue.config = singletonApp.config;
7104
7108
  Vue.use = (plugin, ...options) => {
7105
7109
  if (plugin && isFunction(plugin.install)) {
@@ -9004,7 +9008,7 @@ function baseCreateRenderer(options, createHydrationFns) {
9004
9008
  endMeasure(instance, `hydrate`);
9005
9009
  }
9006
9010
  };
9007
- if (isAsyncWrapperVNode) {
9011
+ if (isAsyncWrapperVNode && type.__asyncHydrate) {
9008
9012
  type.__asyncHydrate(
9009
9013
  el,
9010
9014
  instance,
@@ -10212,8 +10216,7 @@ function renderComponentRoot(instance) {
10212
10216
  data,
10213
10217
  setupState,
10214
10218
  ctx,
10215
- inheritAttrs,
10216
- isMounted
10219
+ inheritAttrs
10217
10220
  } = instance;
10218
10221
  const prev = setCurrentRenderingInstance(instance);
10219
10222
  let result;
@@ -10354,7 +10357,7 @@ function renderComponentRoot(instance) {
10354
10357
  `Component inside <Transition> renders non-element root node that cannot be animated.`
10355
10358
  );
10356
10359
  }
10357
- root.transition = isMounted ? vnode.component.subTree.transition : vnode.transition;
10360
+ setTransitionHooks(root, vnode.transition);
10358
10361
  }
10359
10362
  if (setRoot) {
10360
10363
  setRoot(root);
@@ -12213,7 +12216,7 @@ function isMemoSame(cached, memo) {
12213
12216
  return true;
12214
12217
  }
12215
12218
 
12216
- const version = "3.5.2";
12219
+ const version = "3.5.3";
12217
12220
  const warn = warn$1 ;
12218
12221
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
12219
12222
  const devtools = devtools$1 ;
@@ -12226,7 +12229,9 @@ const _ssrUtils = {
12226
12229
  isVNode: isVNode,
12227
12230
  normalizeVNode,
12228
12231
  getComponentPublicInstance,
12229
- ensureValidVNode
12232
+ ensureValidVNode,
12233
+ pushWarningContext,
12234
+ popWarningContext
12230
12235
  };
12231
12236
  const ssrUtils = _ssrUtils ;
12232
12237
  const resolveFilter = resolveFilter$1 ;