@angular/core 19.1.0-next.4 → 19.1.0-rc.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 (39) hide show
  1. package/LICENSE +1 -1
  2. package/fesm2022/core.mjs +190 -162
  3. package/fesm2022/core.mjs.map +1 -1
  4. package/fesm2022/primitives/event-dispatch.mjs +1 -24
  5. package/fesm2022/primitives/event-dispatch.mjs.map +1 -1
  6. package/fesm2022/primitives/signals.mjs +1 -1
  7. package/fesm2022/rxjs-interop.mjs +1 -1
  8. package/fesm2022/testing.mjs +5 -5
  9. package/index.d.ts +17 -11
  10. package/package.json +1 -1
  11. package/primitives/event-dispatch/index.d.ts +1 -1
  12. package/primitives/signals/index.d.ts +1 -1
  13. package/rxjs-interop/index.d.ts +1 -1
  14. package/schematics/bundles/apply_import_manager-6508401d.js +732 -0
  15. package/schematics/bundles/{checker-884633eb.js → checker-24b68d23.js} +33 -9
  16. package/schematics/bundles/cleanup-unused-imports.js +295 -0
  17. package/schematics/bundles/{compiler_host-22f6513d.js → compiler_host-5f693799.js} +2 -2
  18. package/schematics/bundles/control-flow-migration.js +3 -3
  19. package/schematics/bundles/explicit-standalone-flag.js +3 -3
  20. package/schematics/bundles/imports-abe29092.js +1 -1
  21. package/schematics/bundles/{combine_units-4a95b1b9.js → index-767e341d.js} +10 -723
  22. package/schematics/bundles/index-b1033cf0.js +30 -0
  23. package/schematics/bundles/inject-migration.js +3 -3
  24. package/schematics/bundles/leading_space-d190b83b.js +1 -1
  25. package/schematics/bundles/{migrate_ts_type_references-4b11f3f2.js → migrate_ts_type_references-bc7d8784.js} +29 -28
  26. package/schematics/bundles/nodes-a9f0b985.js +1 -1
  27. package/schematics/bundles/output-migration.js +26 -25
  28. package/schematics/bundles/pending-tasks.js +3 -3
  29. package/schematics/bundles/{program-094352ba.js → program-c810a4c2.js} +81 -40
  30. package/schematics/bundles/project_tsconfig_paths-e9ccccbf.js +1 -1
  31. package/schematics/bundles/provide-initializer.js +3 -3
  32. package/schematics/bundles/route-lazy-loading.js +3 -3
  33. package/schematics/bundles/signal-input-migration.js +31 -30
  34. package/schematics/bundles/signal-queries-migration.js +48 -47
  35. package/schematics/bundles/signals.js +6 -5
  36. package/schematics/bundles/standalone-migration.js +9 -25
  37. package/schematics/collection.json +5 -0
  38. package/schematics/ng-generate/cleanup-unused-imports/schema.json +7 -0
  39. package/testing/index.d.ts +1 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.1.0-next.4
2
+ * @license Angular v19.1.0-rc.0
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.1.0-next.4
2
+ * @license Angular v19.1.0-rc.0
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.1.0-next.4
2
+ * @license Angular v19.1.0-rc.0
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -175,10 +175,10 @@ class TestBedApplicationErrorHandler {
175
175
  throw e;
176
176
  }
177
177
  }
178
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0-next.4", ngImport: i0, type: TestBedApplicationErrorHandler, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
179
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0-next.4", ngImport: i0, type: TestBedApplicationErrorHandler });
178
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0-rc.0", ngImport: i0, type: TestBedApplicationErrorHandler, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
179
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0-rc.0", ngImport: i0, type: TestBedApplicationErrorHandler });
180
180
  }
181
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-next.4", ngImport: i0, type: TestBedApplicationErrorHandler, decorators: [{
181
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-rc.0", ngImport: i0, type: TestBedApplicationErrorHandler, decorators: [{
182
182
  type: Injectable
183
183
  }] });
184
184
 
