@angular/core 17.0.5 → 17.0.7

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 (62) hide show
  1. package/esm2022/primitives/signals/src/signal.mjs +2 -9
  2. package/esm2022/src/application/application_config.mjs +21 -0
  3. package/esm2022/src/application/application_init.mjs +188 -0
  4. package/esm2022/src/application/application_module.mjs +29 -0
  5. package/esm2022/src/application/application_ref.mjs +509 -0
  6. package/esm2022/src/application/application_tokens.mjs +121 -0
  7. package/esm2022/src/application/create_application.mjs +102 -0
  8. package/esm2022/src/change_detection/scheduling.mjs +103 -0
  9. package/esm2022/src/core.mjs +10 -7
  10. package/esm2022/src/core_private_export.mjs +5 -3
  11. package/esm2022/src/core_reactivity_export_internal.mjs +2 -2
  12. package/esm2022/src/core_render3_private_export.mjs +2 -2
  13. package/esm2022/src/error_handler.mjs +15 -1
  14. package/esm2022/src/hydration/annotate.mjs +30 -20
  15. package/esm2022/src/hydration/api.mjs +2 -2
  16. package/esm2022/src/hydration/cleanup.mjs +1 -1
  17. package/esm2022/src/hydration/interfaces.mjs +1 -1
  18. package/esm2022/src/hydration/node_lookup_utils.mjs +23 -2
  19. package/esm2022/src/image_performance_warning.mjs +2 -2
  20. package/esm2022/src/linker/query_list.mjs +8 -6
  21. package/esm2022/src/metadata/do_bootstrap.mjs +1 -1
  22. package/esm2022/src/platform/platform.mjs +135 -0
  23. package/esm2022/src/platform/platform_core_providers.mjs +15 -0
  24. package/esm2022/src/platform/platform_ref.mjs +179 -0
  25. package/esm2022/src/render3/instructions/change_detection.mjs +2 -4
  26. package/esm2022/src/render3/list_reconciliation.mjs +58 -24
  27. package/esm2022/src/render3/node_manipulation.mjs +2 -2
  28. package/esm2022/src/render3/util/change_detection_utils.mjs +3 -1
  29. package/esm2022/src/render3/util/misc_utils.mjs +2 -2
  30. package/esm2022/src/render3/view_manipulation.mjs +13 -5
  31. package/esm2022/src/render3/view_ref.mjs +7 -1
  32. package/esm2022/src/transfer_state.mjs +2 -2
  33. package/esm2022/src/util/performance.mjs +2 -2
  34. package/esm2022/src/version.mjs +1 -1
  35. package/esm2022/src/zone/ng_zone.mjs +10 -1
  36. package/esm2022/testing/src/component_fixture.mjs +20 -36
  37. package/esm2022/testing/src/logger.mjs +3 -3
  38. package/esm2022/testing/src/test_bed.mjs +5 -6
  39. package/fesm2022/core.mjs +1263 -1191
  40. package/fesm2022/core.mjs.map +1 -1
  41. package/fesm2022/primitives/signals.mjs +2 -9
  42. package/fesm2022/primitives/signals.mjs.map +1 -1
  43. package/fesm2022/rxjs-interop.mjs +1 -1
  44. package/fesm2022/testing.mjs +46 -64
  45. package/fesm2022/testing.mjs.map +1 -1
  46. package/index.d.ts +18 -14
  47. package/package.json +1 -1
  48. package/primitives/signals/index.d.ts +1 -1
  49. package/rxjs-interop/index.d.ts +1 -1
  50. package/schematics/migrations/block-template-entities/bundle.js +958 -457
  51. package/schematics/migrations/block-template-entities/bundle.js.map +4 -4
  52. package/schematics/ng-generate/control-flow-migration/bundle.js +1221 -525
  53. package/schematics/ng-generate/control-flow-migration/bundle.js.map +4 -4
  54. package/schematics/ng-generate/standalone-migration/bundle.js +1143 -509
  55. package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
  56. package/testing/index.d.ts +6 -10
  57. package/esm2022/src/application_config.mjs +0 -21
  58. package/esm2022/src/application_init.mjs +0 -188
  59. package/esm2022/src/application_module.mjs +0 -29
  60. package/esm2022/src/application_ref.mjs +0 -997
  61. package/esm2022/src/application_tokens.mjs +0 -121
  62. package/esm2022/src/platform_core_providers.mjs +0 -15
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v17.0.5
2
+ * @license Angular v17.0.7
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -2598,6 +2598,11 @@ declare interface DehydratedView {
2598
2598
  /**
2599
2599
  * A reference to the first child in a DOM segment associated
2600
2600
  * with a given hydration boundary.
2601
+ *
2602
+ * Once a view becomes hydrated, the value is set to `null`, which
2603
+ * indicates that further detaching/attaching view actions should result
2604
+ * in invoking corresponding DOM actions (attaching DOM nodes action is
2605
+ * skipped when we hydrate, since nodes are already in the DOM).
2601
2606
  */
2602
2607
  firstChild: RNode | null;
2603
2608
  /**
@@ -3610,7 +3615,6 @@ export declare type EnvironmentProviders = {
3610
3615
  ɵbrand: 'EnvironmentProviders';
3611
3616
  };
3612
3617
 
3613
-
3614
3618
  /**
3615
3619
  * Provides a hook for centralized exception handling.
3616
3620
  *
@@ -3843,6 +3847,16 @@ export declare interface FactorySansProvider {
3843
3847
 
3844
3848
  declare const FLAGS = 2;
3845
3849
 
3850
+ /**
3851
+ * Interface to an `EffectScheduler` capable of running scheduled effects synchronously.
3852
+ */
3853
+ declare interface FlushableEffectRunner {
3854
+ /**
3855
+ * Run any scheduled effects.
3856
+ */
3857
+ flush(): void;
3858
+ }
3859
+
3846
3860
  /**
3847
3861
  * Allows to refer to references which are not yet defined.
3848
3862
  *
@@ -5907,7 +5921,7 @@ declare interface LViewEnvironment {
5907
5921
  /** An optional custom sanitizer. */
5908
5922
  sanitizer: Sanitizer | null;
5909
5923
  /** Container for reactivity system `effect`s. */
5910
- inlineEffectRunner: ɵFlushableEffectRunner | null;
5924
+ inlineEffectRunner: FlushableEffectRunner | null;
5911
5925
  /** Container for after render hooks */
5912
5926
  afterRenderEventManager: ɵAfterRenderEventManager | null;
5913
5927
  }
