@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
package/bundles/index.js CHANGED
@@ -4,16 +4,8 @@
4
4
 
5
5
  import {
6
6
  DEFAULT_ERROR_CODE,
7
- DecoratorType,
8
- DocsExtractor,
9
7
  EmitFlags,
10
- EntryType,
11
- MemberTags,
12
- MemberType,
13
- NgCompiler,
14
- NgCompilerHost,
15
8
  NgtscProgram,
16
- PatchedProgramIncrementalBuildStrategy,
17
9
  SOURCE,
18
10
  UNKNOWN_ERROR_CODE,
19
11
  calcProjectFileAndBasePath,
@@ -22,32 +14,40 @@ import {
22
14
  defaultGatherDiagnostics,
23
15
  exitCodeFromResult,
24
16
  formatDiagnostics,
25
- freshCompilationTicket,
26
- incrementalFromStateTicket,
27
- isDocEntryWithSourceInfo,
28
17
  isTsDiagnostic,
29
18
  performCompilation,
30
19
  readConfiguration
31
- } from "./chunk-UGSARQ4S.js";
20
+ } from "./chunk-ZOLVJRLX.js";
32
21
  import {
33
22
  ConsoleLogger,
34
23
  LogLevel
35
24
  } from "./chunk-6HOSNZU5.js";
36
25
  import {
37
- angularJitApplicationTransform,
38
- getDownlevelDecoratorsTransform,
39
- getInitializerApiJitTransform
40
- } from "./chunk-N3VWF7MH.js";
26
+ DecoratorType,
27
+ DocsExtractor,
28
+ EntryType,
29
+ MemberTags,
30
+ MemberType,
31
+ NgCompiler,
32
+ NgCompilerHost,
33
+ PatchedProgramIncrementalBuildStrategy,
34
+ freshCompilationTicket,
35
+ incrementalFromStateTicket,
36
+ isDocEntryWithSourceInfo
37
+ } from "./chunk-ZOZ6XVF3.js";
41
38
  import {
42
39
  ActivePerfRecorder,
43
40
  ErrorCode,
44
41
  OptimizeFor,
45
42
  PerfPhase,
46
43
  TsCreateProgramDriver,
44
+ angularJitApplicationTransform,
45
+ getDownlevelDecoratorsTransform,
46
+ getInitializerApiJitTransform,
47
47
  isLocalCompilationDiagnostics,
48
48
  ngErrorCode
49
- } from "./chunk-5Y5LZ46S.js";
50
- import "./chunk-I2BHWRAU.js";
49
+ } from "./chunk-3CWKYDQ7.js";
50
+ import "./chunk-LS5RJ5CS.js";
51
51
  import {
52
52
  InvalidFileSystem,
53
53
  LogicalFileSystem,
@@ -77,7 +77,7 @@ import "./chunk-G7GFT6BU.js";
77
77
 
78
78
  // packages/compiler-cli/src/version.js
79
79
  import { Version } from "@angular/compiler";
80
- var VERSION = new Version("21.0.0-next.1");
80
+ var VERSION = new Version("21.0.0-next.10");
81
81
 
82
82
  // packages/compiler-cli/private/tooling.js
83
83
  var GLOBAL_DEFS_FOR_TERSER = {
@@ -8,13 +8,13 @@ import {
8
8
  LinkerEnvironment,
9
9
  assert,
10
10
  isFatalLinkerError
11
- } from "../../chunk-BPDNYZBC.js";
11
+ } from "../../chunk-DT6FD4OE.js";
12
12
  import {
13
13
  ConsoleLogger,
14
14
  LogLevel
15
15
  } from "../../chunk-6HOSNZU5.js";
16
16
  import "../../chunk-HYJ2H3FU.js";
17
- import "../../chunk-I2BHWRAU.js";
17
+ import "../../chunk-LS5RJ5CS.js";
18
18
  import {
19
19
  NodeJSFileSystem
20
20
  } from "../../chunk-XYYEESKY.js";
@@ -163,6 +163,9 @@ var BabelAstFactory = class {
163
163
  t.variableDeclarator(t.identifier(variableName), initializer)
164
164
  ]);
165
165
  }
166
+ createRegularExpressionLiteral(body, flags) {
167
+ return t.regExpLiteral(body, flags ?? void 0);
168
+ }
166
169
  setSourceMapRange(node, sourceMapRange) {
167
170
  if (sourceMapRange === null) {
168
171
  return node;
@@ -10,9 +10,9 @@ import {
10
10
  assert,
11
11
  isFatalLinkerError,
12
12
  needsLinking
13
- } from "../chunk-BPDNYZBC.js";
13
+ } from "../chunk-DT6FD4OE.js";
14
14
  import "../chunk-HYJ2H3FU.js";
15
- import "../chunk-I2BHWRAU.js";
15
+ import "../chunk-LS5RJ5CS.js";
16
16
  import "../chunk-G7GFT6BU.js";
17
17
  export {
18
18
  DEFAULT_LINKER_OPTIONS,
@@ -3,32 +3,76 @@
3
3
  const require = __cjsCompatRequire(import.meta.url);
4
4
 
5
5
  import {
6
+ DiagnosticCategoryLabel,
7
+ NgCompiler
8
+ } from "../chunk-ZOZ6XVF3.js";
9
+ import {
10
+ CompilationMode,
11
+ DtsMetadataReader,
6
12
  DynamicValue,
13
+ FatalDiagnosticError,
7
14
  ImportManager,
8
15
  PartialEvaluator,
9
16
  PotentialImportKind,
10
17
  PotentialImportMode,
11
18
  Reference,
19
+ ReferenceEmitKind,
20
+ ReferenceEmitter,
12
21
  StaticInterpreter,
22
+ SymbolKind,
13
23
  TypeScriptReflectionHost,
14
24
  createForwardRefResolver,
15
- reflectObjectLiteral
16
- } from "../chunk-5Y5LZ46S.js";
17
- import "../chunk-I2BHWRAU.js";
18
- import "../chunk-GWZQLAGK.js";
19
- import "../chunk-XYYEESKY.js";
25
+ extractDecoratorQueryMetadata,
26
+ extractTemplate,
27
+ findAngularDecorator,
28
+ getAngularDecorators,
29
+ getRootDirs,
30
+ isShim,
31
+ parseDecoratorInputTransformFunction,
32
+ queryDecoratorNames,
33
+ reflectObjectLiteral,
34
+ unwrapExpression
35
+ } from "../chunk-3CWKYDQ7.js";
36
+ import "../chunk-LS5RJ5CS.js";
37
+ import {
38
+ getFileSystem,
39
+ isLocalRelativePath
40
+ } from "../chunk-GWZQLAGK.js";
41
+ import {
42
+ NodeJSFileSystem
43
+ } from "../chunk-XYYEESKY.js";
20
44
  import "../chunk-G7GFT6BU.js";
21
45
  export {
46
+ CompilationMode,
47
+ DiagnosticCategoryLabel,
48
+ DtsMetadataReader,
22
49
  DynamicValue,
50
+ FatalDiagnosticError,
23
51
  ImportManager,
52
+ NgCompiler,
53
+ NodeJSFileSystem,
24
54
  PartialEvaluator,
25
55
  PotentialImportKind,
26
56
  PotentialImportMode,
27
57
  Reference,
58
+ ReferenceEmitKind,
59
+ ReferenceEmitter,
28
60
  StaticInterpreter,
61
+ SymbolKind,
29
62
  TypeScriptReflectionHost,
30
63
  createForwardRefResolver,
31
- reflectObjectLiteral
64
+ extractDecoratorQueryMetadata,
65
+ extractTemplate,
66
+ findAngularDecorator,
67
+ getAngularDecorators,
68
+ getFileSystem,
69
+ getRootDirs,
70
+ isLocalRelativePath,
71
+ isShim,
72
+ parseDecoratorInputTransformFunction,
73
+ queryDecoratorNames,
74
+ reflectObjectLiteral,
75
+ unwrapExpression
32
76
  };
33
77
  /**
34
78
  * @license