@angular/core 18.0.0-next.1 → 18.0.0-next.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 (78) hide show
  1. package/esm2022/rxjs-interop/src/to_signal.mjs +2 -2
  2. package/esm2022/src/application/application_init.mjs +2 -2
  3. package/esm2022/src/application/application_ref.mjs +10 -15
  4. package/esm2022/src/application/application_tokens.mjs +3 -3
  5. package/esm2022/src/authoring/input/input.mjs +37 -14
  6. package/esm2022/src/authoring/input/input_signal.mjs +1 -1
  7. package/esm2022/src/authoring/input/input_signal_node.mjs +1 -1
  8. package/esm2022/src/authoring/input/input_type_checking.mjs +1 -1
  9. package/esm2022/src/authoring/model/model.mjs +35 -15
  10. package/esm2022/src/authoring/output/output.mjs +32 -10
  11. package/esm2022/src/authoring/queries.mjs +11 -1
  12. package/esm2022/src/change_detection/scheduling/ng_zone_scheduling.mjs +38 -4
  13. package/esm2022/src/change_detection/scheduling/zoneless_scheduling.mjs +5 -1
  14. package/esm2022/src/change_detection/scheduling/zoneless_scheduling_impl.mjs +91 -22
  15. package/esm2022/src/compiler/compiler_facade_interface.mjs +1 -1
  16. package/esm2022/src/core_private_export.mjs +4 -4
  17. package/esm2022/src/core_render3_private_export.mjs +2 -2
  18. package/esm2022/src/defer/instructions.mjs +23 -9
  19. package/esm2022/src/di/interface/provider.mjs +1 -1
  20. package/esm2022/src/di/metadata.mjs +1 -1
  21. package/esm2022/src/hydration/annotate.mjs +35 -49
  22. package/esm2022/src/hydration/api.mjs +36 -13
  23. package/esm2022/src/hydration/cleanup.mjs +4 -18
  24. package/esm2022/src/hydration/i18n.mjs +378 -0
  25. package/esm2022/src/hydration/interfaces.mjs +2 -1
  26. package/esm2022/src/hydration/node_lookup_utils.mjs +24 -10
  27. package/esm2022/src/hydration/utils.mjs +61 -2
  28. package/esm2022/src/linker/component_factory.mjs +1 -1
  29. package/esm2022/src/linker/view_container_ref.mjs +2 -2
  30. package/esm2022/src/linker/view_ref.mjs +4 -4
  31. package/esm2022/src/metadata/directives.mjs +1 -1
  32. package/esm2022/src/metadata/ng_module.mjs +1 -1
  33. package/esm2022/src/platform/platform_ref.mjs +3 -2
  34. package/esm2022/src/render3/component_ref.mjs +1 -1
  35. package/esm2022/src/render3/debug/framework_injector_profiler.mjs +2 -2
  36. package/esm2022/src/render3/i18n/i18n_apply.mjs +28 -6
  37. package/esm2022/src/render3/i18n/i18n_parse.mjs +2 -5
  38. package/esm2022/src/render3/i18n/i18n_util.mjs +6 -1
  39. package/esm2022/src/render3/instructions/control_flow.mjs +24 -15
  40. package/esm2022/src/render3/instructions/i18n.mjs +3 -1
  41. package/esm2022/src/render3/instructions/projection.mjs +35 -9
  42. package/esm2022/src/render3/instructions/template.mjs +45 -24
  43. package/esm2022/src/render3/jit/partial.mjs +13 -2
  44. package/esm2022/src/render3/util/injector_discovery_utils.mjs +13 -9
  45. package/esm2022/src/render3/util/view_utils.mjs +4 -14
  46. package/esm2022/src/util/callback_scheduler.mjs +25 -30
  47. package/esm2022/src/version.mjs +1 -1
  48. package/esm2022/src/zone/ng_zone.mjs +3 -3
  49. package/esm2022/testing/src/component_fixture.mjs +24 -59
  50. package/esm2022/testing/src/fake_async.mjs +6 -1
  51. package/esm2022/testing/src/logger.mjs +3 -3
  52. package/esm2022/testing/src/private_export.mjs +9 -0
  53. package/esm2022/testing/src/test_bed.mjs +4 -4
  54. package/esm2022/testing/src/test_hooks.mjs +3 -3
  55. package/esm2022/testing/src/testing.mjs +3 -2
  56. package/fesm2022/core.mjs +1499 -823
  57. package/fesm2022/core.mjs.map +1 -1
  58. package/fesm2022/primitives/signals.mjs +1 -1
  59. package/fesm2022/rxjs-interop.mjs +2 -2
  60. package/fesm2022/rxjs-interop.mjs.map +1 -1
  61. package/fesm2022/testing.mjs +64 -94
  62. package/fesm2022/testing.mjs.map +1 -1
  63. package/index.d.ts +269 -149
  64. package/package.json +1 -1
  65. package/primitives/signals/index.d.ts +1 -1
  66. package/rxjs-interop/index.d.ts +2 -2
  67. package/schematics/migrations/block-template-entities/bundle.js +313 -255
  68. package/schematics/migrations/block-template-entities/bundle.js.map +3 -3
  69. package/schematics/migrations/compiler-options/bundle.js +13 -13
  70. package/schematics/migrations/invalid-two-way-bindings/bundle.js +316 -257
  71. package/schematics/migrations/invalid-two-way-bindings/bundle.js.map +3 -3
  72. package/schematics/migrations/transfer-state/bundle.js +13 -13
  73. package/schematics/ng-generate/control-flow-migration/bundle.js +349 -276
  74. package/schematics/ng-generate/control-flow-migration/bundle.js.map +3 -3
  75. package/schematics/ng-generate/standalone-migration/bundle.js +1811 -1330
  76. package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
  77. package/testing/index.d.ts +10 -3
  78. package/esm2022/src/change_detection/flags.mjs +0 -17
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v18.0.0-next.1
2
+ * @license Angular v18.0.0-next.3
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -71,6 +71,7 @@ export declare abstract class ComponentFixture<T> {
71
71
  changeDetectorRef: ChangeDetectorRef;
72
72
  private _renderer;
73
73
  private _isDestroyed;
74
+ private readonly pendingTasks;
74
75
  ngZone: NgZone | null;
75
76
  /** @nodoc */
76
77
  constructor(componentRef: ComponentRef<T>);
@@ -92,14 +93,14 @@ export declare abstract class ComponentFixture<T> {
92
93
  * Return whether the fixture is currently stable or has async tasks that have not been completed
93
94
  * yet.
94
95
  */
95
- abstract isStable(): boolean;
96
+ isStable(): boolean;
96
97
  /**
97
98
  * Get a promise that resolves when the fixture is stable.
98
99
  *
99
100
  * This can be used to resume testing after events have triggered asynchronous activity or
100
101
  * asynchronous change detection.
101
102
  */
102
- abstract whenStable(): Promise<any>;
103
+ whenStable(): Promise<any>;
103
104
  /**
104
105
  * Retrieves all defer block fixtures in the component fixture.
105
106
  *
@@ -539,6 +540,12 @@ export declare function withModule(moduleDef: TestModuleMetadata): InjectSetupWr
539
540
 
540
541
  export declare function withModule(moduleDef: TestModuleMetadata, fn: Function): () => any;
541
542
 
543
+ /**
544
+ * TODO(atscott): Make public API once we have decided if we want this error and how we want devs to
545
+ * disable it.
546
+ */
547
+ export declare const ɵAllowDetectChangesAndAcknowledgeItCanHideApplicationBugs: InjectionToken<boolean>;
548
+
542
549
  export declare class ɵMetadataOverrider {
543
550
  private _references;
544
551
  /**
@@ -1,17 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- // TODO(atscott): Remove prior to v18 release. Keeping this around in case anyone internally needs
9
- // to opt out temporarily.
10
- let _ensureDirtyViewsAreAlwaysReachable = true;
11
- export function getEnsureDirtyViewsAreAlwaysReachable() {
12
- return _ensureDirtyViewsAreAlwaysReachable;
13
- }
14
- export function setEnsureDirtyViewsAreAlwaysReachable(v) {
15
- _ensureDirtyViewsAreAlwaysReachable = v;
16
- }
17
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmxhZ3MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9jb3JlL3NyYy9jaGFuZ2VfZGV0ZWN0aW9uL2ZsYWdzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7R0FNRztBQUVILGtHQUFrRztBQUNsRywwQkFBMEI7QUFDMUIsSUFBSSxtQ0FBbUMsR0FBRyxJQUFJLENBQUM7QUFFL0MsTUFBTSxVQUFVLHFDQUFxQztJQUNuRCxPQUFPLG1DQUFtQyxDQUFDO0FBQzdDLENBQUM7QUFDRCxNQUFNLFVBQVUscUNBQXFDLENBQUMsQ0FBVTtJQUM5RCxtQ0FBbUMsR0FBRyxDQUFDLENBQUM7QUFDMUMsQ0FBQyIsInNvdXJjZXNDb250ZW50Ijpb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