@angular/core 17.1.1 → 17.1.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.
Files changed (61) hide show
  1. package/esm2022/src/application/application_init.mjs +2 -2
  2. package/esm2022/src/application/application_ref.mjs +55 -17
  3. package/esm2022/src/application/application_tokens.mjs +9 -9
  4. package/esm2022/src/authoring/input.mjs +1 -1
  5. package/esm2022/src/authoring/input_signal.mjs +1 -1
  6. package/esm2022/src/authoring/input_type_checking.mjs +1 -1
  7. package/esm2022/src/authoring.mjs +1 -1
  8. package/esm2022/src/change_detection/scheduling/zoneless_scheduling_impl.mjs +51 -18
  9. package/esm2022/src/core_private_export.mjs +2 -2
  10. package/esm2022/src/defer/instructions.mjs +16 -7
  11. package/esm2022/src/di/forward_ref.mjs +1 -1
  12. package/esm2022/src/di/initializer_token.mjs +2 -2
  13. package/esm2022/src/di/injector.mjs +4 -4
  14. package/esm2022/src/di/injector_token.mjs +2 -2
  15. package/esm2022/src/di/internal_tokens.mjs +2 -2
  16. package/esm2022/src/di/scope.mjs +2 -2
  17. package/esm2022/src/hydration/error_handling.mjs +17 -6
  18. package/esm2022/src/hydration/utils.mjs +54 -8
  19. package/esm2022/src/i18n/tokens.mjs +5 -5
  20. package/esm2022/src/linker/compiler.mjs +2 -2
  21. package/esm2022/src/metadata/di.mjs +1 -1
  22. package/esm2022/src/platform/platform.mjs +2 -2
  23. package/esm2022/src/platform/platform_ref.mjs +2 -2
  24. package/esm2022/src/render3/after_render_hooks.mjs +2 -6
  25. package/esm2022/src/render3/component_ref.mjs +1 -1
  26. package/esm2022/src/render3/definition.mjs +1 -1
  27. package/esm2022/src/render3/errors_di.mjs +2 -2
  28. package/esm2022/src/render3/i18n/i18n_locale_id.mjs +2 -2
  29. package/esm2022/src/render3/instructions/change_detection.mjs +6 -6
  30. package/esm2022/src/render3/instructions/element.mjs +3 -3
  31. package/esm2022/src/render3/instructions/write_to_directive_input.mjs +1 -1
  32. package/esm2022/src/render3/util/view_utils.mjs +3 -3
  33. package/esm2022/src/render3/view_ref.mjs +1 -1
  34. package/esm2022/src/util/ng_dev_mode.mjs +11 -3
  35. package/esm2022/src/util/stringify.mjs +2 -2
  36. package/esm2022/src/version.mjs +1 -1
  37. package/esm2022/testing/src/component_fixture.mjs +127 -92
  38. package/esm2022/testing/src/logger.mjs +3 -3
  39. package/esm2022/testing/src/test_bed.mjs +11 -6
  40. package/esm2022/testing/src/test_bed_common.mjs +9 -2
  41. package/esm2022/testing/src/test_bed_compiler.mjs +5 -4
  42. package/esm2022/testing/src/testing.mjs +2 -2
  43. package/fesm2022/core.mjs +510 -376
  44. package/fesm2022/core.mjs.map +1 -1
  45. package/fesm2022/primitives/signals.mjs +1 -1
  46. package/fesm2022/rxjs-interop.mjs +1 -1
  47. package/fesm2022/testing.mjs +142 -95
  48. package/fesm2022/testing.mjs.map +1 -1
  49. package/index.d.ts +85 -23
  50. package/package.json +1 -1
  51. package/primitives/signals/index.d.ts +1 -1
  52. package/rxjs-interop/index.d.ts +1 -1
  53. package/schematics/migrations/block-template-entities/bundle.js +255 -208
  54. package/schematics/migrations/block-template-entities/bundle.js.map +3 -3
  55. package/schematics/migrations/compiler-options/bundle.js +13 -13
  56. package/schematics/migrations/transfer-state/bundle.js +13 -13
  57. package/schematics/ng-generate/control-flow-migration/bundle.js +265 -218
  58. package/schematics/ng-generate/control-flow-migration/bundle.js.map +3 -3
  59. package/schematics/ng-generate/standalone-migration/bundle.js +702 -560
  60. package/schematics/ng-generate/standalone-migration/bundle.js.map +3 -3
  61. package/testing/index.d.ts +6 -17
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v17.1.1
2
+ * @license Angular v17.1.3
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -47,7 +47,7 @@ export declare function async(fn: Function): (done: any) => any;
47
47
  *
48
48
  * @publicApi
49
49
  */
50
- export declare class ComponentFixture<T> {
50
+ export declare abstract class ComponentFixture<T> {
51
51
  componentRef: ComponentRef<T>;
52
52
  /**
53
53
  * The DebugElement associated with the root element of this component.
@@ -70,25 +70,14 @@ export declare class ComponentFixture<T> {
70
70
  */
71
71
  changeDetectorRef: ChangeDetectorRef;
72
72
  private _renderer;
73
- private _isStable;
74
73
  private _isDestroyed;
75
- private _resolve;
76
- private _promise;
77
- private readonly noZoneOptionIsSet;
78
- private _ngZone;
79
- private _autoDetect;
80
- private effectRunner;
81
- private _subscriptions;
82
- private appRef;
83
74
  ngZone: NgZone | null;
84
75
  /** @nodoc */
85
76
  constructor(componentRef: ComponentRef<T>);
86
- private setupNgZone;
87
- private _tick;
88
77
  /**
89
78
  * Trigger a change detection cycle for the component.
90
79
  */
91
- detectChanges(checkNoChanges?: boolean): void;
80
+ abstract detectChanges(checkNoChanges?: boolean): void;
92
81
  /**
93
82
  * Do a change detection run to make sure there were no changes.
94
83
  */
@@ -98,19 +87,19 @@ export declare class ComponentFixture<T> {
98
87
  *
99
88
  * Also runs detectChanges once so that any existing change is detected.
100
89
  */
101
- autoDetectChanges(autoDetect?: boolean): void;
90
+ abstract autoDetectChanges(autoDetect?: boolean): void;
102
91
  /**
103
92
  * Return whether the fixture is currently stable or has async tasks that have not been completed
104
93
  * yet.
105
94
  */
106
- isStable(): boolean;
95
+ abstract isStable(): boolean;
107
96
  /**
108
97
  * Get a promise that resolves when the fixture is stable.
109
98
  *
110
99
  * This can be used to resume testing after events have triggered asynchronous activity or
111
100
  * asynchronous change detection.
112
101
  */
113
- whenStable(): Promise<any>;
102
+ abstract whenStable(): Promise<any>;
114
103
  /**
115
104
  * Retrieves all defer block fixtures in the component fixture.
116
105
  *