@angular/compiler-cli 19.0.1 → 19.0.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.
Files changed (37) hide show
  1. package/bundles/{chunk-ZEPJHGBL.js → chunk-3OT7XV3K.js} +152 -134
  2. package/bundles/{chunk-ZEPJHGBL.js.map → chunk-3OT7XV3K.js.map} +3 -3
  3. package/bundles/{chunk-77D5CI2U.js → chunk-5UDS2TPQ.js} +7 -7
  4. package/bundles/{chunk-FKXFEX7K.js → chunk-GBKXY6BH.js} +3 -3
  5. package/bundles/{chunk-Q2WE7ECN.js → chunk-I6R3GL3L.js} +5 -5
  6. package/bundles/{chunk-YM2C5U4V.js → chunk-KVOXCH3E.js} +81 -81
  7. package/bundles/{chunk-NFCGJ6UU.js → chunk-MIHO36SM.js} +12 -12
  8. package/bundles/{chunk-P6YTDBL7.js → chunk-NQFS66HQ.js} +31 -31
  9. package/bundles/{chunk-NC4E5UYB.js → chunk-P5OLJFAE.js} +43 -43
  10. package/bundles/{chunk-TKRX6CUF.js → chunk-QZ2ASBSY.js} +5 -5
  11. package/bundles/{chunk-37JMVF7H.js → chunk-STORTTKY.js} +8 -8
  12. package/bundles/{chunk-5ZWV2XEF.js → chunk-YCOYUOYB.js} +3 -3
  13. package/bundles/index.js +12 -12
  14. package/bundles/linker/babel/index.js +12 -12
  15. package/bundles/linker/index.js +4 -4
  16. package/bundles/ngcc/index.js +1 -1
  17. package/bundles/private/bazel.js +1 -1
  18. package/bundles/private/localize.js +3 -3
  19. package/bundles/private/migrations.js +4 -4
  20. package/bundles/private/tooling.js +6 -6
  21. package/bundles/src/bin/ng_xi18n.js +10 -10
  22. package/bundles/src/bin/ngc.js +8 -8
  23. package/bundles_metadata.json +1 -1
  24. package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
  25. package/package.json +2 -2
  26. package/src/ngtsc/hmr/src/{extract_locals.d.ts → extract_dependencies.d.ts} +6 -4
  27. package/src/ngtsc/imports/src/patch_alias_reference_resolution.d.ts +1 -1
  28. /package/bundles/{chunk-77D5CI2U.js.map → chunk-5UDS2TPQ.js.map} +0 -0
  29. /package/bundles/{chunk-FKXFEX7K.js.map → chunk-GBKXY6BH.js.map} +0 -0
  30. /package/bundles/{chunk-Q2WE7ECN.js.map → chunk-I6R3GL3L.js.map} +0 -0
  31. /package/bundles/{chunk-YM2C5U4V.js.map → chunk-KVOXCH3E.js.map} +0 -0
  32. /package/bundles/{chunk-NFCGJ6UU.js.map → chunk-MIHO36SM.js.map} +0 -0
  33. /package/bundles/{chunk-P6YTDBL7.js.map → chunk-NQFS66HQ.js.map} +0 -0
  34. /package/bundles/{chunk-NC4E5UYB.js.map → chunk-P5OLJFAE.js.map} +0 -0
  35. /package/bundles/{chunk-TKRX6CUF.js.map → chunk-QZ2ASBSY.js.map} +0 -0
  36. /package/bundles/{chunk-37JMVF7H.js.map → chunk-STORTTKY.js.map} +0 -0
  37. /package/bundles/{chunk-5ZWV2XEF.js.map → chunk-YCOYUOYB.js.map} +0 -0
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import { MaybeForwardRefExpression, outputAst as o, R3DeclareDependencyMetadata, R3DependencyMetadata, R3Reference } from '@angular/compiler';
9
9
  import { AstObject, AstValue } from '../../ast/ast_value';
10
- export declare const PLACEHOLDER_VERSION = "19.0.1";
10
+ export declare const PLACEHOLDER_VERSION = "19.0.2";
11
11
  export declare function wrapReference<TExpression>(wrapped: o.WrappedNodeExpr<TExpression>): R3Reference;
12
12
  /**
13
13
  * Parses the value of an enum from the AST value's symbol name.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/compiler-cli",
3
- "version": "19.0.1",
3
+ "version": "19.0.2",
4
4
  "description": "Angular - the compiler CLI for Node.js",
5
5
  "typings": "index.d.ts",
6
6
  "bin": {
@@ -53,7 +53,7 @@
53
53
  "yargs": "^17.2.1"
54
54
  },
55
55
  "peerDependencies": {
56
- "@angular/compiler": "19.0.1",
56
+ "@angular/compiler": "19.0.2",
57
57
  "typescript": ">=5.5 <5.7"
58
58
  },
59
59
  "repository": {
@@ -5,16 +5,18 @@
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
- import { R3CompiledExpression, outputAst as o } from '@angular/compiler';
8
+ import { R3CompiledExpression, R3HmrNamespaceDependency, outputAst as o } from '@angular/compiler';
9
9
  import { DeclarationNode } from '../../reflection';
10
10
  import { CompileResult } from '../../transform';
11
11
  /**
12
- * Determines the names of the file-level locals that the HMR
13
- * initializer needs to capture and pass along.
12
+ * Determines the file-level dependencies that the HMR initializer needs to capture and pass along.
14
13
  * @param sourceFile File in which the file is being compiled.
15
14
  * @param definition Compiled component definition.
16
15
  * @param factory Compiled component factory.
17
16
  * @param classMetadata Compiled `setClassMetadata` expression, if any.
18
17
  * @param debugInfo Compiled `setClassDebugInfo` expression, if any.
19
18
  */
20
- export declare function extractHmrLocals(node: DeclarationNode, definition: R3CompiledExpression, factory: CompileResult, classMetadata: o.Statement | null, debugInfo: o.Statement | null): string[];
19
+ export declare function extractHmrDependencies(node: DeclarationNode, definition: R3CompiledExpression, factory: CompileResult, classMetadata: o.Statement | null, debugInfo: o.Statement | null): {
20
+ local: string[];
21
+ external: R3HmrNamespaceDependency[];
22
+ };
@@ -29,7 +29,7 @@ export type AliasImportDeclaration = ts.ImportSpecifier | ts.NamespaceImport | t
29
29
  * results in a slow-down due to the type checker being involved multiple times. The CLI worked
30
30
  * around this import preserving issue by having another complex post-process step that detects and
31
31
  * elides unused imports. Note that these unused imports could cause unused chunks being generated
32
- * by Webpack if the application or library is not marked as side-effect free.
32
+ * by webpack if the application or library is not marked as side-effect free.
33
33
  *
34
34
  * This is not ideal though, as we basically re-implement the complex import usage resolution
35
35
  * from TypeScript. We can do better by letting TypeScript do the import eliding, but providing