@angular/core 16.0.2 → 16.0.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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v16.0.2
2
+ * @license Angular v16.0.3
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -25,7 +25,8 @@ export declare interface AbstractType<T> extends Function {
25
25
  /**
26
26
  * @description
27
27
  * A lifecycle hook that is called after the default change detector has
28
- * completed checking all content of a directive.
28
+ * completed checking all content of a directive. It will run after the content
29
+ * has been checked and most of the time it's during a change detection cycle.
29
30
  *
30
31
  * @see `AfterViewChecked`
31
32
  * @see [Lifecycle hooks guide](guide/lifecycle-hooks)
@@ -50,7 +51,7 @@ export declare interface AfterContentChecked {
50
51
  /**
51
52
  * @description
52
53
  * A lifecycle hook that is called after Angular has fully initialized
53
- * all content of a directive.
54
+ * all content of a directive. It will run only once when the projected content is initialized.
54
55
  * Define an `ngAfterContentInit()` method to handle any additional initialization tasks.
55
56
  *
56
57
  * @see `OnInit`
@@ -3424,9 +3425,36 @@ declare const FLAGS = 2;
3424
3425
  * DI is declared, but not yet defined. It is also used when the `token` which we use when creating
3425
3426
  * a query is not yet defined.
3426
3427
  *
3428
+ * `forwardRef` is also used to break circularities in standalone components imports.
3429
+ *
3427
3430
  * @usageNotes
3428
- * ### Example
3431
+ * ### Circular dependency example
3429
3432
  * {@example core/di/ts/forward_ref/forward_ref_spec.ts region='forward_ref'}
3433
+ *
3434
+ * ### Circular standalone reference import example
3435
+ * ```ts
3436
+ * @Component({
3437
+ * standalone: true,
3438
+ * imports: [ChildComponent],
3439
+ * selector: 'app-parent',
3440
+ * template: `<app-child [hideParent]="hideParent"></app-child>`,
3441
+ * })
3442
+ * export class ParentComponent {
3443
+ * @Input() hideParent: boolean;
3444
+ * }
3445
+ *
3446
+ *
3447
+ * @Component({
3448
+ * standalone: true,
3449
+ * imports: [CommonModule, forwardRef(() => ParentComponent)],
3450
+ * selector: 'app-child',
3451
+ * template: `<app-parent *ngIf="!hideParent"></app-parent>`,
3452
+ * })
3453
+ * export class ChildComponent {
3454
+ * @Input() hideParent: boolean;
3455
+ * }
3456
+ * ```
3457
+ *
3430
3458
  * @publicApi
3431
3459
  */
3432
3460
  export declare function forwardRef(forwardRefFn: ForwardRefFn): Type<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/core",
3
- "version": "16.0.2",
3
+ "version": "16.0.3",
4
4
  "description": "Angular - the core framework",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v16.0.2
2
+ * @license Angular v16.0.3
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -18543,7 +18543,7 @@ function publishFacade(global2) {
18543
18543
  }
18544
18544
 
18545
18545
  // bazel-out/k8-fastbuild/bin/packages/compiler/src/version.mjs
18546
- var VERSION2 = new Version("16.0.2");
18546
+ var VERSION2 = new Version("16.0.3");
18547
18547
 
18548
18548
  // bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
18549
18549
  var _I18N_ATTR = "i18n";
@@ -19862,7 +19862,7 @@ var MINIMUM_PARTIAL_LINKER_VERSION = "12.0.0";
19862
19862
  function compileDeclareClassMetadata(metadata) {
19863
19863
  const definitionMap = new DefinitionMap();
19864
19864
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION));
19865
- definitionMap.set("version", literal("16.0.2"));
19865
+ definitionMap.set("version", literal("16.0.3"));
19866
19866
  definitionMap.set("ngImport", importExpr(Identifiers.core));
19867
19867
  definitionMap.set("type", metadata.type);
19868
19868
  definitionMap.set("decorators", metadata.decorators);
@@ -19931,7 +19931,7 @@ function createDirectiveDefinitionMap(meta) {
19931
19931
  var _a2;
19932
19932
  const definitionMap = new DefinitionMap();
19933
19933
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION2));
19934
- definitionMap.set("version", literal("16.0.2"));
19934
+ definitionMap.set("version", literal("16.0.3"));
19935
19935
  definitionMap.set("type", meta.type.value);
19936
19936
  if (meta.isStandalone) {
19937
19937
  definitionMap.set("isStandalone", literal(meta.isStandalone));
@@ -20113,7 +20113,7 @@ var MINIMUM_PARTIAL_LINKER_VERSION3 = "12.0.0";
20113
20113
  function compileDeclareFactoryFunction(meta) {
20114
20114
  const definitionMap = new DefinitionMap();
20115
20115
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION3));
20116
- definitionMap.set("version", literal("16.0.2"));
20116
+ definitionMap.set("version", literal("16.0.3"));
20117
20117
  definitionMap.set("ngImport", importExpr(Identifiers.core));
20118
20118
  definitionMap.set("type", meta.type.value);
20119
20119
  definitionMap.set("deps", compileDependencies(meta.deps));
@@ -20136,7 +20136,7 @@ function compileDeclareInjectableFromMetadata(meta) {
20136
20136
  function createInjectableDefinitionMap(meta) {
20137
20137
  const definitionMap = new DefinitionMap();
20138
20138
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION4));
20139
- definitionMap.set("version", literal("16.0.2"));
20139
+ definitionMap.set("version", literal("16.0.3"));
20140
20140
  definitionMap.set("ngImport", importExpr(Identifiers.core));
20141
20141
  definitionMap.set("type", meta.type.value);
20142
20142
  if (meta.providedIn !== void 0) {
@@ -20174,7 +20174,7 @@ function compileDeclareInjectorFromMetadata(meta) {
20174
20174
  function createInjectorDefinitionMap(meta) {
20175
20175
  const definitionMap = new DefinitionMap();
20176
20176
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION5));
20177
- definitionMap.set("version", literal("16.0.2"));
20177
+ definitionMap.set("version", literal("16.0.3"));
20178
20178
  definitionMap.set("ngImport", importExpr(Identifiers.core));
20179
20179
  definitionMap.set("type", meta.type.value);
20180
20180
  definitionMap.set("providers", meta.providers);
@@ -20195,7 +20195,7 @@ function compileDeclareNgModuleFromMetadata(meta) {
20195
20195
  function createNgModuleDefinitionMap(meta) {
20196
20196
  const definitionMap = new DefinitionMap();
20197
20197
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION6));
20198
- definitionMap.set("version", literal("16.0.2"));
20198
+ definitionMap.set("version", literal("16.0.3"));
20199
20199
  definitionMap.set("ngImport", importExpr(Identifiers.core));
20200
20200
  definitionMap.set("type", meta.type.value);
20201
20201
  if (meta.bootstrap.length > 0) {
@@ -20230,7 +20230,7 @@ function compileDeclarePipeFromMetadata(meta) {
20230
20230
  function createPipeDefinitionMap(meta) {
20231
20231
  const definitionMap = new DefinitionMap();
20232
20232
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION7));
20233
- definitionMap.set("version", literal("16.0.2"));
20233
+ definitionMap.set("version", literal("16.0.3"));
20234
20234
  definitionMap.set("ngImport", importExpr(Identifiers.core));
20235
20235
  definitionMap.set("type", meta.type.value);
20236
20236
  if (meta.isStandalone) {
@@ -20247,7 +20247,7 @@ function createPipeDefinitionMap(meta) {
20247
20247
  publishFacade(_global);
20248
20248
 
20249
20249
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/version.mjs
20250
- var VERSION3 = new Version("16.0.2");
20250
+ var VERSION3 = new Version("16.0.3");
20251
20251
 
20252
20252
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
20253
20253
  var EmitFlags;
@@ -25492,7 +25492,7 @@ var TraitCompiler = class {
25492
25492
  }
25493
25493
  resolve() {
25494
25494
  var _a2, _b;
25495
- const classes = Array.from(this.classes.keys());
25495
+ const classes = this.classes.keys();
25496
25496
  for (const clazz of classes) {
25497
25497
  const record = this.classes.get(clazz);
25498
25498
  for (let trait of record.traits) {