@angular/compiler 21.0.0-next.5 → 21.0.0-next.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/compiler",
3
- "version": "21.0.0-next.5",
3
+ "version": "21.0.0-next.6",
4
4
  "description": "Angular - the compiler library",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -39,14 +39,14 @@
39
39
  "./fesm2022/compiler.mjs"
40
40
  ],
41
41
  "module": "./fesm2022/compiler.mjs",
42
- "typings": "./index.d.ts",
42
+ "typings": "./types/compiler.d.ts",
43
43
  "type": "module",
44
44
  "exports": {
45
45
  "./package.json": {
46
46
  "default": "./package.json"
47
47
  },
48
48
  ".": {
49
- "types": "./index.d.ts",
49
+ "types": "./types/compiler.d.ts",
50
50
  "default": "./fesm2022/compiler.mjs"
51
51
  }
52
52
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v21.0.0-next.5
2
+ * @license Angular v21.0.0-next.6
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -699,14 +699,6 @@ declare class RecursiveVisitor$1 implements Visitor$1 {
699
699
  private visitChildren;
700
700
  }
701
701
 
702
- declare class InterpolationConfig {
703
- start: string;
704
- end: string;
705
- static fromArray(markers: [string, string] | null): InterpolationConfig;
706
- constructor(start: string, end: string);
707
- }
708
- declare const DEFAULT_INTERPOLATION_CONFIG: InterpolationConfig;
709
-
710
702
  declare enum TagContentType {
711
703
  RAW_TEXT = 0,
712
704
  ESCAPABLE_RAW_TEXT = 1,
@@ -742,8 +734,6 @@ interface LexerRange {
742
734
  interface TokenizeOptions {
743
735
  /** Whether to tokenize ICU messages (considered as text nodes when false). */
744
736
  tokenizeExpansionForms?: boolean;
745
- /** How to tokenize interpolation markers. */
746
- interpolationConfig?: InterpolationConfig;
747
737
  /**
748
738
  * The start and end point of the text to parse within the `source` string.
749
739
  * The entire `source` string is parsed if this is not provided.
@@ -2163,7 +2153,6 @@ declare class Token {
2163
2153
  isTemplateLiteralPart(): this is StringToken;
2164
2154
  isTemplateLiteralEnd(): this is StringToken;
2165
2155
  isTemplateLiteralInterpolationStart(): boolean;
2166
- isTemplateLiteralInterpolationEnd(): boolean;
2167
2156
  toString(): string | null;
2168
2157
  }
2169
2158
  declare class StringToken extends Token {
@@ -2203,10 +2192,10 @@ declare class Parser {
2203
2192
  private readonly _lexer;
2204
2193
  private readonly _supportsDirectPipeReferences;
2205
2194
  constructor(_lexer: Lexer, _supportsDirectPipeReferences?: boolean);
2206
- parseAction(input: string, parseSourceSpan: ParseSourceSpan$1, absoluteOffset: number, interpolationConfig?: InterpolationConfig): ASTWithSource;
2207
- parseBinding(input: string, parseSourceSpan: ParseSourceSpan$1, absoluteOffset: number, interpolationConfig?: InterpolationConfig): ASTWithSource;
2195
+ parseAction(input: string, parseSourceSpan: ParseSourceSpan$1, absoluteOffset: number): ASTWithSource;
2196
+ parseBinding(input: string, parseSourceSpan: ParseSourceSpan$1, absoluteOffset: number): ASTWithSource;
2208
2197
  private checkSimpleExpression;
2209
- parseSimpleBinding(input: string, parseSourceSpan: ParseSourceSpan$1, absoluteOffset: number, interpolationConfig?: InterpolationConfig): ASTWithSource;
2198
+ parseSimpleBinding(input: string, parseSourceSpan: ParseSourceSpan$1, absoluteOffset: number): ASTWithSource;
2210
2199
  private _parseBindingAst;
2211
2200
  /**
2212
2201
  * Parse microsyntax template expression and return a list of bindings or
@@ -2235,7 +2224,7 @@ declare class Parser {
2235
2224
  * @param absoluteValueOffset start of the `templateValue`
2236
2225
  */
2237
2226
  parseTemplateBindings(templateKey: string, templateValue: string, parseSourceSpan: ParseSourceSpan$1, absoluteKeyOffset: number, absoluteValueOffset: number): TemplateBindingParseResult;
2238
- parseInterpolation(input: string, parseSourceSpan: ParseSourceSpan$1, absoluteOffset: number, interpolatedTokens: InterpolatedAttributeToken[] | InterpolatedTextToken[] | null, interpolationConfig?: InterpolationConfig): ASTWithSource | null;
2227
+ parseInterpolation(input: string, parseSourceSpan: ParseSourceSpan$1, absoluteOffset: number, interpolatedTokens: InterpolatedAttributeToken[] | InterpolatedTextToken[] | null): ASTWithSource | null;
2239
2228
  /**
2240
2229
  * Similar to `parseInterpolation`, but treats the provided string as a single expression
2241
2230
  * element that would normally appear within the interpolation prefix and suffix (`{{` and `}}`).
@@ -2250,7 +2239,7 @@ declare class Parser {
2250
2239
  * `SplitInterpolation` with splits that look like
2251
2240
  * <raw text> <expression> <raw text> ... <raw text> <expression> <raw text>
2252
2241
  */
2253
- splitInterpolation(input: string, parseSourceSpan: ParseSourceSpan$1, errors: ParseError[], interpolatedTokens: InterpolatedAttributeToken[] | InterpolatedTextToken[] | null, interpolationConfig?: InterpolationConfig): SplitInterpolation;
2242
+ splitInterpolation(input: string, parseSourceSpan: ParseSourceSpan$1, errors: ParseError[], interpolatedTokens: InterpolatedAttributeToken[] | InterpolatedTextToken[] | null): SplitInterpolation;
2254
2243
  wrapLiteralPrimitive(input: string | null, sourceSpanOrLocation: ParseSourceSpan$1 | string, absoluteOffset: number): ASTWithSource;
2255
2244
  private _stripComments;
2256
2245
  private _commentStart;
@@ -2331,7 +2320,7 @@ declare class MessageBundle {
2331
2320
  constructor(_htmlParser: HtmlParser, _implicitTags: string[], _implicitAttrs: {
2332
2321
  [k: string]: string[];
2333
2322
  }, _locale?: string | null, _preserveWhitespace?: boolean);
2334
- updateFromTemplate(source: string, url: string, interpolationConfig: InterpolationConfig): ParseError[];
2323
+ updateFromTemplate(source: string, url: string): ParseError[];
2335
2324
  getMessages(): Message[];
2336
2325
  write(serializer: Serializer, filterSources?: (path: string) => string): string;
2337
2326
  }
@@ -2512,7 +2501,6 @@ interface R3ComponentMetadataFacade extends R3DirectiveMetadataFacade {
2512
2501
  styles: string[];
2513
2502
  encapsulation: ViewEncapsulation;
2514
2503
  viewProviders: Provider[] | null;
2515
- interpolation?: [string, string];
2516
2504
  changeDetection?: ChangeDetectionStrategy;
2517
2505
  hasDirectiveDependencies: boolean;
2518
2506
  }
@@ -2571,7 +2559,6 @@ interface R3DeclareComponentFacade extends R3DeclareDirectiveFacade {
2571
2559
  animations?: OpaqueValue;
2572
2560
  changeDetection?: ChangeDetectionStrategy;
2573
2561
  encapsulation?: ViewEncapsulation;
2574
- interpolation?: [string, string];
2575
2562
  preserveWhitespaces?: boolean;
2576
2563
  }
2577
2564
  type R3DeclareTemplateDependencyFacade = {
@@ -2962,6 +2949,17 @@ declare class CompilerFacadeImpl implements CompilerFacade {
2962
2949
  }
2963
2950
  declare function publishFacade(global: any): void;
2964
2951
 
2952
+ declare class InterpolationConfig {
2953
+ start: string;
2954
+ end: string;
2955
+ static fromArray(markers: [string, string] | null): InterpolationConfig;
2956
+ constructor(start: string, end: string);
2957
+ }
2958
+ /**
2959
+ * This symbol is referenced inside G3 and will require some cleanup.
2960
+ */
2961
+ declare const DEFAULT_INTERPOLATION_CONFIG: InterpolationConfig;
2962
+
2965
2963
  declare class HtmlTagDefinition implements TagDefinition {
2966
2964
  private closedByChildren;
2967
2965
  private contentType;
@@ -3183,10 +3181,6 @@ interface R3DeclareComponentMetadata extends R3DeclareDirectiveMetadata {
3183
3181
  * Defaults to `ViewEncapsulation.Emulated`.
3184
3182
  */
3185
3183
  encapsulation?: ViewEncapsulation$1;
3186
- /**
3187
- * Overrides the default interpolation start and end delimiters. Defaults to {{ and }}.
3188
- */
3189
- interpolation?: [string, string];
3190
3184
  /**
3191
3185
  * Whether whitespace in the template should be preserved. Defaults to false.
3192
3186
  */
@@ -4131,10 +4125,6 @@ interface R3ComponentMetadata<DeclarationT extends R3TemplateDependency> extends
4131
4125
  * (used by Closure Compiler's output of `goog.getMsg` for transition period).
4132
4126
  */
4133
4127
  i18nUseExternalIds: boolean;
4134
- /**
4135
- * Overrides the default interpolation start and end delimiters ({{ and }}).
4136
- */
4137
- interpolation: InterpolationConfig;
4138
4128
  /**
4139
4129
  * Strategy used for detecting changes in the component.
4140
4130
  *
@@ -4484,11 +4474,9 @@ interface HostListeners {
4484
4474
  */
4485
4475
  declare class BindingParser {
4486
4476
  private _exprParser;
4487
- private _interpolationConfig;
4488
4477
  private _schemaRegistry;
4489
4478
  errors: ParseError[];
4490
- constructor(_exprParser: Parser, _interpolationConfig: InterpolationConfig, _schemaRegistry: ElementSchemaRegistry, errors: ParseError[]);
4491
- get interpolationConfig(): InterpolationConfig;
4479
+ constructor(_exprParser: Parser, _schemaRegistry: ElementSchemaRegistry, errors: ParseError[]);
4492
4480
  createBoundHostProperties(properties: HostProperties, sourceSpan: ParseSourceSpan$1): ParsedProperty[] | null;
4493
4481
  createDirectiveHostEventAsts(hostListeners: HostListeners, sourceSpan: ParseSourceSpan$1): ParsedEvent[] | null;
4494
4482
  parseInterpolation(value: string, sourceSpan: ParseSourceSpan$1, interpolatedTokens: InterpolatedAttributeToken[] | InterpolatedTextToken[] | null): ASTWithSource;
@@ -4575,10 +4563,6 @@ interface ParseTemplateOptions {
4575
4563
  * Preserve whitespace significant to rendering.
4576
4564
  */
4577
4565
  preserveSignificantWhitespace?: boolean;
4578
- /**
4579
- * How to parse interpolation markers.
4580
- */
4581
- interpolationConfig?: InterpolationConfig;
4582
4566
  /**
4583
4567
  * The start and end point of the text to parse within the `source` string.
4584
4568
  * The entire `source` string is parsed if this is not provided.
@@ -4674,7 +4658,7 @@ declare function parseTemplate(template: string, templateUrl: string, options?:
4674
4658
  /**
4675
4659
  * Construct a `BindingParser` with a default configuration.
4676
4660
  */
4677
- declare function makeBindingParser(interpolationConfig?: InterpolationConfig, selectorlessEnabled?: boolean): BindingParser;
4661
+ declare function makeBindingParser(selectorlessEnabled?: boolean): BindingParser;
4678
4662
  /**
4679
4663
  * Information about the template which was extracted during parsing.
4680
4664
  *
@@ -4686,10 +4670,6 @@ interface ParsedTemplate {
4686
4670
  * Include whitespace nodes in the parsed output.
4687
4671
  */
4688
4672
  preserveWhitespaces?: boolean;
4689
- /**
4690
- * How to parse interpolation markers.
4691
- */
4692
- interpolationConfig?: InterpolationConfig;
4693
4673
  /**
4694
4674
  * Any errors from parsing the template the first time.
4695
4675
  *