@vue/compat 3.3.0 → 3.3.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.
package/dist/vue.cjs.js CHANGED
@@ -3566,7 +3566,7 @@ function hydrateSuspense(node, vnode, parentComponent, parentSuspense, isSVG, sl
3566
3566
  optimized
3567
3567
  );
3568
3568
  if (suspense.deps === 0) {
3569
- suspense.resolve();
3569
+ suspense.resolve(false, true);
3570
3570
  }
3571
3571
  return result;
3572
3572
  }
@@ -6355,7 +6355,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
6355
6355
  return vm;
6356
6356
  }
6357
6357
  }
6358
- Vue.version = `2.6.14-compat:${"3.3.0"}`;
6358
+ Vue.version = `2.6.14-compat:${"3.3.2"}`;
6359
6359
  Vue.config = singletonApp.config;
6360
6360
  Vue.use = (p, ...options) => {
6361
6361
  if (p && isFunction(p.install)) {
@@ -10896,7 +10896,7 @@ function isMemoSame(cached, memo) {
10896
10896
  return true;
10897
10897
  }
10898
10898
 
10899
- const version = "3.3.0";
10899
+ const version = "3.3.2";
10900
10900
  const _ssrUtils = {
10901
10901
  createComponentInstance,
10902
10902
  setupComponent,
@@ -15645,6 +15645,7 @@ const TS_NODE_TYPES = [
15645
15645
  ];
15646
15646
 
15647
15647
  const isLiteralWhitelisted = /* @__PURE__ */ makeMap("true,false,null,this");
15648
+ const constantBailRE = /\w\s*\(|\.[^\d]/;
15648
15649
  const transformExpression = (node, context) => {
15649
15650
  if (node.type === 5) {
15650
15651
  node.content = processExpression(
@@ -15734,7 +15735,7 @@ function processExpression(node, context, asParams = false, asRawStatements = fa
15734
15735
  return `_ctx.${raw}`;
15735
15736
  };
15736
15737
  const rawExp = node.content;
15737
- const bailConstant = rawExp.indexOf(`(`) > -1 || rawExp.indexOf(".") > 0;
15738
+ const bailConstant = constantBailRE.test(rawExp);
15738
15739
  if (isSimpleIdentifier(rawExp)) {
15739
15740
  const isScopeVarReference = context.identifiers[rawExp];
15740
15741
  const isAllowedGlobal = isGloballyWhitelisted(rawExp);
@@ -20894,7 +20895,10 @@ function evaluateConstant(exp) {
20894
20895
  const ignoreSideEffectTags = (node, context) => {
20895
20896
  if (node.type === 1 && node.tagType === 0 && (node.tag === "script" || node.tag === "style")) {
20896
20897
  context.onError(
20897
- createDOMCompilerError(63, node.loc)
20898
+ createDOMCompilerError(
20899
+ 63,
20900
+ node.loc
20901
+ )
20898
20902
  );
20899
20903
  context.removeNode();
20900
20904
  }
@@ -2632,7 +2632,7 @@ function hydrateSuspense(node, vnode, parentComponent, parentSuspense, isSVG, sl
2632
2632
  optimized
2633
2633
  );
2634
2634
  if (suspense.deps === 0) {
2635
- suspense.resolve();
2635
+ suspense.resolve(false, true);
2636
2636
  }
2637
2637
  return result;
2638
2638
  }
@@ -5073,7 +5073,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
5073
5073
  return vm;
5074
5074
  }
5075
5075
  }
5076
- Vue.version = `2.6.14-compat:${"3.3.0"}`;
5076
+ Vue.version = `2.6.14-compat:${"3.3.2"}`;
5077
5077
  Vue.config = singletonApp.config;
5078
5078
  Vue.use = (p, ...options) => {
5079
5079
  if (p && isFunction(p.install)) {
@@ -8757,7 +8757,7 @@ function isMemoSame(cached, memo) {
8757
8757
  return true;
8758
8758
  }
8759
8759
 
8760
- const version = "3.3.0";
8760
+ const version = "3.3.2";
8761
8761
  const _ssrUtils = {
8762
8762
  createComponentInstance,
8763
8763
  setupComponent,
@@ -13259,6 +13259,7 @@ const TS_NODE_TYPES = [
13259
13259
  ];
13260
13260
 
13261
13261
  const isLiteralWhitelisted = /* @__PURE__ */ makeMap("true,false,null,this");
13262
+ const constantBailRE = /\w\s*\(|\.[^\d]/;
13262
13263
  const transformExpression = (node, context) => {
13263
13264
  if (node.type === 5) {
13264
13265
  node.content = processExpression(
@@ -13348,7 +13349,7 @@ function processExpression(node, context, asParams = false, asRawStatements = fa
13348
13349
  return `_ctx.${raw}`;
13349
13350
  };
13350
13351
  const rawExp = node.content;
13351
- const bailConstant = rawExp.indexOf(`(`) > -1 || rawExp.indexOf(".") > 0;
13352
+ const bailConstant = constantBailRE.test(rawExp);
13352
13353
  if (isSimpleIdentifier(rawExp)) {
13353
13354
  const isScopeVarReference = context.identifiers[rawExp];
13354
13355
  const isAllowedGlobal = isGloballyWhitelisted(rawExp);
@@ -18381,9 +18382,6 @@ function evaluateConstant(exp) {
18381
18382
 
18382
18383
  const ignoreSideEffectTags = (node, context) => {
18383
18384
  if (node.type === 1 && node.tagType === 0 && (node.tag === "script" || node.tag === "style")) {
18384
- context.onError(
18385
- createDOMCompilerError(63, node.loc)
18386
- );
18387
18385
  context.removeNode();
18388
18386
  }
18389
18387
  };
@@ -3493,7 +3493,7 @@ function hydrateSuspense(node, vnode, parentComponent, parentSuspense, isSVG, sl
3493
3493
  optimized
3494
3494
  );
3495
3495
  if (suspense.deps === 0) {
3496
- suspense.resolve();
3496
+ suspense.resolve(false, true);
3497
3497
  }
3498
3498
  return result;
3499
3499
  }
@@ -6255,7 +6255,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
6255
6255
  return vm;
6256
6256
  }
6257
6257
  }
6258
- Vue.version = `2.6.14-compat:${"3.3.0"}`;
6258
+ Vue.version = `2.6.14-compat:${"3.3.2"}`;
6259
6259
  Vue.config = singletonApp.config;
6260
6260
  Vue.use = (p, ...options) => {
6261
6261
  if (p && isFunction(p.install)) {
@@ -10784,7 +10784,7 @@ function isMemoSame(cached, memo) {
10784
10784
  return true;
10785
10785
  }
10786
10786
 
10787
- const version = "3.3.0";
10787
+ const version = "3.3.2";
10788
10788
  const ssrUtils = null;
10789
10789
  const resolveFilter = resolveFilter$1 ;
10790
10790
  const _compatUtils = {
@@ -17495,7 +17495,10 @@ function hasMultipleChildren(node) {
17495
17495
  const ignoreSideEffectTags = (node, context) => {
17496
17496
  if (node.type === 1 && node.tagType === 0 && (node.tag === "script" || node.tag === "style")) {
17497
17497
  context.onError(
17498
- createDOMCompilerError(63, node.loc)
17498
+ createDOMCompilerError(
17499
+ 63,
17500
+ node.loc
17501
+ )
17499
17502
  );
17500
17503
  context.removeNode();
17501
17504
  }