@angular/compiler-cli 21.0.0-next.1 → 21.0.0-next.10

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.
Files changed (51) hide show
  1. package/bundles/{chunk-5Y5LZ46S.js → chunk-3CWKYDQ7.js} +16979 -16238
  2. package/bundles/{chunk-BPDNYZBC.js → chunk-DT6FD4OE.js} +3 -17
  3. package/bundles/{chunk-L4DVGWMZ.js → chunk-HSIRUBJU.js} +1 -1
  4. package/bundles/{chunk-I2BHWRAU.js → chunk-LS5RJ5CS.js} +3 -0
  5. package/bundles/chunk-ZOLVJRLX.js +644 -0
  6. package/bundles/{chunk-UGSARQ4S.js → chunk-ZOZ6XVF3.js} +436 -839
  7. package/bundles/index.js +19 -19
  8. package/bundles/linker/babel/index.js +5 -2
  9. package/bundles/linker/index.js +2 -2
  10. package/bundles/private/migrations.js +50 -6
  11. package/bundles/private/testing.js +526 -0
  12. package/bundles/private/tooling.js +2 -3
  13. package/bundles/src/bin/ng_xi18n.js +5 -5
  14. package/bundles/src/bin/ngc.js +5 -5
  15. package/index.d.ts +1 -1
  16. package/linker/babel/src/ast/babel_ast_factory.d.ts +1 -0
  17. package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
  18. package/package.json +7 -15
  19. package/private/migrations.d.ts +11 -5
  20. package/private/testing.d.ts +11 -0
  21. package/src/ngtsc/annotations/common/src/metadata.d.ts +5 -3
  22. package/src/ngtsc/annotations/component/src/handler.d.ts +1 -0
  23. package/src/ngtsc/annotations/component/src/metadata.d.ts +5 -4
  24. package/src/ngtsc/annotations/component/src/resources.d.ts +1 -2
  25. package/src/ngtsc/annotations/directive/src/handler.d.ts +1 -0
  26. package/src/ngtsc/annotations/directive/src/shared.d.ts +6 -1
  27. package/src/ngtsc/annotations/index.d.ts +3 -2
  28. package/src/ngtsc/core/index.d.ts +1 -0
  29. package/src/ngtsc/diagnostics/src/error_code.d.ts +26 -0
  30. package/src/ngtsc/diagnostics/src/error_details_base_url.d.ts +1 -1
  31. package/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.d.ts +2 -1
  32. package/src/ngtsc/docs/src/class_extractor.d.ts +4 -5
  33. package/src/ngtsc/docs/src/entities.d.ts +7 -2
  34. package/src/ngtsc/docs/src/interface_extractor.d.ts +11 -0
  35. package/src/ngtsc/docs/src/properties_extractor.d.ts +96 -0
  36. package/src/ngtsc/file_system/testing/index.d.ts +12 -0
  37. package/src/ngtsc/file_system/testing/src/mock_file_system.d.ts +71 -0
  38. package/src/ngtsc/file_system/testing/src/mock_file_system_native.d.ts +15 -0
  39. package/src/ngtsc/file_system/testing/src/mock_file_system_posix.d.ts +12 -0
  40. package/src/ngtsc/file_system/testing/src/mock_file_system_windows.d.ts +12 -0
  41. package/src/ngtsc/file_system/testing/src/test_helper.d.ts +16 -0
  42. package/src/ngtsc/translator/src/api/ast_factory.d.ts +7 -0
  43. package/src/ngtsc/translator/src/translator.d.ts +1 -0
  44. package/src/ngtsc/translator/src/typescript_ast_factory.d.ts +1 -0
  45. package/src/ngtsc/typecheck/api/checker.d.ts +4 -0
  46. package/src/ngtsc/typecheck/extended/api/api.d.ts +0 -10
  47. package/src/ngtsc/typecheck/extended/checks/defer_trigger_misconfiguration/index.d.ts +10 -0
  48. package/src/ngtsc/typecheck/src/checker.d.ts +1 -0
  49. package/src/ngtsc/validation/src/rules/forbidden_required_initializer_invocation_rule.d.ts +22 -0
  50. package/src/ngtsc/xi18n/src/context.d.ts +1 -2
  51. package/bundles/chunk-N3VWF7MH.js +0 -548
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  Context,
10
10
  ExpressionTranslatorVisitor
11
- } from "./chunk-I2BHWRAU.js";
11
+ } from "./chunk-LS5RJ5CS.js";
12
12
 
13
13
  // packages/compiler-cli/linker/src/fatal_linker_error.js
14
14
  var FatalLinkerError = class extends Error {
@@ -446,7 +446,7 @@ function toR3ClassMetadata(metaObj) {
446
446
  }
447
447
 
448
448
  // packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_component_linker_1.js
449
- import { ChangeDetectionStrategy, compileComponentFromMetadata, DEFAULT_INTERPOLATION_CONFIG, InterpolationConfig, makeBindingParser as makeBindingParser2, parseTemplate, R3TargetBinder, R3TemplateDependencyKind, ViewEncapsulation } from "@angular/compiler";
449
+ import { ChangeDetectionStrategy, compileComponentFromMetadata, makeBindingParser as makeBindingParser2, parseTemplate, R3TargetBinder, R3TemplateDependencyKind, ViewEncapsulation } from "@angular/compiler";
450
450
  import semver2 from "semver";
451
451
 
452
452
  // packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_directive_linker_1.js
@@ -455,7 +455,7 @@ import { compileDirectiveFromMetadata, makeBindingParser, ParseLocation, ParseSo
455
455
  // packages/compiler-cli/linker/src/file_linker/partial_linkers/util.js
456
456
  import { createMayBeForwardRefExpression, outputAst as o2 } from "@angular/compiler";
457
457
  import semver from "semver";
458
- var PLACEHOLDER_VERSION = "21.0.0-next.1";
458
+ var PLACEHOLDER_VERSION = "21.0.0-next.10";
459
459
  function wrapReference(wrapped) {
460
460
  return { value: wrapped, type: wrapped };
461
461
  }
@@ -694,7 +694,6 @@ var PartialComponentLinkerVersion1 = class {
694
694
  * This function derives the `R3ComponentMetadata` from the provided AST object.
695
695
  */
696
696
  toR3ComponentMeta(metaObj, version) {
697
- const interpolation = parseInterpolationConfig(metaObj);
698
697
  const templateSource = metaObj.getValue("template");
699
698
  const isInline = metaObj.has("isInline") ? metaObj.getBoolean("isInline") : false;
700
699
  const templateInfo = this.getTemplateInfo(templateSource, isInline);
@@ -703,7 +702,6 @@ var PartialComponentLinkerVersion1 = class {
703
702
  const enableLetSyntax = major > 18 || major === 18 && minor >= 1 || version === PLACEHOLDER_VERSION;
704
703
  const template = parseTemplate(templateInfo.code, templateInfo.sourceUrl, {
705
704
  escapedString: templateInfo.isEscaped,
706
- interpolationConfig: interpolation,
707
705
  range: templateInfo.range,
708
706
  enableI18nLegacyMessageIdFormat: false,
709
707
  preserveWhitespaces: metaObj.has("preserveWhitespaces") ? metaObj.getBoolean("preserveWhitespaces") : false,
@@ -807,7 +805,6 @@ ${errors}`);
807
805
  styles: metaObj.has("styles") ? metaObj.getArray("styles").map((entry) => entry.getString()) : [],
808
806
  defer: deferBlockDependencies,
809
807
  encapsulation: metaObj.has("encapsulation") ? parseEncapsulation(metaObj.getValue("encapsulation")) : ViewEncapsulation.Emulated,
810
- interpolation,
811
808
  changeDetection: metaObj.has("changeDetection") ? parseChangeDetectionStrategy(metaObj.getValue("changeDetection")) : ChangeDetectionStrategy.Default,
812
809
  animations: metaObj.has("animations") ? metaObj.getOpaque("animations") : null,
813
810
  relativeContextFilePath: this.sourceUrl,
@@ -880,17 +877,6 @@ ${errors}`);
880
877
  return result;
881
878
  }
882
879
  };
883
- function parseInterpolationConfig(metaObj) {
884
- if (!metaObj.has("interpolation")) {
885
- return DEFAULT_INTERPOLATION_CONFIG;
886
- }
887
- const interpolationExpr = metaObj.getValue("interpolation");
888
- const values = interpolationExpr.getArray().map((entry) => entry.getString());
889
- if (values.length !== 2) {
890
- throw new FatalLinkerError(interpolationExpr.expression, "Unsupported interpolation config, expected an array containing exactly two strings");
891
- }
892
- return InterpolationConfig.fromArray(values);
893
- }
894
880
  function parseEncapsulation(encapsulation) {
895
881
  const symbolName = encapsulation.getSymbolName();
896
882
  if (symbolName === null) {
@@ -12,7 +12,7 @@ import {
12
12
  formatDiagnostics,
13
13
  performCompilation,
14
14
  readConfiguration
15
- } from "./chunk-UGSARQ4S.js";
15
+ } from "./chunk-ZOLVJRLX.js";
16
16
 
17
17
  // packages/compiler-cli/src/main.js
18
18
  import ts2 from "typescript";
@@ -107,6 +107,9 @@ var ExpressionTranslatorVisitor = class {
107
107
  visitLiteralExpr(ast, _context) {
108
108
  return this.setSourceMapRange(this.factory.createLiteral(ast.value), ast.sourceSpan);
109
109
  }
110
+ visitRegularExpressionLiteral(ast, context) {
111
+ return this.setSourceMapRange(this.factory.createRegularExpressionLiteral(ast.body, ast.flags), ast.sourceSpan);
112
+ }
110
113
  visitLocalizedString(ast, context) {
111
114
  const elements = [createTemplateElement(ast.serializeI18nHead())];
112
115
  const expressions = [];