@angular/compiler 16.1.3 → 16.1.4

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v16.1.3
2
+ * @license Angular v16.1.4
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v16.1.3
2
+ * @license Angular v16.1.4
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -3714,11 +3714,32 @@ export declare interface R3NgModuleDependencyMetadata extends R3TemplateDependen
3714
3714
  /**
3715
3715
  * Metadata required by the module compiler to generate a module def (`ɵmod`) for a type.
3716
3716
  */
3717
- export declare interface R3NgModuleMetadata {
3717
+ export declare type R3NgModuleMetadata = R3NgModuleMetadataGlobal | R3NgModuleMetadataLocal;
3718
+
3719
+ declare interface R3NgModuleMetadataCommon {
3720
+ kind: R3NgModuleMetadataKind;
3718
3721
  /**
3719
3722
  * An expression representing the module type being compiled.
3720
3723
  */
3721
3724
  type: R3Reference;
3725
+ /**
3726
+ * How to emit the selector scope values (declarations, imports, exports).
3727
+ */
3728
+ selectorScopeMode: R3SelectorScopeMode;
3729
+ /**
3730
+ * The set of schemas that declare elements to be allowed in the NgModule.
3731
+ */
3732
+ schemas: R3Reference[] | null;
3733
+ /** Unique ID or expression representing the unique ID of an NgModule. */
3734
+ id: outputAst.Expression | null;
3735
+ }
3736
+
3737
+ /**
3738
+ * Metadata required by the module compiler in full/partial mode to generate a module def (`ɵmod`)
3739
+ * for a type.
3740
+ */
3741
+ export declare interface R3NgModuleMetadataGlobal extends R3NgModuleMetadataCommon {
3742
+ kind: R3NgModuleMetadataKind.Global;
3722
3743
  /**
3723
3744
  * An array of expressions representing the bootstrap components specified by the module.
3724
3745
  */
@@ -3744,20 +3765,49 @@ export declare interface R3NgModuleMetadata {
3744
3765
  * An array of expressions representing the exports of the module.
3745
3766
  */
3746
3767
  exports: R3Reference[];
3747
- /**
3748
- * How to emit the selector scope values (declarations, imports, exports).
3749
- */
3750
- selectorScopeMode: R3SelectorScopeMode;
3751
3768
  /**
3752
3769
  * Whether to generate closure wrappers for bootstrap, declarations, imports, and exports.
3753
3770
  */
3754
3771
  containsForwardDecls: boolean;
3772
+ }
3773
+
3774
+ /**
3775
+ * The type of the NgModule meta data.
3776
+ * - Global: Used for full and partial compilation modes which mainly includes R3References.
3777
+ * - Local: Used for the local compilation mode which mainly includes the raw expressions as appears
3778
+ * in the NgModule decorator.
3779
+ */
3780
+ export declare enum R3NgModuleMetadataKind {
3781
+ Global = 0,
3782
+ Local = 1
3783
+ }
3784
+
3785
+ /**
3786
+ * Metadata required by the module compiler in local mode to generate a module def (`ɵmod`) for a
3787
+ * type.
3788
+ */
3789
+ declare interface R3NgModuleMetadataLocal extends R3NgModuleMetadataCommon {
3790
+ kind: R3NgModuleMetadataKind.Local;
3755
3791
  /**
3756
- * The set of schemas that declare elements to be allowed in the NgModule.
3792
+ * The output expression representing the bootstrap components specified by the module.
3757
3793
  */
3758
- schemas: R3Reference[] | null;
3759
- /** Unique ID or expression representing the unique ID of an NgModule. */
3760
- id: outputAst.Expression | null;
3794
+ bootstrapExpression: outputAst.Expression | null;
3795
+ /**
3796
+ * The output expression representing the declarations of the module.
3797
+ */
3798
+ declarationsExpression: outputAst.Expression | null;
3799
+ /**
3800
+ * The output expression representing the imports of the module.
3801
+ */
3802
+ importsExpression: outputAst.Expression | null;
3803
+ /**
3804
+ * The output expression representing the exports of the module.
3805
+ */
3806
+ exportsExpression: outputAst.Expression | null;
3807
+ /**
3808
+ * Local compilation mode always requires scope to be handled using side effect function calls.
3809
+ */
3810
+ selectorScopeMode: R3SelectorScopeMode.SideEffect;
3761
3811
  }
3762
3812
 
3763
3813
  export declare interface R3PartialDeclaration {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/compiler",
3
- "version": "16.1.3",
3
+ "version": "16.1.4",
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": "16.1.3"
14
+ "@angular/core": "16.1.4"
15
15
  },
16
16
  "peerDependenciesMeta": {
17
17
  "@angular/core": {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v16.1.3
2
+ * @license Angular v16.1.4
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */