@angular/core 20.0.0-next.3 → 20.0.0-next.5

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 (72) hide show
  1. package/api.d-mxcXqDpA.d.ts +297 -0
  2. package/discovery.d-CyYpOJ7j.d.ts +7393 -0
  3. package/event_dispatcher.d-PWnbqZDx.d.ts +346 -0
  4. package/fesm2022/attribute-B17mgaqe.mjs +24 -0
  5. package/fesm2022/attribute-B17mgaqe.mjs.map +1 -0
  6. package/fesm2022/core.mjs +579 -36730
  7. package/fesm2022/core.mjs.map +1 -1
  8. package/fesm2022/debug_node-xKpCIZm-.mjs +32070 -0
  9. package/fesm2022/debug_node-xKpCIZm-.mjs.map +1 -0
  10. package/fesm2022/primitives/di.mjs +2 -2
  11. package/fesm2022/primitives/di.mjs.map +1 -1
  12. package/fesm2022/primitives/event-dispatch.mjs +2 -16
  13. package/fesm2022/primitives/event-dispatch.mjs.map +1 -1
  14. package/fesm2022/primitives/signals.mjs +5 -609
  15. package/fesm2022/primitives/signals.mjs.map +1 -1
  16. package/fesm2022/resource-BPpYEDic.mjs +621 -0
  17. package/fesm2022/resource-BPpYEDic.mjs.map +1 -0
  18. package/fesm2022/root_effect_scheduler-D0_b1cf_.mjs +3816 -0
  19. package/fesm2022/root_effect_scheduler-D0_b1cf_.mjs.map +1 -0
  20. package/fesm2022/rxjs-interop.mjs +91 -7
  21. package/fesm2022/rxjs-interop.mjs.map +1 -1
  22. package/fesm2022/signal-DhRAAi7R.mjs +522 -0
  23. package/fesm2022/signal-DhRAAi7R.mjs.map +1 -0
  24. package/fesm2022/testing.mjs +105 -103
  25. package/fesm2022/testing.mjs.map +1 -1
  26. package/fesm2022/untracked-DaaW3JJm.mjs +117 -0
  27. package/fesm2022/untracked-DaaW3JJm.mjs.map +1 -0
  28. package/fesm2022/weak_ref-DrMdAIDh.mjs +1 -1
  29. package/graph.d-StYigYp1.d.ts +195 -0
  30. package/index.d.ts +2616 -10854
  31. package/ng_i18n_closure_mode.d-DLxSUiDr.d.ts +832 -0
  32. package/package.json +3 -3
  33. package/primitives/di/index.d.ts +3 -2
  34. package/primitives/event-dispatch/index.d.ts +5 -340
  35. package/primitives/signals/index.d.ts +7 -209
  36. package/rxjs-interop/index.d.ts +16 -4
  37. package/schematics/bundles/{apply_import_manager-BXQEjo09.js → apply_import_manager-C-ysxahq.js} +3 -3
  38. package/schematics/bundles/{compiler_host-Bk3repE2.js → change_tracker-0Ktek5Xl.js} +3 -121
  39. package/schematics/bundles/checker-DqUKCGda.js +17702 -0
  40. package/schematics/bundles/cleanup-unused-imports.js +6 -5
  41. package/schematics/bundles/{checker-BHb19MHt.js → compiler-CuoiHqkc.js} +578 -18086
  42. package/schematics/bundles/compiler_host-CAfDJO3W.js +129 -0
  43. package/schematics/bundles/control-flow-migration.js +59 -50
  44. package/schematics/bundles/document-core.js +96 -0
  45. package/schematics/bundles/imports-CIX-JgAN.js +1 -1
  46. package/schematics/bundles/{index-BL9kAIe5.js → index-CwFQSYXZ.js} +30 -29
  47. package/schematics/bundles/{index-I8VbxQcO.js → index-WFXCe5Q0.js} +527 -524
  48. package/schematics/bundles/inject-flags.js +6 -5
  49. package/schematics/bundles/inject-migration.js +29 -10
  50. package/schematics/bundles/leading_space-D9nQ8UQC.js +1 -1
  51. package/schematics/bundles/{migrate_ts_type_references-KlOTWeDl.js → migrate_ts_type_references-BNuHufqZ.js} +6 -5
  52. package/schematics/bundles/ng_decorators-DznZ5jMl.js +1 -1
  53. package/schematics/bundles/nodes-B16H9JUd.js +1 -1
  54. package/schematics/bundles/output-migration.js +15 -10
  55. package/schematics/bundles/project_tsconfig_paths-CDVxT6Ov.js +1 -1
  56. package/schematics/bundles/property_name-BBwFuqMe.js +1 -1
  57. package/schematics/bundles/route-lazy-loading.js +7 -5
  58. package/schematics/bundles/{run_in_devkit-C0JPtK2u.js → run_in_devkit-CmHxABFr.js} +4 -3
  59. package/schematics/bundles/self-closing-tags-migration.js +10 -9
  60. package/schematics/bundles/signal-input-migration.js +8 -7
  61. package/schematics/bundles/signal-queries-migration.js +27 -14
  62. package/schematics/bundles/signals.js +8 -7
  63. package/schematics/bundles/standalone-migration.js +11 -9
  64. package/schematics/bundles/symbol-VPWguRxr.js +1 -1
  65. package/schematics/bundles/test-bed-get.js +5 -4
  66. package/schematics/collection.json +0 -6
  67. package/schematics/migrations.json +11 -0
  68. package/signal.d-BeaTIeOE.d.ts +31 -0
  69. package/testing/index.d.ts +13 -9
  70. package/weak_ref.d-ttyj86RV.d.ts +1 -1
  71. package/navigation_types.d-u4EOrrdZ.d.ts +0 -121
  72. package/schematics/ng-generate/control-flow-migration/schema.json +0 -20
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v20.0.0-next.3
3
+ * @license Angular v20.0.0-next.5
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -8,10 +8,11 @@
8
8
 
9
9
  var ts = require('typescript');
10
10
  require('os');
11
- require('./checker-BHb19MHt.js');
12
- require('./index-I8VbxQcO.js');
11
+ require('./checker-DqUKCGda.js');
12
+ require('./compiler-CuoiHqkc.js');
13
+ require('./index-WFXCe5Q0.js');
13
14
  require('path');
14
- var run_in_devkit = require('./run_in_devkit-C0JPtK2u.js');
15
+ var run_in_devkit = require('./run_in_devkit-CmHxABFr.js');
15
16
  var imports = require('./imports-CIX-JgAN.js');
16
17
  var symbol = require('./symbol-VPWguRxr.js');
17
18
  require('@angular-devkit/core');
@@ -6,12 +6,6 @@
6
6
  "schema": "./ng-generate/standalone-migration/schema.json",
7
7
  "aliases": ["standalone"]
8
8
  },
9
- "control-flow-migration": {
10
- "description": "Converts the entire application to block control flow syntax",
11
- "factory": "./bundles/control-flow-migration#migrate",
12
- "schema": "./ng-generate/control-flow-migration/schema.json",
13
- "aliases": ["control-flow"]
14
- },
15
9
  "inject-migration": {
16
10
  "description": "Converts usages of constructor-based injection to the inject() function",
17
11
  "factory": "./bundles/inject-migration#migrate",
@@ -9,6 +9,17 @@
9
9
  "version": "20.0.0",
10
10
  "description": "Replaces usages of the deprecated TestBed.get method with TestBed.inject",
11
11
  "factory": "./bundles/test-bed-get#migrate"
12
+ },
13
+ "control-flow-migration": {
14
+ "version": "20.0.0",
15
+ "description": "Converts the entire application to block control flow syntax",
16
+ "factory": "./bundles/control-flow-migration#migrate",
17
+ "optional": true
18
+ },
19
+ "document-core": {
20
+ "version": "20.0.0",
21
+ "description": "Moves imports of `DOCUMENT` from `@angular/common` to `@angular/core`",
22
+ "factory": "./bundles/document-core#migrate"
12
23
  }
13
24
  }
14
25
  }
@@ -0,0 +1,31 @@
1
+ /**
2
+ * @license Angular v20.0.0-next.5
3
+ * (c) 2010-2025 Google LLC. https://angular.io/
4
+ * License: MIT
5
+ */
6
+
7
+ import { R as ReactiveNode, V as ValueEqualityFn, S as SIGNAL, a as ReactiveHookFn } from './graph.d-StYigYp1.js';
8
+
9
+ interface SignalNode<T> extends ReactiveNode {
10
+ value: T;
11
+ equal: ValueEqualityFn<T>;
12
+ }
13
+ type SignalBaseGetter<T> = (() => T) & {
14
+ readonly [SIGNAL]: unknown;
15
+ };
16
+ interface SignalGetter<T> extends SignalBaseGetter<T> {
17
+ readonly [SIGNAL]: SignalNode<T>;
18
+ }
19
+ /**
20
+ * Create a `Signal` that can be set or updated directly.
21
+ */
22
+ declare function createSignal<T>(initialValue: T, equal?: ValueEqualityFn<T>): SignalGetter<T>;
23
+ declare function setPostSignalSetFn(fn: ReactiveHookFn | null): ReactiveHookFn | null;
24
+ declare function signalGetFn<T>(node: SignalNode<T>): T;
25
+ declare function signalSetFn<T>(node: SignalNode<T>, newValue: T): void;
26
+ declare function signalUpdateFn<T>(node: SignalNode<T>, updater: (value: T) => T): void;
27
+ declare function runPostSignalSetFn<T>(node: SignalNode<T>): void;
28
+ declare const SIGNAL_NODE: SignalNode<unknown>;
29
+
30
+ export { SIGNAL_NODE as a, createSignal as c, signalGetFn as d, signalSetFn as e, signalUpdateFn as f, runPostSignalSetFn as r, setPostSignalSetFn as s };
31
+ export type { SignalNode as S, SignalGetter as b };
@@ -1,12 +1,15 @@
1
1
  /**
2
- * @license Angular v20.0.0-next.3
2
+ * @license Angular v20.0.0-next.5
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
 
7
- import { ɵDeferBlockDetails as _DeferBlockDetails, ɵDeferBlockState as _DeferBlockState, ComponentRef, DebugElement, ElementRef, ChangeDetectorRef, NgZone, SchemaMetadata, ɵDeferBlockBehavior as _DeferBlockBehavior, InjectionToken, PlatformRef, Type, ProviderToken, InjectOptions, NgModule, Component, Directive, Pipe } from '@angular/core';
8
- export { ɵDeferBlockBehavior as DeferBlockBehavior, ɵDeferBlockState as DeferBlockState } from '@angular/core';
9
- import { a as Navigation, c as NavigationHistoryEntry, d as NavigationNavigateOptions, g as NavigationResult, e as NavigationOptions, N as NavigateEvent, b as NavigationCurrentEntryChangeEvent, h as NavigationTransition, i as NavigationUpdateCurrentEntryOptions, f as NavigationReloadOptions } from '../navigation_types.d-u4EOrrdZ.js';
7
+ import { b as InjectionToken, T as Type, P as ProviderToken, c as InjectOptions } from '../ng_i18n_closure_mode.d-DLxSUiDr.js';
8
+ import { D as DeferBlockDetails, a as DeferBlockState, C as ComponentRef, b as DebugElement, E as ElementRef, c as ChangeDetectorRef, N as NgZone, S as SchemaMetadata, d as DeferBlockBehavior, P as PlatformRef, e as NgModule, f as Component, g as Directive, h as Pipe, i as Navigation, j as NavigationHistoryEntry, k as NavigationNavigateOptions, l as NavigationResult, m as NavigationOptions, n as NavigateEvent, o as NavigationCurrentEntryChangeEvent, p as NavigationTransition, q as NavigationUpdateCurrentEntryOptions, r as NavigationReloadOptions } from '../discovery.d-CyYpOJ7j.js';
9
+ import '../graph.d-StYigYp1.js';
10
+ import '../event_dispatcher.d-PWnbqZDx.js';
11
+ import 'rxjs';
12
+ import '../signal.d-BeaTIeOE.js';
10
13
 
11
14
  /**
12
15
  * Wraps a test function in an asynchronous test zone. The test will automatically
@@ -36,12 +39,12 @@ declare class DeferBlockFixture {
36
39
  private block;
37
40
  private componentFixture;
38
41
  /** @nodoc */
39
- constructor(block: _DeferBlockDetails, componentFixture: ComponentFixture<unknown>);
42
+ constructor(block: DeferBlockDetails, componentFixture: ComponentFixture<unknown>);
40
43
  /**
41
44
  * Renders the specified state of the defer fixture.
42
45
  * @param state the defer state to render
43
46
  */
44
- render(state: _DeferBlockState): Promise<void>;
47
+ render(state: DeferBlockState): Promise<void>;
45
48
  /**
46
49
  * Retrieves all nested child defer block fixtures
47
50
  * in a given defer block.
@@ -327,7 +330,7 @@ interface TestModuleMetadata {
327
330
  * Whether defer blocks should behave with manual triggering or play through normally.
328
331
  * Defaults to `manual`.
329
332
  */
330
- deferBlockBehavior?: _DeferBlockBehavior;
333
+ deferBlockBehavior?: DeferBlockBehavior;
331
334
  }
332
335
  /**
333
336
  * @publicApi
@@ -414,7 +417,7 @@ interface TestBed {
414
417
  /**
415
418
  * Runs the given function in the `EnvironmentInjector` context of `TestBed`.
416
419
  *
417
- * @see {@link EnvironmentInjector#runInContext}
420
+ * @see {@link https://angular.dev/api/core/EnvironmentInjector#runInContext}
418
421
  */
419
422
  runInInjectionContext<T>(fn: () => T): T;
420
423
  execute(tokens: any[], fn: Function, context?: any): any;
@@ -693,4 +696,5 @@ declare class FakeNavigationHistoryEntry implements NavigationHistoryEntry {
693
696
  dispose(): void;
694
697
  }
695
698
 
696
- export { ComponentFixture, ComponentFixtureAutoDetect, ComponentFixtureNoNgZone, DeferBlockFixture, InjectSetupWrapper, type MetadataOverride, type ModuleTeardownOptions, TestBed, type TestBedStatic, TestComponentRenderer, type TestEnvironmentOptions, type TestModuleMetadata, __core_private_testing_placeholder__, discardPeriodicTasks, fakeAsync, flush, flushMicrotasks, getTestBed, inject, resetFakeAsyncZone, tick, waitForAsync, withModule, FakeNavigation as ɵFakeNavigation, MetadataOverrider as ɵMetadataOverrider };
699
+ export { ComponentFixture, ComponentFixtureAutoDetect, ComponentFixtureNoNgZone, DeferBlockBehavior, DeferBlockFixture, DeferBlockState, InjectSetupWrapper, TestBed, TestComponentRenderer, __core_private_testing_placeholder__, discardPeriodicTasks, fakeAsync, flush, flushMicrotasks, getTestBed, inject, resetFakeAsyncZone, tick, waitForAsync, withModule, FakeNavigation as ɵFakeNavigation, MetadataOverrider as ɵMetadataOverrider };
700
+ export type { MetadataOverride, ModuleTeardownOptions, TestBedStatic, TestEnvironmentOptions, TestModuleMetadata };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.0.0-next.3
2
+ * @license Angular v20.0.0-next.5
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,121 +0,0 @@
1
- /**
2
- * @license Angular v20.0.0-next.3
3
- * (c) 2010-2025 Google LLC. https://angular.io/
4
- * License: MIT
5
- */
6
-
7
- interface NavigationEventMap {
8
- navigate: NavigateEvent;
9
- navigatesuccess: Event;
10
- navigateerror: ErrorEvent;
11
- currententrychange: NavigationCurrentEntryChangeEvent;
12
- }
13
- interface NavigationResult {
14
- committed: Promise<NavigationHistoryEntry>;
15
- finished: Promise<NavigationHistoryEntry>;
16
- }
17
- declare class Navigation extends EventTarget {
18
- entries(): NavigationHistoryEntry[];
19
- readonly currentEntry: NavigationHistoryEntry | null;
20
- updateCurrentEntry(options: NavigationUpdateCurrentEntryOptions): void;
21
- readonly transition: NavigationTransition | null;
22
- readonly canGoBack: boolean;
23
- readonly canGoForward: boolean;
24
- navigate(url: string, options?: NavigationNavigateOptions): NavigationResult;
25
- reload(options?: NavigationReloadOptions): NavigationResult;
26
- traverseTo(key: string, options?: NavigationOptions): NavigationResult;
27
- back(options?: NavigationOptions): NavigationResult;
28
- forward(options?: NavigationOptions): NavigationResult;
29
- onnavigate: ((this: Navigation, ev: NavigateEvent) => any) | null;
30
- onnavigatesuccess: ((this: Navigation, ev: Event) => any) | null;
31
- onnavigateerror: ((this: Navigation, ev: ErrorEvent) => any) | null;
32
- oncurrententrychange: ((this: Navigation, ev: NavigationCurrentEntryChangeEvent) => any) | null;
33
- addEventListener<K extends keyof NavigationEventMap>(type: K, listener: (this: Navigation, ev: NavigationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
34
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
35
- removeEventListener<K extends keyof NavigationEventMap>(type: K, listener: (this: Navigation, ev: NavigationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
36
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
37
- }
38
- declare class NavigationTransition {
39
- readonly navigationType: NavigationTypeString;
40
- readonly from: NavigationHistoryEntry;
41
- readonly finished: Promise<void>;
42
- }
43
- interface NavigationHistoryEntryEventMap {
44
- dispose: Event;
45
- }
46
- declare class NavigationHistoryEntry extends EventTarget {
47
- readonly key: string;
48
- readonly id: string;
49
- readonly url: string | null;
50
- readonly index: number;
51
- readonly sameDocument: boolean;
52
- getState(): unknown;
53
- ondispose: ((this: NavigationHistoryEntry, ev: Event) => any) | null;
54
- addEventListener<K extends keyof NavigationHistoryEntryEventMap>(type: K, listener: (this: NavigationHistoryEntry, ev: NavigationHistoryEntryEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
55
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
56
- removeEventListener<K extends keyof NavigationHistoryEntryEventMap>(type: K, listener: (this: NavigationHistoryEntry, ev: NavigationHistoryEntryEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
57
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
58
- }
59
- type NavigationTypeString = 'reload' | 'push' | 'replace' | 'traverse';
60
- interface NavigationUpdateCurrentEntryOptions {
61
- state: unknown;
62
- }
63
- interface NavigationOptions {
64
- info?: unknown;
65
- }
66
- interface NavigationNavigateOptions extends NavigationOptions {
67
- state?: unknown;
68
- history?: 'auto' | 'push' | 'replace';
69
- }
70
- interface NavigationReloadOptions extends NavigationOptions {
71
- state?: unknown;
72
- }
73
- declare class NavigationCurrentEntryChangeEvent extends Event {
74
- constructor(type: string, eventInit?: NavigationCurrentEntryChangeEventInit);
75
- readonly navigationType: NavigationTypeString | null;
76
- readonly from: NavigationHistoryEntry;
77
- }
78
- interface NavigationCurrentEntryChangeEventInit extends EventInit {
79
- navigationType?: NavigationTypeString | null;
80
- from: NavigationHistoryEntry;
81
- }
82
- declare class NavigateEvent extends Event {
83
- constructor(type: string, eventInit?: NavigateEventInit);
84
- readonly navigationType: NavigationTypeString;
85
- readonly canIntercept: boolean;
86
- readonly userInitiated: boolean;
87
- readonly hashChange: boolean;
88
- readonly destination: NavigationDestination;
89
- readonly signal: AbortSignal;
90
- readonly formData: FormData | null;
91
- readonly downloadRequest: string | null;
92
- readonly info?: unknown;
93
- intercept(options?: NavigationInterceptOptions): void;
94
- scroll(): void;
95
- }
96
- interface NavigateEventInit extends EventInit {
97
- navigationType?: NavigationTypeString;
98
- canIntercept?: boolean;
99
- userInitiated?: boolean;
100
- hashChange?: boolean;
101
- destination: NavigationDestination;
102
- signal: AbortSignal;
103
- formData?: FormData | null;
104
- downloadRequest?: string | null;
105
- info?: unknown;
106
- }
107
- interface NavigationInterceptOptions {
108
- handler?: () => Promise<void>;
109
- focusReset?: 'after-transition' | 'manual';
110
- scroll?: 'after-transition' | 'manual';
111
- }
112
- declare class NavigationDestination {
113
- readonly url: string;
114
- readonly key: string | null;
115
- readonly id: string | null;
116
- readonly index: number;
117
- readonly sameDocument: boolean;
118
- getState(): unknown;
119
- }
120
-
121
- export { NavigateEvent as N, Navigation as a, NavigationCurrentEntryChangeEvent as b, NavigationHistoryEntry as c, type NavigationNavigateOptions as d, type NavigationOptions as e, type NavigationReloadOptions as f, type NavigationResult as g, NavigationTransition as h, type NavigationUpdateCurrentEntryOptions as i, type NavigationTypeString as j, type NavigationInterceptOptions as k, NavigationDestination as l };
@@ -1,20 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema",
3
- "$id": "AngularControlFlowMigration",
4
- "title": "Angular Control Flow Migration Schema",
5
- "type": "object",
6
- "properties": {
7
- "path": {
8
- "type": "string",
9
- "description": "Path relative to the project root which should be migrated",
10
- "x-prompt": "Which path in your project should be migrated?",
11
- "default": "./"
12
- },
13
- "format": {
14
- "type": "boolean",
15
- "description": "Enables reformatting of your templates",
16
- "x-prompt": "Should the migration reformat your templates?",
17
- "default": "true"
18
- }
19
- }
20
- }