@angular/compiler 17.1.2 → 17.1.3
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/esm2022/src/constant_pool.mjs +14 -4
- package/esm2022/src/render3/partial/class_metadata.mjs +1 -1
- package/esm2022/src/render3/partial/directive.mjs +1 -1
- package/esm2022/src/render3/partial/factory.mjs +1 -1
- package/esm2022/src/render3/partial/injectable.mjs +1 -1
- package/esm2022/src/render3/partial/injector.mjs +1 -1
- package/esm2022/src/render3/partial/ng_module.mjs +1 -1
- package/esm2022/src/render3/partial/pipe.mjs +1 -1
- package/esm2022/src/render3/r3_class_metadata_compiler.mjs +5 -3
- package/esm2022/src/render3/view/api.mjs +1 -1
- package/esm2022/src/render3/view/compiler.mjs +3 -3
- package/esm2022/src/render3/view/template.mjs +7 -3
- package/esm2022/src/template/pipeline/src/ingest.mjs +9 -1
- package/esm2022/src/template/pipeline/src/phases/create_defer_deps_fns.mjs +4 -2
- package/esm2022/src/template/pipeline/src/phases/naming.mjs +5 -2
- package/esm2022/src/version.mjs +1 -1
- package/fesm2022/compiler.mjs +49 -20
- package/fesm2022/compiler.mjs.map +1 -1
- package/index.d.ts +22 -5
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v17.1.
|
|
2
|
+
* @license Angular v17.1.3
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -692,7 +692,10 @@ export declare type CompileClassMetadataFn = (metadata: R3ClassMetadata) => outp
|
|
|
692
692
|
* Similar to the `setClassMetadata` call, it's wrapped into the `ngDevMode`
|
|
693
693
|
* check to tree-shake away this code in production mode.
|
|
694
694
|
*/
|
|
695
|
-
export declare function compileComponentClassMetadata(metadata: R3ClassMetadata, deferrableTypes: Map<string,
|
|
695
|
+
export declare function compileComponentClassMetadata(metadata: R3ClassMetadata, deferrableTypes: Map<string, {
|
|
696
|
+
importPath: string;
|
|
697
|
+
isDefaultImport: boolean;
|
|
698
|
+
}> | null): outputAst.Expression;
|
|
696
699
|
|
|
697
700
|
/**
|
|
698
701
|
* Compile a component for the render3 runtime as defined by the `R3ComponentMetadata`.
|
|
@@ -800,6 +803,13 @@ export declare class ConstantPool {
|
|
|
800
803
|
private literals;
|
|
801
804
|
private literalFactories;
|
|
802
805
|
private sharedConstants;
|
|
806
|
+
/**
|
|
807
|
+
* Constant pool also tracks claimed names from {@link uniqueName}.
|
|
808
|
+
* This is useful to avoid collisions if variables are intended to be
|
|
809
|
+
* named a certain way- but may conflict. We wouldn't want to always suffix
|
|
810
|
+
* them with unique numbers.
|
|
811
|
+
*/
|
|
812
|
+
private _claimedNames;
|
|
803
813
|
private nextNameIndex;
|
|
804
814
|
constructor(isClosureCompilerEnabled?: boolean);
|
|
805
815
|
getConstLiteral(literal: outputAst.Expression, forceShared?: boolean): outputAst.Expression;
|
|
@@ -811,13 +821,13 @@ export declare class ConstantPool {
|
|
|
811
821
|
getSharedFunctionReference(fn: outputAst.FunctionExpr | outputAst.ArrowFunctionExpr, prefix: string, useUniqueName?: boolean): outputAst.Expression;
|
|
812
822
|
private _getLiteralFactory;
|
|
813
823
|
/**
|
|
814
|
-
* Produce a unique name.
|
|
824
|
+
* Produce a unique name in the context of this pool.
|
|
815
825
|
*
|
|
816
826
|
* The name might be unique among different prefixes if any of the prefixes end in
|
|
817
827
|
* a digit so the prefix should be a constant string (not based on user input) and
|
|
818
828
|
* must not end in a digit.
|
|
819
829
|
*/
|
|
820
|
-
uniqueName(
|
|
830
|
+
uniqueName(name: string, alwaysIncludeSuffix?: boolean): string;
|
|
821
831
|
private freshName;
|
|
822
832
|
}
|
|
823
833
|
|
|
@@ -3038,7 +3048,10 @@ export declare interface R3ComponentMetadata<DeclarationT extends R3TemplateDepe
|
|
|
3038
3048
|
/**
|
|
3039
3049
|
* Map of deferrable symbol names -> corresponding import paths.
|
|
3040
3050
|
*/
|
|
3041
|
-
deferrableTypes: Map<string,
|
|
3051
|
+
deferrableTypes: Map<string, {
|
|
3052
|
+
importPath: string;
|
|
3053
|
+
isDefaultImport: boolean;
|
|
3054
|
+
}>;
|
|
3042
3055
|
/**
|
|
3043
3056
|
* Specifies how the 'directives' and/or `pipes` array, if generated, need to be emitted.
|
|
3044
3057
|
*/
|
|
@@ -3623,6 +3636,10 @@ export declare interface R3DeferBlockTemplateDependency {
|
|
|
3623
3636
|
* Import path where this dependency is located.
|
|
3624
3637
|
*/
|
|
3625
3638
|
importPath: string | null;
|
|
3639
|
+
/**
|
|
3640
|
+
* Whether the symbol is the default export.
|
|
3641
|
+
*/
|
|
3642
|
+
isDefaultImport: boolean;
|
|
3626
3643
|
}
|
|
3627
3644
|
|
|
3628
3645
|
declare interface R3DelegatedFnOrClassMetadata extends R3ConstructorFactoryMetadata {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/compiler",
|
|
3
|
-
"version": "17.1.
|
|
3
|
+
"version": "17.1.3",
|
|
4
4
|
"description": "Angular - the compiler library",
|
|
5
5
|
"author": "angular",
|
|
6
6
|
"license": "MIT",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"tslib": "^2.3.0"
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {
|
|
14
|
-
"@angular/core": "17.1.
|
|
14
|
+
"@angular/core": "17.1.3"
|
|
15
15
|
},
|
|
16
16
|
"peerDependenciesMeta": {
|
|
17
17
|
"@angular/core": {
|