@angular/core 16.0.0-next.1 → 16.0.0-next.2

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 (54) hide show
  1. package/esm2020/src/application_config.mjs +21 -0
  2. package/esm2020/src/application_init.mjs +21 -30
  3. package/esm2020/src/application_ref.mjs +31 -31
  4. package/esm2020/src/application_tokens.mjs +2 -13
  5. package/esm2020/src/change_detection/change_detection.mjs +2 -2
  6. package/esm2020/src/change_detection/constants.mjs +1 -49
  7. package/esm2020/src/core.mjs +4 -3
  8. package/esm2020/src/core_private_export.mjs +5 -7
  9. package/esm2020/src/core_render3_private_export.mjs +2 -1
  10. package/esm2020/src/debug/debug_node.mjs +1 -5
  11. package/esm2020/src/hydration/annotate.mjs +140 -0
  12. package/esm2020/src/hydration/api.mjs +120 -0
  13. package/esm2020/src/hydration/error_handling.mjs +29 -0
  14. package/esm2020/src/hydration/interfaces.mjs +10 -0
  15. package/esm2020/src/hydration/node_lookup_utils.mjs +75 -0
  16. package/esm2020/src/hydration/skip_hydration.mjs +34 -0
  17. package/esm2020/src/hydration/tokens.mjs +25 -0
  18. package/esm2020/src/hydration/utils.mjs +131 -0
  19. package/esm2020/src/linker/template_ref.mjs +4 -4
  20. package/esm2020/src/render3/component_ref.mjs +16 -9
  21. package/esm2020/src/render3/i18n/i18n_util.mjs +3 -3
  22. package/esm2020/src/render3/instructions/element.mjs +48 -6
  23. package/esm2020/src/render3/instructions/element_container.mjs +54 -9
  24. package/esm2020/src/render3/instructions/listener.mjs +3 -3
  25. package/esm2020/src/render3/instructions/shared.mjs +25 -8
  26. package/esm2020/src/render3/instructions/template.mjs +2 -2
  27. package/esm2020/src/render3/instructions/text.mjs +36 -5
  28. package/esm2020/src/render3/interfaces/node.mjs +1 -1
  29. package/esm2020/src/render3/interfaces/renderer_dom.mjs +1 -1
  30. package/esm2020/src/render3/interfaces/view.mjs +3 -2
  31. package/esm2020/src/render3/jit/directive.mjs +1 -2
  32. package/esm2020/src/render3/node_manipulation.mjs +12 -1
  33. package/esm2020/src/render3/state.mjs +45 -1
  34. package/esm2020/src/transfer_state.mjs +15 -10
  35. package/esm2020/src/util/lang.mjs +1 -11
  36. package/esm2020/src/util/ng_dev_mode.mjs +3 -1
  37. package/esm2020/src/version.mjs +1 -1
  38. package/esm2020/testing/src/logger.mjs +3 -3
  39. package/esm2020/testing/src/ng_zone_mock.mjs +3 -3
  40. package/fesm2015/core.mjs +1127 -517
  41. package/fesm2015/core.mjs.map +1 -1
  42. package/fesm2015/testing.mjs +677 -90
  43. package/fesm2015/testing.mjs.map +1 -1
  44. package/fesm2020/core.mjs +1119 -515
  45. package/fesm2020/core.mjs.map +1 -1
  46. package/fesm2020/testing.mjs +671 -90
  47. package/fesm2020/testing.mjs.map +1 -1
  48. package/index.d.ts +174 -92
  49. package/package.json +2 -2
  50. package/schematics/migrations/relative-link-resolution/bundle.js +7 -7
  51. package/schematics/migrations/router-link-with-href/bundle.js +10 -10
  52. package/schematics/ng-generate/standalone-migration/bundle.js +693 -668
  53. package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
  54. package/testing/index.d.ts +1 -1
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v16.0.0-next.1
2
+ * @license Angular v16.0.0-next.2
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -273,20 +273,31 @@ export declare const APP_INITIALIZER: InjectionToken<readonly (() => Observable<
273
273
 
274
274
  declare function _appIdRandomProviderFactory(): string;
275
275
 
276
+ /**
277
+ * Set of config options available during the application bootstrap operation.
278
+ *
279
+ * @publicApi
280
+ */
281
+ export declare interface ApplicationConfig {
282
+ /**
283
+ * List of providers that should be available to the root component and all its children.
284
+ */
285
+ providers: Array<Provider | EnvironmentProviders>;
286
+ }
287
+
276
288
  /**
277
289
  * A class that reflects the state of running {@link APP_INITIALIZER} functions.
278
290
  *
279
291
  * @publicApi
280
292
  */
281
293
  export declare class ApplicationInitStatus {
282
- private readonly appInits;
283
294
  private resolve;
284
295
  private reject;
285
296
  private initialized;
286
- readonly donePromise: Promise<any>;
287
297
  readonly done = false;
288
- constructor(appInits: ReadonlyArray<() => Observable<unknown> | Promise<unknown> | void>);
289
- static ɵfac: i0.ɵɵFactoryDeclaration<ApplicationInitStatus, [{ optional: true; }]>;
298
+ readonly donePromise: Promise<any>;
299
+ private readonly appInits;
300
+ static ɵfac: i0.ɵɵFactoryDeclaration<ApplicationInitStatus, never>;
290
301
  static ɵprov: i0.ɵɵInjectableDeclaration<ApplicationInitStatus>;
291
302
  }
292
303
 
@@ -401,7 +412,6 @@ export declare class ApplicationRef {
401
412
  private _zone;
402
413
  private _injector;
403
414
  private _exceptionHandler;
404
- private _views;
405
415
  private _runningTick;
406
416
  private _stable;
407
417
  private _onMicrotaskEmptySubscription;
@@ -2174,6 +2184,46 @@ export declare class DefaultIterableDiffer<V> implements IterableDiffer<V>, Iter
2174
2184
  */
2175
2185
  export declare const defineInjectable: typeof ɵɵdefineInjectable;
2176
2186
 
2187
+ /**
2188
+ * Represents a hydration-related element container structure
2189
+ * at runtime, which includes a reference to a first node in
2190
+ * a DOM segment that corresponds to a given element container.
2191
+ */
2192
+ declare interface DehydratedElementContainer {
2193
+ /**
2194
+ * A reference to the first child in a DOM segment associated
2195
+ * with a first child in a given <ng-container>.
2196
+ */
2197
+ firstChild: RNode | null;
2198
+ }
2199
+
2200
+ /**
2201
+ * An object that contains hydration-related information serialized
2202
+ * on the server, as well as the necessary references to segments of
2203
+ * the DOM, to facilitate the hydration process for a given hydration
2204
+ * boundary on the client.
2205
+ */
2206
+ declare interface DehydratedView {
2207
+ /**
2208
+ * The readonly hydration annotation data.
2209
+ */
2210
+ data: Readonly<SerializedView>;
2211
+ /**
2212
+ * A reference to the first child in a DOM segment associated
2213
+ * with a given hydration boundary.
2214
+ */
2215
+ firstChild: RNode | null;
2216
+ /**
2217
+ * Collection of <ng-container>s in a given view,
2218
+ * used as a set of pointers to first children in each
2219
+ * <ng-container>, so that those pointers are reused by
2220
+ * subsequent instructions.
2221
+ */
2222
+ ngContainers?: {
2223
+ [index: number]: DehydratedElementContainer;
2224
+ };
2225
+ }
2226
+
2177
2227
  declare type DependencyTypeList = (ɵDirectiveType<any> | ɵComponentType<any> | PipeType<any> | Type<any>)[];
2178
2228
 
2179
2229
  /**
@@ -2691,6 +2741,8 @@ export declare interface Effect {
2691
2741
  */
2692
2742
  export declare function effect(effectFn: () => void): Effect;
2693
2743
 
2744
+ declare const ELEMENT_CONTAINERS = "e";
2745
+
2694
2746
  /**
2695
2747
  * Marks that the next string is an element name.
2696
2748
  *
@@ -3548,6 +3600,8 @@ export declare interface HostListenerDecorator {
3548
3600
  new (eventName: string, args?: string[]): any;
3549
3601
  }
3550
3602
 
3603
+ declare const HYDRATION = 23;
3604
+
3551
3605
  declare namespace i0 {
3552
3606
  export {
3553
3607
  ɵɵinject,
@@ -5087,6 +5141,10 @@ declare interface LView<T = unknown> extends Array<any> {
5087
5141
  [TRANSPLANTED_VIEWS_TO_REFRESH]: number;
5088
5142
  /** Unique ID of the view. Used for `__ngContext__` lookups in the `LView` registry. */
5089
5143
  [ID]: number;
5144
+ /**
5145
+ * A container related to hydration annotation information that's associated with this LView.
5146
+ */
5147
+ [HYDRATION]: DehydratedView | null;
5090
5148
  /**
5091
5149
  * Optional injector assigned to embedded views that takes
5092
5150
  * precedence over the element and module injectors.
@@ -5153,6 +5211,16 @@ declare const enum LViewFlags {
5153
5211
  */
5154
5212
  export declare function makeEnvironmentProviders(providers: (Provider | EnvironmentProviders)[]): EnvironmentProviders;
5155
5213
 
5214
+ /**
5215
+ * Merge multiple application configurations from left to right.
5216
+ *
5217
+ * @param configs Two or more configurations to be merged.
5218
+ * @returns A merged [ApplicationConfig](api/core/ApplicationConfig).
5219
+ *
5220
+ * @publicApi
5221
+ */
5222
+ export declare function mergeApplicationConfig(...configs: ApplicationConfig[]): ApplicationConfig;
5223
+
5156
5224
  /**
5157
5225
  * Use this enum at bootstrap as an option of `bootstrapModule` to define the strategy
5158
5226
  * that the compiler should use in case of missing translations:
@@ -6919,11 +6987,13 @@ export declare class ReflectiveKey {
6919
6987
  * listeners on Element.
6920
6988
  */
6921
6989
  declare interface RElement extends RNode {
6990
+ firstChild: RNode | null;
6922
6991
  style: RCssStyleDeclaration;
6923
6992
  classList: RDomTokenList;
6924
6993
  className: string;
6925
6994
  tagName: string;
6926
6995
  textContent: string | null;
6996
+ getAttribute(name: string): string | null;
6927
6997
  setAttribute(name: string, value: string | TrustedHTML | TrustedScript | TrustedScriptURL): void;
6928
6998
  removeAttribute(name: string): void;
6929
6999
  setAttributeNS(namespaceURI: string, qualifiedName: string, value: string | TrustedHTML | TrustedScript | TrustedScriptURL): void;
@@ -7517,6 +7587,29 @@ export declare interface SelfDecorator {
7517
7587
  new (): Self;
7518
7588
  }
7519
7589
 
7590
+ /**
7591
+ * Represents element containers within this view, stored as key-value pairs
7592
+ * where key is an index of a container in an LView (also used in the
7593
+ * `elementContainerStart` instruction), the value is the number of root nodes
7594
+ * in this container. This information is needed to locate an anchor comment
7595
+ * node that goes after all container nodes.
7596
+ */
7597
+ declare interface SerializedElementContainers {
7598
+ [key: number]: number;
7599
+ }
7600
+
7601
+ /**
7602
+ * Serialized data structure that contains relevant hydration
7603
+ * annotation information that describes a given hydration boundary
7604
+ * (e.g. a component).
7605
+ */
7606
+ declare interface SerializedView {
7607
+ /**
7608
+ * Serialized information about <ng-container>s.
7609
+ */
7610
+ [ELEMENT_CONTAINERS]?: SerializedElementContainers;
7611
+ }
7612
+
7520
7613
  /**
7521
7614
  * A `Signal` with a value that can be mutated via a setter interface.
7522
7615
  *
@@ -7761,7 +7854,7 @@ declare interface TContainerNode extends TNode {
7761
7854
  * - They are dynamically created
7762
7855
  */
7763
7856
  parent: TElementNode | TElementContainerNode | null;
7764
- tViews: TView | TView[] | null;
7857
+ tView: TView | null;
7765
7858
  projection: null;
7766
7859
  value: null;
7767
7860
  }
@@ -7801,7 +7894,7 @@ declare interface TElementContainerNode extends TNode {
7801
7894
  index: number;
7802
7895
  child: TElementNode | TTextNode | TContainerNode | TElementContainerNode | TProjectionNode | null;
7803
7896
  parent: TElementNode | TElementContainerNode | null;
7804
- tViews: null;
7897
+ tView: null;
7805
7898
  projection: null;
7806
7899
  }
7807
7900
 
@@ -7816,7 +7909,7 @@ declare interface TElementNode extends TNode {
7816
7909
  * retrieved using viewData[HOST_NODE]).
7817
7910
  */
7818
7911
  parent: TElementNode | TElementContainerNode | null;
7819
- tViews: null;
7912
+ tView: null;
7820
7913
  /**
7821
7914
  * If this is a component TNode with projection, this will be an array of projected
7822
7915
  * TNodes or native nodes (see TNode.projection for more info). If it's a regular element node
@@ -8254,26 +8347,14 @@ declare interface TNode {
8254
8347
  */
8255
8348
  outputs: PropertyAliases | null;
8256
8349
  /**
8257
- * The TView or TViews attached to this node.
8258
- *
8259
- * If this TNode corresponds to an LContainer with inline views, the container will
8260
- * need to store separate static data for each of its view blocks (TView[]). Otherwise,
8261
- * nodes in inline views with the same index as nodes in their parent views will overwrite
8262
- * each other, as they are in the same template.
8263
- *
8264
- * Each index in this array corresponds to the static data for a certain
8265
- * view. So if you had V(0) and V(1) in a container, you might have:
8266
- *
8267
- * [
8268
- * [{tagName: 'div', attrs: ...}, null], // V(0) TView
8269
- * [{tagName: 'button', attrs ...}, null] // V(1) TView
8350
+ * The TView attached to this node.
8270
8351
  *
8271
8352
  * If this TNode corresponds to an LContainer with a template (e.g. structural
8272
8353
  * directive), the template's TView will be stored here.
8273
8354
  *
8274
- * If this TNode corresponds to an element, tViews will be null .
8355
+ * If this TNode corresponds to an element, tView will be `null`.
8275
8356
  */
8276
- tViews: TView | TView[] | null;
8357
+ tView: TView | null;
8277
8358
  /**
8278
8359
  * The next sibling node. Necessary so we can propagate through the root nodes of a view
8279
8360
  * to insert them or remove them from the DOM.
@@ -8574,7 +8655,7 @@ declare interface TProjectionNode extends TNode {
8574
8655
  * retrieved using LView.node).
8575
8656
  */
8576
8657
  parent: TElementNode | TElementContainerNode | null;
8577
- tViews: null;
8658
+ tView: null;
8578
8659
  /** Index of the projection node. (See TNode.projection for more info.) */
8579
8660
  projection: number;
8580
8661
  value: null;
@@ -8965,7 +9046,7 @@ declare interface TTextNode extends TNode {
8965
9046
  * retrieved using LView.node).
8966
9047
  */
8967
9048
  parent: TElementNode | TElementContainerNode | null;
8968
- tViews: null;
9049
+ tView: null;
8969
9050
  projection: null;
8970
9051
  }
8971
9052
 
@@ -9816,6 +9897,15 @@ export declare function ɵallowSanitizationBypassAndThrow(value: any, type: ɵBy
9816
9897
 
9817
9898
  export declare function ɵallowSanitizationBypassAndThrow(value: any, type: ɵBypassType): boolean;
9818
9899
 
9900
+ /**
9901
+ * Annotates all components bootstrapped in a given ApplicationRef
9902
+ * with info needed for hydration.
9903
+ *
9904
+ * @param appRef An instance of an ApplicationRef.
9905
+ * @param doc A reference to the current Document instance.
9906
+ */
9907
+ export declare function ɵannotateForHydration(appRef: ApplicationRef, doc: Document): void;
9908
+
9819
9909
  /**
9820
9910
  * Providers that generate a random `APP_ID_TOKEN`.
9821
9911
  * @publicApi
@@ -10018,43 +10108,6 @@ export declare const enum ɵBypassType {
10018
10108
  Style = "Style"
10019
10109
  }
10020
10110
 
10021
- /**
10022
- * Defines the possible states of the default change detector.
10023
- * @see `ChangeDetectorRef`
10024
- */
10025
- export declare enum ɵChangeDetectorStatus {
10026
- /**
10027
- * A state in which, after calling `detectChanges()`, the change detector
10028
- * state becomes `Checked`, and must be explicitly invoked or reactivated.
10029
- */
10030
- CheckOnce = 0,
10031
- /**
10032
- * A state in which change detection is skipped until the change detector mode
10033
- * becomes `CheckOnce`.
10034
- */
10035
- Checked = 1,
10036
- /**
10037
- * A state in which change detection continues automatically until explicitly
10038
- * deactivated.
10039
- */
10040
- CheckAlways = 2,
10041
- /**
10042
- * A state in which a change detector sub tree is not a part of the main tree and
10043
- * should be skipped.
10044
- */
10045
- Detached = 3,
10046
- /**
10047
- * Indicates that the change detector encountered an error checking a binding
10048
- * or calling a directive lifecycle method and is now in an inconsistent state. Change
10049
- * detectors in this state do not detect changes.
10050
- */
10051
- Errored = 4,
10052
- /**
10053
- * Indicates that the change detector has been destroyed.
10054
- */
10055
- Destroyed = 5
10056
- }
10057
-
10058
10111
  export declare function ɵclearResolutionOfComponentResourcesQueue(): Map<Type<any>, Component>;
10059
10112
 
10060
10113
 
@@ -10411,6 +10464,7 @@ export declare interface ɵDirectiveType<T> extends Type<T> {
10411
10464
  ɵfac: unknown;
10412
10465
  }
10413
10466
 
10467
+
10414
10468
  export declare function ɵescapeTransferStateContent(text: string): string;
10415
10469
 
10416
10470
  /**
@@ -10444,7 +10498,12 @@ export declare function ɵflushModuleScopingQueueAsMuchAsPossible(): void;
10444
10498
  */
10445
10499
  export declare function ɵformatRuntimeError<T extends number = RuntimeErrorCode>(code: T, message: null | false | string): string;
10446
10500
 
10447
- export declare function ɵgetDebugNodeR2(_nativeNode: any): DebugNode | null;
10501
+ /**
10502
+ * The following getter methods retrieve the definition from the type. Currently the retrieval
10503
+ * honors inheritance, but in the future we may change the rule to require that definitions are
10504
+ * explicit. This would require some sort of migration strategy.
10505
+ */
10506
+ export declare function ɵgetComponentDef<T>(type: any): ɵComponentDef<T> | null;
10448
10507
 
10449
10508
  /**
10450
10509
  * Retrieves directive instances associated with a given DOM node. Does not include
@@ -10589,38 +10648,21 @@ export declare interface ɵInternalEnvironmentProviders extends EnvironmentProvi
10589
10648
  ɵfromNgModule?: true;
10590
10649
  }
10591
10650
 
10592
- export declare function ɵisBoundToModule<C>(cf: ComponentFactory<C>): boolean;
10593
-
10594
10651
  /**
10595
- * Reports whether a given strategy is currently the default for change detection.
10596
- * @param changeDetectionStrategy The strategy to check.
10597
- * @returns True if the given strategy is the current default, false otherwise.
10598
- * @see `ChangeDetectorStatus`
10599
- * @see `ChangeDetectorRef`
10652
+ * Internal token that specifies whether hydration is enabled.
10600
10653
  */
10601
- export declare function ɵisDefaultChangeDetectionStrategy(changeDetectionStrategy: ChangeDetectionStrategy): boolean;
10654
+ export declare const ɵIS_HYDRATION_FEATURE_ENABLED: InjectionToken<boolean>;
10655
+
10656
+ export declare function ɵisBoundToModule<C>(cf: ComponentFactory<C>): boolean;
10602
10657
 
10603
10658
  export declare function ɵisEnvironmentProviders(value: Provider | EnvironmentProviders | ɵInternalEnvironmentProviders): value is ɵInternalEnvironmentProviders;
10604
10659
 
10605
10660
  export declare function ɵisInjectable(type: any): boolean;
10606
10661
 
10607
- export declare function ɵisListLikeIterable(obj: any): boolean;
10608
-
10609
10662
  export declare function ɵisNgModule<T>(value: Type<T>): value is Type<T> & {
10610
10663
  ɵmod: ɵNgModuleDef<T>;
10611
10664
  };
10612
10665
 
10613
- /**
10614
- * Determine if the argument is an Observable
10615
- *
10616
- * Strictly this tests that the `obj` is `Subscribable`, since `Observable`
10617
- * types need additional methods, such as `lift()`. But it is adequate for our
10618
- * needs since within the Angular framework code we only ever need to use the
10619
- * `subscribe()` method, and RxJS has mechanisms to wrap `Subscribable` objects
10620
- * into `Observable` as needed.
10621
- */
10622
- export declare const ɵisObservable: (obj: any | Observable<any>) => obj is Observable<any>;
10623
-
10624
10666
  /**
10625
10667
  * Determine if the argument is shaped like a Promise
10626
10668
  */
@@ -10629,9 +10671,7 @@ export declare function ɵisPromise<T = any>(obj: any): obj is Promise<T>;
10629
10671
  /**
10630
10672
  * Determine if the argument is a Subscribable
10631
10673
  */
10632
- export declare function ɵisSubscribable(obj: any | Subscribable<any>): obj is Subscribable<any>;
10633
-
10634
- export declare const ɵivyEnabled = true;
10674
+ export declare function ɵisSubscribable<T>(obj: any | Subscribable<T>): obj is Subscribable<T>;
10635
10675
 
10636
10676
  /**
10637
10677
  * The internal view context which is specific to a given DOM element, directive or
@@ -10985,6 +11025,50 @@ export declare const enum ɵProfilerEvent {
10985
11025
  OutputEnd = 7
10986
11026
  }
10987
11027
 
11028
+ /**
11029
+ * Returns a set of providers required to setup hydration support
11030
+ * for an application that is server side rendered.
11031
+ *
11032
+ * ## NgModule-based bootstrap
11033
+ *
11034
+ * You can add the function call to the root AppModule of an application:
11035
+ * ```
11036
+ * import {provideHydrationSupport} from '@angular/core';
11037
+ *
11038
+ * @NgModule({
11039
+ * providers: [
11040
+ * // ... other providers ...
11041
+ * provideHydrationSupport()
11042
+ * ],
11043
+ * declarations: [AppComponent],
11044
+ * bootstrap: [AppComponent]
11045
+ * })
11046
+ * class AppModule {}
11047
+ * ```
11048
+ *
11049
+ * ## Standalone-based bootstrap
11050
+ *
11051
+ * Add the function to the `bootstrapApplication` call:
11052
+ * ```
11053
+ * import {provideHydrationSupport} from '@angular/core';
11054
+ *
11055
+ * bootstrapApplication(RootComponent, {
11056
+ * providers: [
11057
+ * // ... other providers ...
11058
+ * provideHydrationSupport()
11059
+ * ]
11060
+ * });
11061
+ * ```
11062
+ *
11063
+ * The function sets up an internal flag that would be recognized during
11064
+ * the server side rendering time as well, so there is no need to
11065
+ * configure or change anything in NgUniversal to enable the feature.
11066
+ *
11067
+ * @publicApi
11068
+ * @developerPreview
11069
+ */
11070
+ export declare function ɵprovideHydrationSupport(): EnvironmentProviders;
11071
+
10988
11072
  /**
10989
11073
  * Publishes a collection of default debug tools onto`window.ng`.
10990
11074
  *
@@ -11324,9 +11408,9 @@ export declare const ɵTESTABILITY_GETTER: InjectionToken<GetTestability>;
11324
11408
  * @publicApi
11325
11409
  */
11326
11410
  export declare class ɵTransferState {
11327
- private store;
11411
+ /** @nocollapse */
11412
+ static ɵprov: unknown;
11328
11413
  private onSerializeCallbacks;
11329
- constructor();
11330
11414
  /**
11331
11415
  * Get the value corresponding to a key. Return `defaultValue` if key is not found.
11332
11416
  */
@@ -11355,8 +11439,6 @@ export declare class ɵTransferState {
11355
11439
  * Serialize the current state of the store to JSON.
11356
11440
  */
11357
11441
  toJson(): string;
11358
- static ɵfac: i0.ɵɵFactoryDeclaration<ɵTransferState, never>;
11359
- static ɵprov: i0.ɵɵInjectableDeclaration<ɵTransferState>;
11360
11442
  }
11361
11443
 
11362
11444
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/core",
3
- "version": "16.0.0-next.1",
3
+ "version": "16.0.0-next.2",
4
4
  "description": "Angular - the core framework",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "peerDependencies": {
38
38
  "rxjs": "^6.5.3 || ^7.4.0",
39
- "zone.js": "~0.11.4 || ~0.12.0 || ~0.13.0"
39
+ "zone.js": "~0.13.0"
40
40
  },
41
41
  "repository": {
42
42
  "type": "git",
@@ -56,7 +56,7 @@ var __async = (__this, __arguments, generator) => {
56
56
  });
57
57
  };
58
58
 
59
- // bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/relative-link-resolution/index.mjs
59
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/relative-link-resolution/index.mjs
60
60
  var relative_link_resolution_exports = {};
61
61
  __export(relative_link_resolution_exports, {
62
62
  default: () => relative_link_resolution_default
@@ -65,7 +65,7 @@ module.exports = __toCommonJS(relative_link_resolution_exports);
65
65
  var import_schematics = require("@angular-devkit/schematics");
66
66
  var import_path2 = require("path");
67
67
 
68
- // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
68
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
69
69
  var import_core = require("@angular-devkit/core");
70
70
  function getProjectTsConfigPaths(tree) {
71
71
  return __async(this, null, function* () {
@@ -145,11 +145,11 @@ function getWorkspace(tree) {
145
145
  });
146
146
  }
147
147
 
148
- // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
148
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
149
149
  var import_path = require("path");
150
150
  var import_typescript2 = __toESM(require("typescript"), 1);
151
151
 
152
- // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
152
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
153
153
  var path = __toESM(require("path"), 1);
154
154
  var import_typescript = __toESM(require("typescript"), 1);
155
155
  function parseTsconfigFile(tsconfigPath, basePath) {
@@ -166,7 +166,7 @@ function parseTsconfigFile(tsconfigPath, basePath) {
166
166
  return import_typescript.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
167
167
  }
168
168
 
169
- // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
169
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
170
170
  function createMigrationProgram(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles) {
171
171
  const { rootNames, options, host } = createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles);
172
172
  return import_typescript2.default.createProgram(rootNames, options, host);
@@ -199,7 +199,7 @@ function canMigrateFile(basePath, sourceFile, program) {
199
199
  return !(0, import_path.relative)(basePath, sourceFile.fileName).startsWith("..");
200
200
  }
201
201
 
202
- // bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/relative-link-resolution/util.mjs
202
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/relative-link-resolution/util.mjs
203
203
  var import_typescript3 = __toESM(require("typescript"), 1);
204
204
  var relativeLinkResolution = "relativeLinkResolution";
205
205
  var knownConfigValues = /* @__PURE__ */ new Set([`'legacy'`, `'corrected'`]);
@@ -239,7 +239,7 @@ function sortByStartPosDescending(rewrites) {
239
239
  return rewrites.sort((entityA, entityB) => entityB.startPos - entityA.startPos);
240
240
  }
241
241
 
242
- // bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/relative-link-resolution/index.mjs
242
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/relative-link-resolution/index.mjs
243
243
  function relative_link_resolution_default() {
244
244
  return (tree) => __async(this, null, function* () {
245
245
  const { buildPaths, testPaths } = yield getProjectTsConfigPaths(tree);
@@ -56,7 +56,7 @@ var __async = (__this, __arguments, generator) => {
56
56
  });
57
57
  };
58
58
 
59
- // bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/router-link-with-href/index.mjs
59
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/router-link-with-href/index.mjs
60
60
  var router_link_with_href_exports = {};
61
61
  __export(router_link_with_href_exports, {
62
62
  default: () => router_link_with_href_default
@@ -65,7 +65,7 @@ module.exports = __toCommonJS(router_link_with_href_exports);
65
65
  var import_schematics = require("@angular-devkit/schematics");
66
66
  var import_path2 = require("path");
67
67
 
68
- // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
68
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
69
69
  var import_core = require("@angular-devkit/core");
70
70
  function getProjectTsConfigPaths(tree) {
71
71
  return __async(this, null, function* () {
@@ -145,11 +145,11 @@ function getWorkspace(tree) {
145
145
  });
146
146
  }
147
147
 
148
- // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
148
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
149
149
  var import_path = require("path");
150
150
  var import_typescript2 = __toESM(require("typescript"), 1);
151
151
 
152
- // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
152
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
153
153
  var path = __toESM(require("path"), 1);
154
154
  var import_typescript = __toESM(require("typescript"), 1);
155
155
  function parseTsconfigFile(tsconfigPath, basePath) {
@@ -166,7 +166,7 @@ function parseTsconfigFile(tsconfigPath, basePath) {
166
166
  return import_typescript.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
167
167
  }
168
168
 
169
- // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
169
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
170
170
  function createMigrationProgram(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles) {
171
171
  const { rootNames, options, host } = createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles);
172
172
  return import_typescript2.default.createProgram(rootNames, options, host);
@@ -199,10 +199,10 @@ function canMigrateFile(basePath, sourceFile, program) {
199
199
  return !(0, import_path.relative)(basePath, sourceFile.fileName).startsWith("..");
200
200
  }
201
201
 
202
- // bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/router-link-with-href/util.mjs
202
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/router-link-with-href/util.mjs
203
203
  var import_typescript5 = __toESM(require("typescript"), 1);
204
204
 
205
- // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
205
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
206
206
  var import_typescript3 = __toESM(require("typescript"), 1);
207
207
  function getImportOfIdentifier(typeChecker, node) {
208
208
  const symbol = typeChecker.getSymbolAtLocation(node);
@@ -251,7 +251,7 @@ function findImportSpecifier(nodes, specifierName) {
251
251
  });
252
252
  }
253
253
 
254
- // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/nodes.mjs
254
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/nodes.mjs
255
255
  var import_typescript4 = __toESM(require("typescript"), 1);
256
256
  function closestNode(node, predicate) {
257
257
  let current = node.parent;
@@ -264,7 +264,7 @@ function closestNode(node, predicate) {
264
264
  return null;
265
265
  }
266
266
 
267
- // bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/router-link-with-href/util.mjs
267
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/router-link-with-href/util.mjs
268
268
  var routerLink = "RouterLink";
269
269
  var routerLinkWithHref = "RouterLinkWithHref";
270
270
  var routerModule = "@angular/router";
@@ -323,7 +323,7 @@ function sortByStartPosDescending(rewrites) {
323
323
  return rewrites.sort((entityA, entityB) => entityB.startPos - entityA.startPos);
324
324
  }
325
325
 
326
- // bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/router-link-with-href/index.mjs
326
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/router-link-with-href/index.mjs
327
327
  function router_link_with_href_default() {
328
328
  return (tree) => __async(this, null, function* () {
329
329
  const { buildPaths, testPaths } = yield getProjectTsConfigPaths(tree);