@angular/compiler 16.1.0-next.3 → 16.1.0

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 (40) hide show
  1. package/esm2022/src/compiler_util/expression_converter.mjs +2 -3
  2. package/esm2022/src/constant_pool.mjs +53 -60
  3. package/esm2022/src/jit_compiler_facade.mjs +2 -2
  4. package/esm2022/src/render3/partial/class_metadata.mjs +1 -1
  5. package/esm2022/src/render3/partial/directive.mjs +1 -1
  6. package/esm2022/src/render3/partial/factory.mjs +1 -1
  7. package/esm2022/src/render3/partial/injectable.mjs +1 -1
  8. package/esm2022/src/render3/partial/injector.mjs +1 -1
  9. package/esm2022/src/render3/partial/ng_module.mjs +1 -1
  10. package/esm2022/src/render3/partial/pipe.mjs +1 -1
  11. package/esm2022/src/render3/r3_identifiers.mjs +2 -3
  12. package/esm2022/src/render3/view/compiler.mjs +2 -2
  13. package/esm2022/src/shadow_css.mjs +34 -21
  14. package/esm2022/src/template/pipeline/ir/src/enums.mjs +26 -2
  15. package/esm2022/src/template/pipeline/ir/src/expression.mjs +156 -5
  16. package/esm2022/src/template/pipeline/ir/src/operations.mjs +6 -5
  17. package/esm2022/src/template/pipeline/ir/src/ops/create.mjs +10 -1
  18. package/esm2022/src/template/pipeline/ir/src/ops/update.mjs +16 -1
  19. package/esm2022/src/template/pipeline/ir/src/traits.mjs +20 -2
  20. package/esm2022/src/template/pipeline/src/compilation.mjs +3 -2
  21. package/esm2022/src/template/pipeline/src/emit.mjs +11 -1
  22. package/esm2022/src/template/pipeline/src/ingest.mjs +43 -10
  23. package/esm2022/src/template/pipeline/src/instruction.mjs +111 -10
  24. package/esm2022/src/template/pipeline/src/phases/align_pipe_variadic_var_offset.mjs +41 -0
  25. package/esm2022/src/template/pipeline/src/phases/next_context_merging.mjs +4 -1
  26. package/esm2022/src/template/pipeline/src/phases/pipe_creation.mjs +57 -0
  27. package/esm2022/src/template/pipeline/src/phases/pipe_variadic.mjs +26 -0
  28. package/esm2022/src/template/pipeline/src/phases/pure_function_extraction.mjs +54 -0
  29. package/esm2022/src/template/pipeline/src/phases/pure_literal_structures.mjs +58 -0
  30. package/esm2022/src/template/pipeline/src/phases/reify.mjs +21 -1
  31. package/esm2022/src/template/pipeline/src/phases/slot_allocation.mjs +4 -1
  32. package/esm2022/src/template/pipeline/src/phases/var_counting.mjs +23 -3
  33. package/esm2022/src/template/pipeline/src/phases/variable_optimization.mjs +13 -1
  34. package/esm2022/src/version.mjs +1 -1
  35. package/fesm2022/compiler.mjs +731 -117
  36. package/fesm2022/compiler.mjs.map +1 -1
  37. package/fesm2022/testing.mjs +1 -1
  38. package/index.d.ts +11 -2
  39. package/package.json +2 -2
  40. package/testing/index.d.ts +1 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v16.1.0-next.3
2
+ * @license Angular v16.1.0
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.0-next.3
2
+ * @license Angular v16.1.0
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -698,9 +698,11 @@ export declare class ConstantPool {
698
698
  statements: outputAst.Statement[];
699
699
  private literals;
700
700
  private literalFactories;
701
+ private sharedConstants;
701
702
  private nextNameIndex;
702
703
  constructor(isClosureCompilerEnabled?: boolean);
703
704
  getConstLiteral(literal: outputAst.Expression, forceShared?: boolean): outputAst.Expression;
705
+ getSharedConstant(def: SharedConstantDefinition, expr: outputAst.Expression): outputAst.Expression;
704
706
  getLiteralFactory(literal: outputAst.LiteralArrayExpr | outputAst.LiteralMapExpr): {
705
707
  literalFactory: outputAst.Expression;
706
708
  literalFactoryArguments: outputAst.Expression[];
@@ -715,7 +717,6 @@ export declare class ConstantPool {
715
717
  */
716
718
  uniqueName(prefix: string): string;
717
719
  private freshName;
718
- private keyOf;
719
720
  }
720
721
 
721
722
  declare class Container implements Node_3 {
@@ -1136,6 +1137,10 @@ export declare class ExpressionBinding {
1136
1137
  constructor(sourceSpan: AbsoluteSourceSpan, key: TemplateBindingIdentifier, value: ASTWithSource | null);
1137
1138
  }
1138
1139
 
1140
+ declare interface ExpressionKeyFn {
1141
+ keyOf(expr: outputAst.Expression): string;
1142
+ }
1143
+
1139
1144
  export declare class ExpressionStatement extends Statement {
1140
1145
  expr: Expression;
1141
1146
  constructor(expr: Expression, sourceSpan?: ParseSourceSpan | null, leadingComments?: LeadingComment[]);
@@ -4188,6 +4193,10 @@ export declare abstract class Serializer {
4188
4193
  createNameMapper(message: i18n.Message): PlaceholderMapper | null;
4189
4194
  }
4190
4195
 
4196
+ declare interface SharedConstantDefinition extends ExpressionKeyFn {
4197
+ toSharedConstantDeclaration(declName: string, keyExpr: outputAst.Expression): outputAst.Statement;
4198
+ }
4199
+
4191
4200
 
4192
4201
  export declare type SourceMap = {
4193
4202
  version: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/compiler",
3
- "version": "16.1.0-next.3",
3
+ "version": "16.1.0",
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.0-next.3"
14
+ "@angular/core": "16.1.0"
15
15
  },
16
16
  "peerDependenciesMeta": {
17
17
  "@angular/core": {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v16.1.0-next.3
2
+ * @license Angular v16.1.0
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */