@vue/compiler-sfc 3.5.0-alpha.5 → 3.5.0-beta.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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compiler-sfc v3.5.0-alpha.5
2
+ * @vue/compiler-sfc v3.5.0-beta.2
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -1831,8 +1831,7 @@ function parse$2(source, options = {}) {
1831
1831
  pad = false,
1832
1832
  ignoreEmpty = true,
1833
1833
  compiler = CompilerDOM__namespace,
1834
- templateParseOptions = {},
1835
- parseExpressions = true
1834
+ templateParseOptions = {}
1836
1835
  } = options;
1837
1836
  const descriptor = {
1838
1837
  filename,
@@ -1849,7 +1848,7 @@ function parse$2(source, options = {}) {
1849
1848
  const errors = [];
1850
1849
  const ast = compiler.parse(source, {
1851
1850
  parseMode: "sfc",
1852
- prefixIdentifiers: parseExpressions,
1851
+ prefixIdentifiers: true,
1853
1852
  ...templateParseOptions,
1854
1853
  onError: (e) => {
1855
1854
  errors.push(e);
@@ -19144,7 +19143,7 @@ function inferRuntimeType(ctx, node, scope = node._ownerScope || ctxToScope(ctx)
19144
19143
  return ["Symbol"];
19145
19144
  case "TSIndexedAccessType": {
19146
19145
  const types = resolveIndexType(ctx, node, scope);
19147
- return flattenTypes(ctx, types, scope);
19146
+ return flattenTypes(ctx, types, scope, isKeyOf);
19148
19147
  }
19149
19148
  case "ClassDeclaration":
19150
19149
  return ["Object"];
@@ -20856,7 +20855,7 @@ function isStaticNode(node) {
20856
20855
  return false;
20857
20856
  }
20858
20857
 
20859
- const version = "3.5.0-alpha.5";
20858
+ const version = "3.5.0-beta.2";
20860
20859
  const parseCache = parseCache$1;
20861
20860
  const errorMessages = {
20862
20861
  ...CompilerDOM.errorMessages,
@@ -160,11 +160,6 @@ export interface SFCParseOptions {
160
160
  ignoreEmpty?: boolean;
161
161
  compiler?: TemplateCompiler;
162
162
  templateParseOptions?: ParserOptions;
163
- /**
164
- * TODO remove in 3.5
165
- * @deprecated use `templateParseOptions: { prefixIdentifiers: false }` instead
166
- */
167
- parseExpressions?: boolean;
168
163
  }
169
164
  export interface SFCBlock {
170
165
  type: string;
@@ -475,62 +470,7 @@ export declare function extractRuntimeEmits(ctx: TypeResolveContext): Set<string
475
470
  export declare const version: string;
476
471
 
477
472
  export declare const parseCache: Map<string, SFCParseResult>;
478
- export declare const errorMessages: {
479
- 0: string;
480
- 1: string;
481
- 2: string;
482
- 3: string;
483
- 4: string;
484
- 5: string;
485
- 6: string;
486
- 7: string;
487
- 8: string;
488
- 9: string;
489
- 10: string;
490
- 11: string;
491
- 12: string;
492
- 13: string;
493
- 14: string;
494
- 15: string;
495
- 16: string;
496
- 17: string;
497
- 18: string;
498
- 19: string;
499
- 20: string;
500
- 21: string;
501
- 22: string;
502
- 23: string;
503
- 24: string;
504
- 25: string;
505
- 26: string;
506
- 27: string;
507
- 28: string;
508
- 29: string;
509
- 30: string;
510
- 31: string;
511
- 32: string;
512
- 33: string;
513
- 34: string;
514
- 35: string;
515
- 36: string;
516
- 37: string;
517
- 38: string;
518
- 39: string;
519
- 40: string;
520
- 41: string;
521
- 42: string;
522
- 43: string;
523
- 44: string;
524
- 45: string;
525
- 46: string;
526
- 47: string;
527
- 48: string;
528
- 49: string;
529
- 50: string;
530
- 51: string;
531
- 52: string;
532
- 53: string;
533
- };
473
+ export declare const errorMessages: Record<number, string>;
534
474
 
535
475
  export declare const walk: any;
536
476