@@ -11332,16 +11346,6 @@ export declare const enum ɵExtraLocaleDataIndex {
11332
11346
  */
11333
11347
  export declare function ɵfindLocaleData(locale: string): any;
11334
11348
 
11335
- /**
11336
- * Interface to an `EffectScheduler` capable of running scheduled effects synchronously.
11337
- */
11338
- export declare interface ɵFlushableEffectRunner {
11339
- /**
11340
- * Run any scheduled effects.
11341
- */
11342
- flush(): void;
11343
- }
11344
-
11345
11349
  /**
11346
11350
  * Loops over queued module definitions, if a given module definition has all of its
11347
11351
  * declarations resolved, it dequeues that module definition and sets the scope on
@@ -12726,7 +12730,7 @@ export declare const ɵXSS_SECURITY_URL = "https://g.co/ng/security#xss";
12726
12730
  * An `EffectScheduler` which is capable of queueing scheduled effects per-zone, and flushing them
12727
12731
  * as an explicit operation.
12728
12732
  */
12729
- export declare class ɵZoneAwareQueueingScheduler implements ɵEffectScheduler, ɵFlushableEffectRunner {
12733
+ export declare class ɵZoneAwareQueueingScheduler implements ɵEffectScheduler, FlushableEffectRunner {
12730
12734
  private queuedEffectCount;
12731
12735
  private queues;
12732
12736
  scheduleEffect(handle: SchedulableEffect): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/core",
3
- "version": "17.0.5",
3
+ "version": "17.0.7",
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.5
2
+ * @license Angular v17.0.7
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.5
2
+ * @license Angular v17.0.7
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */