@angular/core 19.2.0-rc.0 → 20.0.0-next.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 (40) hide show
  1. package/fesm2022/core.mjs +474 -290
  2. package/fesm2022/core.mjs.map +1 -1
  3. package/fesm2022/primitives/event-dispatch.mjs +1 -1
  4. package/fesm2022/primitives/signals.mjs +1 -1
  5. package/fesm2022/rxjs-interop.mjs +1 -1
  6. package/fesm2022/testing.mjs +707 -5
  7. package/fesm2022/testing.mjs.map +1 -1
  8. package/index.d.ts +197 -22
  9. package/package.json +1 -1
  10. package/primitives/event-dispatch/index.d.ts +1 -1
  11. package/primitives/signals/index.d.ts +1 -1
  12. package/rxjs-interop/index.d.ts +1 -1
  13. package/schematics/bundles/{apply_import_manager-a930fcf1.js → apply_import_manager-0959b78c.js} +3 -3
  14. package/schematics/bundles/{checker-2eecc677.js → checker-cf6f7980.js} +121 -16
  15. package/schematics/bundles/cleanup-unused-imports.js +7 -7
  16. package/schematics/bundles/{compiler_host-c280a924.js → compiler_host-cc1379e9.js} +2 -2
  17. package/schematics/bundles/control-flow-migration.js +3 -3
  18. package/schematics/bundles/explicit-standalone-flag.js +5 -5
  19. package/schematics/bundles/{imports-abe29092.js → imports-31a38653.js} +1 -1
  20. package/schematics/bundles/{index-24a2ad1e.js → index-42d84d69.js} +4 -4
  21. package/schematics/bundles/{index-3891dd55.js → index-6675d6bc.js} +4 -4
  22. package/schematics/bundles/inject-migration.js +7 -7
  23. package/schematics/bundles/{leading_space-d190b83b.js → leading_space-6e7a8ec6.js} +1 -1
  24. package/schematics/bundles/{migrate_ts_type_references-71b3a951.js → migrate_ts_type_references-5089e4ef.js} +10 -6
  25. package/schematics/bundles/{ng_decorators-e699c081.js → ng_decorators-6878e227.js} +2 -2
  26. package/schematics/bundles/{nodes-a535b2be.js → nodes-ffdce442.js} +1 -1
  27. package/schematics/bundles/output-migration.js +7 -7
  28. package/schematics/bundles/pending-tasks.js +5 -5
  29. package/schematics/bundles/{program-24da9092.js → program-362689f0.js} +148 -148
  30. package/schematics/bundles/{project_paths-b073c4d6.js → project_paths-7d2daa1e.js} +3 -3
  31. package/schematics/bundles/{project_tsconfig_paths-e9ccccbf.js → project_tsconfig_paths-6c9cde78.js} +1 -1
  32. package/schematics/bundles/{property_name-7c8433f5.js → property_name-42030525.js} +1 -1
  33. package/schematics/bundles/provide-initializer.js +5 -5
  34. package/schematics/bundles/route-lazy-loading.js +5 -5
  35. package/schematics/bundles/self-closing-tags-migration.js +8 -8
  36. package/schematics/bundles/signal-input-migration.js +9 -9
  37. package/schematics/bundles/signal-queries-migration.js +9 -9
  38. package/schematics/bundles/signals.js +9 -9
  39. package/schematics/bundles/standalone-migration.js +9 -9
  40. package/testing/index.d.ts +297 -1
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.2.0-rc.0
2
+ * @license Angular v20.0.0-next.0
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -3931,6 +3931,27 @@ declare type DirectiveDefList = (ɵDirectiveDef<any> | ɵComponentDef<any>)[];
3931
3931
  */
3932
3932
  declare type DirectiveDefListOrFactory = (() => DirectiveDefList) | DirectiveDefList;
3933
3933
 