@@ -246,7 +246,7 @@ class ComponentFixture {
246
246
  this.componentRef = componentRef;
247
247
  if (this.autoDetect) {
248
248
  this._testAppRef.externalTestViews.add(this.componentRef.hostView);
249
- this.scheduler?.notify(9 /* ɵNotificationSource.ViewAttached */);
249
+ this.scheduler?.notify(8 /* ɵNotificationSource.ViewAttached */);
250
250
  this.scheduler?.notify(0 /* ɵNotificationSource.MarkAncestorsForTraversal */);
251
251
  }
252
252
  this.componentRef.hostView.onDestroy(() => {
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.1.0-next.4
2
+ * @license Angular v19.1.0-rc.0
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -29,6 +29,8 @@ export declare interface AbstractType<T> extends Function {
29
29
  prototype: T;
30
30
  }
31
31
 
32
+ declare const AFTER_RENDER_SEQUENCES_TO_ADD = 25;
33
+
32
34
  /**
33
35
  * @description
34
36
  * A lifecycle hook that is called after the default change detector has
@@ -486,6 +488,7 @@ declare class AfterRenderImpl {
486
488
  */
487
489
  execute(): void;
488
490
  register(sequence: AfterRenderSequence): void;
491
+ addSequence(sequence: AfterRenderSequence): void;
489
492
  unregister(sequence: AfterRenderSequence): void;
490
493
  protected maybeTrace<T>(fn: () => T, snapshot: ɵTracingSnapshot | null): T;
491
494
  /** @nocollapse */
@@ -605,6 +608,7 @@ export declare interface AfterRenderRef {
605
608
  declare class AfterRenderSequence implements AfterRenderRef {
606
609
  readonly impl: AfterRenderImpl;
607
610
  readonly hooks: AfterRenderHooks;
611
+ readonly view: LView | undefined;
608
612
  once: boolean;
609
613
  snapshot: ɵTracingSnapshot | null;
610
614
  /**
@@ -618,7 +622,7 @@ declare class AfterRenderSequence implements AfterRenderRef {
618
622
  */
619
623
  pipelinedValue: unknown;
620
624
  private unregisterOnDestroy;
621
- constructor(impl: AfterRenderImpl, hooks: AfterRenderHooks, once: boolean, destroyRef: DestroyRef | null, snapshot?: ɵTracingSnapshot | null);
625
+ constructor(impl: AfterRenderImpl, hooks: AfterRenderHooks, view: LView | undefined, once: boolean, destroyRef: DestroyRef | null, snapshot?: ɵTracingSnapshot | null);
622
626
  afterRun(): void;
623
627
  destroy(): void;
624
628
  }
@@ -1170,7 +1174,6 @@ export declare class ApplicationRef {
1170
1174
  * Returns the number of attached views.
1171
1175
  */
1172
1176
  get viewCount(): number;
1173
- private warnIfDestroyed;
1174
1177
  static ɵfac: i0.ɵɵFactoryDeclaration<ApplicationRef, never>;
1175
1178
  static ɵprov: i0.ɵɵInjectableDeclaration<ApplicationRef>;
1176
1179
  }
@@ -7281,6 +7284,7 @@ declare interface LView<T = unknown> extends Array<any> {
7281
7284
  * if any signals were read.
7282
7285
  */
7283
7286
  [REACTIVE_TEMPLATE_CONSUMER]: ReactiveLViewConsumer | null;
7287
+ [AFTER_RENDER_SEQUENCES_TO_ADD]: AfterRenderSequence[] | null;
7284
7288
  }
7285
7289
 
7286
7290
  /**
@@ -12732,6 +12736,7 @@ declare class ZoneAwareEffectScheduler implements ɵEffectScheduler {
12732
12736
  private queuedEffectCount;
12733
12737
  private queues;
12734
12738
  schedule(handle: SchedulableEffect): void;
12739
+ remove(handle: SchedulableEffect): void;
12735
12740
  private enqueue;
12736
12741
  /**
12737
12742
  * Run all scheduled effects.
@@ -13543,6 +13548,8 @@ export declare abstract class ɵEffectScheduler {
13543
13548
  * Run any scheduled effects.
13544
13549
  */
13545
13550
  abstract flush(): void;
13551
+ /** Remove a scheduled effect */
13552
+ abstract remove(e: SchedulableEffect): void;
13546
13553
  /** @nocollapse */
13547
13554
  static ɵprov: unknown;
13548
13555
  }
@@ -14190,13 +14197,12 @@ export declare const enum ɵNotificationSource {
14190
14197
  Listener = 5,
14191
14198
  CustomElement = 6,
14192
14199
  RenderHook = 7,
14193
- DeferredRenderHook = 8,
14194
- ViewAttached = 9,
14195
- ViewDetachedFromDOM = 10,
14196
- AsyncAnimationsLoaded = 11,
14197
- PendingTaskRemoved = 12,
14198
- RootEffect = 13,
14199
- ViewEffect = 14
14200
+ ViewAttached = 8,
14201
+ ViewDetachedFromDOM = 9,
14202
+ AsyncAnimationsLoaded = 10,
14203
+ PendingTaskRemoved = 11,
14204
+ RootEffect = 12,
14205
+ ViewEffect = 13
14200
14206
  }
14201
14207
 
14202
14208
  /**
@@ -14696,7 +14702,7 @@ export declare const enum ɵRuntimeErrorCode {
14696
14702
  ASSERTION_NOT_INSIDE_REACTIVE_CONTEXT = -602,
14697
14703
  INVALID_I18N_STRUCTURE = 700,
14698
14704
  MISSING_LOCALE_DATA = 701,
14699
- DEFER_LOADING_FAILED = 750,
14705
+ DEFER_LOADING_FAILED = -750,
14700
14706
  IMPORT_PROVIDERS_FROM_STANDALONE = 800,
14701
14707
  INVALID_DIFFER_INPUT = 900,
14702
14708
  NO_SUPPORTING_DIFFER_FACTORY = 901,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/core",
3
- "version": "19.1.0-next.4",
3
+ "version": "19.1.0-rc.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 v19.1.0-next.4
2
+ * @license Angular v19.1.0-rc.0
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.1.0-next.4
2
+ * @license Angular v19.1.0-rc.0
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.1.0-next.4
2
+ * @license Angular v19.1.0-rc.0
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */