@angular/core 16.1.0 → 16.1.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 (39) hide show
  1. package/esm2022/rxjs-interop/src/to_signal.mjs +1 -1
  2. package/esm2022/src/application_init.mjs +2 -2
  3. package/esm2022/src/application_tokens.mjs +2 -2
  4. package/esm2022/src/change_detection/change_detector_ref.mjs +1 -1
  5. package/esm2022/src/change_detection/differs/default_iterable_differ.mjs +2 -1
  6. package/esm2022/src/di/forward_ref.mjs +2 -2
  7. package/esm2022/src/di/injector.mjs +2 -2
  8. package/esm2022/src/di/interface/provider.mjs +1 -1
  9. package/esm2022/src/di/metadata.mjs +1 -1
  10. package/esm2022/src/i18n/locale_data_api.mjs +2 -2
  11. package/esm2022/src/interface/lifecycle_hooks.mjs +1 -1
  12. package/esm2022/src/interface/simple_change.mjs +2 -2
  13. package/esm2022/src/linker/template_ref.mjs +2 -2
  14. package/esm2022/src/linker/view_container_ref.mjs +3 -3
  15. package/esm2022/src/linker/view_ref.mjs +2 -2
  16. package/esm2022/src/metadata/di.mjs +5 -5
  17. package/esm2022/src/metadata/schema.mjs +1 -1
  18. package/esm2022/src/render/api.mjs +8 -1
  19. package/esm2022/src/render3/view_ref.mjs +6 -6
  20. package/esm2022/src/testability/testability.mjs +3 -4
  21. package/esm2022/src/version.mjs +1 -1
  22. package/esm2022/src/zone/ng_zone.mjs +2 -3
  23. package/esm2022/testing/src/component_fixture.mjs +2 -5
  24. package/esm2022/testing/src/logger.mjs +3 -3
  25. package/fesm2022/core.mjs +32 -37
  26. package/fesm2022/core.mjs.map +1 -1
  27. package/fesm2022/rxjs-interop.mjs +1 -1
  28. package/fesm2022/rxjs-interop.mjs.map +1 -1
  29. package/fesm2022/testing.mjs +23 -19
  30. package/fesm2022/testing.mjs.map +1 -1
  31. package/index.d.ts +50 -49
  32. package/package.json +1 -1
  33. package/rxjs-interop/index.d.ts +6 -5
  34. package/schematics/migrations/guard-and-resolve-interfaces/bundle.js +13 -13
  35. package/schematics/migrations/remove-module-id/bundle.js +14 -14
  36. package/schematics/ng-generate/standalone-migration/bundle.js +403 -392
  37. package/schematics/ng-generate/standalone-migration/bundle.js.map +3 -3
  38. package/testing/index.d.ts +1 -1
  39. package/esm2022/src/util/microtask.mjs +0 -20
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v16.1.0
2
+ * @license Angular v16.1.2
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -29,7 +29,7 @@ export declare interface AbstractType<T> extends Function {
29
29
  * completed checking all content of a directive. It will run after the content
30
30
  * has been checked and most of the time it's during a change detection cycle.
31
31
  *
32
- * @see `AfterViewChecked`
32
+ * @see {@link AfterViewChecked}
33
33
  * @see [Lifecycle hooks guide](guide/lifecycle-hooks)
34
34
  *
35
35
  * @usageNotes
@@ -55,8 +55,8 @@ export declare interface AfterContentChecked {
55
55
  * all content of a directive. It will run only once when the projected content is initialized.
56
56
  * Define an `ngAfterContentInit()` method to handle any additional initialization tasks.
57
57
  *
58
- * @see `OnInit`
59
- * @see `AfterViewInit`
58
+ * @see {@link OnInit}
59
+ * @see {@link AfterViewInit}
60
60
  * @see [Lifecycle hooks guide](guide/lifecycle-hooks)
61
61
  *
62
62
  * @usageNotes
@@ -82,7 +82,7 @@ export declare interface AfterContentInit {
82
82
  * A lifecycle hook that is called after the default change detector has
83
83
  * completed checking a component's view for changes.
84
84
  *
85
- * @see `AfterContentChecked`
85
+ * @see {@link AfterContentChecked}
86
86
  * @see [Lifecycle hooks guide](guide/lifecycle-hooks)
87
87
  *
88
88
  * @usageNotes
@@ -108,8 +108,8 @@ export declare interface AfterViewChecked {
108
108
  * a component's view.
109
109
  * Define an `ngAfterViewInit()` method to handle any additional initialization tasks.
110
110
  *
111
- * @see `OnInit`
112
- * @see `AfterContentInit`
111
+ * @see {@link OnInit}
112
+ * @see {@link AfterContentInit}
113
113
  * @see [Lifecycle hooks guide](guide/lifecycle-hooks)
114
114
  *
115
115
  * @usageNotes
@@ -152,7 +152,7 @@ export declare const APP_BOOTSTRAP_LISTENER: InjectionToken<((compRef: Component
152
152
  /**
153
153
  * A [DI token](guide/glossary#di-token "DI token definition") representing a string ID, used
154
154
  * primarily for prefixing application attributes and CSS styles when
155
- * {@link ViewEncapsulation#Emulated ViewEncapsulation.Emulated} is being used.
155
+ * {@link ViewEncapsulation#Emulated} is being used.
156
156
  *
157
157
  * The token is needed in cases when multiple applications are bootstrapped on a page
158
158
  * (for example, using `bootstrapApplication` calls). In this case, ensure that those applications
@@ -194,7 +194,7 @@ export declare const APP_ID: InjectionToken<string>;
194
194
  * The function is executed during the application bootstrap process,
195
195
  * and the needed data is available on startup.
196
196
  *
197
- * @see `ApplicationInitStatus`
197
+ * @see {@link ApplicationInitStatus}
198
198
  *
199
199
  * @usageNotes
200
200
  *
@@ -752,7 +752,7 @@ declare type ChangeDetectionStrategy_2 = number;
752
752
  */
753
753
  export declare abstract class ChangeDetectorRef {
754
754
  /**
755
- * When a view uses the {@link ChangeDetectionStrategy#OnPush OnPush} (checkOnce)
755
+ * When a view uses the {@link ChangeDetectionStrategy#OnPush} (checkOnce)
756
756
  * change detection strategy, explicitly marks the view as changed so that
757
757
  * it can be checked again.
758
758
  *
@@ -778,8 +778,7 @@ export declare abstract class ChangeDetectorRef {
778
778
  */
779
779
  abstract detach(): void;
780
780
  /**
781
- * Checks this view and its children. Use in combination with {@link ChangeDetectorRef#detach
782
- * detach}
781
+ * Checks this view and its children. Use in combination with {@link ChangeDetectorRef#detach}
783
782
  * to implement local change detection checks.
784
783
  *
785
784
  * <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->
@@ -1683,7 +1682,7 @@ export declare const ContentChildren: ContentChildrenDecorator;
1683
1682
  /**
1684
1683
  * Type of the ContentChildren decorator / constructor function.
1685
1684
  *
1686
- * @see `ContentChildren`.
1685
+ * @see {@link ContentChildren}.
1687
1686
  * @publicApi
1688
1687
  */
1689
1688
  export declare interface ContentChildrenDecorator {
@@ -2937,7 +2936,7 @@ export declare interface DoBootstrap {
2937
2936
  * Typically, you should not use both `DoCheck` and `OnChanges` to respond to
2938
2937
  * changes on the same input.
2939
2938
  *
2940
- * @see `OnChanges`
2939
+ * @see {@link OnChanges}
2941
2940
  * @see [Lifecycle hooks guide](guide/lifecycle-hooks)
2942
2941
  *
2943
2942
  * @usageNotes
@@ -3064,7 +3063,7 @@ declare const EMBEDDED_VIEW_INJECTOR = 20;
3064
3063
  * a view cannot. Change the structure of elements by inserting, moving, or
3065
3064
  * removing nested views in a view container.
3066
3065
  *
3067
- * @see `ViewContainerRef`
3066
+ * @see {@link ViewContainerRef}
3068
3067
  *
3069
3068
  * @usageNotes
3070
3069
  *
@@ -3206,8 +3205,8 @@ export declare abstract class EnvironmentInjector implements Injector {
3206
3205
  *
3207
3206
  * This wrapper type prevents access to the `Provider`s inside.
3208
3207
  *
3209
- * @see `makeEnvironmentProviders`
3210
- * @see `importProvidersFrom`
3208
+ * @see {@link makeEnvironmentProviders}
3209
+ * @see {@link importProvidersFrom}
3211
3210
  *
3212
3211
  * @publicApi
3213
3212
  */
@@ -3368,7 +3367,7 @@ export declare interface ExistingProvider extends ExistingSansProvider {
3368
3367
  /**
3369
3368
  * Configures the `Injector` to return a value of another `useExisting` token.
3370
3369
  *
3371
- * @see `ExistingProvider`
3370
+ * @see {@link ExistingProvider}
3372
3371
  * @see ["Dependency Injection Guide"](guide/dependency-injection).
3373
3372
  *
3374
3373
  * @publicApi
@@ -3428,7 +3427,7 @@ export declare interface FactoryProvider extends FactorySansProvider {
3428
3427
  /**
3429
3428
  * Configures the `Injector` to return a value by invoking a `useFactory` function.
3430
3429
  *
3431
- * @see `FactoryProvider`
3430
+ * @see {@link FactoryProvider}
3432
3431
  * @see ["Dependency Injection Guide"](guide/dependency-injection).
3433
3432
  *
3434
3433
  * @publicApi
@@ -4124,7 +4123,7 @@ declare const ID = 19;
4124
4123
  * This type cannot be directly implemented. It's returned from the `importProvidersFrom` function
4125
4124
  * and serves to prevent the extracted NgModule providers from being used in the wrong contexts.
4126
4125
  *
4127
- * @see `importProvidersFrom`
4126
+ * @see {@link importProvidersFrom}
4128
4127
  *
4129
4128
  * @publicApi
4130
4129
  * @deprecated replaced by `EnvironmentProviders`
@@ -4525,7 +4524,7 @@ export declare const INJECTOR: InjectionToken<Injector>;
4525
4524
  * dependencies of various types with [injection tokens](guide/glossary#di-token).
4526
4525
  *
4527
4526
  * @see ["DI Providers"](guide/dependency-injection-providers).
4528
- * @see `StaticProvider`
4527
+ * @see {@link StaticProvider}
4529
4528
  *
4530
4529
  * @usageNotes
4531
4530
  *
@@ -6150,8 +6149,8 @@ declare const ON_DESTROY_HOOKS = 21;
6150
6149
  * A lifecycle hook that is called when any data-bound property of a directive changes.
6151
6150
  * Define an `ngOnChanges()` method to handle the changes.
6152
6151
  *
6153
- * @see `DoCheck`
6154
- * @see `OnInit`
6152
+ * @see {@link DoCheck}
6153
+ * @see {@link OnInit}
6155
6154
  * @see [Lifecycle hooks guide](guide/lifecycle-hooks)
6156
6155
  *
6157
6156
  * @usageNotes
@@ -6201,7 +6200,7 @@ export declare interface OnDestroy {
6201
6200
  * all data-bound properties of a directive.
6202
6201
  * Define an `ngOnInit()` method to handle any additional initialization tasks.
6203
6202
  *
6204
- * @see `AfterContentInit`
6203
+ * @see {@link AfterContentInit}
6205
6204
  * @see [Lifecycle hooks guide](guide/lifecycle-hooks)
6206
6205
  *
6207
6206
  * @usageNotes
@@ -6613,7 +6612,7 @@ declare type PropertyAliasValue = (number | string)[];
6613
6612
  * Describes how the `Injector` should be configured.
6614
6613
  * @see ["Dependency Injection Guide"](guide/dependency-injection).
6615
6614
  *
6616
- * @see `StaticProvider`
6615
+ * @see {@link StaticProvider}
6617
6616
  *
6618
6617
  * @publicApi
6619
6618
  */
@@ -6682,10 +6681,10 @@ export declare interface Query {
6682
6681
  /**
6683
6682
  * Base class for query metadata.
6684
6683
  *
6685
- * @see `ContentChildren`.
6686
- * @see `ContentChild`.
6687
- * @see `ViewChildren`.
6688
- * @see `ViewChild`.
6684
+ * @see {@link ContentChildren}.
6685
+ * @see {@link ContentChild}.
6686
+ * @see {@link ViewChildren}.
6687
+ * @see {@link ViewChild}.
6689
6688
  *
6690
6689
  * @publicApi
6691
6690
  */
@@ -7511,7 +7510,7 @@ export declare interface RendererType2 {
7511
7510
  *
7512
7511
  * {@example core/di/ts/forward_ref/forward_ref_spec.ts region='resolve_forward_ref'}
7513
7512
  *
7514
- * @see `forwardRef`
7513
+ * @see {@link forwardRef}
7515
7514
  * @publicApi
7516
7515
  */
7517
7516
  export declare function resolveForwardRef<T>(type: T): T;
@@ -7675,7 +7674,9 @@ declare type SanitizerFn = (value: any, tagName?: string, propName?: string) =>
7675
7674
  /**
7676
7675
  * A schema definition associated with an NgModule.
7677
7676
  *
7678
- * @see `@NgModule`, `CUSTOM_ELEMENTS_SCHEMA`, `NO_ERRORS_SCHEMA`
7677
+ * @see {@link NgModule}
7678
+ * @see {@link CUSTOM_ELEMENTS_SCHEMA}
7679
+ * @see {@link NO_ERRORS_SCHEMA}
7679
7680
  *
7680
7681
  * @param name The name of a defined schema.
7681
7682
  *
@@ -7754,8 +7755,8 @@ export declare interface SelfDecorator {
7754
7755
  * <code-example path="core/di/ts/metadata_spec.ts" region="Self">
7755
7756
  * </code-example>
7756
7757
  *
7757
- * @see `SkipSelf`
7758
- * @see `Optional`
7758
+ * @see {@link SkipSelf}
7759
+ * @see {@link Optional}
7759
7760
  *
7760
7761
  */
7761
7762
  (): any;
@@ -7883,7 +7884,7 @@ export declare function signal<T>(initialValue: T, options?: CreateSignalOptions
7883
7884
  * property on a directive instance. Passed as a value in a
7884
7885
  * {@link SimpleChanges} object to the `ngOnChanges` hook.
7885
7886
  *
7886
- * @see `OnChanges`
7887
+ * @see {@link OnChanges}
7887
7888
  *
7888
7889
  * @publicApi
7889
7890
  */
@@ -7903,7 +7904,7 @@ export declare class SimpleChange {
7903
7904
  * at the declared property name they belong to on a Directive or Component. This is
7904
7905
  * the type passed to the `ngOnChanges` hook.
7905
7906
  *
7906
- * @see `OnChanges`
7907
+ * @see {@link OnChanges}
7907
7908
  *
7908
7909
  * @publicApi
7909
7910
  */
@@ -7948,8 +7949,8 @@ export declare interface SkipSelfDecorator {
7948
7949
  * </code-example>
7949
7950
  *
7950
7951
  * @see [Dependency Injection guide](guide/dependency-injection-in-action#skip).
7951
- * @see `Self`
7952
- * @see `Optional`
7952
+ * @see {@link Self}
7953
+ * @see {@link Optional}
7953
7954
  *
7954
7955
  */
7955
7956
  (): any;
@@ -8029,7 +8030,7 @@ export declare interface StaticClassSansProvider {
8029
8030
  * Describes how an `Injector` should be configured as static (that is, without reflection).
8030
8031
  * A static provider provides tokens to an injector for various types of dependencies.
8031
8032
  *
8032
- * @see `Injector.create()`.
8033
+ * @see {@link Injector.create()}.
8033
8034
  * @see ["Dependency Injection Guide"](guide/dependency-injection-providers).
8034
8035
  *
8035
8036
  * @publicApi
@@ -8168,7 +8169,7 @@ declare const TEMPLATE_ID = "i";
8168
8169
  * You can also use a `Query` to find a `TemplateRef` associated with
8169
8170
  * a component or a directive.
8170
8171
  *
8171
- * @see `ViewContainerRef`
8172
+ * @see {@link ViewContainerRef}
8172
8173
  * @see [Navigate the Component Tree with DI](guide/dependency-injection-navtree)
8173
8174
  *
8174
8175
  * @publicApi
@@ -9759,7 +9760,7 @@ export declare const ViewChild: ViewChildDecorator;
9759
9760
  /**
9760
9761
  * Type of the ViewChild decorator / constructor function.
9761
9762
  *
9762
- * @see `ViewChild`.
9763
+ * @see {@link ViewChild}.
9763
9764
  * @publicApi
9764
9765
  */
9765
9766
  export declare interface ViewChildDecorator {
@@ -9836,7 +9837,7 @@ export declare const ViewChildren: ViewChildrenDecorator;
9836
9837
  /**
9837
9838
  * Type of the ViewChildren decorator / constructor function.
9838
9839
  *
9839
- * @see `ViewChildren`.
9840
+ * @see {@link ViewChildren}.
9840
9841
  *
9841
9842
  * @publicApi
9842
9843
  */
@@ -9912,8 +9913,8 @@ export declare interface ViewChildrenDecorator {
9912
9913
  * A view container instance can contain other view containers,
9913
9914
  * creating a [view hierarchy](guide/glossary#view-hierarchy).
9914
9915
  *
9915
- * @see `ComponentRef`
9916
- * @see `EmbeddedViewRef`
9916
+ * @see {@link ComponentRef}
9917
+ * @see {@link EmbeddedViewRef}
9917
9918
  *
9918
9919
  * @publicApi
9919
9920
  */
@@ -10911,7 +10912,7 @@ export declare function ɵgetLocaleCurrencyCode(locale: string): string | null;
10911
10912
  * for a given locale.
10912
10913
  * @param locale A locale code for the locale format rules to use.
10913
10914
  * @returns The plural function for the locale.
10914
- * @see `NgPlural`
10915
+ * @see {@link NgPlural}
10915
10916
  * @see [Internationalization (i18n) Guide](/guide/i18n-overview)
10916
10917
  */
10917
10918
  export declare function ɵgetLocalePluralCase(locale: string): (value: number) => number;
@@ -11703,7 +11704,7 @@ export declare class ɵViewRef<T> implements EmbeddedViewRef<T>, InternalViewRef
11703
11704
  /**
11704
11705
  * Marks a view and all of its ancestors dirty.
11705
11706
  *
11706
- * This can be used to ensure an {@link ChangeDetectionStrategy#OnPush OnPush} component is
11707
+ * This can be used to ensure an {@link ChangeDetectionStrategy#OnPush} component is
11707
11708
  * checked when it needs to be re-rendered but the two normal triggers haven't marked it
11708
11709
  * dirty (i.e. inputs haven't changed and events haven't fired in the view).
11709
11710
  *
@@ -11737,7 +11738,7 @@ export declare class ɵViewRef<T> implements EmbeddedViewRef<T>, InternalViewRef
11737
11738
  *
11738
11739
  * Detached views will not be checked during change detection runs until they are
11739
11740
  * re-attached, even if they are dirty. `detach` can be used in combination with
11740
- * {@link ChangeDetectorRef#detectChanges detectChanges} to implement local change
11741
+ * {@link ChangeDetectorRef#detectChanges} to implement local change
11741
11742
  * detection checks.
11742
11743
  *
11743
11744
  * <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->
@@ -11790,7 +11791,7 @@ export declare class ɵViewRef<T> implements EmbeddedViewRef<T>, InternalViewRef
11790
11791
  * Re-attaches a view to the change detection tree.
11791
11792
  *
11792
11793
  * This can be used to re-attach views that were previously detached from the tree
11793
- * using {@link ChangeDetectorRef#detach detach}. Views are attached to the tree by default.
11794
+ * using {@link ChangeDetectorRef#detach}. Views are attached to the tree by default.
11794
11795
  *
11795
11796
  * <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->
11796
11797
  *
@@ -11846,7 +11847,7 @@ export declare class ɵViewRef<T> implements EmbeddedViewRef<T>, InternalViewRef
11846
11847
  /**
11847
11848
  * Checks the view and its children.
11848
11849
  *
11849
- * This can also be used in combination with {@link ChangeDetectorRef#detach detach} to implement
11850
+ * This can also be used in combination with {@link ChangeDetectorRef#detach} to implement
11850
11851
  * local change detection checks.
11851
11852
  *
11852
11853
  * <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->
@@ -11862,7 +11863,7 @@ export declare class ɵViewRef<T> implements EmbeddedViewRef<T>, InternalViewRef
11862
11863
  * We can do that by detaching the component's change detector and doing a local change detection
11863
11864
  * check every five seconds.
11864
11865
  *
11865
- * See {@link ChangeDetectorRef#detach detach} for more information.
11866
+ * See {@link ChangeDetectorRef#detach} for more information.
11866
11867
  */
11867
11868
  detectChanges(): void;
11868
11869
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/core",
3
- "version": "16.1.0",
3
+ "version": "16.1.2",
4
4
  "description": "Angular - the core framework",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v16.1.0
2
+ * @license Angular v16.1.2
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -10,6 +10,7 @@ import { Injector } from '@angular/core';
10
10
  import { MonoTypeOperatorFunction } from 'rxjs';
11
11
  import { Observable } from 'rxjs';
12
12
  import { Signal } from '@angular/core';
13
+ import { Subscribable } from 'rxjs';
13
14
 
14
15
  /**
15
16
  * Operator which completes the Observable when the calling context (component, directive, service,
@@ -68,7 +69,7 @@ export declare interface ToObservableOptions {
68
69
  * option can be specified instead, which disables the automatic subscription teardown. No injection
69
70
  * context is needed in this configuration as well.
70
71
  */
71
- export declare function toSignal<T>(source: Observable<T>): Signal<T | undefined>;
72
+ export declare function toSignal<T>(source: Observable<T> | Subscribable<T>): Signal<T | undefined>;
72
73
 
73
74
  /**
74
75
  * Get the current value of an `Observable` as a reactive `Signal`.
@@ -93,7 +94,7 @@ export declare function toSignal<T>(source: Observable<T>): Signal<T | undefined
93
94
  *
94
95
  * @developerPreview
95
96
  */
96
- export declare function toSignal<T>(source: Observable<T>, options?: ToSignalOptions<undefined> & {
97
+ export declare function toSignal<T>(source: Observable<T> | Subscribable<T>, options?: ToSignalOptions<undefined> & {
97
98
  requireSync?: false;
98
99
  }): Signal<T | undefined>;
99
100
 
@@ -120,7 +121,7 @@ export declare function toSignal<T>(source: Observable<T>, options?: ToSignalOpt
120
121
  *
121
122
  * @developerPreview
122
123
  */
123
- export declare function toSignal<T, U extends T | null | undefined>(source: Observable<T>, options: ToSignalOptions<U> & {
124
+ export declare function toSignal<T, U extends T | null | undefined>(source: Observable<T> | Subscribable<T>, options: ToSignalOptions<U> & {
124
125
  initialValue: U;
125
126
  requireSync?: false;
126
127
  }): Signal<T | U>;
@@ -148,7 +149,7 @@ export declare function toSignal<T, U extends T | null | undefined>(source: Obse
148
149
  *
149
150
  * @developerPreview
150
151
  */
151
- export declare function toSignal<T>(source: Observable<T>, options: ToSignalOptions<undefined> & {
152
+ export declare function toSignal<T>(source: Observable<T> | Subscribable<T>, options: ToSignalOptions<undefined> & {
152
153
  requireSync: true;
153
154
  }): Signal<T>;
154
155
 
@@ -60,7 +60,7 @@ var __async = (__this, __arguments, generator) => {
60
60
  });
61
61
  };
62
62
 
63
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/index.mjs
63
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/index.mjs
64
64
  var guard_and_resolve_interfaces_exports = {};
65
65
  __export(guard_and_resolve_interfaces_exports, {
66
66
  default: () => guard_and_resolve_interfaces_default
@@ -69,7 +69,7 @@ module.exports = __toCommonJS(guard_and_resolve_interfaces_exports);
69
69
  var import_schematics = require("@angular-devkit/schematics");
70
70
  var import_path3 = require("path");
71
71
 
72
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
72
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
73
73
  var import_core = require("@angular-devkit/core");
74
74
  function getProjectTsConfigPaths(tree) {
75
75
  return __async(this, null, function* () {
@@ -149,11 +149,11 @@ function getWorkspace(tree) {
149
149
  });
150
150
  }
151
151
 
152
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
152
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
153
153
  var import_path = require("path");
154
154
  var import_typescript2 = __toESM(require("typescript"), 1);
155
155
 
156
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
156
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
157
157
  var path = __toESM(require("path"), 1);
158
158
  var import_typescript = __toESM(require("typescript"), 1);
159
159
  function parseTsconfigFile(tsconfigPath, basePath) {
@@ -170,7 +170,7 @@ function parseTsconfigFile(tsconfigPath, basePath) {
170
170
  return import_typescript.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
171
171
  }
172
172
 
173
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
173
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
174
174
  function createMigrationProgram(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles) {
175
175
  const { rootNames, options, host } = createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles);
176
176
  return import_typescript2.default.createProgram(rootNames, options, host);
@@ -203,13 +203,13 @@ function canMigrateFile(basePath, sourceFile, program) {
203
203
  return !(0, import_path.relative)(basePath, sourceFile.fileName).startsWith("..");
204
204
  }
205
205
 
206
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/util.mjs
206
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/util.mjs
207
207
  var import_typescript7 = __toESM(require("typescript"), 1);
208
208
 
209
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
209
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
210
210
  var import_typescript4 = __toESM(require("typescript"), 1);
211
211
 
212
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/import_manager.mjs
212
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/import_manager.mjs
213
213
  var import_path2 = require("path");
214
214
  var import_typescript3 = __toESM(require("typescript"), 1);
215
215
  var ImportManager = class {
@@ -393,7 +393,7 @@ ${text}`;
393
393
  }
394
394
  };
395
395
 
396
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
396
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
397
397
  var ChangeTracker = class {
398
398
  constructor(_printer, _importRemapper) {
399
399
  __publicField(this, "_printer");
@@ -449,7 +449,7 @@ function normalizePath(path2) {
449
449
  return path2.replace(/\\/g, "/");
450
450
  }
451
451
 
452
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
452
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
453
453
  var import_typescript5 = __toESM(require("typescript"), 1);
454
454
  function getImportOfIdentifier(typeChecker, node) {
455
455
  const symbol = typeChecker.getSymbolAtLocation(node);
@@ -521,7 +521,7 @@ function findImportSpecifier(nodes, specifierName) {
521
521
  });
522
522
  }
523
523
 
524
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/nodes.mjs
524
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/nodes.mjs
525
525
  var import_typescript6 = __toESM(require("typescript"), 1);
526
526
  function closestNode(node, predicate) {
527
527
  let current = node.parent;
@@ -534,7 +534,7 @@ function closestNode(node, predicate) {
534
534
  return null;
535
535
  }
536
536
 
537
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/util.mjs
537
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/util.mjs
538
538
  var deprecatedInterfaces = /* @__PURE__ */ new Set(["CanLoad", "CanMatch", "CanActivate", "CanDeactivate", "CanActivateChild", "Resolve"]);
539
539
  var routerModule = "@angular/router";
540
540
  function migrateFile(sourceFile, typeChecker, rewriteFn) {
@@ -647,7 +647,7 @@ function visitTypeReference(typeReference, typeChecker, changeTracker, sourceFil
647
647
  import_typescript7.default.forEachChild(typeReference, visitTypeReferenceChildren);
648
648
  }
649
649
 
650
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/index.mjs
650
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/index.mjs
651
651
  function guard_and_resolve_interfaces_default() {
652
652
  return (tree) => __async(this, null, function* () {
653
653
  const { buildPaths, testPaths } = yield getProjectTsConfigPaths(tree);
@@ -56,7 +56,7 @@ var __async = (__this, __arguments, generator) => {
56
56
  });
57
57
  };
58
58
 
59
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/remove-module-id/index.mjs
59
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/remove-module-id/index.mjs
60
60
  var remove_module_id_exports = {};
61
61
  __export(remove_module_id_exports, {
62
62
  default: () => remove_module_id_default
@@ -66,13 +66,13 @@ var import_schematics = require("@angular-devkit/schematics");
66
66
  var import_path2 = require("path");
67
67
  var import_typescript8 = __toESM(require("typescript"), 1);
68
68
 
69
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/extract_metadata.mjs
69
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/extract_metadata.mjs
70
70
  var import_typescript4 = __toESM(require("typescript"), 1);
71
71
 
72
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
72
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
73
73
  var import_typescript2 = __toESM(require("typescript"), 1);
74
74
 
75
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
75
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
76
76
  var import_typescript = __toESM(require("typescript"), 1);
77
77
  function getImportOfIdentifier(typeChecker, node) {
78
78
  const symbol = typeChecker.getSymbolAtLocation(node);
@@ -94,7 +94,7 @@ function getImportOfIdentifier(typeChecker, node) {
94
94
  };
95
95
  }
96
96
 
97
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
97
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
98
98
  function getCallDecoratorImport(typeChecker, decorator) {
99
99
  if (!import_typescript2.default.isCallExpression(decorator.expression) || !import_typescript2.default.isIdentifier(decorator.expression.expression)) {
100
100
  return null;
@@ -103,7 +103,7 @@ function getCallDecoratorImport(typeChecker, decorator) {
103
103
  return getImportOfIdentifier(typeChecker, identifier);
104
104
  }
105
105
 
106
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/ng_decorators.mjs
106
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/ng_decorators.mjs
107
107
  function getAngularDecorators(typeChecker, decorators) {
108
108
  return decorators.map((node) => ({ node, importData: getCallDecoratorImport(typeChecker, node) })).filter(({ importData }) => importData && importData.importModule.startsWith("@angular/")).map(({ node, importData }) => ({
109
109
  node,
@@ -113,7 +113,7 @@ function getAngularDecorators(typeChecker, decorators) {
113
113
  }));
114
114
  }
115
115
 
116
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/functions.mjs
116
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/functions.mjs
117
117
  var import_typescript3 = __toESM(require("typescript"), 1);
118
118
  function unwrapExpression(node) {
119
119
  if (import_typescript3.default.isParenthesizedExpression(node) || import_typescript3.default.isAsExpression(node)) {
@@ -123,7 +123,7 @@ function unwrapExpression(node) {
123
123
  }
124
124
  }
125
125
 
126
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/extract_metadata.mjs
126
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/extract_metadata.mjs
127
127
  function extractAngularClassMetadata(typeChecker, node) {
128
128
  const decorators = import_typescript4.default.getDecorators(node);
129
129
  if (!decorators || !decorators.length) {
@@ -150,7 +150,7 @@ function extractAngularClassMetadata(typeChecker, node) {
150
150
  };
151
151
  }
152
152
 
153
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
153
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
154
154
  var import_core = require("@angular-devkit/core");
155
155
  function getProjectTsConfigPaths(tree) {
156
156
  return __async(this, null, function* () {
@@ -230,11 +230,11 @@ function getWorkspace(tree) {
230
230
  });
231
231
  }
232
232
 
233
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
233
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
234
234
  var import_path = require("path");
235
235
  var import_typescript6 = __toESM(require("typescript"), 1);
236
236
 
237
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
237
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
238
238
  var path = __toESM(require("path"), 1);
239
239
  var import_typescript5 = __toESM(require("typescript"), 1);
240
240
  function parseTsconfigFile(tsconfigPath, basePath) {
@@ -251,7 +251,7 @@ function parseTsconfigFile(tsconfigPath, basePath) {
251
251
  return import_typescript5.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
252
252
  }
253
253
 
254
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
254
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
255
255
  function createMigrationProgram(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles) {
256
256
  const { rootNames, options, host } = createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles);
257
257
  return import_typescript6.default.createProgram(rootNames, options, host);
@@ -284,7 +284,7 @@ function canMigrateFile(basePath, sourceFile, program) {
284
284
  return !(0, import_path.relative)(basePath, sourceFile.fileName).startsWith("..");
285
285
  }
286
286
 
287
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/property_name.mjs
287
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/property_name.mjs
288
288
  var import_typescript7 = __toESM(require("typescript"), 1);
289
289
  function getPropertyNameText(node) {
290
290
  if (import_typescript7.default.isIdentifier(node) || import_typescript7.default.isStringLiteralLike(node)) {
@@ -293,7 +293,7 @@ function getPropertyNameText(node) {
293
293
  return null;
294
294
  }
295
295
 
296
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/remove-module-id/index.mjs
296
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/remove-module-id/index.mjs
297
297
  function remove_module_id_default() {
298
298
  return (tree) => __async(this, null, function* () {
299
299
  const { buildPaths, testPaths } = yield getProjectTsConfigPaths(tree);