3934
+ /**
3935
+ * Represents a map between a class reference and the index at which its directive is available on
3936
+ * a specific TNode. The value can be either:
3937
+ * 1. A number means that there's only one selector-matched directive on the node and it
3938
+ * doesn't have any host directives.
3939
+ * 2. An array means that there's a selector-matched directive and it has host directives.
3940
+ * The array is structured as follows:
3941
+ * - 0: Index of the selector-matched directive.
3942
+ * - 1: Start index of the range within which the host directives are defined.
3943
+ * - 2: End of the host directive range.
3944
+ *
3945
+ * Example:
3946
+ * ```
3947
+ * Map {
3948
+ * [NoHostDirectives]: 5,
3949
+ * [HasHostDirectives]: [10, 6, 8],
3950
+ * }
3951
+ * ```
3952
+ */
3953
+ declare type DirectiveIndexMap = Map<Type<unknown>, number | [directiveIndex: number, hostDirectivesStart: number, hostDirectivesEnd: number]>;
3954
+
3934
3955
  /**
3935
3956
  * Map of inputs for a given directive/component.
3936
3957
  *
@@ -5208,6 +5229,26 @@ declare interface HostDirectiveDef<T = unknown> {
5208
5229
  */
5209
5230
  declare type HostDirectiveDefs = Map<ɵDirectiveDef<unknown>, HostDirectiveDef>;
5210
5231
 
5232
+ /**
5233
+ * Represents inputs coming from a host directive and exposed on a TNode.
5234
+ *
5235
+ * - The key is the public name of an input as it is exposed on the specific node.
5236
+ * - The value is an array where:
5237
+ * - i+0: Index of the host directive that should be written to.
5238
+ * - i+1: Public name of the input as it was defined on the host directive before aliasing.
5239
+ */
5240
+ declare type HostDirectiveInputs = Record<string, (number | string)[]>;
5241
+
5242
+ /**
5243
+ * Represents outputs coming from a host directive and exposed on a TNode.
5244
+ *
5245
+ * - The key is the public name of an output as it is exposed on the specific node.
5246
+ * - The value is an array where:
5247
+ * - i+0: Index of the host directive on which the output is defined..
5248
+ * - i+1: Public name of the output as it was defined on the host directive before aliasing.
5249
+ */
5250
+ declare type HostDirectiveOutputs = Record<string, (number | string)[]>;
5251
+
5211
5252
  /**
5212
5253
  * Type of the HostListener metadata.
5213
5254
  *
@@ -7615,6 +7656,35 @@ declare const MULTIPLIER = "x";
7615
7656
 
7616
7657
  declare const NATIVE = 7;
7617
7658
 
7659
+ declare interface NavigateEventInit extends EventInit {
7660
+ navigationType?: ɵNavigationTypeString;
7661
+ canIntercept?: boolean;
7662
+ userInitiated?: boolean;
7663
+ hashChange?: boolean;
7664
+ destination: ɵNavigationDestination;
7665
+ signal: AbortSignal;
7666
+ formData?: FormData | null;
7667
+ downloadRequest?: string | null;
7668
+ info?: unknown;
7669
+ }
7670
+
7671
+ declare interface NavigationCurrentEntryChangeEventInit extends EventInit {
7672
+ navigationType?: ɵNavigationTypeString | null;
7673
+ from: ɵNavigationHistoryEntry;
7674
+ }
7675
+
7676
+
7677
+ declare interface NavigationEventMap {
7678
+ navigate: ɵNavigateEvent;
7679
+ navigatesuccess: Event;
7680
+ navigateerror: ErrorEvent;
7681
+ currententrychange: ɵNavigationCurrentEntryChangeEvent;
7682
+ }
7683
+
7684
+ declare interface NavigationHistoryEntryEventMap {
7685
+ dispose: Event;
7686
+ }
7687
+
7618
7688
  declare const NEXT = 4;
7619
7689
 
7620
7690
  declare interface NgGlobalPublishUtils {
@@ -8158,36 +8228,28 @@ export declare interface NgZoneOptions {
8158
8228
  export declare const NO_ERRORS_SCHEMA: SchemaMetadata;
8159
8229
 
8160
8230
  /**
8161
- * Store the runtime input for all directives applied to a node.
8162
- *
8163
- * This allows efficiently setting the same input on a directive that
8164
- * might apply to multiple directives.
8165
- *
8166
- * i+0: directive instance index
8167
- * i+1: privateName
8231
+ * Maps the public names of inputs applied to a specific node to the index of the
8232
+ * directive instance to which the input value should be written, for example:
8168
8233
  *
8169
- * e.g.
8170
8234
  * ```
8171
8235
  * {
8172
- * "publicName": [0, 'change-minified']
8236
+ * "publicName": [0, 5]
8173
8237
  * }
8174
8238
  * ```
8175
8239
  */
8176
- declare type NodeInputBindings = Record<string, (number | string)[]>;
8240
+ declare type NodeInputBindings = Record<string, number[]>;
8177
8241
 
8178
8242
  /**
8179
- * Store the runtime output names for all the directives.
8243
+ * Maps the public names of outputs available on a specific node to the index
8244
+ * of the directive instance that defines the output, for example:
8180
8245
  *
8181
- * i+0: directive instance index
8182
- * i+1: privateName
8183
- *
8184
- * e.g.
8185
8246
  * ```
8186
8247
  * {
8187
- * "publicName": [0, 'change-minified']
8248
+ * "publicName": [0, 5]
8188
8249
  * }
8250
+ * ```
8189
8251
  */
8190
- declare type NodeOutputBindings = Record<string, (number | string)[]>;
8252
+ declare type NodeOutputBindings = Record<string, number[]>;
8191
8253
 
8192
8254
  declare const NODES = "n";
8193
8255
 
@@ -11087,17 +11149,29 @@ declare interface TNode {
11087
11149
  */
11088
11150
  localNames: (string | number)[] | null;
11089
11151
  /** Information about input properties that need to be set once from attribute data. */
11090
- initialInputs: InitialInputData | null | undefined;
11152
+ initialInputs: InitialInputData | null;
11091
11153
  /**
11092
11154
  * Input data for all directives on this node. `null` means that there are no directives with
11093
11155
  * inputs on this node.
11094
11156
  */
11095
11157
  inputs: NodeInputBindings | null;
11158
+ /**
11159
+ * Input data for host directives applied to the node.
11160
+ */
11161
+ hostDirectiveInputs: HostDirectiveInputs | null;
11096
11162
  /**
11097
11163
  * Output data for all directives on this node. `null` means that there are no directives with
11098
11164
  * outputs on this node.
11099
11165
  */
11100
11166
  outputs: NodeOutputBindings | null;
11167
+ /**
11168
+ * Input data for host directives applied to the node.
11169
+ */
11170
+ hostDirectiveOutputs: HostDirectiveOutputs | null;
11171
+ /**
11172
+ * Mapping between directive classes applied to the node and their indexes.
11173
+ */
11174
+ directiveToIndex: DirectiveIndexMap | null;
11101
11175
  /**
11102
11176
  * The TView attached to this node.
11103
11177
  *
@@ -13454,7 +13528,7 @@ export declare enum ɵDeferBlockState {
13454
13528
  /** The deps tracker to be used in the current Angular app in dev mode. */
13455
13529
  export declare const ɵdepsTracker: DepsTracker;
13456
13530
 
13457
- export declare function ɵdetectChangesInViewIfRequired(lView: LView, notifyErrorHandler: boolean, isFirstPass: boolean, zonelessEnabled: boolean): void;
13531
+ export declare function ɵdetectChangesInViewIfRequired(lView: LView, isFirstPass: boolean, zonelessEnabled: boolean): void;
13458
13532
 
13459
13533
 
13460
13534
  export declare function ɵdevModeEqual(a: any, b: any): boolean;
@@ -14127,6 +14201,108 @@ export declare class ɵMicrotaskEffectScheduler extends ZoneAwareEffectScheduler
14127
14201
  static ɵprov: unknown;
14128
14202
  }
14129
14203
 
14204
+ export declare class ɵNavigateEvent extends Event {
14205
+ constructor(type: string, eventInit?: NavigateEventInit);
14206
+ readonly navigationType: ɵNavigationTypeString;
14207
+ readonly canIntercept: boolean;
14208
+ readonly userInitiated: boolean;
14209
+ readonly hashChange: boolean;
14210
+ readonly destination: ɵNavigationDestination;
14211
+ readonly signal: AbortSignal;
14212
+ readonly formData: FormData | null;
14213
+ readonly downloadRequest: string | null;
14214
+ readonly info?: unknown;
14215
+ intercept(options?: ɵNavigationInterceptOptions): void;
14216
+ scroll(): void;
14217
+ }
14218
+
14219
+ export declare class ɵNavigation extends EventTarget {
14220
+ entries(): ɵNavigationHistoryEntry[];
14221
+ readonly currentEntry: ɵNavigationHistoryEntry | null;
14222
+ updateCurrentEntry(options: ɵNavigationUpdateCurrentEntryOptions): void;
14223
+ readonly transition: ɵNavigationTransition | null;
14224
+ readonly canGoBack: boolean;
14225
+ readonly canGoForward: boolean;
14226
+ navigate(url: string, options?: ɵNavigationNavigateOptions): ɵNavigationResult;
14227
+ reload(options?: ɵNavigationReloadOptions): ɵNavigationResult;
14228
+ traverseTo(key: string, options?: ɵNavigationOptions): ɵNavigationResult;
14229
+ back(options?: ɵNavigationOptions): ɵNavigationResult;
14230
+ forward(options?: ɵNavigationOptions): ɵNavigationResult;
14231
+ onnavigate: ((this: ɵNavigation, ev: ɵNavigateEvent) => any) | null;
14232
+ onnavigatesuccess: ((this: ɵNavigation, ev: Event) => any) | null;
14233
+ onnavigateerror: ((this: ɵNavigation, ev: ErrorEvent) => any) | null;
14234
+ oncurrententrychange: ((this: ɵNavigation, ev: ɵNavigationCurrentEntryChangeEvent) => any) | null;
14235
+ addEventListener<K extends keyof NavigationEventMap>(type: K, listener: (this: ɵNavigation, ev: NavigationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
14236
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
14237
+ removeEventListener<K extends keyof NavigationEventMap>(type: K, listener: (this: ɵNavigation, ev: NavigationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
14238
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
14239
+ }
14240
+
14241
+ export declare class ɵNavigationCurrentEntryChangeEvent extends Event {
14242
+ constructor(type: string, eventInit?: NavigationCurrentEntryChangeEventInit);
14243
+ readonly navigationType: ɵNavigationTypeString | null;
14244
+ readonly from: ɵNavigationHistoryEntry;
14245
+ }
14246
+
14247
+ export declare class ɵNavigationDestination {
14248
+ readonly url: string;
14249
+ readonly key: string | null;
14250
+ readonly id: string | null;
14251
+ readonly index: number;
14252
+ readonly sameDocument: boolean;
14253
+ getState(): unknown;
14254
+ }
14255
+
14256
+ export declare class ɵNavigationHistoryEntry extends EventTarget {
14257
+ readonly key: string;
14258
+ readonly id: string;
14259
+ readonly url: string | null;
14260
+ readonly index: number;
14261
+ readonly sameDocument: boolean;
14262
+ getState(): unknown;
14263
+ ondispose: ((this: ɵNavigationHistoryEntry, ev: Event) => any) | null;
14264
+ addEventListener<K extends keyof NavigationHistoryEntryEventMap>(type: K, listener: (this: ɵNavigationHistoryEntry, ev: NavigationHistoryEntryEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
14265
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
14266
+ removeEventListener<K extends keyof NavigationHistoryEntryEventMap>(type: K, listener: (this: ɵNavigationHistoryEntry, ev: NavigationHistoryEntryEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
14267
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
14268
+ }
14269
+
14270
+ export declare interface ɵNavigationInterceptOptions {
14271
+ handler?: () => Promise<void>;
14272
+ focusReset?: 'after-transition' | 'manual';
14273
+ scroll?: 'after-transition' | 'manual';
14274
+ }
14275
+
14276
+ export declare interface ɵNavigationNavigateOptions extends ɵNavigationOptions {
14277
+ state?: unknown;
14278
+ history?: 'auto' | 'push' | 'replace';
14279
+ }
14280
+
14281
+ export declare interface ɵNavigationOptions {
14282
+ info?: unknown;
14283
+ }
14284
+
14285
+ export declare interface ɵNavigationReloadOptions extends ɵNavigationOptions {
14286
+ state?: unknown;
14287
+ }
14288
+
14289
+ export declare interface ɵNavigationResult {
14290
+ committed: Promise<ɵNavigationHistoryEntry>;
14291
+ finished: Promise<ɵNavigationHistoryEntry>;
14292
+ }
14293
+
14294
+ export declare class ɵNavigationTransition {
14295
+ readonly navigationType: ɵNavigationTypeString;
14296
+ readonly from: ɵNavigationHistoryEntry;
14297
+ readonly finished: Promise<void>;
14298
+ }
14299
+
14300
+ export declare type ɵNavigationTypeString = 'reload' | 'push' | 'replace' | 'traverse';
14301
+
14302
+ export declare interface ɵNavigationUpdateCurrentEntryOptions {
14303
+ state: unknown;
14304
+ }
14305
+
14130
14306
 
14131
14307
  export declare const ɵNG_COMP_DEF: string;
14132
14308
 
@@ -15118,7 +15294,6 @@ export declare class ɵViewRef<T> implements EmbeddedViewRef<T>, ChangeDetectorR
15118
15294
  * This may be different from `_lView` if the `_cdRefInjectingView` is an embedded view.
15119
15295
  */
15120
15296
  private _cdRefInjectingView?;
15121
- readonly notifyErrorHandler: boolean;
15122
15297
  private _appRef;
15123
15298
  private _attachedToViewContainer;
15124
15299
  get rootNodes(): any[];
@@ -15141,7 +15316,7 @@ export declare class ɵViewRef<T> implements EmbeddedViewRef<T>, ChangeDetectorR
15141
15316
  *
15142
15317
  * This may be different from `_lView` if the `_cdRefInjectingView` is an embedded view.
15143
15318
  */
15144
- _cdRefInjectingView?: LView | undefined, notifyErrorHandler?: boolean);
15319
+ _cdRefInjectingView?: LView | undefined);
15145
15320
  get context(): T;
15146
15321
  /**
15147
15322
  * Reports whether the given view is considered dirty according to the different marking mechanisms.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/core",
3
- "version": "19.2.0-rc.0",
3
+ "version": "20.0.0-next.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.2.0-rc.0
2
+ * @license Angular v20.0.0-next.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.2.0-rc.0
2
+ * @license Angular v20.0.0-next.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.2.0-rc.0
2
+ * @license Angular v20.0.0-next.0
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v19.2.0-rc.0
3
+ * @license Angular v20.0.0-next.0
4
4
  * (c) 2010-2024 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -8,8 +8,8 @@
8
8
 
9
9
  var ts = require('typescript');
10
10
  require('os');
11
- var checker = require('./checker-2eecc677.js');
12
- var project_paths = require('./project_paths-b073c4d6.js');
11
+ var checker = require('./checker-cf6f7980.js');
12
+ var project_paths = require('./project_paths-7d2daa1e.js');
13
13
 
14
14
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
15
15