@angular/core 17.1.0-rc.0 → 17.1.0

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 (33) hide show
  1. package/esm2022/src/core_reactivity_export_internal.mjs +2 -2
  2. package/esm2022/src/defer/interfaces.mjs +3 -2
  3. package/esm2022/src/metadata/directives.mjs +1 -1
  4. package/esm2022/src/render3/component_ref.mjs +1 -1
  5. package/esm2022/src/render3/index.mjs +2 -3
  6. package/esm2022/src/render3/instructions/all.mjs +3 -2
  7. package/esm2022/src/render3/instructions/queries.mjs +98 -0
  8. package/esm2022/src/render3/interfaces/view.mjs +1 -1
  9. package/esm2022/src/render3/query.mjs +11 -98
  10. package/esm2022/src/render3/reactivity/effect.mjs +15 -37
  11. package/esm2022/src/version.mjs +1 -1
  12. package/esm2022/testing/src/component_fixture.mjs +5 -5
  13. package/esm2022/testing/src/logger.mjs +3 -3
  14. package/esm2022/testing/src/test_bed.mjs +7 -6
  15. package/fesm2022/core.mjs +8009 -8029
  16. package/fesm2022/core.mjs.map +1 -1
  17. package/fesm2022/primitives/signals.mjs +1 -1
  18. package/fesm2022/rxjs-interop.mjs +1 -1
  19. package/fesm2022/testing.mjs +10 -9
  20. package/fesm2022/testing.mjs.map +1 -1
  21. package/index.d.ts +8 -33
  22. package/package.json +1 -1
  23. package/primitives/signals/index.d.ts +1 -1
  24. package/rxjs-interop/index.d.ts +1 -1
  25. package/schematics/migrations/block-template-entities/bundle.js +200 -166
  26. package/schematics/migrations/block-template-entities/bundle.js.map +3 -3
  27. package/schematics/migrations/compiler-options/bundle.js +13 -13
  28. package/schematics/migrations/transfer-state/bundle.js +13 -13
  29. package/schematics/ng-generate/control-flow-migration/bundle.js +209 -175
  30. package/schematics/ng-generate/control-flow-migration/bundle.js.map +3 -3
  31. package/schematics/ng-generate/standalone-migration/bundle.js +895 -600
  32. package/schematics/ng-generate/standalone-migration/bundle.js.map +3 -3
  33. package/testing/index.d.ts +1 -1
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v17.1.0-rc.0
2
+ * @license Angular v17.1.0
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -3886,16 +3886,6 @@ export declare interface FactorySansProvider {
3886
3886
 
3887
3887
  declare const FLAGS = 2;
3888
3888
 
3889
- /**
3890
- * Interface to an `EffectScheduler` capable of running scheduled effects synchronously.
3891
- */
3892
- declare interface FlushableEffectRunner {
3893
- /**
3894
- * Run any scheduled effects.
3895
- */
3896
- flush(): void;
3897
- }
3898
-
3899
3889
  /**
3900
3890
  * Allows to refer to references which are not yet defined.
3901
3891
  *
@@ -6397,7 +6387,7 @@ declare interface LViewEnvironment {
6397
6387
  /** An optional custom sanitizer. */
6398
6388
  sanitizer: Sanitizer | null;
6399
6389
  /** Container for reactivity system `effect`s. */
6400
- inlineEffectRunner: FlushableEffectRunner | null;
6390
+ inlineEffectRunner: ɵEffectScheduler | null;
6401
6391
  /** Container for after render hooks */
6402
6392
  afterRenderEventManager: ɵAfterRenderEventManager | null;
6403
6393
  /** Scheduler for change detection to notify when application state changes. */
@@ -11598,11 +11588,12 @@ export declare const ɵDEFER_BLOCK_DEPENDENCY_INTERCEPTOR: InjectionToken<ɵDefe
11598
11588
  export declare enum ɵDeferBlockBehavior {
11599
11589
  /**
11600
11590
  * Manual triggering mode for defer blocks. Provides control over when defer blocks render
11601
- * and which state they render. This is the default behavior in test environments.
11591
+ * and which state they render.
11602
11592
  */
11603
11593
  Manual = 0,
11604
11594
  /**
11605
11595
  * Playthrough mode for defer blocks. This mode behaves like defer blocks would in a browser.
11596
+ * This is the default behavior in test environments.
11606
11597
  */
11607
11598
  Playthrough = 1
11608
11599
  }
@@ -11837,6 +11828,10 @@ export declare abstract class ɵEffectScheduler {
11837
11828
  * It is an error to attempt to execute any effects synchronously during a scheduling operation.
11838
11829
  */
11839
11830
  abstract scheduleEffect(e: SchedulableEffect): void;
11831
+ /**
11832
+ * Run any scheduled effects.
11833
+ */
11834
+ abstract flush(): void;
11840
11835
  /** @nocollapse */
11841
11836
  static ɵprov: unknown;
11842
11837
  }
@@ -13277,26 +13272,6 @@ export declare type ɵWritable<T> = {
13277
13272
  */
13278
13273
  export declare const ɵXSS_SECURITY_URL = "https://g.co/ng/security#xss";
13279
13274
 
13280
- /**
13281
- * An `EffectScheduler` which is capable of queueing scheduled effects per-zone, and flushing them
13282
- * as an explicit operation.
13283
- */
13284
- export declare class ɵZoneAwareQueueingScheduler implements ɵEffectScheduler, FlushableEffectRunner {
13285
- private queuedEffectCount;
13286
- private queues;
13287
- scheduleEffect(handle: SchedulableEffect): void;
13288
- /**
13289
- * Run all scheduled effects.
13290
- *
13291
- * Execution order of effects within the same zone is guaranteed to be FIFO, but there is no
13292
- * ordering guarantee between effects scheduled in different zones.
13293
- */
13294
- flush(): void;
13295
- private flushQueue;
13296
- /** @nocollapse */
13297
- static ɵprov: unknown;
13298
- }
13299
-
13300
13275
  /**
13301
13276
  * Advances to an element for later binding instructions.
13302
13277
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/core",
3
- "version": "17.1.0-rc.0",
3
+ "version": "17.1.0",
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.1.0-rc.0
2
+ * @license Angular v17.1.0
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.1.0-rc.0
2
+ * @license Angular v17.1.0
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */