@vue/compat 3.4.0-beta.4 → 3.4.0-rc.2

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.
@@ -1448,9 +1448,6 @@ const TriggerOpTypes = {
1448
1448
  "CLEAR": "clear"
1449
1449
  };
1450
1450
 
1451
- function warn$1(msg, ...args) {
1452
- return;
1453
- }
1454
1451
  function assertNumber(val, type) {
1455
1452
  return;
1456
1453
  }
@@ -1679,38 +1676,6 @@ function flushJobs(seen) {
1679
1676
  }
1680
1677
  }
1681
1678
 
1682
- let devtools;
1683
- let buffer = [];
1684
- function setDevtoolsHook(hook, target) {
1685
- var _a, _b;
1686
- devtools = hook;
1687
- if (devtools) {
1688
- devtools.enabled = true;
1689
- buffer.forEach(({ event, args }) => devtools.emit(event, ...args));
1690
- buffer = [];
1691
- } else if (
1692
- // handle late devtools injection - only do this if we are in an actual
1693
- // browser environment to avoid the timer handle stalling test runner exit
1694
- // (#4815)
1695
- typeof window !== "undefined" && // some envs mock window but not fully
1696
- window.HTMLElement && // also exclude jsdom
1697
- !((_b = (_a = window.navigator) == null ? void 0 : _a.userAgent) == null ? void 0 : _b.includes("jsdom"))
1698
- ) {
1699
- const replay = target.__VUE_DEVTOOLS_HOOK_REPLAY__ = target.__VUE_DEVTOOLS_HOOK_REPLAY__ || [];
1700
- replay.push((newHook) => {
1701
- setDevtoolsHook(newHook, target);
1702
- });
1703
- setTimeout(() => {
1704
- if (!devtools) {
1705
- target.__VUE_DEVTOOLS_HOOK_REPLAY__ = null;
1706
- buffer = [];
1707
- }
1708
- }, 3e3);
1709
- } else {
1710
- buffer = [];
1711
- }
1712
- }
1713
-
1714
1679
  const DeprecationTypes$1 = {
1715
1680
  "GLOBAL_MOUNT": "GLOBAL_MOUNT",
1716
1681
  "GLOBAL_MOUNT_CONTAINER": "GLOBAL_MOUNT_CONTAINER",
@@ -5254,7 +5219,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
5254
5219
  return vm;
5255
5220
  }
5256
5221
  }
5257
- Vue.version = `2.6.14-compat:${"3.4.0-beta.4"}`;
5222
+ Vue.version = `2.6.14-compat:${"3.4.0-rc.2"}`;
5258
5223
  Vue.config = singletonApp.config;
5259
5224
  Vue.use = (p, ...options) => {
5260
5225
  if (p && isFunction(p.install)) {
@@ -9063,8 +9028,11 @@ function isMemoSame(cached, memo) {
9063
9028
  return true;
9064
9029
  }
9065
9030
 
9066
- const version = "3.4.0-beta.4";
9031
+ const version = "3.4.0-rc.2";
9032
+ const warn$1 = NOOP;
9067
9033
  const ErrorTypeStrings = null;
9034
+ const devtools = void 0;
9035
+ const setDevtoolsHook = NOOP;
9068
9036
  const _ssrUtils = {
9069
9037
  createComponentInstance,
9070
9038
  setupComponent,
@@ -10654,7 +10622,7 @@ var runtimeDom = /*#__PURE__*/Object.freeze({
10654
10622
  defineProps: defineProps,
10655
10623
  defineSSRCustomElement: defineSSRCustomElement,
10656
10624
  defineSlots: defineSlots,
10657
- get devtools () { return devtools; },
10625
+ devtools: devtools,
10658
10626
  effect: effect,
10659
10627
  effectScope: effectScope,
10660
10628
  getCurrentInstance: getCurrentInstance,
@@ -12557,12 +12525,6 @@ const tokenizer = new Tokenizer(stack, {
12557
12525
  loc: getLoc(start - 1, end),
12558
12526
  codegenNode: void 0
12559
12527
  };
12560
- if (tokenizer.inSFCRoot) {
12561
- currentOpenTag.innerLoc = getLoc(
12562
- end + fastForward(end) + 1,
12563
- end
12564
- );
12565
- }
12566
12528
  },
12567
12529
  onopentagend(end) {
12568
12530
  endOpenTag(end);
@@ -12890,6 +12852,9 @@ function getSlice(start, end) {
12890
12852
  return currentInput.slice(start, end);
12891
12853
  }
12892
12854
  function endOpenTag(end) {
12855
+ if (tokenizer.inSFCRoot) {
12856
+ currentOpenTag.innerLoc = getLoc(end + 1, end + 1);
12857
+ }
12893
12858
  addNode(currentOpenTag);
12894
12859
  const { tag, ns } = currentOpenTag;
12895
12860
  if (ns === 0 && currentOptions.isPreTag(tag)) {
@@ -12923,7 +12888,7 @@ function onCloseTag(el, end, isImplied = false) {
12923
12888
  if (isImplied) {
12924
12889
  setLocEnd(el.loc, backTrack(end, 60));
12925
12890
  } else {
12926
- setLocEnd(el.loc, end + fastForward(end) + 1);
12891
+ setLocEnd(el.loc, end + 1);
12927
12892
  }
12928
12893
  if (tokenizer.inSFCRoot) {
12929
12894
  if (el.children.length) {
@@ -12988,13 +12953,6 @@ function onCloseTag(el, end, isImplied = false) {
12988
12953
  }
12989
12954
  }
12990
12955
  }
12991
- function fastForward(start, c) {
12992
- let offset = 0;
12993
- while (currentInput.charCodeAt(start + offset) !== 62 && start + offset < currentInput.length) {
12994
- offset++;
12995
- }
12996
- return offset;
12997
- }
12998
12956
  function backTrack(index, c) {
12999
12957
  let i = index;
13000
12958
  while (currentInput.charCodeAt(i) !== c && i >= 0)