@vue/compat 3.5.16 → 3.5.17

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.16
2
+ * @vue/compat v3.5.17
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -784,6 +784,7 @@ class Link {
784
784
  }
785
785
  }
786
786
  class Dep {
787
+ // TODO isolatedDeclarations "__v_skip"
787
788
  constructor(computed) {
788
789
  this.computed = computed;
789
790
  this.version = 0;
@@ -804,6 +805,10 @@ class Dep {
804
805
  * Subscriber counter
805
806
  */
806
807
  this.sc = 0;
808
+ /**
809
+ * @internal
810
+ */
811
+ this.__v_skip = true;
807
812
  if (!!(process.env.NODE_ENV !== "production")) {
808
813
  this.subsHead = void 0;
809
814
  }
@@ -4968,7 +4973,7 @@ function isMismatchAllowed(el, allowedType) {
4968
4973
  if (allowedType === 0 /* TEXT */ && list.includes("children")) {
4969
4974
  return true;
4970
4975
  }
4971
- return allowedAttr.split(",").includes(MismatchTypeString[allowedType]);
4976
+ return list.includes(MismatchTypeString[allowedType]);
4972
4977
  }
4973
4978
  }
4974
4979
 
@@ -7160,7 +7165,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
7160
7165
  return vm;
7161
7166
  }
7162
7167
  }
7163
- Vue.version = `2.6.14-compat:${"3.5.16"}`;
7168
+ Vue.version = `2.6.14-compat:${"3.5.17"}`;
7164
7169
  Vue.config = singletonApp.config;
7165
7170
  Vue.use = (plugin, ...options) => {
7166
7171
  if (plugin && isFunction(plugin.install)) {
@@ -8309,6 +8314,8 @@ const assignSlots = (slots, children, optimized) => {
8309
8314
  const initSlots = (instance, children, optimized) => {
8310
8315
  const slots = instance.slots = createInternalObject();
8311
8316
  if (instance.vnode.shapeFlag & 32) {
8317
+ const cacheIndexes = children.__;
8318
+ if (cacheIndexes) def(slots, "__", cacheIndexes, true);
8312
8319
  const type = children._;
8313
8320
  if (type) {
8314
8321
  assignSlots(slots, children, optimized);
@@ -8547,6 +8554,8 @@ function baseCreateRenderer(options, createHydrationFns) {
8547
8554
  }
8548
8555
  if (ref != null && parentComponent) {
8549
8556
  setRef(ref, n1 && n1.ref, parentSuspense, n2 || n1, !n2);
8557
+ } else if (ref == null && n1 && n1.ref != null) {
8558
+ setRef(n1.ref, null, parentSuspense, n1, true);
8550
8559
  }
8551
8560
  };
8552
8561
  const processText = (n1, n2, container, anchor) => {
@@ -9121,7 +9130,8 @@ function baseCreateRenderer(options, createHydrationFns) {
9121
9130
  hydrateSubTree();
9122
9131
  }
9123
9132
  } else {
9124
- if (root.ce) {
9133
+ if (root.ce && // @ts-expect-error _def is private
9134
+ root.ce._def.shadowRoot !== false) {
9125
9135
  root.ce._injectChildStyle(type);
9126
9136
  }
9127
9137
  if (!!(process.env.NODE_ENV !== "production")) {
@@ -10217,8 +10227,9 @@ function emit(instance, event, ...rawArgs) {
10217
10227
  }
10218
10228
  }
10219
10229
  let args = rawArgs;
10220
- const isModelListener = event.startsWith("update:");
10221
- const modifiers = isModelListener && getModelModifiers(props, event.slice(7));
10230
+ const isCompatModelListener = compatModelEventPrefix + event in props;
10231
+ const isModelListener = isCompatModelListener || event.startsWith("update:");
10232
+ const modifiers = isCompatModelListener ? props.modelModifiers : isModelListener && getModelModifiers(props, event.slice(7));
10222
10233
  if (modifiers) {
10223
10234
  if (modifiers.trim) {
10224
10235
  args = rawArgs.map((a) => isString(a) ? a.trim() : a);
@@ -12370,7 +12381,7 @@ function isMemoSame(cached, memo) {
12370
12381
  return true;
12371
12382
  }
12372
12383
 
12373
- const version = "3.5.16";
12384
+ const version = "3.5.17";
12374
12385
  const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
12375
12386
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
12376
12387
  const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
@@ -13461,9 +13472,10 @@ class VueElement extends BaseClass {
13461
13472
  };
13462
13473
  const asyncDef = this._def.__asyncLoader;
13463
13474
  if (asyncDef) {
13464
- this._pendingResolve = asyncDef().then(
13465
- (def) => resolve(this._def = def, true)
13466
- );
13475
+ this._pendingResolve = asyncDef().then((def) => {
13476
+ def.configureApp = this._def.configureApp;
13477
+ resolve(this._def = def, true);
13478
+ });
13467
13479
  } else {
13468
13480
  resolve(this._def);
13469
13481
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compat v3.5.16
2
+ * @vue/compat v3.5.17
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -787,6 +787,7 @@ var Vue = (function () {
787
787
  }
788
788
  }
789
789
  class Dep {
790
+ // TODO isolatedDeclarations "__v_skip"
790
791
  constructor(computed) {
791
792
  this.computed = computed;
792
793
  this.version = 0;
@@ -807,6 +808,10 @@ var Vue = (function () {
807
808
  * Subscriber counter
808
809
  */
809
810
  this.sc = 0;
811
+ /**
812
+ * @internal
813
+ */
814
+ this.__v_skip = true;
810
815
  {
811
816
  this.subsHead = void 0;
812
817
  }
@@ -4941,7 +4946,7 @@ Server rendered element contains fewer child nodes than client vdom.`
4941
4946
  if (allowedType === 0 /* TEXT */ && list.includes("children")) {
4942
4947
  return true;
4943
4948
  }
4944
- return allowedAttr.split(",").includes(MismatchTypeString[allowedType]);
4949
+ return list.includes(MismatchTypeString[allowedType]);
4945
4950
  }
4946
4951
  }
4947
4952
 
@@ -7122,7 +7127,7 @@ If this is a native custom element, make sure to exclude it from component resol
7122
7127
  return vm;
7123
7128
  }
7124
7129
  }
7125
- Vue.version = `2.6.14-compat:${"3.5.16"}`;
7130
+ Vue.version = `2.6.14-compat:${"3.5.17"}`;
7126
7131
  Vue.config = singletonApp.config;
7127
7132
  Vue.use = (plugin, ...options) => {
7128
7133
  if (plugin && isFunction(plugin.install)) {
@@ -8269,6 +8274,8 @@ If you want to remount the same app, move your app creation logic into a factory
8269
8274
  const initSlots = (instance, children, optimized) => {
8270
8275
  const slots = instance.slots = createInternalObject();
8271
8276
  if (instance.vnode.shapeFlag & 32) {
8277
+ const cacheIndexes = children.__;
8278
+ if (cacheIndexes) def(slots, "__", cacheIndexes, true);
8272
8279
  const type = children._;
8273
8280
  if (type) {
8274
8281
  assignSlots(slots, children, optimized);
@@ -8480,6 +8487,8 @@ If you want to remount the same app, move your app creation logic into a factory
8480
8487
  }
8481
8488
  if (ref != null && parentComponent) {
8482
8489
  setRef(ref, n1 && n1.ref, parentSuspense, n2 || n1, !n2);
8490
+ } else if (ref == null && n1 && n1.ref != null) {
8491
+ setRef(n1.ref, null, parentSuspense, n1, true);
8483
8492
  }
8484
8493
  };
8485
8494
  const processText = (n1, n2, container, anchor) => {
@@ -9043,7 +9052,8 @@ If you want to remount the same app, move your app creation logic into a factory
9043
9052
  hydrateSubTree();
9044
9053
  }
9045
9054
  } else {
9046
- if (root.ce) {
9055
+ if (root.ce && // @ts-expect-error _def is private
9056
+ root.ce._def.shadowRoot !== false) {
9047
9057
  root.ce._injectChildStyle(type);
9048
9058
  }
9049
9059
  {
@@ -10111,8 +10121,9 @@ If you want to remount the same app, move your app creation logic into a factory
10111
10121
  }
10112
10122
  }
10113
10123
  let args = rawArgs;
10114
- const isModelListener = event.startsWith("update:");
10115
- const modifiers = isModelListener && getModelModifiers(props, event.slice(7));
10124
+ const isCompatModelListener = compatModelEventPrefix + event in props;
10125
+ const isModelListener = isCompatModelListener || event.startsWith("update:");
10126
+ const modifiers = isCompatModelListener ? props.modelModifiers : isModelListener && getModelModifiers(props, event.slice(7));
10116
10127
  if (modifiers) {
10117
10128
  if (modifiers.trim) {
10118
10129
  args = rawArgs.map((a) => isString(a) ? a.trim() : a);
@@ -12236,7 +12247,7 @@ Component that was made reactive: `,
12236
12247
  return true;
12237
12248
  }
12238
12249
 
12239
- const version = "3.5.16";
12250
+ const version = "3.5.17";
12240
12251
  const warn = warn$1 ;
12241
12252
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
12242
12253
  const devtools = devtools$1 ;
@@ -13308,9 +13319,10 @@ Expected function or array of functions, received type ${typeof value}.`
13308
13319
  };
13309
13320
  const asyncDef = this._def.__asyncLoader;
13310
13321
  if (asyncDef) {
13311
- this._pendingResolve = asyncDef().then(
13312
- (def) => resolve(this._def = def, true)
13313
- );
13322
+ this._pendingResolve = asyncDef().then((def) => {
13323
+ def.configureApp = this._def.configureApp;
13324
+ resolve(this._def = def, true);
13325
+ });
13314
13326
  } else {
13315
13327
  resolve(this._def);
13316
13328
  }