@angular/core 20.1.0-next.1 → 20.1.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 (76) hide show
  1. package/{api.d-Dwpmmn5j.d.ts → api.d.d.ts} +2 -2
  2. package/{chrome_dev_tools_performance.d-Dk_7kdX9.d.ts → chrome_dev_tools_performance.d.d.ts} +4 -4
  3. package/{discovery.d-AiW64LSq.d.ts → discovery.d.d.ts} +10 -5
  4. package/{event_dispatcher.d-BReQpZfC.d.ts → event_dispatcher.d.d.ts} +1 -1
  5. package/fesm2022/{attribute-BWp59EjE.mjs → attribute.mjs} +2 -2
  6. package/fesm2022/attribute.mjs.map +1 -0
  7. package/fesm2022/core.mjs +19 -21
  8. package/fesm2022/core.mjs.map +1 -1
  9. package/fesm2022/{debug_node-CGQXW8qF.mjs → debug_node.mjs} +245 -25
  10. package/fesm2022/debug_node.mjs.map +1 -0
  11. package/fesm2022/injector.mjs +53 -0
  12. package/fesm2022/injector.mjs.map +1 -0
  13. package/fesm2022/primitives/di.mjs +6 -37
  14. package/fesm2022/primitives/di.mjs.map +1 -1
  15. package/fesm2022/primitives/event-dispatch.mjs +2 -2
  16. package/fesm2022/primitives/event-dispatch.mjs.map +1 -1
  17. package/fesm2022/primitives/signals.mjs +5 -5
  18. package/fesm2022/primitives/signals.mjs.map +1 -1
  19. package/fesm2022/{resource-CIODajJI.mjs → resource.mjs} +12 -8
  20. package/fesm2022/resource.mjs.map +1 -0
  21. package/fesm2022/{root_effect_scheduler-BvK6bnZD.mjs → root_effect_scheduler.mjs} +21 -7
  22. package/fesm2022/root_effect_scheduler.mjs.map +1 -0
  23. package/fesm2022/rxjs-interop.mjs +6 -6
  24. package/fesm2022/rxjs-interop.mjs.map +1 -1
  25. package/fesm2022/{signal-nCiHhWf6.mjs → signal.mjs} +2 -2
  26. package/fesm2022/signal.mjs.map +1 -0
  27. package/fesm2022/testing.mjs +147 -58
  28. package/fesm2022/testing.mjs.map +1 -1
  29. package/fesm2022/{untracked-DmD_2MlC.mjs → untracked.mjs} +3 -3
  30. package/fesm2022/untracked.mjs.map +1 -0
  31. package/fesm2022/{weak_ref-BaIq-pgY.mjs → weak_ref.mjs} +2 -2
  32. package/fesm2022/weak_ref.mjs.map +1 -0
  33. package/{graph.d-BcIOep_B.d.ts → graph.d.d.ts} +1 -1
  34. package/index.d.ts +101 -15
  35. package/package.json +2 -2
  36. package/primitives/di/index.d.ts +4 -2
  37. package/primitives/event-dispatch/index.d.ts +3 -3
  38. package/primitives/signals/index.d.ts +6 -6
  39. package/rxjs-interop/index.d.ts +5 -5
  40. package/schematics/bundles/{apply_import_manager-BsIRDO9W.cjs → apply_import_manager-C11Q8021.cjs} +3 -3
  41. package/schematics/bundles/{checker-CY7a8ko8.cjs → checker-BVnpy__J.cjs} +547 -308
  42. package/schematics/bundles/cleanup-unused-imports.cjs +35 -21
  43. package/schematics/bundles/{compiler_host-DNYQkH4l.cjs → compiler_host-j95cyBKm.cjs} +2 -2
  44. package/schematics/bundles/control-flow-migration.cjs +3 -3
  45. package/schematics/bundles/document-core.cjs +5 -5
  46. package/schematics/bundles/imports-CIX-JgAN.cjs +1 -1
  47. package/schematics/bundles/{index-BUgQDm-J.cjs → index-BkA2Tb_u.cjs} +32 -17
  48. package/schematics/bundles/{index-BJ3PYYwQ.cjs → index-DYpSE68_.cjs} +4 -4
  49. package/schematics/bundles/inject-flags.cjs +5 -5
  50. package/schematics/bundles/inject-migration.cjs +9 -4
  51. package/schematics/bundles/leading_space-D9nQ8UQC.cjs +1 -1
  52. package/schematics/bundles/{migrate_ts_type_references-MBd4NBjn.cjs → migrate_ts_type_references-Covsxz7y.cjs} +27 -5
  53. package/schematics/bundles/ng_decorators-B5HCqr20.cjs +1 -1
  54. package/schematics/bundles/nodes-B16H9JUd.cjs +1 -1
  55. package/schematics/bundles/output-migration.cjs +6 -6
  56. package/schematics/bundles/{project_paths-C5Df24y1.cjs → project_paths-3GwjSb-R.cjs} +3 -3
  57. package/schematics/bundles/project_tsconfig_paths-CDVxT6Ov.cjs +1 -1
  58. package/schematics/bundles/property_name-BBwFuqMe.cjs +1 -1
  59. package/schematics/bundles/route-lazy-loading.cjs +3 -3
  60. package/schematics/bundles/self-closing-tags-migration.cjs +4 -4
  61. package/schematics/bundles/signal-input-migration.cjs +7 -7
  62. package/schematics/bundles/signal-queries-migration.cjs +7 -7
  63. package/schematics/bundles/signals.cjs +7 -7
  64. package/schematics/bundles/standalone-migration.cjs +4 -4
  65. package/schematics/bundles/symbol-VPWguRxr.cjs +1 -1
  66. package/schematics/bundles/test-bed-get.cjs +4 -4
  67. package/{signal.d-BcmOdASA.d.ts → signal.d.d.ts} +2 -2
  68. package/testing/index.d.ts +84 -8
  69. package/{weak_ref.d-eGOEP9S1.d.ts → weak_ref.d.d.ts} +1 -1
  70. package/fesm2022/attribute-BWp59EjE.mjs.map +0 -1
  71. package/fesm2022/debug_node-CGQXW8qF.mjs.map +0 -1
  72. package/fesm2022/resource-CIODajJI.mjs.map +0 -1
  73. package/fesm2022/root_effect_scheduler-BvK6bnZD.mjs.map +0 -1
  74. package/fesm2022/signal-nCiHhWf6.mjs.map +0 -1
  75. package/fesm2022/untracked-DmD_2MlC.mjs.map +0 -1
  76. package/fesm2022/weak_ref-BaIq-pgY.mjs.map +0 -1
@@ -1,21 +1,21 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v20.1.0-next.1
3
+ * @license Angular v20.1.0-next.3
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
7
7
  'use strict';
8
8
 
9
- var migrate_ts_type_references = require('./migrate_ts_type_references-MBd4NBjn.cjs');
9
+ var migrate_ts_type_references = require('./migrate_ts_type_references-Covsxz7y.cjs');
10
10
  var ts = require('typescript');
11
11
  require('os');
12
- var checker = require('./checker-CY7a8ko8.cjs');
13
- var index$1 = require('./index-BUgQDm-J.cjs');
12
+ var checker = require('./checker-BVnpy__J.cjs');
13
+ var index$1 = require('./index-BkA2Tb_u.cjs');
14
14
  require('path');
15
- var project_paths = require('./project_paths-C5Df24y1.cjs');
16
- var index = require('./index-BJ3PYYwQ.cjs');
15
+ var project_paths = require('./project_paths-3GwjSb-R.cjs');
16
+ var index = require('./index-DYpSE68_.cjs');
17
17
  var assert = require('assert');
18
- var apply_import_manager = require('./apply_import_manager-BsIRDO9W.cjs');
18
+ var apply_import_manager = require('./apply_import_manager-C11Q8021.cjs');
19
19
  require('@angular-devkit/core');
20
20
  require('node:path/posix');
21
21
  require('./leading_space-D9nQ8UQC.cjs');
@@ -1,21 +1,21 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v20.1.0-next.1
3
+ * @license Angular v20.1.0-next.3
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
7
7
  'use strict';
8
8
 
9
- var checker = require('./checker-CY7a8ko8.cjs');
9
+ var checker = require('./checker-BVnpy__J.cjs');
10
10
  var ts = require('typescript');
11
11
  require('os');
12
- var index$1 = require('./index-BUgQDm-J.cjs');
12
+ var index$1 = require('./index-BkA2Tb_u.cjs');
13
13
  require('path');
14
- var project_paths = require('./project_paths-C5Df24y1.cjs');
15
- var apply_import_manager = require('./apply_import_manager-BsIRDO9W.cjs');
16
- var migrate_ts_type_references = require('./migrate_ts_type_references-MBd4NBjn.cjs');
14
+ var project_paths = require('./project_paths-3GwjSb-R.cjs');
15
+ var apply_import_manager = require('./apply_import_manager-C11Q8021.cjs');
16
+ var migrate_ts_type_references = require('./migrate_ts_type_references-Covsxz7y.cjs');
17
17
  var assert = require('assert');
18
- var index = require('./index-BJ3PYYwQ.cjs');
18
+ var index = require('./index-DYpSE68_.cjs');
19
19
  require('@angular-devkit/core');
20
20
  require('node:path/posix');
21
21
  require('fs');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v20.1.0-next.1
3
+ * @license Angular v20.1.0-next.3
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -10,22 +10,22 @@ var schematics = require('@angular-devkit/schematics');
10
10
  var signalQueriesMigration = require('./signal-queries-migration.cjs');
11
11
  var signalInputMigration = require('./signal-input-migration.cjs');
12
12
  var outputMigration = require('./output-migration.cjs');
13
- require('./checker-CY7a8ko8.cjs');
13
+ require('./checker-BVnpy__J.cjs');
14
14
  require('typescript');
15
15
  require('os');
16
16
  require('fs');
17
17
  require('module');
18
18
  require('path');
19
19
  require('url');
20
- require('./index-BUgQDm-J.cjs');
21
- require('./project_paths-C5Df24y1.cjs');
20
+ require('./index-BkA2Tb_u.cjs');
21
+ require('./project_paths-3GwjSb-R.cjs');
22
22
  require('@angular-devkit/core');
23
23
  require('node:path/posix');
24
24
  require('./project_tsconfig_paths-CDVxT6Ov.cjs');
25
- require('./apply_import_manager-BsIRDO9W.cjs');
26
- require('./migrate_ts_type_references-MBd4NBjn.cjs');
25
+ require('./apply_import_manager-C11Q8021.cjs');
26
+ require('./migrate_ts_type_references-Covsxz7y.cjs');
27
27
  require('assert');
28
- require('./index-BJ3PYYwQ.cjs');
28
+ require('./index-DYpSE68_.cjs');
29
29
  require('./leading_space-D9nQ8UQC.cjs');
30
30
 
31
31
  function migrate(options) {
@@ -1,23 +1,23 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v20.1.0-next.1
3
+ * @license Angular v20.1.0-next.3
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
7
7
  'use strict';
8
8
 
9
9
  var schematics = require('@angular-devkit/schematics');
10
- var index = require('./index-BUgQDm-J.cjs');
10
+ var index = require('./index-BkA2Tb_u.cjs');
11
11
  var fs = require('fs');
12
12
  var p = require('path');
13
13
  var ts = require('typescript');
14
- var compiler_host = require('./compiler_host-DNYQkH4l.cjs');
14
+ var compiler_host = require('./compiler_host-j95cyBKm.cjs');
15
15
  var project_tsconfig_paths = require('./project_tsconfig_paths-CDVxT6Ov.cjs');
16
16
  var ng_decorators = require('./ng_decorators-B5HCqr20.cjs');
17
17
  var nodes = require('./nodes-B16H9JUd.cjs');
18
18
  var symbol = require('./symbol-VPWguRxr.cjs');
19
19
  var imports = require('./imports-CIX-JgAN.cjs');
20
- var checker = require('./checker-CY7a8ko8.cjs');
20
+ var checker = require('./checker-BVnpy__J.cjs');
21
21
  require('os');
22
22
  require('@angular-devkit/core');
23
23
  require('module');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v20.1.0-next.1
3
+ * @license Angular v20.1.0-next.3
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v20.1.0-next.1
3
+ * @license Angular v20.1.0-next.3
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -8,10 +8,10 @@
8
8
 
9
9
  var ts = require('typescript');
10
10
  require('os');
11
- require('./checker-CY7a8ko8.cjs');
12
- require('./index-BUgQDm-J.cjs');
11
+ require('./checker-BVnpy__J.cjs');
12
+ require('./index-BkA2Tb_u.cjs');
13
13
  require('path');
14
- var project_paths = require('./project_paths-C5Df24y1.cjs');
14
+ var project_paths = require('./project_paths-3GwjSb-R.cjs');
15
15
  var imports = require('./imports-CIX-JgAN.cjs');
16
16
  var symbol = require('./symbol-VPWguRxr.cjs');
17
17
  require('@angular-devkit/core');
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license Angular v20.1.0-next.1
2
+ * @license Angular v20.1.0-next.3
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
 
7
- import { ReactiveNode, ValueEqualityFn, SIGNAL, ReactiveHookFn } from './graph.d-BcIOep_B.js';
7
+ import { ReactiveNode, ValueEqualityFn, SIGNAL, ReactiveHookFn } from './graph.d.js';
8
8
 
9
9
  interface SignalNode<T> extends ReactiveNode {
10
10
  value: T;
@@ -1,16 +1,16 @@
1
1
  /**
2
- * @license Angular v20.1.0-next.1
2
+ * @license Angular v20.1.0-next.3
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
 
7
- import '../event_dispatcher.d-BReQpZfC.js';
8
- import { InjectionToken, Type, ProviderToken, InjectOptions } from '../chrome_dev_tools_performance.d-Dk_7kdX9.js';
9
- import { DeferBlockDetails, DeferBlockState, ComponentRef, DebugElement, ElementRef, ChangeDetectorRef, NgZone, SchemaMetadata, DeferBlockBehavior, PlatformRef, NgModule, Component, Directive, Pipe, Navigation, NavigationNavigateOptions, NavigationOptions, NavigateEvent, NavigationCurrentEntryChangeEvent, NavigationTransition, NavigationUpdateCurrentEntryOptions, NavigationReloadOptions, NavigationResult, NavigationHistoryEntry } from '../discovery.d-AiW64LSq.js';
7
+ import '../event_dispatcher.d.js';
8
+ import { InjectionToken, Type, ProviderToken, InjectOptions } from '../chrome_dev_tools_performance.d.js';
9
+ import { DeferBlockDetails, DeferBlockState, ComponentRef, DebugElement, ElementRef, ChangeDetectorRef, NgZone, SchemaMetadata, DeferBlockBehavior, Binding, PlatformRef, NgModule, Component, Directive, Pipe, Navigation, NavigationNavigateOptions, NavigationOptions, NavigateEvent, NavigationCurrentEntryChangeEvent, NavigationTransition, NavigationUpdateCurrentEntryOptions, NavigationReloadOptions, NavigationResult, NavigationHistoryEntry, NavigationDestination, NavigationInterceptOptions } from '../discovery.d.js';
10
10
  import * as i0 from '@angular/core';
11
- import '../graph.d-BcIOep_B.js';
11
+ import '../graph.d.js';
12
12
  import 'rxjs';
13
- import '../signal.d-BcmOdASA.js';
13
+ import '../signal.d.js';
14
14
  import '@angular/core/primitives/di';
15
15
 
16
16
  /**
@@ -384,6 +384,15 @@ interface ModuleTeardownOptions {
384
384
  interface TestBedStatic extends TestBed {
385
385
  new (...args: any[]): TestBed;
386
386
  }
387
+ /**
388
+ * Options that can be configured for a test component.
389
+ *
390
+ * @publicApi
391
+ */
392
+ interface TestComponentOptions {
393
+ /** Bindings to apply to the test component. */
394
+ bindings?: Binding[];
395
+ }
387
396
  /**
388
397
  * Returns a singleton of the `TestBed` class.
389
398
  *
@@ -455,7 +464,7 @@ interface TestBed {
455
464
  multi?: boolean;
456
465
  }): TestBed;
457
466
  overrideTemplateUsingTestingModule(component: Type<any>, template: string): TestBed;
458
- createComponent<T>(component: Type<T>): ComponentFixture<T>;
467
+ createComponent<T>(component: Type<T>, options?: TestComponentOptions): ComponentFixture<T>;
459
468
  /**
460
469
  * Execute any pending effects.
461
470
  *
@@ -628,6 +637,7 @@ declare class FakeNavigation implements Navigation {
628
637
  dispose(): void;
629
638
  /** Returns whether this fake is disposed. */
630
639
  isDisposed(): boolean;
640
+ abortOngoingNavigation(eventToAbort: InternalFakeNavigateEvent, reason?: Error): void;
631
641
  /**
632
642
  * Implementation for all navigations and traversals.
633
643
  * @returns true if the event was intercepted, otherwise false
@@ -687,6 +697,72 @@ declare class FakeNavigationHistoryEntry implements NavigationHistoryEntry {
687
697
  /** internal */
688
698
  dispose(): void;
689
699
  }
700
+ /** `NavigationInterceptOptions` with experimental commit option. */
701
+ interface ExperimentalNavigationInterceptOptions extends NavigationInterceptOptions {
702
+ precommitHandler?: (controller: NavigationPrecommitController) => Promise<void>;
703
+ }
704
+ interface NavigationPrecommitController {
705
+ redirect: (url: string, options?: NavigationNavigateOptions) => void;
706
+ }
707
+ interface ExperimentalNavigateEvent extends NavigateEvent {
708
+ intercept(options?: ExperimentalNavigationInterceptOptions): void;
709
+ precommitHandler?: () => Promise<void>;
710
+ }
711
+ /**
712
+ * Fake equivalent of `NavigateEvent`.
713
+ */
714
+ interface FakeNavigateEvent extends ExperimentalNavigateEvent {
715
+ readonly destination: FakeNavigationDestination;
716
+ }
717
+ interface InternalFakeNavigateEvent extends FakeNavigateEvent {
718
+ readonly sameDocument: boolean;
719
+ readonly result: InternalNavigationResult;
720
+ interceptionState: 'none' | 'intercepted' | 'committed' | 'scrolled' | 'finished';
721
+ scrollBehavior: 'after-transition' | 'manual' | null;
722
+ focusResetBehavior: 'after-transition' | 'manual' | null;
723
+ abortController: AbortController;
724
+ cancel(reason: Error): void;
725
+ }
726
+ /**
727
+ * Fake equivalent of `NavigationDestination`.
728
+ */
729
+ declare class FakeNavigationDestination implements NavigationDestination {
730
+ url: string;
731
+ readonly sameDocument: boolean;
732
+ readonly key: string | null;
733
+ readonly id: string | null;
734
+ readonly index: number;
735
+ state?: unknown;
736
+ private readonly historyState;
737
+ constructor({ url, sameDocument, historyState, state, key, id, index, }: {
738
+ url: string;
739
+ sameDocument: boolean;
740
+ historyState: unknown;
741
+ state?: unknown;
742
+ key?: string | null;
743
+ id?: string | null;
744
+ index?: number;
745
+ });
746
+ getState(): unknown;
747
+ getHistoryState(): unknown;
748
+ }
749
+ /**
750
+ * Internal utility class for representing the result of a navigation.
751
+ * Generally equivalent to the "apiMethodTracker" in the spec.
752
+ */
753
+ declare class InternalNavigationResult {
754
+ readonly navigation: FakeNavigation;
755
+ committedTo: FakeNavigationHistoryEntry | null;
756
+ committedResolve: (entry: FakeNavigationHistoryEntry) => void;
757
+ committedReject: (reason: Error) => void;
758
+ finishedResolve: () => void;
759
+ finishedReject: (reason: Error) => void;
760
+ readonly committed: Promise<FakeNavigationHistoryEntry>;
761
+ readonly finished: Promise<FakeNavigationHistoryEntry>;
762
+ get signal(): AbortSignal;
763
+ private readonly abortController;
764
+ constructor(navigation: FakeNavigation);
765
+ }
690
766
 
691
767
  declare function getCleanupHook(expectedTeardownValue: boolean): VoidFunction;
692
768
 
@@ -702,4 +778,4 @@ declare class Log<T = string> {
702
778
  }
703
779
 
704
780
  export { ComponentFixture, ComponentFixtureAutoDetect, ComponentFixtureNoNgZone, DeferBlockBehavior, DeferBlockFixture, DeferBlockState, InjectSetupWrapper, TestBed, TestComponentRenderer, discardPeriodicTasks, fakeAsync, flush, flushMicrotasks, getTestBed, inject, resetFakeAsyncZone, tick, waitForAsync, withModule, FakeNavigation as ɵFakeNavigation, Log as ɵLog, MetadataOverrider as ɵMetadataOverrider, getCleanupHook as ɵgetCleanupHook };
705
- export type { MetadataOverride, ModuleTeardownOptions, TestBedStatic, TestEnvironmentOptions, TestModuleMetadata };
781
+ export type { MetadataOverride, ModuleTeardownOptions, TestBedStatic, TestComponentOptions, TestEnvironmentOptions, TestModuleMetadata };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.1.0-next.1
2
+ * @license Angular v20.1.0-next.3
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1 +0,0 @@
1
- {"version":3,"file":"attribute-BWp59EjE.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-46c76129e412/bin/packages/core/primitives/event-dispatch/src/attribute.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nexport const Attribute = {\n /**\n * The jsaction attribute defines a mapping of a DOM event to a\n * generic event (aka jsaction), to which the actual event handlers\n * that implement the behavior of the application are bound. The\n * value is a semicolon separated list of colon separated pairs of\n * an optional DOM event name and a jsaction name. If the optional\n * DOM event name is omitted, 'click' is assumed. The jsaction names\n * are dot separated pairs of a namespace and a simple jsaction\n * name.\n *\n * See grammar in README.md for expected syntax in the attribute value.\n */\n JSACTION: 'jsaction' as const,\n};\n"],"names":[],"mappings":";;;;;;AAQa,MAAA,SAAS,GAAG;AACvB;;;;;;;;;;;AAWG;AACH,IAAA,QAAQ,EAAE,UAAmB;;;;;"}