@angular/core 17.0.0 → 17.0.2

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/application_ref.mjs +1 -1
  2. package/esm2022/src/core_private_export.mjs +2 -2
  3. package/esm2022/src/core_render3_private_export.mjs +2 -2
  4. package/esm2022/src/defer/instructions.mjs +3 -3
  5. package/esm2022/src/hydration/api.mjs +3 -3
  6. package/esm2022/src/image_performance_warning.mjs +4 -4
  7. package/esm2022/src/linker/component_factory.mjs +1 -3
  8. package/esm2022/src/linker/view_ref.mjs +1 -1
  9. package/esm2022/src/render3/after_render_hooks.mjs +4 -4
  10. package/esm2022/src/render3/component_ref.mjs +3 -3
  11. package/esm2022/src/render3/features/standalone_feature.mjs +3 -6
  12. package/esm2022/src/render3/instructions/change_detection.mjs +22 -19
  13. package/esm2022/src/render3/instructions/control_flow.mjs +4 -7
  14. package/esm2022/src/render3/list_reconciliation.mjs +5 -4
  15. package/esm2022/src/render3/metadata.mjs +20 -20
  16. package/esm2022/src/render3/view_ref.mjs +5 -28
  17. package/esm2022/src/util/performance.mjs +9 -4
  18. package/esm2022/src/version.mjs +1 -1
  19. package/esm2022/testing/src/logger.mjs +3 -3
  20. package/esm2022/testing/src/test_bed.mjs +3 -3
  21. package/esm2022/testing/src/test_bed_compiler.mjs +7 -7
  22. package/fesm2022/core.mjs +70 -92
  23. package/fesm2022/core.mjs.map +1 -1
  24. package/fesm2022/primitives/signals.mjs +1 -1
  25. package/fesm2022/rxjs-interop.mjs +1 -1
  26. package/fesm2022/testing.mjs +8 -8
  27. package/fesm2022/testing.mjs.map +1 -1
  28. package/index.d.ts +12 -17
  29. package/package.json +1 -1
  30. package/primitives/signals/index.d.ts +1 -1
  31. package/rxjs-interop/index.d.ts +1 -1
  32. package/schematics/migrations/block-template-entities/bundle.js +160 -160
  33. package/schematics/migrations/block-template-entities/bundle.js.map +1 -1
  34. package/schematics/migrations/compiler-options/bundle.js +13 -13
  35. package/schematics/migrations/transfer-state/bundle.js +13 -13
  36. package/schematics/ng-generate/control-flow-migration/bundle.js +494 -370
  37. package/schematics/ng-generate/control-flow-migration/bundle.js.map +4 -4
  38. package/schematics/ng-generate/standalone-migration/bundle.js +506 -446
  39. package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
  40. package/testing/index.d.ts +1 -1
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v17.0.0
2
+ * @license Angular v17.0.2
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1620,8 +1620,6 @@ declare interface ComponentDependencies {
1620
1620
  * Instantiate a factory for a given type of component with `resolveComponentFactory()`.
1621
1621
  * Use the resulting `ComponentFactory.create()` method to create a component of that type.
1622
1622
  *
1623
- * @see [Dynamic Components](guide/dynamic-component-loader)
1624
- *
1625
1623
  * @publicApi
1626
1624
  *
1627
1625
  * @deprecated Angular no longer requires Component factories. Please use other APIs where
@@ -5168,11 +5166,6 @@ declare interface InternalNgModuleRef<T> extends NgModuleRef<T> {
5168
5166
  _bootstrapComponents: Type<any>[];
5169
5167
  }
5170
5168
 
5171
- declare interface InternalViewRef extends ViewRef {
5172
- detachFromAppRef(): void;
5173
- attachToAppRef(appRef: ViewRefTracker): void;
5174
- }
5175
-
5176
5169
 
5177
5170
  /**
5178
5171
  * Returns whether Angular is in development mode.
@@ -11374,10 +11367,11 @@ export declare function ɵformatRuntimeError<T extends number = ɵRuntimeErrorCo
11374
11367
  export declare function ɵgenerateStandaloneInDeclarationsError(type: Type<any>, location: string): string;
11375
11368
 
11376
11369
  /**
11377
- * If a given component has unresolved async metadata - this function returns a reference to
11378
- * a Promise that represents dependency loading. Otherwise - this function returns `null`.
11370
+ * If a given component has unresolved async metadata - returns a reference
11371
+ * to a function that applies component metadata after resolving defer-loadable
11372
+ * dependencies. Otherwise - this function returns `null`.
11379
11373
  */
11380
- export declare function ɵgetAsyncClassMetadata(type: Type<unknown>): Promise<Array<Type<unknown>>> | null;
11374
+ export declare function ɵgetAsyncClassMetadataFn(type: Type<unknown>): (() => Promise<Array<Type<unknown>>>) | null;
11381
11375
 
11382
11376
  /**
11383
11377
  * Retrieves all defer blocks in a given LView.
@@ -11883,13 +11877,13 @@ export declare function ɵpatchComponentDefWithScope<C>(componentDef: ɵComponen
11883
11877
 
11884
11878
 
11885
11879
  /**
11886
- * A guarded `performance.mark`.
11880
+ * A guarded `performance.mark` for feature marking.
11887
11881
  *
11888
11882
  * This method exists because while all supported browser and node.js version supported by Angular
11889
11883
  * support performance.mark API. This is not the case for other environments such as JSDOM and
11890
11884
  * Cloudflare workers.
11891
11885
  */
11892
- export declare function ɵperformanceMark(markName: string, markOptions?: PerformanceMarkOptions | undefined): PerformanceMark | undefined;
11886
+ export declare function ɵperformanceMarkFeature(feature: string): void;
11893
11887
 
11894
11888
  /**
11895
11889
  * Runtime link information for Pipes.
@@ -12352,13 +12346,13 @@ export declare function ɵsetClassMetadata(type: Type<any>, decorators: any[] |
12352
12346
 
12353
12347
  /**
12354
12348
  * Handles the process of applying metadata info to a component class in case
12355
- * component template had defer blocks (thus some dependencies became deferrable).
12349
+ * component template has defer blocks (thus some dependencies became deferrable).
12356
12350
  *
12357
12351
  * @param type Component class where metadata should be added
12358
12352
  * @param dependencyLoaderFn Function that loads dependencies
12359
12353
  * @param metadataSetterFn Function that forms a scope in which the `setClassMetadata` is invoked
12360
12354
  */
12361
- export declare function ɵsetClassMetadataAsync(type: Type<any>, dependencyLoaderFn: () => Array<Promise<Type<unknown>>>, metadataSetterFn: (...types: Type<unknown>[]) => void): Promise<Array<Type<unknown>>>;
12355
+ export declare function ɵsetClassMetadataAsync(type: Type<any>, dependencyLoaderFn: () => Array<Promise<Type<unknown>>>, metadataSetterFn: (...types: Type<unknown>[]) => void): () => Promise<Array<Type<unknown>>>;
12362
12356
 
12363
12357
  export declare function ɵsetCurrentInjector(injector: Injector | null | undefined): Injector | undefined | null;
12364
12358
 
@@ -12466,7 +12460,7 @@ export declare function ɵunwrapSafeValue<T>(value: T): T;
12466
12460
  */
12467
12461
  export declare const ɵUSE_RUNTIME_DEPS_TRACKER_FOR_JIT = true;
12468
12462
 
12469
- export declare class ɵViewRef<T> implements EmbeddedViewRef<T>, InternalViewRef, ChangeDetectorRefInterface {
12463
+ export declare class ɵViewRef<T> implements EmbeddedViewRef<T>, ChangeDetectorRefInterface {
12470
12464
  /**
12471
12465
  * This represents the `LView` associated with the point where `ChangeDetectorRef` was
12472
12466
  * requested.
@@ -12474,6 +12468,7 @@ export declare class ɵViewRef<T> implements EmbeddedViewRef<T>, InternalViewRef
12474
12468
  * This may be different from `_lView` if the `_cdRefInjectingView` is an embedded view.
12475
12469
  */
12476
12470
  private _cdRefInjectingView?;
12471
+ private readonly notifyErrorHandler;
12477
12472
  private _appRef;
12478
12473
  private _attachedToViewContainer;
12479
12474
  get rootNodes(): any[];
@@ -12496,7 +12491,7 @@ export declare class ɵViewRef<T> implements EmbeddedViewRef<T>, InternalViewRef
12496
12491
  *
12497
12492
  * This may be different from `_lView` if the `_cdRefInjectingView` is an embedded view.
12498
12493
  */
12499
- _cdRefInjectingView?: LView<unknown> | undefined);
12494
+ _cdRefInjectingView?: LView<unknown> | undefined, notifyErrorHandler?: boolean);
12500
12495
  get context(): T;
12501
12496
  /**
12502
12497
  * @deprecated Replacing the full context object is not supported. Modify the context
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/core",
3
- "version": "17.0.0",
3
+ "version": "17.0.2",
4
4
  "description": "Angular - the core framework",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v17.0.0
2
+ * @license Angular v17.0.2
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v17.0.0
2
+ * @license Angular v17.0.2
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */