@angular/compiler 16.1.0-rc.0 → 16.1.1

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.0-rc.0
2
+ * @license Angular v16.1.1
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -22255,7 +22255,12 @@ function createComponentType(meta) {
22255
22255
  typeParams.push(stringArrayAsType(meta.template.ngContentSelectors));
22256
22256
  typeParams.push(expressionType(literal(meta.isStandalone)));
22257
22257
  typeParams.push(createHostDirectivesType(meta));
22258
- typeParams.push(expressionType(literal(meta.isSignal)));
22258
+ // TODO(signals): Always include this metadata starting with v17. Right
22259
+ // now Angular v16.0.x does not support this field and library distributions
22260
+ // would then be incompatible with v16.0.x framework users.
22261
+ if (meta.isSignal) {
22262
+ typeParams.push(expressionType(literal(meta.isSignal)));
22263
+ }
22259
22264
  return expressionType(importExpr(Identifiers.ComponentDeclaration, typeParams));
22260
22265
  }
22261
22266
  /**
@@ -22383,7 +22388,12 @@ function createDirectiveType(meta) {
22383
22388
  typeParams.push(NONE_TYPE);
22384
22389
  typeParams.push(expressionType(literal(meta.isStandalone)));
22385
22390
  typeParams.push(createHostDirectivesType(meta));
22386
- typeParams.push(expressionType(literal(meta.isSignal)));
22391
+ // TODO(signals): Always include this metadata starting with v17. Right
22392
+ // now Angular v16.0.x does not support this field and library distributions
22393
+ // would then be incompatible with v16.0.x framework users.
22394
+ if (meta.isSignal) {
22395
+ typeParams.push(expressionType(literal(meta.isSignal)));
22396
+ }
22387
22397
  return expressionType(importExpr(Identifiers.DirectiveDeclaration, typeParams));
22388
22398
  }
22389
22399
  // Define and update any view queries
@@ -23359,7 +23369,7 @@ function publishFacade(global) {
23359
23369
  * @description
23360
23370
  * Entry point for all public APIs of the compiler package.
23361
23371
  */
23362
- const VERSION = new Version('16.1.0-rc.0');
23372
+ const VERSION = new Version('16.1.1');
23363
23373
 
23364
23374
  class CompilerConfig {
23365
23375
  constructor({ defaultEncapsulation = ViewEncapsulation.Emulated, useJit = true, missingTranslation = null, preserveWhitespaces, strictInjectionParameters } = {}) {
@@ -25287,7 +25297,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$6 = '12.0.0';
25287
25297
  function compileDeclareClassMetadata(metadata) {
25288
25298
  const definitionMap = new DefinitionMap();
25289
25299
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$6));
25290
- definitionMap.set('version', literal('16.1.0-rc.0'));
25300
+ definitionMap.set('version', literal('16.1.1'));
25291
25301
  definitionMap.set('ngImport', importExpr(Identifiers.core));
25292
25302
  definitionMap.set('type', metadata.type);
25293
25303
  definitionMap.set('decorators', metadata.decorators);
@@ -25390,7 +25400,7 @@ function compileDeclareDirectiveFromMetadata(meta) {
25390
25400
  function createDirectiveDefinitionMap(meta) {
25391
25401
  const definitionMap = new DefinitionMap();
25392
25402
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
25393
- definitionMap.set('version', literal('16.1.0-rc.0'));
25403
+ definitionMap.set('version', literal('16.1.1'));
25394
25404
  // e.g. `type: MyDirective`
25395
25405
  definitionMap.set('type', meta.type.value);
25396
25406
  if (meta.isStandalone) {
@@ -25618,7 +25628,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
25618
25628
  function compileDeclareFactoryFunction(meta) {
25619
25629
  const definitionMap = new DefinitionMap();
25620
25630
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
25621
- definitionMap.set('version', literal('16.1.0-rc.0'));
25631
+ definitionMap.set('version', literal('16.1.1'));
25622
25632
  definitionMap.set('ngImport', importExpr(Identifiers.core));
25623
25633
  definitionMap.set('type', meta.type.value);
25624
25634
  definitionMap.set('deps', compileDependencies(meta.deps));
@@ -25653,7 +25663,7 @@ function compileDeclareInjectableFromMetadata(meta) {
25653
25663
  function createInjectableDefinitionMap(meta) {
25654
25664
  const definitionMap = new DefinitionMap();
25655
25665
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
25656
- definitionMap.set('version', literal('16.1.0-rc.0'));
25666
+ definitionMap.set('version', literal('16.1.1'));
25657
25667
  definitionMap.set('ngImport', importExpr(Identifiers.core));
25658
25668
  definitionMap.set('type', meta.type.value);
25659
25669
  // Only generate providedIn property if it has a non-null value
@@ -25704,7 +25714,7 @@ function compileDeclareInjectorFromMetadata(meta) {
25704
25714
  function createInjectorDefinitionMap(meta) {
25705
25715
  const definitionMap = new DefinitionMap();
25706
25716
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
25707
- definitionMap.set('version', literal('16.1.0-rc.0'));
25717
+ definitionMap.set('version', literal('16.1.1'));
25708
25718
  definitionMap.set('ngImport', importExpr(Identifiers.core));
25709
25719
  definitionMap.set('type', meta.type.value);
25710
25720
  definitionMap.set('providers', meta.providers);
@@ -25734,7 +25744,7 @@ function compileDeclareNgModuleFromMetadata(meta) {
25734
25744
  function createNgModuleDefinitionMap(meta) {
25735
25745
  const definitionMap = new DefinitionMap();
25736
25746
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
25737
- definitionMap.set('version', literal('16.1.0-rc.0'));
25747
+ definitionMap.set('version', literal('16.1.1'));
25738
25748
  definitionMap.set('ngImport', importExpr(Identifiers.core));
25739
25749
  definitionMap.set('type', meta.type.value);
25740
25750
  // We only generate the keys in the metadata if the arrays contain values.
@@ -25785,7 +25795,7 @@ function compileDeclarePipeFromMetadata(meta) {
25785
25795
  function createPipeDefinitionMap(meta) {
25786
25796
  const definitionMap = new DefinitionMap();
25787
25797
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
25788
- definitionMap.set('version', literal('16.1.0-rc.0'));
25798
+ definitionMap.set('version', literal('16.1.1'));
25789
25799
  definitionMap.set('ngImport', importExpr(Identifiers.core));
25790
25800
  // e.g. `type: MyPipe`
25791
25801
  definitionMap.set('type', meta.type.value);