@vue/compat 3.4.26 → 3.4.27

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.4.26
2
+ * @vue/compat v3.4.27
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -205,8 +205,8 @@ function stringifyStyle(styles) {
205
205
  }
206
206
  for (const key in styles) {
207
207
  const value = styles[key];
208
- const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key);
209
208
  if (isString(value) || typeof value === "number") {
209
+ const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key);
210
210
  ret += `${normalizedKey}:${value};`;
211
211
  }
212
212
  }
@@ -5603,14 +5603,7 @@ function installCompatInstanceProperties(map) {
5603
5603
  },
5604
5604
  $scopedSlots: (i) => {
5605
5605
  assertCompatEnabled("INSTANCE_SCOPED_SLOTS", i);
5606
- const res = {};
5607
- for (const key in i.slots) {
5608
- const fn = i.slots[key];
5609
- if (!fn._ns) {
5610
- res[key] = fn;
5611
- }
5612
- }
5613
- return res;
5606
+ return !!(process.env.NODE_ENV !== "production") ? shallowReadonly(i.slots) : i.slots;
5614
5607
  },
5615
5608
  $on: (i) => on.bind(null, i),
5616
5609
  $once: (i) => once.bind(null, i),
@@ -6583,7 +6576,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
6583
6576
  return vm;
6584
6577
  }
6585
6578
  }
6586
- Vue.version = `2.6.14-compat:${"3.4.26"}`;
6579
+ Vue.version = `2.6.14-compat:${"3.4.27"}`;
6587
6580
  Vue.config = singletonApp.config;
6588
6581
  Vue.use = (plugin, ...options) => {
6589
6582
  if (plugin && isFunction(plugin.install)) {
@@ -8334,7 +8327,7 @@ function propHasMismatch(el, key, clientValue, vnode, instance) {
8334
8327
  mismatchType = mismatchKey = `class`;
8335
8328
  }
8336
8329
  } else if (key === "style") {
8337
- actual = el.getAttribute("style");
8330
+ actual = el.getAttribute("style") || "";
8338
8331
  expected = isString(clientValue) ? clientValue : stringifyStyle(normalizeStyle(clientValue));
8339
8332
  const actualMap = toStyleMap(actual);
8340
8333
  const expectedMap = toStyleMap(expected);
@@ -11498,7 +11491,7 @@ function isMemoSame(cached, memo) {
11498
11491
  return true;
11499
11492
  }
11500
11493
 
11501
- const version = "3.4.26";
11494
+ const version = "3.4.27";
11502
11495
  const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
11503
11496
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
11504
11497
  const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
@@ -18122,7 +18115,7 @@ function processSlotOutlet(node, context) {
18122
18115
  };
18123
18116
  }
18124
18117
 
18125
- const fnExpRE = /^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/;
18118
+ const fnExpRE = /^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/;
18126
18119
  const transformOn$1 = (dir, node, context, augmentor) => {
18127
18120
  const { loc, modifiers, arg } = dir;
18128
18121
  if (!dir.exp && !modifiers.length) {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compat v3.4.26
2
+ * @vue/compat v3.4.27
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -208,8 +208,8 @@ var Vue = (function () {
208
208
  }
209
209
  for (const key in styles) {
210
210
  const value = styles[key];
211
- const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key);
212
211
  if (isString(value) || typeof value === "number") {
212
+ const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key);
213
213
  ret += `${normalizedKey}:${value};`;
214
214
  }
215
215
  }
@@ -5564,14 +5564,7 @@ If this is a native custom element, make sure to exclude it from component resol
5564
5564
  },
5565
5565
  $scopedSlots: (i) => {
5566
5566
  assertCompatEnabled("INSTANCE_SCOPED_SLOTS", i);
5567
- const res = {};
5568
- for (const key in i.slots) {
5569
- const fn = i.slots[key];
5570
- if (!fn._ns) {
5571
- res[key] = fn;
5572
- }
5573
- }
5574
- return res;
5567
+ return shallowReadonly(i.slots) ;
5575
5568
  },
5576
5569
  $on: (i) => on.bind(null, i),
5577
5570
  $once: (i) => once.bind(null, i),
@@ -6542,7 +6535,7 @@ If this is a native custom element, make sure to exclude it from component resol
6542
6535
  return vm;
6543
6536
  }
6544
6537
  }
6545
- Vue.version = `2.6.14-compat:${"3.4.26"}`;
6538
+ Vue.version = `2.6.14-compat:${"3.4.27"}`;
6546
6539
  Vue.config = singletonApp.config;
6547
6540
  Vue.use = (plugin, ...options) => {
6548
6541
  if (plugin && isFunction(plugin.install)) {
@@ -8280,7 +8273,7 @@ Server rendered element contains fewer child nodes than client vdom.`
8280
8273
  mismatchType = mismatchKey = `class`;
8281
8274
  }
8282
8275
  } else if (key === "style") {
8283
- actual = el.getAttribute("style");
8276
+ actual = el.getAttribute("style") || "";
8284
8277
  expected = isString(clientValue) ? clientValue : stringifyStyle(normalizeStyle(clientValue));
8285
8278
  const actualMap = toStyleMap(actual);
8286
8279
  const expectedMap = toStyleMap(expected);
@@ -11375,7 +11368,7 @@ Component that was made reactive: `,
11375
11368
  return true;
11376
11369
  }
11377
11370
 
11378
- const version = "3.4.26";
11371
+ const version = "3.4.27";
11379
11372
  const warn = warn$1 ;
11380
11373
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
11381
11374
  const devtools = devtools$1 ;
@@ -17934,7 +17927,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
17934
17927
  };
17935
17928
  }
17936
17929
 
17937
- const fnExpRE = /^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/;
17930
+ const fnExpRE = /^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/;
17938
17931
  const transformOn$1 = (dir, node, context, augmentor) => {
17939
17932
  const { loc, modifiers, arg } = dir;
17940
17933
  if (!dir.exp && !modifiers.length) {